commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robert burrell donkin <robertburrelldon...@blueyonder.co.uk>
Subject Fwd: [Logger, Digester] Logger and Digester in applet
Date Thu, 25 Jul 2002 18:12:48 GMT
shouldn't we be able to use commons-logging from within an applet?

- robert

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>


Mime
View raw message