You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Bill Barker <wb...@wilshire.com> on 2004/11/09 08:05:51 UTC

Re: jk_nt_service.exe stop service gives BAD packet signature

http://jakarta.apache.org/site/source.html#Patches

"Thuy-Linh Chu" <tc...@sigaba.com> wrote in message 
news:2129B7848043D411881A00B0D0627EFE01F6DFE8@exchange.sigaba.com...
>
>
> Follow-up on this subject: I was able to figure out part of the problem 
> and
> devised a solution for it.
>
> 1) There is a bug in jk_nt_exe that sends an invalid header.  I'd patched
> the code and the 'BAD packet signature' goes away.
>
> 2) However, the second problem of the NullPointerException still exists.
> There may be a bug in Tomcat connectors code.  I did not have time to look
> into this.
>
> 3) To get around this problem and to get the service to shutdown properly, 
> I
> used an undocumented feature that set the shudown_protocol to 'cmd' 
> (instead
> of 'ajp13').  However, there are also bugs in implementation of this 
> feature
> (perhaps this is why it's not documented as an option).  I fixed the 
> problem
> and got the service to shutdown cleanly, similar to when using the
> 'shutdown.sh' script.
>
> I'd like to incorporate these changes to the official version of Tomcat.
> I'm not set up to be a Tomcat developer and may not have time to do this 
> in
> the near future.  So if someone would like to volunteer to incorporate the
> changes, I can forward the patched code to you for you to put it in.
>
> Thuy
>
>
>
>> -----Original Message-----
>> From: Thuy-Linh Chu [mailto:tchu@sigaba.com]
>> Sent: Thursday, November 04, 2004 11:10 AM
>> To: 'tomcat-user@jakarta.apache.org'
>> Subject: jk_nt_service.exe stop service gives BAD packet signature
>>
>>
>> I have problems stopping Tomcat as a service in Windows.  I install the
>> service using jk_nt_service.exe (version 5.0.25).  When I stop service, I
>> got the following error:
>>
>> Nov 3, 2004 12:16:17 PM org.apache.jk.common.MsgAjp processHeader
>> SEVERE: BAD packet signature 13
>> 00 0d 00 01 00                                   | .....
>> Nov 3, 2004 12:16:17 PM
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
>> SEVERE: Caught exception (java.lang.NullPointerException) executing
>> org.apache.jk.common.SocketConnection@ddc581, terminating thread
>>
>> Looks like what it means is that the jk_nt_service.exe was sending Tomcat
>> a
>> incorrect format message.  If this is a bug, I would be very surprised to
>> see that it got through all these times.  My guess is are there something
>> wrong with my build of the jk_nt_service.exe or my configuration
>> somewhere.
>> Perhaps bit ordering difference?
>>
>> Could you help?  Thanks.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org 




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