commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Webb" <elihusma...@gmail.com>
Subject Re: commons-logging 1.1 in an applet
Date Thu, 07 Dec 2006 16:28:44 GMT
That seems to work.  I do not get an error anymore in the commons-logging code.

Thank you.


On 12/7/06, Rahul Akolkar <rahul.akolkar@gmail.com> wrote:
> On 12/7/06, Mark Webb <elihusmails@gmail.com> wrote:
> > I have a program that can run as an applet or application.  When run
> > as an application, all logging works fine.  When I run the program as
> > an applet, I get an error.  Is there a way to fix this problem?
> >
> <snip/>
>
> Can you please try out the latest nightlies [1] ? There was a fix via
> LOGGING-106 [2].
>
> We are currently awaiting independent confirmation for this fix.
>
> -Rahul
>
> [1] http://people.apache.org/builds/jakarta-commons/nightly/commons-logging/
> [2] http://issues.apache.org/jira/browse/LOGGING-106
>
>
>
> > TIA.
> > Mark
> >
> > Here is the stack trace:
> >
> > java.lang.ExceptionInInitializerError
> >         at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:120)
> >         -- my code --
> >         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> >         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> >         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> >         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> >         at java.lang.Class.newInstance0(Class.java:350)
> >         at java.lang.Class.newInstance(Class.java:303)
> >         at sun.applet.AppletPanel.createApplet(AppletPanel.java:721)
> >         at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1760)
> >         at sun.applet.AppletPanel.runLoader(AppletPanel.java:650)
> >         at sun.applet.AppletPanel.run(AppletPanel.java:324)
> >         at java.lang.Thread.run(Thread.java:595)
> > Caused by: java.security.AccessControlException: access denied
> > (java.util.PropertyPermission
> > org.apache.commons.logging.LogFactory.HashtableImpl read)
> >         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
> >         at java.security.AccessController.checkPermission(AccessController.java:427)
> >         at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
> >         at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285)
> >         at java.lang.System.getProperty(System.java:627)
> >         at org.apache.commons.logging.LogFactory.createFactoryStore(LogFactory.java:320)
> >         at org.apache.commons.logging.LogFactory.<clinit>(LogFactory.java:1725)
> >         ... 14 more
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message