You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bsf-dev@jakarta.apache.org by bu...@apache.org on 2005/08/22 23:03:05 UTC
DO NOT REPLY [Bug 36307] New: -
Exception BSFManager class initializer
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