[jboss-jira] [JBoss JIRA] Resolved: (JBWEB-89) Getting exception org.apache.commons.httpclient.HttpRecoverableException

Jean-Frederic Clere (JIRA) jira-events at lists.jboss.org
Thu Aug 23 09:30:18 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBWEB-89?page=all ]

Jean-Frederic Clere resolved JBWEB-89.
--------------------------------------

    Resolution: Done

I have fixed the branches 4.2.x and 4.0.x trunk is ok the logic is different there.

> Getting exception org.apache.commons.httpclient.HttpRecoverableException
> ------------------------------------------------------------------------
>
>                 Key: JBWEB-89
>                 URL: http://jira.jboss.com/jira/browse/JBWEB-89
>             Project: JBoss Web
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>         Environment: Apache 2.0.52-32/mod_jk 1.2.22/JBoss 4.2.0.GA
>            Reporter: Masao Kato
>         Assigned To: Jean-Frederic Clere
>         Attachments: patch.txt
>
>
> We are getting this exception .
> ERROR [org.apache.catalina.connector.CoyoteAdapter] 
> java.lang.StringIndexOutOfBoundsException: String index out of range: 32
>         at java.lang.String.substring(String.java:1765)
>         at org.jboss.web.tomcat.service.session.JvmRouteValve.handleJvmRoute(JvmRouteValve.java:128)
>         at org.jboss.web.tomcat.service.session.JvmRouteValve.checkJvmRoute(JvmRouteValve.java:112)
>         at org.jboss.web.tomcat.service.session.JvmRouteValve.invoke(JvmRouteValve.java:81)
>         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
>         at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
>         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:543)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
>         at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
>         at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:381)
>         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>         at java.lang.Thread.run(Thread.java:595)
>         
> I watched a source file(JvmRouteValve.java). I think that substring of the session ID may be wrong. 
> I made a patch. 
> Is this right?
> --- src/main/org/jboss/web/tomcat/service/session/JvmRouteValve.java.orig       2007-08-10 18:59:45.000000000 +0900
> +++ src/main/org/jboss/web/tomcat/service/session/JvmRouteValve.java    2007-08-10 19:01:11.000000000 +0900
> @@ -125,7 +125,7 @@
>        int index = oldsessionId.lastIndexOf(".");
>        if (index > 0)
>        {
> -         receivedJvmRoute = oldsessionId.substring(index + 1, sessionId.length());
> +         receivedJvmRoute = oldsessionId.substring(index + 1, oldsessionId.length());
>        }
>        String requestedJvmRoute = null;

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list