You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by oh...@cox.net on 2012/07/07 14:40:26 UTC

NullPointerException/java.util.logging.ErrorManager: 5 when have

Hi,

I have a simple servlet deployed to Tomcat 6.0.35, and when I enable <load-on-startup> in the web.xml, so that the servlet's init() method gets run when Tomcat starts up, I get:

.
.
In LoginServlet.init: Returned from calling CreateDefaultInstance...
In LoginServlet.init: FINISHED initializing!!
Jul 7, 2012 8:21:31 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory showhdrs
Jul 7, 2012 8:21:31 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Jul 7, 2012 8:21:31 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Jul 7, 2012 8:21:31 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples

java.util.logging.ErrorManager: 5
java.lang.NullPointerException
        at java.util.ListResourceBundle.handleGetObject(ListResourceBundle.java:109)
        at java.util.ResourceBundle.getObject(ResourceBundle.java:368)
        at java.util.ResourceBundle.getString(ResourceBundle.java:334)
        at java.util.logging.Formatter.formatMessage(Formatter.java:108)
        at java.util.logging.SimpleFormatter.format(SimpleFormatter.java:63)
        at org.apache.juli.FileHandler.publish(FileHandler.java:198)
        at java.util.logging.Logger.log(Logger.java:478)
        at java.util.logging.Logger.doLog(Logger.java:501)
        at java.util.logging.Logger.log(Logger.java:524)
.
.

i.e., It appears that my servlet's init() method completes successfully, but then later in the startup, Tomcat throws this exception (actually twice).

If I remove the <load-on-startup> from the servlet's web.xml, Tomcat starts fine, and processing in my servlet works ok (the init() method runs on first request, and service() method processes requests ok).

I think that that "5" indicates a format error in the (Tomcat) logging, but I'm not currently using/invoking any logger in my servlet.

Can anyone tell me what might be causing the error, and how I can eliminate the problem?  

Thanks,
Jim

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: NullPointerException/java.util.logging.ErrorManager: 5 when have

