commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: Fwd: [Logger, Digester] Logger and Digester in applet
Date Thu, 25 Jul 2002 18:33:30 GMT


On Thu, 25 Jul 2002, robert burrell donkin wrote:

> Date: Thu, 25 Jul 2002 19:12:48 +0100
> From: robert burrell donkin <robertburrelldonkin@blueyonder.co.uk>
> Reply-To: Jakarta Commons Developers List <commons-dev@jakarta.apache.org>
> To: Jakarta Commons Developers List <commons-dev@jakarta.apache.org>
> Cc: Kyrre Lugg <kyrre.lugg@tomra.no>
> Subject: Fwd: [Logger, Digester] Logger and Digester in applet
>
> shouldn't we be able to use commons-logging from within an applet?
>

The 1.0 release of commons-logging failed to catch and swallow a security
exception (trying to read a system property), which causes problems when
running in an applet or other environment in a SecurityManager sandbox.
This was fixed in the more recent code.

> - robert

Craig


>
> Begin forwarded message:
>
> > From: Kyrre Lugg <kyrre.lugg@tomra.no>
> > Date: Thu Jul 25, 2002  02:48:00 PM Europe/London
> > To: commons-user <commons-user@jakarta.apache.org>
> > Subject: [Logger, Digester] Logger and Digester in applet
> > Reply-To: "Jakarta Commons Users List" <commons-user@jakarta.apache.org>
> >
> > I'm creating a component which must live inside an applet (java2 plugin
> > vm).
> >
> > The code is going to parse an xml file, and create objects of it.
> > Therefore I have taken in use the Digester component.
> >
> > Still I encounter some trouble, as the Digester is dependent on the
> > Logger component, which appearently dislikes living inside an applet.
> >
> > Here's the stack trace, until my classes (I do not use any logger classes
> > in my code, nor do I try to configure anything):
> >
> > org.apache.commons.logging.LogConfigurationException:
> > java.lang.NullPointerException
> >     at
> > org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.
> > java:494)
> >     at
> > org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.
> > java:285)
> >     at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:400)
> >     at org.apache.commons.digester.Digester.<init>(Digester.java:310)/
> >
> > It runs smoothly in an application context, but in an applet it fails to
> > configure itself (ref. javadoc on LogConfigurationException).
> >
> > Anyone who can help, please?
> >
> > Kyrre Lugg
> >
> >
> > --
> > To unsubscribe, e-mail:   <mailto:commons-user-unsubscribe@jakarta.apache.
> > org>
> > For additional commands, e-mail: <mailto:commons-user-help@jakarta.apache.
> > org>
> >
>
>
> --
> To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message