tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kowalik <>
Subject RE: Tomcat and native libs.
Date Fri, 19 Sep 2003 09:42:57 GMT
>Have you tried synchronizing access to the native methods?  Yes.

>Does Tomcat and the JVM crash when you only have one servlet using the
native code? 
Yes, everything crashes when the first servlet gets the instance of
shared object. Lets say the shared object is called Data. The servlet
gets the Data instance by "Data data = Data.getInstance();" and in Data
object it looks like this: "private static Data instance = new Data();"
and then the getter method. Data in it's constructor tries to get access
to Tibco Rendezvous and create a session. And exactly at this moment
everything crashes.

>Alternatively, can you have two instances of the object so that it is
not shared? 
No, i need to have it like this. This shared object gets the data, which
is then shared among other servlets. 

>What are the messages printed by the JVM when it crashes?
Unexpected Signal : 11 occurred at PC=0xFE0EAFE8
Function=[Unknown. Nearest: JVM_FindPrimitiveClass+0x1BB8]
Current Java thread:
Dynamic libraries:
0x10000 	/usr/j2sdk1.4.1_04/bin/java
0xff360000 	/usr/lib/
0xff3a0000 	/usr/lib/
0xff280000 	/usr/lib/
0xff350000 	/usr/platform/SUNW,Sun-Blade-1000/lib/
0xfe000000 	/usr/j2sdk1.4.1_04/jre/lib/sparc/client/
0xff210000 	/usr/lib/
0xff1f0000 	/usr/lib/
0xff100000 	/usr/lib/
0xff1c0000 	/usr/lib/
0xff240000 	/usr/lib/
0xff0c0000 	/usr/lib/
0xff060000 	/usr/j2sdk1.4.1_04/jre/lib/sparc/
0xff020000 	/usr/j2sdk1.4.1_04/jre/lib/sparc/
0xfe7d0000 	/usr/j2sdk1.4.1_04/jre/lib/sparc/
0xfe5a0000 	/usr/lib/locale/pl_PL.ISO8859-2/
0xfa0c0000 	/usr/j2sdk1.4.1_04/jre/lib/sparc/
0xefe80000 	/work/jni/solaris/  - This one is
0xf11e0000 	/usr/lib/
0xf0f10000 	/usr/lib/
Local Time = Fri Sep 19 11:28:06 2003
Elapsed Time = 9
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002E6 01
# Please report this error at
# Java VM: Java HotSpot(TM) Client VM (1.4.1_04-b01 mixed mode)
# An error report file has been saved as hs_err_pid871.log.
# Please refer to the file for further information.

>Are you sure that your native library is even beng found and loaded? 
It looks like. JVM says it's loaded. See the crash message. I've marked
the suspected library.

BTW, i've patched the system as it was suggested by sun. The funny thing
is that it runs without any problems if used without Tomcat. 


-----Original Message-----
From: Christopher Williams [] 
Sent: 19 wrzeĊ›nia 2003 11:21
To: Tomcat Users List
Subject: Re: Tomcat and native libs.

  What are the messages printed by the JVM when it crashes?  Are you
sure that your native library is even beng found and loaded?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message