Posted by Konstantin Kolinko <kn...@gmail.com>.
2012/7/8  <oh...@cox.net>:
>> On 07/07/2012 17:33, ohaya@cox.net wrote:
>>
>> Trace A:
>> > java.util.logging.ErrorManager: 5
>> > java.lang.NullPointerException
>> >         at java.util.ListResourceBundle.handleGetObject(ListResourceBundle.java:109)
>> >         at java.util.ResourceBundle.getObject(ResourceBundle.java:368)
>> >         at java.util.ResourceBundle.getString(ResourceBundle.java:334)
>> >         at java.util.logging.Formatter.formatMessage(Formatter.java:108)
>> >         at java.util.logging.SimpleFormatter.format(SimpleFormatter.java:63)
>> >         at org.apache.juli.FileHandler.publish(FileHandler.java:198)
>> >         at java.util.logging.Logger.log(Logger.java:478)
>> >         at java.util.logging.Logger.doLog(Logger.java:501)
>> >         at java.util.logging.Logger.log(Logger.java:524)
>> >         at oracle.security.am.common.nap.util.NAPLogger.log(NAPLogger.java:60)
>> >         at oracle.security.am.common.nap.util.pool.ObjectPoolManager.shutdown(ObjectPoolManager.java:267)
>> >         at oracle.security.am.common.aaaclient.ObAAAServiceClient.close(ObAAAServiceClient.java:1239)
>> >         at oracle.security.am.common.aaaclient.ObAAAServiceClient.finalize(ObAAAServiceClient.java:2548)
>> >         at jrockit.memory.Finalizer.doFinalize(Finalizer.java:29)
>> >         at jrockit.memory.Finalizer.access$300(Finalizer.java:12)
>> >         at jrockit.memory.Finalizer$4.run(Finalizer.java:186)
>> >         at java.lang.Thread.run(Thread.java:662)
>> > java.util.logging.ErrorManager: 5
>>
>> Trace B:
>> > java.lang.NullPointerException
>> >         at java.util.ListResourceBundle.handleGetObject(ListResourceBundle.java:109)
>> >         at java.util.ResourceBundle.getObject(ResourceBundle.java:368)
>> >         at java.util.ResourceBundle.getString(ResourceBundle.java:334)
>> >         at java.util.logging.Formatter.formatMessage(Formatter.java:108)
>> >         at java.util.logging.SimpleFormatter.format(SimpleFormatter.java:63)
>> >         at java.util.logging.StreamHandler.publish(StreamHandler.java:179)
>> >         at java.util.logging.ConsoleHandler.publish(ConsoleHandler.java:88)
>> >         at java.util.logging.Logger.log(Logger.java:478)
>> >         at java.util.logging.Logger.doLog(Logger.java:501)
>> >         at java.util.logging.Logger.log(Logger.java:524)
>> >         at oracle.security.am.common.nap.util.NAPLogger.log(NAPLogger.java:60)
>> >         at oracle.security.am.common.nap.util.pool.ObjectPoolManager.shutdown(ObjectPoolManager.java:267)
>> >         at oracle.security.am.common.aaaclient.ObAAAServiceClient.close(ObAAAServiceClient.java:1239)
>> >         at oracle.security.am.common.aaaclient.ObAAAServiceClient.finalize(ObAAAServiceClient.java:2548)
>> >         at jrockit.memory.Finalizer.doFinalize(Finalizer.java:29)
>> >         at jrockit.memory.Finalizer.access$300(Finalizer.java:12)
>> >         at jrockit.memory.Finalizer$4.run(Finalizer.java:186)
>> >         at java.lang.Thread.run(Thread.java:662)
>>
>> Do you see any Tomcat code in Trace B? No? Neither do I. So what makes
>> you think there is a Tomcat problem here?
>>
>> Given the only difference in Trace A is that you are using a Tomcat
>> Handler rather than the console I don't see anything here to suggest a
>> Tomcat bug.
>>
>> Looking at the source for java.util.ListResourceBundle, the key or the
>> value being used for the log message is null. That makes this an OAM
>> bug, not a Tomcat one.
>>
>> Mark
>>
>
>
> Hi Mark,
>
> Just to be clear, I wasn't pointing to a Tomcat bug :(...
>
> I'm just trying to figure out why the NullPointerException doesn't happen when I don't have <load-on-startup> in my servlet's web.xml, but does happen when I have <load-on-startup> in the web.xml.  Also, BTW, if I stop then start the servlet app using the Tomcat manager app, I don't get the NullPointerException.
>
> What might the difference be between when the <load-on-startup> is in the web.xml vs. not being in the web.xml?  Doesn't Tomcat just load and call the servlet's init() method when the <load-on-startup> is present?  I'm kind of guessing it may be a timing type issue, as in my servlet's init() method, I initialize the Oracle stuff.  My initialization call returns, but it may be that there's still something going on behind-the-scenes that's not quite done.
>

1. Using a load-on-startup servlet to initialize something is a bad
approach. The recommended one is to use a ServletContextListener.

2. You should cleanup resources after yourself. You should not rely on
finalizer to clean up your resources.

Finalizer might not have access to classes or resources of your
webapplications,  because of different thread-context classloader
(TCCL), or if the cleanup happens when the application has already
been stopped. In this case it looks like the former.

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: NullPointerException/java.util.logging.ErrorManager: 5 when have

