| Author | 
		  Message
		 | 
		
		  | nthepak | 
		  
		    
			  
				 Posted: Thu Jul 31, 2008 5:03 am    Post subject: BIP4395E: Java exception: 'java.lang.ClassNotFoundException' | 
				     | 
			   
			 
		   | 
		
		
		    Voyager
 
 Joined: 19 Dec 2005 Posts: 79 Location: India 
  | 
		  
		    
			  
				Hi All,
 
 
I have a java (JCN node) implementation in my Broker code which is working fine on my local broker environment. 
 
 
However, I am facing an issue when I am deploying it to the development environment for which the runtime broker is on UNIX platform. 
 
 
Below is the exception:
 
 
"BIP4395E: Java exception: 'java.lang.ClassNotFoundException'; thrown from class name: 'java.net.URLClassLoader$1', method name: 'run', file: 'URLClassLoader.java', line: '199' 
 
 
The message contains that data associated with a Java exception. 
 
 
No user action required."
 
 
I somehow feel that this is an issue related to the runtime broker environment and thus should work fine if the broker on the UNIX platform is checked for this possible cause.
 
 
Please let me know if someone has come across this kind of situation. _________________ BR,
 
Deepak N | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | ImSoTired | 
		  
		    
			  
				 Posted: Thu Jul 31, 2008 2:13 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 17 Apr 2007 Posts: 20 Location: Lima, Perú 
  | 
		  
		    
			  
				nthepak,
 
The broker uses the following search path to find JavaCompute node classes:
 
 
   1. The deployed JAR file
 
   2. <WorkPath>/shared-classes/ to locate any JAR Dependencies.
 
   3. The CLASSPATH environment variable
 
 
 
You should try placed the jar files that you need in the shared-classes directory. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | nthepak | 
		  
		    
			  
				 Posted: Thu Jul 31, 2008 8:38 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Voyager
 
 Joined: 19 Dec 2005 Posts: 79 Location: India 
  | 
		  
		    
			  
				Hi,
 
 
Yes, i have deployed the jar file which has the java implementation. Its like, when you add a JCN node to your flow the broker by default creates a Java project. I have deployed this Jar file also.
 
 
I think, by the exception that I am getting that, the runtime broker is not able to find any of the core java classes before JRE invokes my java implementation. Below is the exception that I am getting while running the Debugger:
 
 
-------------------------------------------------------------------------------------
 
ExceptionList
 
	RecoverableException
 
		File = /build/S600_P/src/DataFlowEngine/ImbDataFlowNode.cpp
 
		Line = 616
 
		Function = ImbDataFlowNode::createExceptionList
 
		Type = ComIbmJniNode
 
		Name = P10_MAIN_FLOW#FCMComposite_1_20.P10_VDTE#FCMComposite_1_1
 
		Label = P10_MAIN_FLOW.VDTEMsgSubFlow.RTFtoTextConversion
 
		Catalog = BIPv600
 
		Severity = 3
 
		Number = 2230
 
		Text = Node throwing exception
 
		RecoverableException
 
			File = /build/S600_P/src/DataFlowEngine/PluginInterface/com_ibm_broker_plugin_CMbService.cpp
 
			Line = 1631
 
			Function = ImbJavaExceptionUtils::throwableToNativeException
 
			Type = 
 
			Name = 
 
			Label = 
 
			Catalog = BIPv600
 
			Severity = 3
 
			Number = 4367
 
			Text = Unhandled exception in plugin method.
 
			Insert
 
				Type = 5
 
				Text = evaluate
 
			Insert
 
				Type = 5
 
				Text = VDTEMsgSubFlow.RTFtoTextConversion
 
			Insert
 
				Type = 5
 
				Text = java.lang.NoClassDefFoundError
 
			RecoverableException
 
				File = /build/S600_P/src/DataFlowEngine/PluginInterface/com_ibm_broker_plugin_CMbService.cpp
 
				Line = 1649
 
				Function = ImbJavaExceptionUtils::throwableToNativeException
 
				Type = 
 
				Name = 
 
				Label = 
 
				Catalog = BIPv600
 
				Severity = 3
 
				Number = 4395
 
				Text = Unhandled exception in plugin method
 
				Insert
 
					Type = 5
 
					Text = java.lang.NoClassDefFoundError
 
				Insert
 
					Type = 5
 
					Text = java.lang.Class
 
				Insert
 
					Type = 5
 
					Text = forName0
 
				Insert
 
					Type = 5
 
					Text = Class.java
 
				Insert
 
					Type = 2
 
					Text = -2
 
------------------------------------------------------------------------------------- _________________ BR,
 
Deepak N | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | chrisc | 
		  
		    
			  
				 Posted: Thu Jul 31, 2008 9:22 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Voyager
 
 Joined: 19 Mar 2006 Posts: 77
  
  | 
		  
		    
			  
				| Which JDK did you build your JAR file with? Is it possible there is some incompatibility between a JAR built with the Sun JDK versus the IBM JRE? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mattynorm | 
		  
		    
			  
				 Posted: Fri Aug 01, 2008 12:50 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Acolyte
 
 Joined: 06 Jun 2003 Posts: 52
  
  | 
		  
		    
			  
				Could it be a problem with the file permissions on the jar file?
 
 
 ls -al against the directory where your jar is should tell you if the broker user can access the file. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | geethgubi | 
		  
		    
			  
				 Posted: Fri Aug 21, 2009 6:01 am    Post subject: Need help with Class Not Found Exception | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 18 Dec 2008 Posts: 44
  
  | 
		  
		    
			  
				| May I know how did you resolve this issue. I face the similar issue but the jar file created for my java project itself is empty. Kindly please help me out with this issue. Thanks. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | run | 
		  
		    
			  
				 Posted: Mon Apr 08, 2013 3:51 pm    Post subject: Re: Need help with Class Not Found Exception | 
				     | 
			   
			 
		   | 
		
		
		    Apprentice
 
 Joined: 14 May 2007 Posts: 45 Location: Newyork, USA 
  | 
		  
		    
			  
				
   
	| geethgubi wrote: | 
   
  
	| May I know how did you resolve this issue. I face the similar issue but the jar file created for my java project itself is empty. Kindly please help me out with this issue. Thanks. | 
   
 
 
 
Hi Guys,
 
I am currently facing this issue please let me know if you where able to resolve this issue. I did a new install and applied the mqsirestore to see any difference but still se the same issue.
 
 
   
	| Code: | 
   
  
	"-0080-e8045464b03f: /build/S700_P/src/DataFlowEngine/TemplateNodes/ImbInputTemplateNode.cpp: 555: ImbInputTemplateNode::run: ComIbmFileInputNode:servicename#FCMComposite_1_1
 
Apr  8 18:39:35 mtqapplx01 WebSphere Broker v7005[31021]: (ESBBKQ1.EDUServices)[92]BIP4367E: The method 'readData' in Java node 'File Input' has thrown the following exception: java.lang.NoClassDefFoundError: com.ibm.broker.remote.RemoteFactory (initialization failure). : ESBBKQ1.955c1965-2901-0000-0080-e8045464b03f: /build/S700_P/src/DataFlowEngine/PluginInterface/com_ibm_broker_plugin_CMbService.cpp: 1845: ImbJavaExceptionUtils::throwableToNativeException: : 
 
Apr  8 18:39:35 mtqapplx01 WebSphere Broker v7005[31021]: (ESBBKQ1.EDUServices)[92]BIP4367E: The method 'readData' in Java node 'File Input' has thrown the following exception: java.lang.NoClassDefFoundError: com.ibm.broker.remote.RemoteFactory (initialization failure). : ESBBKQ1.955c1965-2901-0000-0080-e8045464b03f: /build/S700_P/src/DataFlowEngine/PluginInterface/com_ibm_broker_plugin_CMbService.cpp: 1845: ImbJavaExceptionUtils::throwableToNativeException: : 
 
Apr  8 18:39:35 mtqapplx01 WebSphere Broker v7005[31021]: (ESBBKQ1.EDUServices)[92]BIP4395E: Java exception: 'java.lang.NoClassDefFoundError'; thrown from class name: 'java.lang.J9VMInternals', method name: 'initialize', file: 'J9VMInternals.java', line: '140' : ESBBKQ1.955c1965-2901-0000-0080-e8045464b03f: /build/S700_P/src/DataFlowEngine/PluginInterface/com_ibm_broker_plugin_CMbService.cpp: 1863: ImbJavaExceptionUtils::throwableToNativeException: : 
 
Apr  8 18:39:35 mtqapplx01 WebSphere Broker v7005[31021]: (ESBBKQ1.EDUServices)[92]BIP4395E: Java exception: 'java.lang.NoClassDefFoundError'; thrown from class name: 'java.lang.J9VMInternals', method name: 'initialize', file: 'J9VMInternals.java', line: '140' : ESBBKQ1.955c1965-2901-0000-0080-e8045464b03f: /build/S700_P/src/DataFlowEngine/PluginInterface/com_ibm_broker_plugin_CMbService.cpp: 1863: ImbJavaExceptionUtils::throwableToNativeException: :" | 
   
 
 | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | fjb_saper | 
		  
		    
			  
				 Posted: Mon Apr 08, 2013 6:11 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY 
  | 
		  
		    
			  
				Your code and exception does not tell much.
 
Here is a rule of thumb you ought to know. 
 
When deploying a JCN or java project:
 
  If you change a class name
 
     either clear the eg before deploying
 
     or make sure that the deployable contains,  on the first deploy, both the old and the new class.
 
 
Hope that helped.   _________________ MQ & Broker admin | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |