on 05-30-2010 5:42 PM
I have the following OS: Red Hat Linux 7.3 2.96-110: Linux version 2.4.18-3
We are not able to upgrade the OS at this point of time.
I downloaded the file for sapjco-linuxintel-2.1.9
I put the files: librfccm.so libsapjcorfc.so in /home/mydir/lib
The jar file was put in another lib folder.
Then I ran my java program:
$JAVA_HOME/bin/java -Djava.library.path=/home/mydir/lib -classpath lib/classes12.jar:lib/jdom.jar:lib/log4j-1.2.7.jar:lib/sapjco.jar -jar someprogram.jar $file $dir $conf
But the error I get is:
java.lang.NullPointerException without further trace. The line number of the exception corresponds to the line the RFC is made and the data from the RFC stored in an arraylist.
The whole thing works fine in my Windows environment. It does not work in Red Hat Linux 7.3 2.96-110
Please see SAP note [549268|https://service.sap.com/sap/support/notes/549268] for a list of supported platforms.
Maybe some Linux expert knows if and how your Linux distribution can be patched...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I ran the following and got these errors:
[testuser@server1test lib]$ java -classpath sapjco.jar com.sap.mw.jco.About
java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [/home/testuser/lib/libsapjcorfc.so: /home/testuser/lib/librfccm.so: symbol gethostent_r, version GLIBC_2.1.2 not defined in file libc.so.6 with link time reference]. java.library.path [/usr/java/j2sdk/jre/lib/i386/client:/usr/java/j2sdk/jre/lib/i386:/usr/java/j2sdk/jre/../lib/i386:/home/testuser/lib]
at com.sap.mw.jco.JCO.<clinit>(JCO.java:820)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at com.sap.mw.jco.About.<init>(About.java:33)
at com.sap.mw.jco.About.main(About.java:93)
-
SAP Java Connector (JCo) |
Copyright (c) 2000-2009 SAP AG. All rights reserved. |
Version Information |
-
Java Runtime:
Operating System: Linux 2.4.18-3 for i386
Java VM: 1.4.2 Sun Microsystems Inc.
Java Codepage: ISO-8859-15
Versions:
JCo API: 2.1.9 (2010-01-28)
JCo middleware: Library not found
JCo library: Library not found
RFC library: Library not found
Paths:
JCo classes: /home/testuser/lib/sapjco.jar
JCo library: Library not found
RFC library: System-defined path
-
Manifest |
-
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.4
Created-By: 1.3.1_18-b01 (Sun Microsystems Inc.)
Specification-Title: SAP Java Connector
Specification-Version: 2.1.9
Specification-Vendor: SAP AG, Walldorf
Implementation-Title: com.sap.mw.jco
Implementation-Version: 20100208 1156 [2.1.9 (2010-01-28)]
Implementation-Vendor-Id: com.sap
Implementation-Vendor: SAP AG, Walldorf
Main-Class: com.sap.mw.jco.About
-
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.