Java InvocationTargetException - how to debug ?
Murilo Camões Perrone <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.java |
|---|---|
| Message-ID | <[email protected]> |
Hi from Brazil,
I am developing an Firefox Extension with Javascript and Java. I´m using JSS
library (jss341.jar) and JavaConnect is being included too (moztools.jar).
I´m having an exception thrown when trying to register the "Mozilla-JSS"
service provider. I tried to debug by building the .class files with
breakpoints into mozilla components dir (and loading them from javascript),
but the brakpoint won´t work. Is there any way to trace messages ?
The alert displays:
JavaScript Application
Error: java.security.PriviledActionEvent: java.security.PriviledActionEvent:
java.lang.reflect.InvocationTargetException
And here is the code.
try
{
String dbdir = getMozillaDir(); // there is an breakpoint here but
it won´t "break" here
System.load( "jss3.dll" );
CryptoManager.initialize( dbdir );
Debug.setLevel(Debug.OBNOXIOUS);
} catch (GeneralSecurityException e) {
throw new XPCOMException("GeneralSecurityException");
} catch (AlreadyInitializedException e) {
throw new XPCOMException("AlreadyInitializedException");
} catch (KeyDatabaseException e) {
throw new XPCOMException("KeyDatabaseException");
} catch (CertDatabaseException e) {
throw new XPCOMException("CertDatabaseException");
}
Any help ?
Thanks,
Murilo