It seems to be more of a JNI issue than castor. The problem is with try and catch statements in the code that JNI calls. If there are no try and catch statements in the method called, then JNI is able to locate the class and method, otherwise it can't for some reason. -Phil Chan
________________________________ From: Werner Guttmann [mailto:[EMAIL PROTECTED] Sent: Thursday, April 19, 2007 2:52 AM To: [email protected] Subject: AW: [castor-user] Castor and JNI Odd. Now, I personally do not have much experience with the usage of JNI. What's the exact symptoms ? Any stack traces ? Werner ________________________________ Von: Chan, Philip [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 18. April 2007 15:57 An: [email protected] Betreff: [castor-user] Castor and JNI Hi, I'm having problems trying to merge Castor generated classes and JNI. My plan is to have C++ code create a JVM and call on castor to read in and validate XML files and return the contents to my C++ code. The hiccup seems to be with the validate() and isValid() methods. If I remove them then JNI has no problems about finding my java class but if the validate() and isValid() methods are in my java code then JNI cannot find the class. If anybody has any experience with this, advice would be greatly appreciated. -Phil Chan This email message is for the sole use of the intended recipient(s) and may contain GDC4S confidential or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not an intended recipient, please contact the sender by reply email and destroy all copies of the original message."

