|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
java method exception in 6.0 custom utility function |
« View previous topic :: View next topic » |
Author |
Message
|
madi |
Posted: Mon Jul 17, 2006 10:39 am Post subject: java method exception in 6.0 custom utility function |
|
|
 Chevalier
Joined: 17 Jan 2006 Posts: 475
|
Hi All
I am getting this error when I call a java function returning a property from a properties file
Quote: |
( RB_BROKER.default ) ('.FA_AMZ_OTB_POPULATE_Compute.Main', '10.3') Error detected whilst executing the SQL statement ''DECLARE v_isTest CHARACTER READ_PROPERTY('TRB_Environment', 'isTest');''. |
it shows the parameters I am passing to the method and then in this next error says they are NULL,NULL
Quote: |
( RB_BROKER.default ) ('.READ_PROPERTY', '1.12') : An error occured whilst invoking the Java method ''com.tgt.wbimb.enterprise.util.PropertiesLoader.getProperty''. The parameters passed to the method were ''NULL, NULL''. |
Quote: |
( RB_BROKER.default ) A call to the Java method ''com.tgt.wbimb.enterprise.util.PropertiesLoader.getProperty'' with parameters '''' failed because a Java Exception occured. The Java Exception information is ''java.lang.InstantiationError: com/ibm/broker/plugin/MbNode''. |
what can be wrong??
Thanks
--madi |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Jul 17, 2006 11:00 am Post subject: Re: java method exception in 6.0 custom utility function |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
madi wrote: |
Hi All
I am getting this error when I call a java function returning a property from a properties file
Quote: |
( RB_BROKER.default ) ('.FA_AMZ_OTB_POPULATE_Compute.Main', '10.3') Error detected whilst executing the SQL statement ''DECLARE v_isTest CHARACTER READ_PROPERTY('TRB_Environment', 'isTest');''. |
it shows the parameters I am passing to the method and then in this next error says they are NULL,NULL
Quote: |
( RB_BROKER.default ) ('.READ_PROPERTY', '1.12') : An error occured whilst invoking the Java method ''com.tgt.wbimb.enterprise.util.PropertiesLoader.getProperty''. The parameters passed to the method were ''NULL, NULL''. |
Quote: |
( RB_BROKER.default ) A call to the Java method ''com.tgt.wbimb.enterprise.util.PropertiesLoader.getProperty'' with parameters '''' failed because a Java Exception occured. The Java Exception information is ''java.lang.InstantiationError: com/ibm/broker/plugin/MbNode''. |
what can be wrong??
Thanks
--madi |
Are you trying to use java.util.Properties or com.tgt.wbimb.enterprise.util.Properties ?? _________________ MQ & Broker admin |
|
Back to top |
|
 |
madi |
Posted: Mon Jul 17, 2006 11:14 am Post subject: |
|
|
 Chevalier
Joined: 17 Jan 2006 Posts: 475
|
Quote: |
Are you trying to use java.util.Properties or com.tgt.wbimb.enterprise.util.Properties ?? |
com.tgt.wbimb.enterprise.util.Properties
--madi |
|
Back to top |
|
 |
madi |
Posted: Mon Jul 17, 2006 11:18 am Post subject: |
|
|
 Chevalier
Joined: 17 Jan 2006 Posts: 475
|
i think it might help to add that this method and eSQL and everything was working for 5.0 and this is the first time I am trying to deploy it in my PC after migrating the flows to 6.0
--madi |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Jul 17, 2006 11:18 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Looks to me that the class is trying to load the properties (perhaps for the first time) and the load arguments are not supplied right. Did you check in your java function whether or not your Properties class was null? What action do you take on that? _________________ MQ & Broker admin |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|