It's not a secret anymore!*
The moose likes Tomcat and the fly likes SEVERE: BAD packet signature 200,SEVERE: Caught exception (java.lang.NullPointerException) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "SEVERE: BAD packet signature 200,SEVERE: Caught exception (java.lang.NullPointerException) " Watch "SEVERE: BAD packet signature 200,SEVERE: Caught exception (java.lang.NullPointerException) " New topic
Author

SEVERE: BAD packet signature 200,SEVERE: Caught exception (java.lang.NullPointerException)

Renuka Lalagi
Greenhorn

Joined: Oct 12, 2009
Posts: 1
Hello,


I have installed the apache-jakarta-tomcat-4.1.31 on Solaris system and whenever the out of memory error logs the server restarts.
While shutting dowm the server the following error logged in the Catalina.out.

00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
Oct 10, 2009 9:27:04 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
SEVERE: Caught exception (java.lang.NullPointerException) executing org.apache.jk.common.SocketConnection@1cb0cb7, terminating thread Oct 10, 2009 9:27:13 PM org.apache.jk.common.MsgAjp processHeader
SEVERE: BAD packet signature 200
00 c8 00 00 | .?..
Oct 10, 2009 9:27:13 PM org.apache.jk.common.ChannelSocket processConnection
WARNING: Closing ajp connection 0
Oct 10, 2009 9:27:13 PM org.apache.jk.common.MsgAjp processHeader
SEVERE: BAD packet signature 18245
47 45 54 20 00 00 00 00 00 00 00 00 00 00 00 00 | GET ............
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
Oct 10, 2009 9:27:13 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
SEVERE: Caught exception (java.lang.NullPointerException) executing org.apache.jk.common.SocketConnection@9cfe1c, terminating thread java.lang.OutOfMemoryError


We have sent the JVM memory to below parameter:
JAVA_OPTS="-Djava.awt.headless=true -Xms1024m -Xmx1024m -XX:+DisableExplicitGC -XX:+UseParNewGC -XX:SurvivorRatio=128 -XX:NewSize=300m -XX:MaxTenuringThreshold=0 -XX:CMSInitiatingOccupancyFraction=60"

Please suggest,I have no luck in searching through the google.
Thanks in advance.

Regards,
Renuka

Shailesh Vyas
Greenhorn

Joined: Aug 01, 2009
Posts: 1
I know I am replying very late to this thread, but it may help others.

If you just get - "SEVERE: Caught exception (java.lang.NullPointerException) executing org.apache.jk.common.SocketConnection@9cfe1c, terminating thread" it means request is hitting your tomcat but you need to check your Connector settings in server.xml.

If we dont specify any connector than by default it uses Coyote HTTP/1.1, otherwise we can specify something like - protocol="AJP/1.3".

<Connector port="19080"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="443" acceptCount="100"
debug="0" connectionTimeout="0"
disableUploadTimeout="true" protocol="AJP/1.3" />

Today I faced the similar error but removing the protocol="AJP/1.3" string from server.xml worked fine for me!!!

Hope it help others!!

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SEVERE: BAD packet signature 200,SEVERE: Caught exception (java.lang.NullPointerException)
 
Similar Threads
Tomcat restart problem on production server
Socket connection error in Tomcat
I can't start tomcat service
SEVERE: BAD packet signature: SEVERE: Error, processing connection
Getting Error while starting Apache Tomcat 6