on 2004 Sep 15 10:27 AM
Hi All Gurus,
I am trying to connect to SAP from a servle that in running in tomcat, while i developed the servlet from windows it was working fine. But in Linux it is thowing the following error. Your kind guidance is much appreciated.
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 7 occurred at PC=0x4000CF9D
Function=(null)+0x4000CF9D
Library=/lib/ld-linux.so.2
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Current Java thread:
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1473)
- locked <0x44285cf8> (a java.util.Vector)
- locked <0x44285f90> (a java.util.Vector)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1368)
at java.lang.Runtime.load0(Runtime.java:737)
- locked <0x442822e0> (a java.lang.Runtime)
at java.lang.System.load(System.java:809)
at com.sap.mw.jco.rfc.MiddlewareRFC.loadLibrary(Unknown Source)
at com.sap.mw.jco.rfc.MiddlewareRFC.<clinit>(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at com.sap.mw.jco.JCO.<clinit>(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at com.sap.mw.jco.About.<init>(Unknown Source)
at com.sap.mw.jco.About.main(Unknown Source)
Dynamic libraries:
08048000-0804e000 r-xp 00000000 03:01 258452 /usr/java/j2sdk1.4.1_01/bin/java
0804e000-0804f000 rw-p 00005000 03:01 258452 /usr/java/j2sdk1.4.1_01/bin/java
40000000-40011000 r-xp 00000000 03:01 384075 /lib/ld-2.2.93.so
40011000-40012000 rw-p 00010000 03:01 384075 /lib/ld-2.2.93.so
40012000-40015000 r--s 00000000 03:01 370397 /usr/java/j2sdk1.4.1_01/jre/lib/ext/dnsns.jar
40015000-40019000 r-xp 00000000 03:01 432361 /usr/X11R6/lib/libXtst.so.6.1
40019000-4001a000 rw-p 00004000 03:01 432361 /usr/X11R6/lib/libXtst.so.6.1
4001d000-4002a000 r-xp 00000000 03:01 384118 /lib/libpthread-0.10.so
4002a000-4002d000 rw-p 0000d000 03:01 384118 /lib/libpthread-0.10.so
4004d000-4004f000 r-xp 00000000 03:01 384088 /lib/libdl-2.2.93.so
4004f000-40050000 rw-p 00001000 03:01 384088 /lib/libdl-2.2.93.so
40050000-40165000 r-xp 00000000 03:01 384084 /lib/libc-2.2.93.so
40165000-4016a000 rw-p 00115000 03:01 384084 /lib/libc-2.2.93.so
4016e000-40486000 r-xp 00000000 03:01 370404 /usr/java/j2sdk1.4.1_01/jre/lib/i386/client/libjvm.so
40486000-4063a000 rw-p 00317000 03:01 370404 /usr/java/j2sdk1.4.1_01/jre/lib/i386/client/libjvm.so
4064a000-4065b000 r-xp 00000000 03:01 384092 /lib/libnsl-2.2.93.so
4065b000-4065c000 rw-p 00010000 03:01 384092 /lib/libnsl-2.2.93.so
4065e000-4067e000 r-xp 00000000 03:01 384090 /lib/libm-2.2.93.so
4067e000-4067f000 rw-p 00020000 03:01 384090 /lib/libm-2.2.93.so
4067f000-40688000 r-xp 00000000 03:01 66483 /usr/java/j2sdk1.4.1_01/jre/lib/i386/native_threads/libhpi.so
40688000-40689000 rw-p 00008000 03:01 66483 /usr/java/j2sdk1.4.1_01/jre/lib/i386/native_threads/libhpi.so
4068a000-4069a000 r-xp 00000000 03:01 98505 /usr/java/j2sdk1.4.1_01/jre/lib/i386/libverify.so
4069a000-4069c000 rw-p 0000f000 03:01 98505 /usr/java/j2sdk1.4.1_01/jre/lib/i386/libverify.so
4069c000-406bd000 r-xp 00000000 03:01 98493 /usr/java/j2sdk1.4.1_01/jre/lib/i386/libjava.so
406bd000-406bf000 rw-p 00020000 03:01 98493 /usr/java/j2sdk1.4.1_01/jre/lib/i386/libjava.so
406bf000-406d4000 r-xp 00000000 03:01 98506 /usr/java/j2sdk1.4.1_01/jre/lib/i386/libzip.so
406d4000-406d6000 rw-p 00014000 03:01 98506 /usr/java/j2sdk1.4.1_01/jre/lib/i386/libzip.so
406d6000-41da4000 r--s 00000000 03:01 210500 /usr/java/j2sdk1.4.1_01/jre/lib/rt.jar
41de7000-41dfe000 r--s 00000000 03:01 210501 /usr/java/j2sdk1.4.1_01/jre/lib/sunrsasign.jar
41dfe000-41e6f000 r--s 00000000 03:01 210494 /usr/java/j2sdk1.4.1_01/jre/lib/jsse.jar
41e6f000-41e82000 r--s 00000000 03:01 210493 /usr/java/j2sdk1.4.1_01/jre/lib/jce.jar
41e82000-4213e000 r--s 00000000 03:01 210481 /usr/java/j2sdk1.4.1_01/jre/lib/charsets.jar
441e6000-441ee000 r-xp 00000000 03:01 384108 /lib/libnss_files-2.2.93.so
441ee000-441ef000 rw-p 00008000 03:01 384108 /lib/libnss_files-2.2.93.so
4c270000-4c42f000 r--p 00000000 03:01 448050 /usr/lib/locale/locale-archive
4c42f000-4c45b000 r--s 00000000 03:01 134713 /var/sapjco.jar
4c45b000-4c4fa000 r--s 00000000 03:01 370399 /usr/java/j2sdk1.4.1_01/jre/lib/ext/localedata.jar
4c4fa000-4c508000 r--s 00000000 03:01 370398 /usr/java/j2sdk1.4.1_01/jre/lib/ext/ldapsec.jar
4c508000-4c525000 r--s 00000000 03:01 370400 /usr/java/j2sdk1.4.1_01/jre/lib/ext/sunjce_provider.jar
4c525000-4c551000 r--s 00000000 03:01 134713 /var/sapjco.jar
4c551000-4c818000 r-xp 00000000 03:01 98485 /usr/java/j2sdk1.4.1_01/jre/lib/i386/libawt.so
4c818000-4c82d000 rw-p 002c6000 03:01 98485 /usr/java/j2sdk1.4.1_01/jre/lib/i386/libawt.so
4c852000-4c8a5000 r-xp 00000000 03:01 98501 /usr/java/j2sdk1.4.1_01/jre/lib/i386/libmlib_image.so
4c8a5000-4c8a6000 rw-p 00052000 03:01 98501 /usr/java/j2sdk1.4.1_01/jre/lib/i386/libmlib_image.so
4c8b0000-4c8b7000 r-xp 00000000 03:01 432351 /usr/X11R6/lib/libXp.so.6.2
4c8b7000-4c8b8000 rw-p 00006000 03:01 432351 /usr/X11R6/lib/libXp.so.6.2
4c8b8000-4c906000 r-xp 00000000 03:01 432359 /usr/X11R6/lib/libXt.so.6.0
4c906000-4c90a000 rw-p 0004d000 03:01 432359 /usr/X11R6/lib/libXt.so.6.0
4c90a000-4c917000 r-xp 00000000 03:01 432339 /usr/X11R6/lib/libXext.so.6.4
4c917000-4c918000 rw-p 0000c000 03:01 432339 /usr/X11R6/lib/libXext.so.6.4
4c918000-4c9f3000 r-xp 00000000 03:01 432331 /usr/X11R6/lib/libX11.so.6.2
4c9f3000-4c9f6000 rw-p 000da000 03:01 432331 /usr/X11R6/lib/libX11.so.6.2
4c9f6000-4c9fe000 r-xp 00000000 03:01 432329 /usr/X11R6/lib/libSM.so.6.0
4c9fe000-4c9ff000 rw-p 00007000 03:01 432329 /usr/X11R6/lib/libSM.so.6.0
4c9ff000-4ca13000 r-xp 00000000 03:01 432325 /usr/X11R6/lib/libICE.so.6.3
4ca13000-4ca14000 rw-p 00013000 03:01 432325 /usr/X11R6/lib/libICE.so.6.3
4ca16000-4ca93000 r-xp 00000000 03:01 134715 /var/libsapjcorfc.so
4ca93000-4ca96000 rw-p 0007c000 03:01 134715 /var/libsapjcorfc.so
4ca96000-4ce8c000 r-xp 00000000 03:01 134714 /var/librfccm.so
4ce8c000-4d0f7000 rw-p 003f5000 03:01 134714 /var/librfccm.so
4d0f7000-4d1a5000 ---p 00661000 03:01 134714 /var/librfccm.so
Greetings~
We are experiencing the same error. Manickam was your problem resolved, if so how.
Thanks,
Kimberly Becker
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
From the instruction of the sapjco, here is what I did:
- unzip the two .so file in /usr/lib/SAPJco
- create a system variable to the system startup script (depends on your distro).
LD_LIBRARY_PATH=/usr/lib/SAPJco.
It is avail system-wide then.
(pls award points if it works, it did for me).
> java -jar sapjco.jar
-
SAP Java Connector (JCo) |
Copyright (c) 2000-2005 SAP AG. All rights reserved. |
Version Information |
-
Java Runtime:
Operating System: Linux 2.4.21-27.0.2.ELsmp for i386
Java VM: 1.5.0_17 Sun Microsystems Inc.
Java Codepage: UTF8
Versions:
JCo API: 2.1.8 (2006-12-11)
JCo middleware: 2.1.8 (2006-12-11)
JCo library: 2.1.8 (2006-12-11)
RFC library: 640.0.165
Paths:
JCo classes: /ora02/tomcat6/lib/sapjco.jar
JCo library: /usr/lib/SAPJco/libsapjcorfc.so
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.8
Specification-Vendor: SAP AG, Walldorf
Implementation-Title: com.sap.mw.jco
Implementation-Version: 20070108 2139 [2.1.8 (2006-12-11)]
Implementation-Vendor-Id: com.sap
Implementation-Vendor: SAP AG, Walldorf
Main-Class: com.sap.mw.jco.About
I have ran into this problem on AIX Unix. What I have found is that you need to have the Native Libraries working on the linux box and reachable from the tomcat instance. Meaning, there are two native libraries that need to go into your /usr/lib subdirectory. They should be in the download that you get from SAP. They look like libsapjcorfc.so and librfccm.o.
You can run the sapjco.jar and this will tell you if you have the setup correct.
%JAVA_HOME/bin/java sapjco.jar
You will get a result like below. It will also give you errors if something is not setup correctly.
Hope this helps.
-
SAP Java Connector (JCo) |
Copyright (c) 2000-2004 SAP AG. All rights reserved. |
Version Information |
-
Java Runtime:
Operating System: AIX 5.1 for ppc64
Java VM: 1.4.0 IBM Corporation
Java Codepage: ISO8859_1
Versions:
JCo API: 2.1.3 (2004-03-08)
JCo middleware: 2.1.3 (2004-03-08)
JCo library: 2.1.3 (2004-03-08)
RFC library: 620.0.1456
Paths:
JCo classes: /opt/tomcat/common/lib/sapjco.jar
JCo library: System-defined path to libsapjcorfc.a
RFC library: System-defined path
-
Manifest |
-
Manifest-Version: 1.0
Implementation-Version: 20040430 0858 [2.1.3 (2004-03-08)]
Specification-Title: SAP Java Connector
Specification-Version: 2.1.3
Implementation-Title: com.sap.mw.jco
Main-Class: com.sap.mw.jco.About
Created-By: Ant 1.4.1
Implementation-Vendor-Id: com.sap
Implementation-Vendor: SAP AG, Walldorf
Specification-Vendor: SAP AG, Walldorf
-
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it seems more a basic tomcat / java problem than a problem inside your servlet. do any other servlets run on your linux-machine?
kr, achim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
65 | |
10 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.