| Author | 
		  Message
		 | 
		
		  | Pats21 | 
		  
		    
			  
				 Posted: Thu Dec 10, 2009 12:14 am    Post subject: [SOLVED] Err while deploying msg flow | 
				     | 
			   
			 
		   | 
		
		
		   Disciple
 
 Joined: 08 Sep 2006 Posts: 154
  
  | 
		  
		    
			  
				Hi All,
 
 
I am getting the following error while deploying msg flow.
 
 
( BRK61.default ) A Fatal Java exception was thrown whilst calling the Java JNI method ''method_com_ibm_broker_axis2_Axis2NodeRegistrationUtil_registerSyncRequestNode''. The Java exception was ''java.lang.ExceptionInInitializerError''. The Java stack trace was ''Frame : 0 java.lang.ExceptionInInitializerError: null
 
	@: java.lang.J9VMInternals.initialize(J9VMInternals.java:214)
 
	@: com.ibm.broker.axis2.Axis2NodeRegistered$SOAPConfig.setupTransportDescriptions(Axis2NodeRegistered.java:254)
 
	@: com.ibm.broker.axis2.Axis2NodeRegistered$SOAPConfig.<init>(Axis2NodeRegistered.java:207)
 
	@: com.ibm.broker.axis2.Axis2NodeRegistered.<init>(Axis2NodeRegistered.java:113)
 
	@: com.ibm.broker.axis2.Axis2EngineManager.registerNode(Axis2EngineManager.java:52)
 
	@: com.ibm.broker.axis2.Axis2NodeRegistrationUtil.registerSyncRequestNode(Axis2NodeRegistrationUtil.java:267)
 
Frame : 1 java.lang.IllegalArgumentException: null
 
 
 
**********************************************************
 
 
( BRK61.default ) 'java.lang.IllegalArgumentException' was thrown while loading Java user-defined node class 'com.ibm.sr.mb.nodes.SRRetrieveEntityNode'.   
 
 
The stack trace of the exception is 'sun.net.www.ParseUtil.decode(ParseUtil.java:217)
 
