DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36307>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36307

           Summary: Exception BSFManager class initializer
           Product: BSF
           Version: 2.3.0-rc1
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: critical
          Priority: P2
         Component: framework
        AssignedTo: bsf-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


In BSFManager.java line 177-178:

        if (Boolean.getBoolean("org.apache.bsf.serverLaunch"))
            initBSFDebugManager();

Boolean.getBoolean reads system property and therefore a security permission 
exception can be thrown here uncaught.  As a result an 
ExceptionInInitializerError is thrown.  BSFManager simply cannot be 
initialized.  No workarounds are possible.

This problem occurred while attempting to run BSFManager in a Java Web Start 
Sandbox.  A simple try/catch Exception block around the two lines would be 
sufficient to to fix the problem.

I also suggest to replace catch (MissingResourceException mre) at line 172 to
catch (Exception mre) so that there would be no leakage of exceptions.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to