Forums Register Login

JNI, Invokation & Exceptions

+Pie Number of slices to send: Send
Helo!
This is legal in normal way to run Java:

Exception is caught and handled inside JVM. But when I run this through JNI Invokation nobody seems to be takin care of raised exception. At least nothing gets printed. Now when I add exception handler:

then the raised exception seems to be caught in JNI Invokation as well.
What should I do? It seems that VW created via JNI "lacks" some of the behaviour of exception handling. Are there some initargs to do this? Should I mark each and evry exception on my code to be called from JNI Invokation.
Please help, thank you.
------------------
Antti Barck
It Solutions Consultant -- NSD Oy
Sun Certified Programmer for the Java™ 2 Platform
+Pie Number of slices to send: Send
JNI gurus here, anyone?
+Pie Number of slices to send: Send
Excusez moi, but is this topic in right forum or what?
+Pie Number of slices to send: Send
What is wrong with using it the way that it works?
Why would you use a try without a catch?
It should not even compile without a catch, Right?
What is the point of trying to throw an exception that never gets
a catch?
Maybe I am just mis-understanding you.
You might want to check the moose lodege for other forums.
This Forum is about Daniel and Jess's book. Java security and the issues that associated with it.
------------------
+Pie Number of slices to send: Send
Helo Jamie!
You are missing the point. The code just happens to be throwing, but in JNI Invokation I cannot run methods that throws something but I rather have to try and catch. This works nice for the code I write but whatabout code that is in some.mystic.class?! Go figure...
------------------
Antti Barck
It Solutions Consultant -- NSD Oy
Sun Certified Programmer for the Java™ 2 Platform
+Pie Number of slices to send: Send
Helo again!
Are there any other opinions for this?
------------------
Antti Barck
It Solutions Consultant -- NSD Oy
Sun Certified Programmer for the Java™ 2 Platform
We don't have time for this. We've gotta save the moon! Or check this out:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 679 times.
Similar Threads
Java Caps Mock
Exception declaration
Rethrow an exception
IOException
Exception handling guidelines
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 05:55:09.