sun.misc.FileURLMapper.getPath(FileURLMapper.java:6 
 
sun.misc.FileURLMapper.exists(FileURLMapper.java:73)
 
 
 
These errors i have picked up from the Event Viewer.
 
 
My msg flow consist of 4 nodes.
 
MQInput -> Compute -> SOAPRequest -> MQOutput.
 
 
my env is:
 
OS : WIN XP
 
MQ : 6
 
MB : 6.1
 
DB : DB2
 
 
Any ideas on what am i doing wrong?
 
 
Thanks,
 
Pats ...
  Last edited by Pats21 on Sun Dec 13, 2009 11:58 pm; edited 1 time in total | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | elvis_gn | 
		  
		    
			  
				 Posted: Thu Dec 10, 2009 12:40 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Padawan
 
 Joined: 08 Oct 2004 Posts: 1905 Location: Dubai 
  | 
		  
		    
			  
				Hi Pats21,
 
 
Did the bar file get created without errors ? Try a cleaning of project and clear & build the bar.
 
 
Also, what are you setting as the Soap request node properties ?
 
 
Regards. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Pats21 | 
		  
		    
			  
				 Posted: Thu Dec 10, 2009 1:10 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Disciple
 
 Joined: 08 Sep 2006 Posts: 154
  
  | 
		  
		    
			  
				Hi Elvis,
 
 
There is no errors reported while building the bar file nad yes i have clead and build the project and bar file.
 
 
I have set most of the properties for the SOAP Reuest node.
 
Infact when i selected the wsdl file for the SOAP Request node, it automatically populated all the necessary fields for the node.
 
I do not see any errors on this node as well.
 
 
Pats ... | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | elvis_gn | 
		  
		    
			  
				 Posted: Thu Dec 10, 2009 1:15 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Padawan
 
 Joined: 08 Oct 2004 Posts: 1905 Location: Dubai 
  | 
		  
		    
			  
				Hi Pats21,
 
 
Could you paste the property settings please.
 
 
Regards. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Pats21 | 
		  
		    
			  
				 Posted: Thu Dec 10, 2009 2:13 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Disciple
 
 Joined: 08 Sep 2006 Posts: 154
  
  | 
		  
		    
			  
				Below are the SOAP Request node settings and the WSDL i m using.
 
 
Basic
 
-----
 
WSDL File Name :	TempConvMessageSet/sample/ConvertTemperature.wsdl
 
Port type :		ConvertTemperature
 
Imported Binding :	ConvertTemperatureSoapBinding
 
Binding operation :	fahrenheitToCelsius
 
Service Port :		ConvertTemperature
 
 
HTTP transport
 
--------------
 
Web service URL : http://localhost:9080/temperatureProject/services/ConvertTemperature
 
 
 
WSDL File
 
---------
 
<?xml version="1.0" encoding="UTF-8"?>
 
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://sample" xmlns:intf="http://sample" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://sample">
 
  <wsdl:documentation>
 
    <wsdl:appinfo source="WMQI_APPINFO">
 
      <MRWSDLAppInfo imported="true">
 
        <generatedMXSD location="ConvertTemperature_InlineSchema1.mxsd"/>
 
        <binding hasEncoding="false" imported="true" name="ConvertTemperatureSoapBinding" originalBindingStyle="document"/>
 
      </MRWSDLAppInfo>
 
    </wsdl:appinfo>
 
  </wsdl:documentation>
 
 <wsdl:types>
 
  <schema xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://sample" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://sample" xmlns:intf="http://sample" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
   <xsd:include schemaLocation="ConvertTemperature_InlineSchema1.mxsd"/>
 
    </schema>
 
 </wsdl:types>
 
 
   <wsdl:message name="celsiusToFahrenheitRequest">
 
 
      <wsdl:part element="intf:celsiusToFahrenheit" name="parameters"/>
 
 
   </wsdl:message>
 
 
   <wsdl:message name="fahrenheitToCelsiusResponse">
 
 
      <wsdl:part element="intf:fahrenheitToCelsiusResponse" name="parameters"/>
 
 
   </wsdl:message>
 
 
   <wsdl:message name="fahrenheitToCelsiusRequest">
 
 
      <wsdl:part element="intf:fahrenheitToCelsius" name="parameters"/>
 
 
   </wsdl:message>
 
 
   <wsdl:message name="celsiusToFahrenheitResponse">
 
 
      <wsdl:part element="intf:celsiusToFahrenheitResponse" name="parameters"/>
 
 
   </wsdl:message>
 
 
   <wsdl:portType name="ConvertTemperature">
 
 
      <wsdl:operation name="fahrenheitToCelsius">
 
 
         <wsdl:input message="intf:fahrenheitToCelsiusRequest" name="fahrenheitToCelsiusRequest"/>
 
 
         <wsdl:output message="intf:fahrenheitToCelsiusResponse" name="fahrenheitToCelsiusResponse"/>
 
 
      </wsdl:operation>
 
 
      <wsdl:operation name="celsiusToFahrenheit">
 
 
         <wsdl:input message="intf:celsiusToFahrenheitRequest" name="celsiusToFahrenheitRequest"/>
 
 
         <wsdl:output message="intf:celsiusToFahrenheitResponse" name="celsiusToFahrenheitResponse"/>
 
 
      </wsdl:operation>
 
 
   </wsdl:portType>
 
 
   <wsdl:binding name="ConvertTemperatureSoapBinding" type="intf:ConvertTemperature">
 
 
      <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
 
 
      <wsdl:operation name="fahrenheitToCelsius">
 
 
         <wsdlsoap:operation soapAction=""/>
 
 
         <wsdl:input name="fahrenheitToCelsiusRequest">
 
 
            <wsdlsoap:body use="literal"/>
 
 
         </wsdl:input>
 
 
         <wsdl:output name="fahrenheitToCelsiusResponse">
 
 
            <wsdlsoap:body use="literal"/>
 
 
         </wsdl:output>
 
 
      </wsdl:operation>
 
 
      <wsdl:operation name="celsiusToFahrenheit">
 
 
         <wsdlsoap:operation soapAction=""/>
 
 
         <wsdl:input name="celsiusToFahrenheitRequest">
 
 
            <wsdlsoap:body use="literal"/>
 
 
         </wsdl:input>
 
 
         <wsdl:output name="celsiusToFahrenheitResponse">
 
 
            <wsdlsoap:body use="literal"/>
 
 
         </wsdl:output>
 
 
      </wsdl:operation>
 
 
   </wsdl:binding>
 
 
   <wsdl:service name="ConvertTemperatureService">
 
 
      <wsdl:port binding="intf:ConvertTemperatureSoapBinding" name="ConvertTemperature">
 
 
         <wsdlsoap:address location="http://localhost:9080/temperatureProject/services/ConvertTemperature"/>
 
 
      </wsdl:port>
 
 
   </wsdl:service>
 
 
</wsdl:definitions> | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Pats21 | 
		  
		    
			  
				 Posted: Thu Dec 10, 2009 9:32 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Disciple
 
 Joined: 08 Sep 2006 Posts: 154
  
  | 
		  
		    
			  
				Any one any hints on this one.
 
I am still battling with this one.
 
 
Pats ... | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Pats21 | 
		  
		    
			  
				 Posted: Fri Dec 11, 2009 2:06 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Disciple
 
 Joined: 08 Sep 2006 Posts: 154
  
  | 
		  
		    
			  
				If you look further at the java stack trace of the error message (which i have not provided earlier), I noticed the following msgs ...
 
 
	@: sun.net.www.ParseUtil.decode(ParseUtil.java:217)
 
	@: sun.misc.FileURLMapper.getPath(FileURLMapper.java:6 
 
	@: sun.misc.FileURLMapper.exists(FileURLMapper.java:73)
 
	@: sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java:851)
 
	@: sun.misc.URLClassPath$JarLoader.<init>(URLClassPath.java:813)
 
	@: sun.misc.URLClassPath$3.rtJarLoader(URLClassPath.java:588)
 
	@: sun.misc.URLClassPath$3.run(URLClassPath.java:519)
 
	@: java.security.AccessController.doPrivileged(AccessController.java:242)
 
	@: sun.misc.URLClassPath.getLoader(URLClassPath.java:508)
 
	@: sun.misc.URLClassPath.getLoader(URLClassPath.java:473)
 
	@: sun.misc.URLClassPath.findResource(URLClassPath.java:298)
 
	@: java.net.URLClassLoader$1.run(URLClassLoader.java:752)
 
	@: java.security.AccessController.doPrivileged(AccessController.java:215)
 
 
 
 
It looks like the config manager or broker runtime is looking for some jar file but is not able to load/find it ....
 
 
Just wanted to know whether is there any jar file which needs to be referenced to work along with SOAPRequest node.
 
 
Pats ... | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | aditya.aggarwal | 
		  
		    
			  
				 Posted: Fri Dec 11, 2009 10:23 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Master
 
 Joined: 13 Jan 2009 Posts: 252
  
  | 
		  
		    
			  
				There is no JAR file missing , as you are not getting any error while building the BAR file...
 
 
Try to increase the JVM heap size and deploy the message flow again... it should help...!!!! | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Pats21 | 
		  
		    
			  
				 Posted: Sun Dec 13, 2009 11:47 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Disciple
 
 Joined: 08 Sep 2006 Posts: 154
  
  | 
		  
		    
			  
				Hi All,
 
 
Thanks for your support.
 
 
I was able to get the root cause of this error.
 
I understand that the installation of the product (MB 6.1) itself was faulty.
 
I say this bcoz I tried deploying this on another machine and it deployed fine.
 
So there was no issues with the node settings or anything else.
 
 
Thanks again.
 
 
Pats ... | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | RikBaeten | 
		  
		    
			  
				 Posted: Tue Dec 29, 2009 8:40 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Novice
 
 Joined: 26 Feb 2007 Posts: 19
  
  | 
		  
		    
			  
				I had a similar problem implementing UsernameToken basic authentication (WS-Security) from the SoapRequest nodes. I got a similar error:
 
 
   
	| Code: | 
   
  
	
 
BIP3701E: A Java exception was thrown whilst calling the Java JNI method 'method_com_ibm_broker_axis2_Axis2NodeRegistrationUtil_registerSyncRequestNode'. The Java exception was 'org.apache.axis2.AxisFault: Failed to setup Axis2; nested exception is:   org.apache.axis2.AxisFault: Exception Configuring Policy Set for Service:MyWebservicePortType; nested exception is:   org.apache.axis2.AxisFault: security.wssecurityPrivateConsumerConfig.s31; nested exception is:   com.ibm.wsspi.wssecurity.core.SoapSecurityException: security.wssecurityPrivateConsumerConfig.s31'. The Java stack trace was 'Frame : 0 org.apache.axis2.AxisFault: Failed to setup Axis2; nested exception is: 
 
 org.apache.axis2.AxisFault: Exception Configuring Policy Set for Service:MyWebservicePortType; nested exception is: 
 
 org.apache.axis2.AxisFault: security.wssecurityPrivateConsumerConfig.s31; nested exception is: 
 
 com.ibm.wsspi.wssecurity.core.SoapSecurityException: security.wssecurityPrivateConsumerConfig.s31
 
 @: com.ibm.broker.axis2.Axis2NodeRegistered$SOAPConfig.<init>(Axis2NodeRegistered.java:229)
 
 @: com.ibm.broker.axis2.Axis2NodeRegistered.<init>(Axis2NodeRegistered.java:113)
 
 @: com.ibm.broker.axis2.Axis2EngineManager.registerNode(Axis2EngineManager.java:52)
 
 @: com.ibm.broker.axis2.Axis2NodeRegistrationUtil.registerSyncRequestNode(Axis2NodeRegistrationUtil.java:267)
 
Frame : 1 org.apache.axis2.AxisFault: Exception Configuring Policy Set for Service:MyWebservicePortType; nested exception is: 
 
 org.apache.axis2.AxisFault: security.wssecurityPrivateConsumerConfig.s31; nested exception is: 
 
 com.ibm.wsspi.wssecurity.core.SoapSecurityException: security.wssecurityPrivateConsumerConfig.s31
 
 @: com.ibm.broker.axis2.Axis2NodeRegistered$SOAPConfig.setupSOAPPipeline(Axis2NodeRegistered.java:467)
 
 @: com.ibm.broker.axis2.Axis2NodeRegistered$SOAPConfig.<init>(Axis2NodeRegistered.java:208)
 
 @: com.ibm.broker.axis2.Axis2NodeRegistered.<init>(Axis2NodeRegistered.java:113)
 
 @: com.ibm.broker.axis2.Axis2EngineManager.registerNode(Axis2EngineManager.java:52)
 
 @: com.ibm.broker.axis2.Axis2NodeRegistrationUtil.registerSyncRequestNode(Axis2NodeRegistrationUtil.java:267)
 
Frame : 2 org.apache.axis2.AxisFault: security.wssecurityPrivateConsumerConfig.s31; nested exception is: 
 
 com.ibm.wsspi.wssecurity.core.SoapSecurityException: security.wssecurityPrivateConsumerConfig.s31
 
 @: com.ibm.broker.axis2.Axis2NodeRegistered$SOAPConfig.policySetConfiguration(Axis2NodeRegistered.java:1396)
 
 @: com.ibm.broker.axis2.Axis2NodeRegistered$SOAPConfig.setupSOAPPipeline(Axis2NodeRegistered.java:450)
 
 @: com.ibm.broker.axis2.Axis2NodeRegistered$SOAPConfig.<init>(Axis2NodeRegistered.java:208)
 
 @: com.ibm.broker.axis2.Axis2NodeRegistered.<init>(Axis2NodeRegistered.java:113)
 
 @: com.ibm.broker.axis2.Axis2EngineManager.registerNode(Axis2EngineManager.java:52)
 
 @: com.ibm.broker.axis2.Axis2NodeRegistrationUtil.registerSyncRequestNode(Axis2NodeRegistrationUtil.java:267)
 
Frame : 3 com.ibm.wsspi.wssecurity.core.SoapSecurityException: security.wssecurityPrivateConsumerConfig.s31
 
 @: com.ibm.wsspi.wssecurity.core.SoapSecurityException.format(SoapSecurityException.java:77)
 
 @: com.ibm.ws.wssecurity.handler.PolicyOutboundConfig.init(PolicyOutboundConfig.java:1470)
 
 @: com.ibm.ws.wssecurity.handler.PolicyOutboundConfig.<init>(PolicyOutboundConfig.java:236)
 
 @: com.ibm.ws.wssecurity.handler.WSSecurityBindingLoaderImpl.loadCustom(WSSecurityBindingLoaderImpl.java:373)
 
 @: com.ibm.broker.axis2.Axis2NodeRegistered$SOAPConfig.policySetConfiguration(Axis2NodeRegistered.java:1324)
 
 @: com.ibm.broker.axis2.Axis2NodeRegistered$SOAPConfig.setupSOAPPipeline(Axis2NodeRegistered.java:450)
 
 @: com.ibm.broker.axis2.Axis2NodeRegistered$SOAPConfig.<init>(Axis2NodeRegistered.java:208)
 
 @: com.ibm.broker.axis2.Axis2NodeRegistered.<init>(Axis2NodeRegistered.java:113)
 
 @: com.ibm.broker.axis2.Axis2EngineManager.registerNode(Axis2EngineManager.java:52)
 
 @: com.ibm.broker.axis2.Axis2NodeRegistrationUtil.registerSyncRequestNode(Axis2NodeRegistrationUtil.java:267)'. 
 
 
Correct the error, and if necessary redeploy the flow.
 
 | 
   
 
 
 
I simply redeployed to another installation of the broker runtime and it worked.   So, I'm assuming I was also deploying to an incorrectly installed broker runtime.
 
 
I'm adding this here for future reference to people that search the forums, since I found a lot of people with similar problems as me, but no solution. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |