tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allistair Crossley" <Allistair.Cross...@QAS.com>
Subject JK throws java.lang.NumberFormatException when JSP is not found.
Date Wed, 15 Dec 2004 18:06:32 GMT
Hi Mladen,

Just a follow-up on this decoding issue in JK. I have just this moment accidentally come upon
a scenario where I can generate this error.

You can generate it by requesting a JSP that does not exist, so long as you have a /*.jsp
mapping in urimapping.properties.

I don't know if this is an error with JK or not, but I assume that not finding a JSP should
not cause a NumberFormatException?

SEVERE: Error decoding request 
java.lang.NumberFormatException
	at org.apache.tomcat.util.buf.Ascii.parseInt(Ascii.java:145)
	at org.apache.tomcat.util.buf.ByteChunk.getInt(ByteChunk.java:491)
	at org.apache.tomcat.util.buf.MessageBytes.getInt(MessageBytes.java:645)
	at org.apache.jk.common.HandlerRequest.decodeHeaders(HandlerRequest.java:682)
	at org.apache.jk.common.HandlerRequest.decodeRequest(HandlerRequest.java:504)
	at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:361)
	at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745)
	at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
	at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Thread.java:595)
Dec 15, 2004 5:59:31 PM org.apache.jk.common.ChannelSocket processConnection
WARNING: processCallbacks status 2
Dec 15, 2004 5:59:31 PM org.apache.jk.server.JkCoyoteHandler action
INFO: Response already commited 
com.qas.proweb.QasException@-5115,0,java.lang.UnsatisfiedLinkError: setActiveDataNative [-5115]
Dec 15, 2004 5:59:32 PM org.apache.jk.common.HandlerRequest invoke
SEVERE: Error decoding request 
java.lang.NumberFormatException
	at org.apache.tomcat.util.buf.Ascii.parseInt(Ascii.java:145)
	at org.apache.tomcat.util.buf.ByteChunk.getInt(ByteChunk.java:491)
	at org.apache.tomcat.util.buf.MessageBytes.getInt(MessageBytes.java:645)
	at org.apache.jk.common.HandlerRequest.decodeHeaders(HandlerRequest.java:682)
	at org.apache.jk.common.HandlerRequest.decodeRequest(HandlerRequest.java:504)
	at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:361)
	at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745)
	at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
	at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Thread.java:595)
Dec 15, 2004 5:59:32 PM org.apache.jk.common.ChannelSocket processConnection
WARNING: processCallbacks status 2
Dec 15, 2004 5:59:32 PM org.apache.jk.server.JkCoyoteHandler action
INFO: Response already commited 
com.qas.proweb.QasException@-5115,0,java.lang.UnsatisfiedLinkError: setActiveDataNative [-5115]
Dec 15, 2004 5:59:33 PM org.apache.jk.common.HandlerRequest invoke
SEVERE: Error decoding request 
java.lang.NumberFormatException
	at org.apache.tomcat.util.buf.Ascii.parseInt(Ascii.java:145)
	at org.apache.tomcat.util.buf.ByteChunk.getInt(ByteChunk.java:491)
	at org.apache.tomcat.util.buf.MessageBytes.getInt(MessageBytes.java:645)
	at org.apache.jk.common.HandlerRequest.decodeHeaders(HandlerRequest.java:682)
	at org.apache.jk.common.HandlerRequest.decodeRequest(HandlerRequest.java:504)
	at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:361)
	at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745)
	at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
	at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Thread.java:595)
Dec 15, 2004 5:59:33 PM org.apache.jk.common.ChannelSocket processConnection
WARNING: processCallbacks status 2
Dec 15, 2004 5:59:33 PM org.apache.jk.server.JkCoyoteHandler action
INFO: Response already commited 
com.qas.proweb.QasException@-5115,0,java.lang.UnsatisfiedLinkError: setActiveDataNative [-5115]
Dec 15, 2004 5:59:34 PM org.apache.jk.common.HandlerRequest invoke
SEVERE: Error decoding request 
java.lang.NumberFormatException
	at org.apache.tomcat.util.buf.Ascii.parseInt(Ascii.java:145)
	at org.apache.tomcat.util.buf.ByteChunk.getInt(ByteChunk.java:491)
	at org.apache.tomcat.util.buf.MessageBytes.getInt(MessageBytes.java:645)
	at org.apache.jk.common.HandlerRequest.decodeHeaders(HandlerRequest.java:682)
	at org.apache.jk.common.HandlerRequest.decodeRequest(HandlerRequest.java:504)
	at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:361)
	at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745)
	at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
	at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Thread.java:595)
Dec 15, 2004 5:59:34 PM org.apache.jk.common.ChannelSocket processConnection
WARNING: processCallbacks status 2
Dec 15, 2004 5:59:34 PM org.apache.jk.server.JkCoyoteHandler action
INFO: Response already commited 

Cheers, Allistair



<FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> 
-------------------------------------------------------
QAS Ltd.
Developers of QuickAddress Software
<a href="http://www.qas.com">www.qas.com</a>
Registered in England: No 2582055
Registered in Australia: No 082 851 474
-------------------------------------------------------
</FONT>


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


Mime
View raw message