Hi,
This may sound like a stupid comment to make but have you initialised the
Xerces library by using the XMLPlatformUtils::Initialize(); method ?
if the class with the JNI interface is not in a thread that keeps a constant
handle on the library, it will be garbage collected, so you would need to
initialize and terminate the Xerces library every time you call the native
method.
Thanks
Pete
-----Original Message-----
From: Esther Parrilla Endrino [mailto:[EMAIL PROTECTED]
Sent: 14 August 2003 10:05
To: [EMAIL PROTECTED]
Subject: Xerces C++ and JNI
Hi all,
Well my question is related to Xerces and to JNI too, I apologize if
maybe this is not the correst list to ask for...
I am doing and application in java that must use one class made in C++,
this class calls Xerces C++ to validate files.
Everything is OK using JNI, but the only method that crashes is the one
that calls Xerces... :(
It crashes when it executes:
parser->parse(xmlFile);
I have checked that the file name is read ok in the C++ class from the
java application but when in this C++ class I try to parse the file it
crashes...
Does someone found the same error somewhere?
Do you know a debugging tool that I can use with JNI?
Thanks in advance,
esther
--
Esther Parrilla Endrino
Ground Segment Systems Division
DEIMOS SPACE S.L. http://www.deimos-space.com
e-mail: [EMAIL PROTECTED]
tel: 00 34 91 806 34 57
~ Code matters more than comercials ~
--
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]