Java 1.5 JNI and C++ exception

Hello, All

I've troubles with handling C++ exceptions using JNI and shared library. I'm using Java 1.5_06, RedHat 7.3 and JBoss 4.0.5

From Java class I call JNI a method in my shared library(libx.so) which calls a method in other shared library(liby.so). Liby.so uses Xerces library. During parsing process an exception occurs. But according to Xerces sources it's a normal behavior and should be caught. But instead I've got SIGNABRT in JVM and a core dump will created. What's wrong? Backtrace shows similar something:

....

XXXXX __default_terminate() ....

XXXXX __terminate() ....

XXXXX __throws

XXXXX C++ method ..

XXXXX.....

XXXXX.....

XXXXX JNI method

I found similar bugs reports in the forum. But they says about Java 1.4 version and according to bugs descriptions it should be already fixed.

Message was edited by:

kostik78

[923 byte] By [kostik78a] at [2007-11-26 18:28:22]
# 1
The question is closed. The root cause was incorrect building of shared library.
kostik78a at 2007-7-9 6:02:34 > top of Java-index,Java HotSpot Virtual Machine,Specifications...