1827313 Members
5197 Online
109961 Solutions
New Discussion

JVM Error

 
pietro marella
Occasional Contributor

JVM Error

Hi all,
I'm developing a Java application on my HP/UX 11, which uses some native libraries (via JNI). At a certain point I experiencing a problem in one of these native libraries. The JVM (version is "JavaVM-1.3.0.01") goes down writing a core, with this error message:

#Java version:
# HotSpot VM (mixed mode)
# HotSpot Virtual Machine Error, Unexpected Signal 11
# occurred at pc=c1f2e648
# Error ID: /CLO/Components/JAVA_HOTSPOT/Src/build/hp-ux/../../src/os/hp-ux/vm/os_hp-ux.cpp, 2998

Any idea/help?
Thanks in advance

*piero
3 REPLIES 3
Wodisch
Honored Contributor

Re: JVM Error

Hello Pietro,

have you tried getting more information at
http://www.hp.com/go/java
and
http://devresource.hp.com/devresource/Topics/Java/Java.html

HTH,
Wodisch
Carl Erhorn
Advisor

Re: JVM Error

I have seen similar problems on Solaris and Linux (Redhat 6.2) when using the 1.3.x JDK.

There has been a change in the JVM which breaks support for C++ exception handling. If your external libraries, called through JNI, are written in C++, and use exceptions, RTTI, or other advanced languages features, all bets are off.

Sun officially says that the Java Language has never been required to support such features in languages called through JNI interfaces, so they do not consider this a bug, and there is no hope of it being fixed. Unless and until the Java Language spec is changed to require support for advanced language features, Sun will not address this problem.

If, however, you are calling libraries that were written in C, then this is not your problem. Java does not handle errors that occur ourside of the JVM, so all it can do is report the cause of the error, indicate that it happened in an external library, and core dump. That does seem to be what you are seeing.

You must find the cause of the error in the external library, and fix it. It may be due to misuse of the library API, or an invalid pointer being passed to the external API.

Normal debugging proceedures should be used to determine the cause of the error.

Regards,
-Carl
Marc Ahrendt
Super Advisor

Re: JVM Error

pietro, have you solved this?

i posted the exact same problem but have gotten no response
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x612e8ffa98a2d5118ff10090279cd0f9,00.html
hola