ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » java method exception in 6.0 custom utility function

Post new topic  Reply to topic
 java method exception in 6.0 custom utility function « View previous topic :: View next topic » 
Author Message
madi
PostPosted: Mon Jul 17, 2006 10:39 am    Post subject: java method exception in 6.0 custom utility function Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Mon Jul 17, 2006 11:00 am    Post subject: Re: java method exception in 6.0 custom utility function Reply with quote

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
View user's profile Send private message Send e-mail
madi
PostPosted: Mon Jul 17, 2006 11:14 am    Post subject: Reply with quote

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
View user's profile Send private message
madi
PostPosted: Mon Jul 17, 2006 11:18 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Mon Jul 17, 2006 11:18 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » java method exception in 6.0 custom utility function
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.