You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Rastogi Nikhil <ra...@gmail.com> on 2009/08/13 09:25:45 UTC

NullPointerException - org.apache.tomcat.util.http.MimeHeaders.clear(MimeHeaders.java:130)

Hi,

I've implemented Axis2 Web Services in Tomcat 5.5.26 and at times of high
load (when there are several web service client requests coming in to
Tomcat), Tomcat starts throwing following NPE:

java.lang.NullPointerException
        at
org.apache.tomcat.util.http.MimeHeaders.clear(MimeHeaders.java:130)

Is there a solution for the above exception?

N.B.: I tried setting the system property ...
               org.apache.catalina.connector.RECYCLE_FACADES=true
... in vain.
Also I tried deploying my Axis2 code on Tomcat 6.0.20 and observed that
these NPE do occur but with less frequency.

Any help on this will be appreciated.

-Nikhil 
-- 
View this message in context: http://www.nabble.com/NullPointerException---org.apache.tomcat.util.http.MimeHeaders.clear%28MimeHeaders.java%3A130%29-tp24950113p24950113.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Re: NullPointerException - org.apache.tomcat.util.http.MimeHeaders.clear(MimeHeaders.java:130)

Posted by Rastogi Nikhil <ra...@gmail.com>.
Hi Mark,

Pardon me for the mistakes (this was my first ever post to any forum).
The full stack trace is as follows:

java.lang.NullPointerException
        at
org.apache.tomcat.util.http.MimeHeaders.clear(MimeHeaders.java:130)
        at org.apache.coyote.Response.reset(Response.java:289)
        at org.apache.catalina.connector.Response.reset(Response.java:653)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:135)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
        at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BasePro
tocol.java:665)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
        at java.lang.Thread.run(Thread.java:619)

I'll try setting `RECYCLE_FACADES=true` in 6.0.20 catalina.bat and get back
if required.

Thanks,
Nikhil

-- 
View this message in context: http://www.nabble.com/NullPointerException---org.apache.tomcat.util.http.MimeHeaders.clear%28MimeHeaders.java%3A130%29-tp24950113p24954213.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Re: NullPointerException - org.apache.tomcat.util.http.MimeHeaders.clear(MimeHeaders.java:130)

Posted by Mark Thomas <ma...@apache.org>.
Rastogi Nikhil wrote:
> I've implemented Axis2 Web Services in Tomcat 5.5.26 and at times of high
> load (when there are several web service client requests coming in to
> Tomcat), Tomcat starts throwing following NPE:

Posting the same question to the dev and users list is poor list
etiquette. If you aren't sure where to post, send it to the users list.

> java.lang.NullPointerException
>         at
> org.apache.tomcat.util.http.MimeHeaders.clear(MimeHeaders.java:130)
> 
> Is there a solution for the above exception?

That stack trace isn't very helpful. Always provide the full stacktrace
including any root causes.

> N.B.: I tried setting the system property ...
>                org.apache.catalina.connector.RECYCLE_FACADES=true
> ... in vain.

Unsurprisingly, since that system property does not exist for Tomcat 5.5.x.

> Also I tried deploying my Axis2 code on Tomcat 6.0.20 and observed that
> these NPE do occur but with less frequency.

Interesting, but unfortunately not conclusive.

> Any help on this will be appreciated.

Try 6.0.20 with the RECYCLE_FACADES=true option?

Mark




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