Posted by oh...@cox.net.
---- ohaya@cox.net wrote: 
> 
> ---- Mark Thomas <ma...@apache.org> wrote: 
> > On 07/07/2012 17:33, ohaya@cox.net wrote:
> > 
> > Trace A:
> > > java.util.logging.ErrorManager: 5
> > > java.lang.NullPointerException
> > >         at java.util.ListResourceBundle.handleGetObject(ListResourceBundle.java:109)
> > >         at java.util.ResourceBundle.getObject(ResourceBundle.java:368)
> > >         at java.util.ResourceBundle.getString(ResourceBundle.java:334)
> > >         at java.util.logging.Formatter.formatMessage(Formatter.java:108)
> > >         at java.util.logging.SimpleFormatter.format(SimpleFormatter.java:63)
> > >         at org.apache.juli.FileHandler.publish(FileHandler.java:198)
> > >         at java.util.logging.Logger.log(Logger.java:478)
> > >         at java.util.logging.Logger.doLog(Logger.java:501)
> > >         at java.util.logging.Logger.log(Logger.java:524)
> > >         at oracle.security.am.common.nap.util.NAPLogger.log(NAPLogger.java:60)
> > >         at oracle.security.am.common.nap.util.pool.ObjectPoolManager.shutdown(ObjectPoolManager.java:267)
> > >         at oracle.security.am.common.aaaclient.ObAAAServiceClient.close(ObAAAServiceClient.java:1239)
> > >         at oracle.security.am.common.aaaclient.ObAAAServiceClient.finalize(ObAAAServiceClient.java:2548)
> > >         at jrockit.memory.Finalizer.doFinalize(Finalizer.java:29)
> > >         at jrockit.memory.Finalizer.access$300(Finalizer.java:12)
> > >         at jrockit.memory.Finalizer$4.run(Finalizer.java:186)
> > >         at java.lang.Thread.run(Thread.java:662)
> > > java.util.logging.ErrorManager: 5
> > 
> > Trace B:
> > > java.lang.NullPointerException
> > >         at java.util.ListResourceBundle.handleGetObject(ListResourceBundle.java:109)
> > >         at java.util.ResourceBundle.getObject(ResourceBundle.java:368)
> > >         at java.util.ResourceBundle.getString(ResourceBundle.java:334)
> > >         at java.util.logging.Formatter.formatMessage(Formatter.java:108)
> > >         at java.util.logging.SimpleFormatter.format(SimpleFormatter.java:63)
> > >         at java.util.logging.StreamHandler.publish(StreamHandler.java:179)
> > >         at java.util.logging.ConsoleHandler.publish(ConsoleHandler.java:88)
> > >         at java.util.logging.Logger.log(Logger.java:478)
> > >         at java.util.logging.Logger.doLog(Logger.java:501)
> > >         at java.util.logging.Logger.log(Logger.java:524)
> > >         at oracle.security.am.common.nap.util.NAPLogger.log(NAPLogger.java:60)
> > >         at oracle.security.am.common.nap.util.pool.ObjectPoolManager.shutdown(ObjectPoolManager.java:267)
> > >         at oracle.security.am.common.aaaclient.ObAAAServiceClient.close(ObAAAServiceClient.java:1239)
> > >         at oracle.security.am.common.aaaclient.ObAAAServiceClient.finalize(ObAAAServiceClient.java:2548)
> > >         at jrockit.memory.Finalizer.doFinalize(Finalizer.java:29)
> > >         at jrockit.memory.Finalizer.access$300(Finalizer.java:12)
> > >         at jrockit.memory.Finalizer$4.run(Finalizer.java:186)
> > >         at java.lang.Thread.run(Thread.java:662)
> > 
> > Do you see any Tomcat code in Trace B? No? Neither do I. So what makes
> > you think there is a Tomcat problem here?
> > 
> > Given the only difference in Trace A is that you are using a Tomcat
> > Handler rather than the console I don't see anything here to suggest a
> > Tomcat bug.
> > 
> > Looking at the source for java.util.ListResourceBundle, the key or the
> > value being used for the log message is null. That makes this an OAM
> > bug, not a Tomcat one.
> > 
> > Mark
> > 
> 
> 
> Hi Mark,
> 
> Just to be clear, I wasn't pointing to a Tomcat bug :(...  
> 
> I'm just trying to figure out why the NullPointerException doesn't happen when I don't have <load-on-startup> in my servlet's web.xml, but does happen when I have <load-on-startup> in the web.xml.  Also, BTW, if I stop then start the servlet app using the Tomcat manager app, I don't get the NullPointerException.
> 
> What might the difference be between when the <load-on-startup> is in the web.xml vs. not being in the web.xml?  Doesn't Tomcat just load and call the servlet's init() method when the <load-on-startup> is present?  I'm kind of guessing it may be a timing type issue, as in my servlet's init() method, I initialize the Oracle stuff.  My initialization call returns, but it may be that there's still something going on behind-the-scenes that's not quite done.
> 
> Thanks,
> Jim
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 

Mark,

For the record, it turned that there was a bug in the Oracle SDK, as you suggested.  I got a patched SDK JAR, and the problem got fixed.

Thanks,
Jim


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: NullPointerException/java.util.logging.ErrorManager: 5 when have

Posted by oh...@cox.net.
---- Mark Thomas <ma...@apache.org> wrote: 
> On 07/07/2012 17:33, ohaya@cox.net wrote:
> 
> Trace A:
> > java.util.logging.ErrorManager: 5
> > java.lang.NullPointerException
> >         at java.util.ListResourceBundle.handleGetObject(ListResourceBundle.java:109)
> >         at java.util.ResourceBundle.getObject(ResourceBundle.java:368)
> >         at java.util.ResourceBundle.getString(ResourceBundle.java:334)
> >         at java.util.logging.Formatter.formatMessage(Formatter.java:108)
> >         at java.util.logging.SimpleFormatter.format(SimpleFormatter.java:63)
> >         at org.apache.juli.FileHandler.publish(FileHandler.java:198)
> >         at java.util.logging.Logger.log(Logger.java:478)
> >         at java.util.logging.Logger.doLog(Logger.java:501)
> >         at java.util.logging.Logger.log(Logger.java:524)
> >         at oracle.security.am.common.nap.util.NAPLogger.log(NAPLogger.java:60)
> >         at oracle.security.am.common.nap.util.pool.ObjectPoolManager.shutdown(ObjectPoolManager.java:267)
> >         at oracle.security.am.common.aaaclient.ObAAAServiceClient.close(ObAAAServiceClient.java:1239)
> >         at oracle.security.am.common.aaaclient.ObAAAServiceClient.finalize(ObAAAServiceClient.java:2548)
> >         at jrockit.memory.Finalizer.doFinalize(Finalizer.java:29)
> >         at jrockit.memory.Finalizer.access$300(Finalizer.java:12)
> >         at jrockit.memory.Finalizer$4.run(Finalizer.java:186)
> >         at java.lang.Thread.run(Thread.java:662)
> > java.util.logging.ErrorManager: 5
> 
> Trace B:
> > java.lang.NullPointerException
> >         at java.util.ListResourceBundle.handleGetObject(ListResourceBundle.java:109)
> >         at java.util.ResourceBundle.getObject(ResourceBundle.java:368)
> >         at java.util.ResourceBundle.getString(ResourceBundle.java:334)
> >         at java.util.logging.Formatter.formatMessage(Formatter.java:108)
> >         at java.util.logging.SimpleFormatter.format(SimpleFormatter.java:63)
> >         at java.util.logging.StreamHandler.publish(StreamHandler.java:179)
> >         at java.util.logging.ConsoleHandler.publish(ConsoleHandler.java:88)
> >         at java.util.logging.Logger.log(Logger.java:478)
> >         at java.util.logging.Logger.doLog(Logger.java:501)
> >         at java.util.logging.Logger.log(Logger.java:524)
> >         at oracle.security.am.common.nap.util.NAPLogger.log(NAPLogger.java:60)
> >         at oracle.security.am.common.nap.util.pool.ObjectPoolManager.shutdown(ObjectPoolManager.java:267)
> >         at oracle.security.am.common.aaaclient.ObAAAServiceClient.close(ObAAAServiceClient.java:1239)
> >         at oracle.security.am.common.aaaclient.ObAAAServiceClient.finalize(ObAAAServiceClient.java:2548)
> >         at jrockit.memory.Finalizer.doFinalize(Finalizer.java:29)
> >         at jrockit.memory.Finalizer.access$300(Finalizer.java:12)
> >         at jrockit.memory.Finalizer$4.run(Finalizer.java:186)
> >         at java.lang.Thread.run(Thread.java:662)
> 
> Do you see any Tomcat code in Trace B? No? Neither do I. So what makes
> you think there is a Tomcat problem here?
> 
> Given the only difference in Trace A is that you are using a Tomcat
> Handler rather than the console I don't see anything here to suggest a
> Tomcat bug.
> 
> Looking at the source for java.util.ListResourceBundle, the key or the
> value being used for the log message is null. That makes this an OAM
> bug, not a Tomcat one.
> 
> Mark
> 


Hi Mark,

Just to be clear, I wasn't pointing to a Tomcat bug :(...  

I'm just trying to figure out why the NullPointerException doesn't happen when I don't have <load-on-startup> in my servlet's web.xml, but does happen when I have <load-on-startup> in the web.xml.  Also, BTW, if I stop then start the servlet app using the Tomcat manager app, I don't get the NullPointerException.

