tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derrick Koes" <>
Subject RE: JK throws java.lang.NumberFormatException when JSP is not found.
Date Wed, 15 Dec 2004 23:19:25 GMT

I've been testing JK 1.2.7 beta 3 +.

For some reason, putting the jsessionid (URL rewriting) on the URL makes JK not deliver it
to Tomcat (get a new session from tomcat for every request).  Running the same web app with
JK2 does not exhibit the problem.  HttpServletRequest.isRequestedSessionIdFromURL() returns
true for the JK2 configuration, but false for the JK configuration.

I'm assuming it must be JK that decides to remove it from the URL (different URL rewriting
scheme?), but I suppose it *could* be a bug in Tomcat HttpServletRequest implementation. 
Does anyone have any suggestions?
Below is a sample URL.

The url rewriting part:



-----Original Message-----
From: Allistair Crossley [] 
Sent: Wednesday, December 15, 2004 5:07 PM
To: Tomcat Developers List; Tomcat Developers List
Subject: RE: JK throws java.lang.NumberFormatException when JSP is not found.

Will add trace logging first thing tomorrow morning and let you know. I really don't want
to get a reputation for being imaginative you know ;) but this looked pretty much the direct
cause to me, but I being to doubt myself ;) The stack trace certainly is not my imagination,
I did afterall paste it into the email ;)
Will come back to you tomorrow, Cheers, Allistair.

	-----Original Message----- 
	From: Mladen Turk [] 
	Sent: Wed 15/12/2004 19:43 
	To: Tomcat Developers List 
	Subject: Re: JK throws java.lang.NumberFormatException when JSP is not found.

	Allistair Crossley wrote:
	> 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
	Did on IIS/WINXP/1.2.7-beta-3
	No mater what files I'm asking existing or not I can not reproduce the
	error. Tested on 5.5.6 and 5.0.30.
	Really have no clue how to reproduce that.
	Please try turning log_level to trace, clear the logs, restart IIS,
	and post the jk log file.
	Otherwise we are stuck :(.
	To unsubscribe, e-mail:
	For additional commands, e-mail:

QAS Ltd.
Developers of QuickAddress Software
<a href=""></a>
Registered in England: No 2582055
Registered in Australia: No 082 851 474

View raw message