jakarta-bsf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36307] New: - Exception BSFManager class initializer
Date Mon, 22 Aug 2005 21:03:05 GMT
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: heng@ag.arizona.edu


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: bsf-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-dev-help@jakarta.apache.org


Mime
View raw message