What might the difference be between when the <load-on-startup> is in the web.xml vs. not being in the web.xml?  Doesn't Tomcat just load and call the servlet's init() method when the <load-on-startup> is present?  I'm kind of guessing it may be a timing type issue, as in my servlet's init() method, I initialize the Oracle stuff.  My initialization call returns, but it may be that there's still something going on behind-the-scenes that's not quite done.

Thanks,
Jim

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: NullPointerException/java.util.logging.ErrorManager: 5 when have

Posted by Mark Thomas <ma...@apache.org>.
On 07/07/2012 17:33, ohaya@cox.net wrote:

Trace A:
> java.util.logging.ErrorManager: 5
> java.lang.NullPointerException
>         at java.util.ListResourceBundle.handleGetObject(ListResourceBundle.java:109)
>         at java.util.ResourceBundle.getObject(ResourceBundle.java:368)
>         at java.util.ResourceBundle.getString(ResourceBundle.java:334)
>         at java.util.logging.Formatter.formatMessage(Formatter.java:108)
>         at java.util.logging.SimpleFormatter.format(SimpleFormatter.java:63)
>         at org.apache.juli.FileHandler.publish(FileHandler.java:198)
>         at java.util.logging.Logger.log(Logger.java:478)
>         at java.util.logging.Logger.doLog(Logger.java:501)
>         at java.util.logging.Logger.log(Logger.java:524)
>         at oracle.security.am.common.nap.util.NAPLogger.log(NAPLogger.java:60)
>         at oracle.security.am.common.nap.util.pool.ObjectPoolManager.shutdown(ObjectPoolManager.java:267)
>         at oracle.security.am.common.aaaclient.ObAAAServiceClient.close(ObAAAServiceClient.java:1239)
>         at oracle.security.am.common.aaaclient.ObAAAServiceClient.finalize(ObAAAServiceClient.java:2548)
>         at jrockit.memory.Finalizer.doFinalize(Finalizer.java:29)
>         at jrockit.memory.Finalizer.access$300(Finalizer.java:12)
>         at jrockit.memory.Finalizer$4.run(Finalizer.java:186)
>         at java.lang.Thread.run(Thread.java:662)
> java.util.logging.ErrorManager: 5

Trace B:
> java.lang.NullPointerException
>         at java.util.ListResourceBundle.handleGetObject(ListResourceBundle.java:109)
>         at java.util.ResourceBundle.getObject(ResourceBundle.java:368)
>         at java.util.ResourceBundle.getString(ResourceBundle.java:334)
>         at java.util.logging.Formatter.formatMessage(Formatter.java:108)
>         at java.util.logging.SimpleFormatter.format(SimpleFormatter.java:63)
>         at java.util.logging.StreamHandler.publish(StreamHandler.java:179)
>         at java.util.logging.ConsoleHandler.publish(ConsoleHandler.java:88)
>         at java.util.logging.Logger.log(Logger.java:478)
>         at java.util.logging.Logger.doLog(Logger.java:501)
>         at java.util.logging.Logger.log(Logger.java:524)
>         at oracle.security.am.common.nap.util.NAPLogger.log(NAPLogger.java:60)
>         at oracle.security.am.common.nap.util.pool.ObjectPoolManager.shutdown(ObjectPoolManager.java:267)
>         at oracle.security.am.common.aaaclient.ObAAAServiceClient.close(ObAAAServiceClient.java:1239)
>         at oracle.security.am.common.aaaclient.ObAAAServiceClient.finalize(ObAAAServiceClient.java:2548)
>         at jrockit.memory.Finalizer.doFinalize(Finalizer.java:29)
>         at jrockit.memory.Finalizer.access$300(Finalizer.java:12)
>         at jrockit.memory.Finalizer$4.run(Finalizer.java:186)
>         at java.lang.Thread.run(Thread.java:662)

Do you see any Tomcat code in Trace B? No? Neither do I. So what makes
you think there is a Tomcat problem here?

Given the only difference in Trace A is that you are using a Tomcat
Handler rather than the console I don't see anything here to suggest a
Tomcat bug.

Looking at the source for java.util.ListResourceBundle, the key or the
value being used for the log message is null. That makes this an OAM
bug, not a Tomcat one.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: NullPointerException/java.util.logging.ErrorManager: 5 when have

