| Author | 
		  Message
		 | 
		
		  | Arushi | 
		  
		    
			  
				 Posted: Tue Jan 30, 2007 12:42 am    Post subject: SAP adapter problem | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 12 Jan 2007 Posts: 21
  
  | 
		  
		    
			  
				Hi,
 
 
I have installed SAP adpter 6.0 and configured SAP adpater for a IDOC.While running the adapter i get the following error:
 
 
[Time: 2007/01/30 14:00:21.527] [System: ConnectorAgent] [SS: SAP_Adapter] [T
 
hread: wbia_main (#132586531)] [Type: Fatal Error] [MsgID: 24014] [Mesg: Error:
 
Unable to find jCO.jar.  Check that the file has been installed.]
 
---
 
---
 
 [Mesg: java.lang.NullPointerException
 
       at AppSide_Connector.AppEnd.goodBye(AppEnd.java:1704)
 
       at AppSide_Connector.AppEnd.reinit(AppEnd.java:2180)
 
       at AppSide_Connector.AppEnd.restartSerialAgent(AppEnd.java:1916)
 
       at AppSide_Connector.AppEnd.restartSerialAgent(AppEnd.java:1987)
 
       at AppSide_Connector.AgentBusinessObjectManager.checkStatus(AgentBusines
 
ObjectManager.java:1146)
 
       at AppSide_Connector.AgentBusinessObjectManager.init(AgentBusinessObject
 
anager.java:818)
 
       at AppSide_Connector.AgentBusinessObjectManager.<init>(AgentBusinessObje
 
tManager.java:250)
 
       at AppSide_Connector.AppEnd.run(AppEnd.java:1463)
 
       at AppSide_Connector.AppEnd.init(AppEnd.java:362)
 
       at AppSide_Connector.AppEnd.<init>(AppEnd.java:137)
 
       at AppSide_Connector.AppEnd.main(AppEnd.java:1092)
 
       at AppEndWrapper.main(AppEndWrapper.java:2 
 
 
I have placed the sapjco.jar file in C:\IBM\WebSphereAdapters\lib’ and set this path in set JCO_JAR in the start_SAPODA.bat and start_SAP.bat. 
 
Copied sapjcorfc.dll to ‘C:\IBM\WebSphereAdapters\AdapterJRE\bin’ folder 
 
Copied librfc32.dll in the 'C:\IBM\WebSphereAdapters\AdapterJRE\bin' folder 
 
 
I have also checked in the console to see if the paths are set correctly or not. I see that the jco_jar file path is being set correctly. 
 
 
What is the resolution for this? Help needed urgently.
 
 
Regards,
 
Arushi | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | fjb_saper | 
		  
		    
			  
				 Posted: Tue Jan 30, 2007 4:54 am    Post subject: Re: SAP adapter problem | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY 
  | 
		  
		    
			  
				
   
	| Arushi wrote: | 
   
  
	
 
I have placed the sapjco.jar file in C:\IBM\WebSphereAdapters\lib’ and set this path in set JCO_JAR in the start_SAPODA.bat and start_SAP.bat. 
 
Copied sapjcorfc.dll to ‘C:\IBM\WebSphereAdapters\AdapterJRE\bin’ folder 
 
Copied librfc32.dll in the 'C:\IBM\WebSphereAdapters\AdapterJRE\bin' folder 
 
 
I have also checked in the console to see if the paths are set correctly or not. I see that the jco_jar file path is being set correctly. 
 
 
What is the resolution for this? Help needed urgently.
 
 
Regards,
 
Arushi | 
   
 
 
WRONG. Sap has following requirements for the jco:
 
- jco.jar and sapjcorfc.dll need to be in the SAME (jco) directory.
 
 - preferably librfc32.dll should be in the SAME jco directory. In any case it needs to be on the path.
 
  
 
 
So if it is broken this is your own doing! 
 
Enjoy    _________________ MQ & Broker admin | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Arushi | 
		  
		    
			  
				 Posted: Tue Jan 30, 2007 5:11 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 12 Jan 2007 Posts: 21
  
  | 
		  
		    
			  
				Hi,
 
 
Thanks for the quick reply. I placed the sapjcorfc.dll,sapjco.jar and librfc32.dll in the same directory i.e C:\IBM\WebSphereAdapters\lib.In my start_SAP.bat and start_SAPODA.bat file i have set the path as 
 
set JCO_JAR="%CONNDIR%"\jCO.jar;"%CROSSWORLDS%"\lib\sapjco.jar;;"%CONNDIR%"\sapjco.jar;
 
 
Still i get the same error.
 
 
Regards,
 
Arushi | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Arushi | 
		  
		    
			  
				 Posted: Tue Jan 30, 2007 5:14 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 12 Jan 2007 Posts: 21
  
  | 
		  
		    
			  
				Hi,
 
 
One correction, in my start_SAPODA.bat the path is:
 
set JCO_JAR="%CROSSWORLDS%"\ODA\SAP\jCO.jar;"%CROSSWORLDS%"\ODA\SAP\sapjco.jar
 
 
Arushi | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | fjb_saper | 
		  
		    
			  
				 Posted: Tue Jan 30, 2007 3:12 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY 
  | 
		  
		    
			  
				
   
	| Arushi wrote: | 
   
  
	Hi,
 
 
One correction, in my start_SAPODA.bat the path is:
 
set JCO_JAR="%CROSSWORLDS%"\ODA\SAP\jCO.jar;"%CROSSWORLDS%"\ODA\SAP\sapjco.jar
 
 
Arushi | 
   
 
 
you need something like this in the app calling the JCO
 
 
SET PATH=%PATH%;<path to jcodir>
 
 
SET CLASSPATH=%CLASSPATH%;<path/sapjco.jar>
 
 
java myappusing_jco
 
 
Hope you're at the latest release... _________________ MQ & Broker admin | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Arushi | 
		  
		    
			  
				 Posted: Tue Jan 30, 2007 9:40 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 12 Jan 2007 Posts: 21
  
  | 
		  
		    
			  
				Hi,
 
 
Thanks for the tip. I have added the jcodir path in PATH as C:\IBM\WebSphereAdapters\lib and in CLASSPATH added C:\IBM\WebSphereAdapters\lib\sapjco.jar
 
 
Still get the same error.  
 
 
What do mean by java myappusing_jco here?Please help!!
 
 
Regards,
 
Arushi | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | fjb_saper | 
		  
		    
			  
				 Posted: Wed Jan 31, 2007 3:45 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY 
  | 
		  
		    
			  
				Now you need to have in C:\IBM\WebSphereAdapters\lib following files:
 
sapjco.jar
 
librfc32.dll
 
sapjcorfc.dll
 
optional:
 
sapidoc.jar
 
sapjcoidoc.jar
 
 
To verify the installation run in a command window:
 
cd C:\IBM\WebSphereAdapters\lib
 
java -jar sapjco.jar
 
 
If you don't get the nice SAP page you may have a librfc32.dll conflict.
 
Find out if you have it somewhere else on the path. Make sure your path starts with C:\IBM\WebSphereAdapters\lib ... and reboot the machine....
 
 
Enjoy    _________________ MQ & Broker admin | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Arushi | 
		  
		    
			  
				 Posted: Wed Jan 31, 2007 5:51 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 12 Jan 2007 Posts: 21
  
  | 
		  
		    
			  
				Hi,
 
 
I have the required files in C:\IBM\WebSphereAdapters\lib but not the optional files. On giving the command java -jar sapjco.jar on windows prompt i get the SAP window with these parameters:
 
 
JCo API:2.0.10(2003-12-02)
 
JCo middleware :2.0.10(2003-12-02)
 
JCo library:2.0.10(2003-12-02)
 
RFC library:640,0,17
 
 
Paths
 
JCo classes:C:\IBM\WebSphereAdapters\lib\sapjco.jar
 
JCo library:C:\IBM\WebSphereAdapters\lib\sapjcorfc.dll
 
RFC library:System-defined path
 
 
Plus other details..
 
In the path's environment variable,i have set C:\IBM\WebSphereAdapters\lib and restarted the PC. The libxx.dll file is also present in other paths apart from C:\IBM\WebSphereAdapters\lib, but i have set the PATh only to C:\IBM\WebSphereAdapters\lib.
 
 
Still get the same error. 
 
 
Regards,
 
Arushi | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | fjb_saper | 
		  
		    
			  
				 Posted: Wed Jan 31, 2007 8:39 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY 
  | 
		  
		    
			  
				check your app start up  file. Looks like it migth be a batch file.
 
 Looks like it might also change you path. Sill looks to me like a version conflict with an installed  librfc32.dll...
 
 
Enjoy    _________________ MQ & Broker admin | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |