0 Replies Latest reply on Feb 13, 2009 7:17 PM by Joshua Blake

    ERROR [ServerThread] - Failed to initialize / java.io.Stream

    Joshua Blake Newbie

      Running JBoss 4.0.5GA on an XServe dual G5 w/ Mac OS X Server 10.4.8. Using mod_jk 1.2.25-httpd-1.3 on Apache 1.3 (Mac OS 10.4 built-in Apache) as connector. Using default server instance - no clustering, etc.

      We have over a dozen servers running the above JBoss configuration with no problems for several months, but in the last month or two, 3 of them started spewing the below errors about every second. When we restart JBoss, its fine, but then within a day or two, it starts spewing the errors again.

      I've found lots of references to what sounds like the same problem (http://jira.jboss.com/jira/browse/JBAS-4007?page=all), but I haven't been able to find any solutions. I don't know why only 3 of our servers have this problem occurring, and not the rest.

      The error seems to start happening at midnight GMT, so we feel like it may be related to the log4j logfile rolling over (we're using the daily rolling log appender), but don't know why none of the other servers are seeing this issue, and why it started happening in the first place.

      Any help would be really appreciated.

      2009-02-10 06:31:34,642 ERROR [ServerThread] - Failed to initialize
      java.io.StreamCorruptedException: invalid stream header
      at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:764)
      at java.io.ObjectInputStream.(ObjectInputStream.java:277)
      at org.jboss.invocation.pooled.interfaces.OptimizedObjectInputStream.(OptimizedObjectInputStream.java:131)
      at org.jboss.invocation.pooled.server.ServerThread.dorun(ServerThread.java:265)
      at org.jboss.invocation.pooled.server.ServerThread.run(ServerThread.java:156)
      2009-02-10 06:31:36,670 ERROR [MsgAjp] - BAD packet signature 26481
      2009-02-10 06:31:36,670 ERROR [ChannelSocket] - Error, processing connection
      java.lang.IndexOutOfBoundsException
      at java.io.BufferedInputStream.read(BufferedInputStream.java:306)
      at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620)
      at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:577)
      at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:685)
      at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
      at java.lang.Thread.run(Thread.java:613)
      2009-02-10 06:32:04,403 ERROR [MsgAjp] - BAD packet signature 18254
      2009-02-10 06:32:04,403 ERROR [ChannelSocket] - Error, processing connection
      java.lang.IndexOutOfBoundsException
      at java.io.BufferedInputStream.read(BufferedInputStream.java:306)
      at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620)
      at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:577)
      at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:685)
      at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
      at java.lang.Thread.run(Thread.java:613)
      2009-02-10 06:32:04,523 ERROR [MsgAjp] - BAD packet signature 1025
      2009-02-10 06:32:04,523 WARN [ChannelSocket] - Closing ajp connection 0
      2009-02-10 06:32:04,583 ERROR [MsgAjp] - BAD packet signature 7424
      2009-02-10 06:32:04,643 ERROR [MsgAjp] - BAD packet signature 27648
      2009-02-10 06:32:04,703 ERROR [MsgAjp] - BAD packet signature 14408
      2009-02-10 06:32:04,703 ERROR [ChannelSocket] - Error, processing connection
      java.lang.IndexOutOfBoundsException
      at java.io.BufferedInputStream.read(BufferedInputStream.java:306)
      at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620)
      at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:577)
      at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:685)
      at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
      at java.lang.Thread.run(Thread.java:613)
      2009-02-10 06:32:04,764 ERROR [MsgAjp] - BAD packet signature 3
      2009-02-10 06:32:04,765 ERROR [ChannelSocket] - Error, processing connection
      java.lang.IndexOutOfBoundsException