Posted by oh...@cox.net.
---- Mark Thomas <ma...@apache.org> wrote: 
> On 07/07/2012 13:40, ohaya@cox.net wrote:
> > Can anyone tell me what might be causing the error, and how I can eliminate the problem? 
> 
> Since you have removed the part of the stack trace that might tell use
> what the cause is, no.
> 
> Mark


Hi Mark,

Sorry about that.  Here's part of the catalina.out again, with the rest of the stack trace, plus showing it happens twice....


In LoginServlet.init: FINISHED initializing!!
Jul 7, 2012 8:21:31 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory showhdrs
Jul 7, 2012 8:21:31 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Jul 7, 2012 8:21:31 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Jul 7, 2012 8:21:31 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
java.util.logging.ErrorManager: 5
java.lang.NullPointerException
        at java.util.ListResourceBundle.handleGetObject(ListResourceBundle.java:109)
        at java.util.ResourceBundle.getObject(ResourceBundle.java:368)
        at java.util.ResourceBundle.getString(ResourceBundle.java:334)
        at java.util.logging.Formatter.formatMessage(Formatter.java:108)
        at java.util.logging.SimpleFormatter.format(SimpleFormatter.java:63)
        at org.apache.juli.FileHandler.publish(FileHandler.java:198)
        at java.util.logging.Logger.log(Logger.java:478)
        at java.util.logging.Logger.doLog(Logger.java:501)
        at java.util.logging.Logger.log(Logger.java:524)
        at oracle.security.am.common.nap.util.NAPLogger.log(NAPLogger.java:60)
        at oracle.security.am.common.nap.util.pool.ObjectPoolManager.shutdown(ObjectPoolManager.java:267)
        at oracle.security.am.common.aaaclient.ObAAAServiceClient.close(ObAAAServiceClient.java:1239)
        at oracle.security.am.common.aaaclient.ObAAAServiceClient.finalize(ObAAAServiceClient.java:2548)
        at jrockit.memory.Finalizer.doFinalize(Finalizer.java:29)
        at jrockit.memory.Finalizer.access$300(Finalizer.java:12)
        at jrockit.memory.Finalizer$4.run(Finalizer.java:186)
        at java.lang.Thread.run(Thread.java:662)
java.util.logging.ErrorManager: 5
java.lang.NullPointerException
        at java.util.ListResourceBundle.handleGetObject(ListResourceBundle.java:109)
        at java.util.ResourceBundle.getObject(ResourceBundle.java:368)
        at java.util.ResourceBundle.getString(ResourceBundle.java:334)
        at java.util.logging.Formatter.formatMessage(Formatter.java:108)
        at java.util.logging.SimpleFormatter.format(SimpleFormatter.java:63)
        at java.util.logging.StreamHandler.publish(StreamHandler.java:179)
        at java.util.logging.ConsoleHandler.publish(ConsoleHandler.java:88)
        at java.util.logging.Logger.log(Logger.java:478)
        at java.util.logging.Logger.doLog(Logger.java:501)
        at java.util.logging.Logger.log(Logger.java:524)
        at oracle.security.am.common.nap.util.NAPLogger.log(NAPLogger.java:60)
        at oracle.security.am.common.nap.util.pool.ObjectPoolManager.shutdown(ObjectPoolManager.java:267)
        at oracle.security.am.common.aaaclient.ObAAAServiceClient.close(ObAAAServiceClient.java:1239)
        at oracle.security.am.common.aaaclient.ObAAAServiceClient.finalize(ObAAAServiceClient.java:2548)
        at jrockit.memory.Finalizer.doFinalize(Finalizer.java:29)
        at jrockit.memory.Finalizer.access$300(Finalizer.java:12)
        at jrockit.memory.Finalizer$4.run(Finalizer.java:186)
        at java.lang.Thread.run(Thread.java:662)
Jul 7, 2012 8:21:31 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080

The "oracle" ones are because I'm using stuff from the Oracle OAM SDK, and I am initializing the SDK in the servlet init() method (which appears to be working).

Jim

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: NullPointerException/java.util.logging.ErrorManager: 5 when have

Posted by Mark Thomas <ma...@apache.org>.
On 07/07/2012 13:40, ohaya@cox.net wrote:
> Can anyone tell me what might be causing the error, and how I can eliminate the problem? 

Since you have removed the part of the stack trace that might tell use
what the cause is, no.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org