[ jetty-Bugs-1648335 ] Bug in src/org/mortbay/http/ajp/AJP13Connection.java

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ jetty-Bugs-1648335 ] Bug in src/org/mortbay/http/ajp/AJP13Connection.java

SourceForge.net
Bugs item #1648335, was opened at 2007-01-30 19:24
Message generated for change (Comment added) made by otis
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107322&aid=1648335&group_id=7322

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: sud0nym (sud0nym)
Assigned to: Nobody/Anonymous (nobody)
Summary: Bug in src/org/mortbay/http/ajp/AJP13Connection.java

Initial Comment:
request.setVersion(packet.getString());
String version=packet.getString();
try
{
    request.setVersion(version);
}
catch(Exception e)
{
    log.warn("Bad version"+version,e);
    log.warn(packet.toString());
}

When this try block was added to AJP13Connection.java the request.setVersion(packet.getString()); line should probably have been removed. Otherwise the try block fails looking for a version that has already been pulled from the packet. This causes jetty to be unable to load.

----------------------------------------------------------------------

Comment By: Otis Gospodnetic (otis)
Date: 2007-02-12 02:22

Message:
Logged In: YES
user_id=10483
Originator: NO

I think I am seeing the same exception with 5.1.12.  Here is the
exception:

2007-02-12 02:20:09,624 WARN  [istener0-2]              
org.mortbay.http.ajp.AJP13Connection Bad version/myapp/Page.do
java.lang.IllegalArgumentException: Unknown version
        at org.mortbay.http.HttpMessage.setVersion(HttpMessage.java:471)
        at
org.mortbay.http.ajp.AJP13Connection.handleNext(AJP13Connection.java:204)
        at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
        at
org.mortbay.http.ajp.AJP13Listener.handleConnection(AJP13Listener.java:212)
        at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
        at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

After that I get what looks like a hex dump, followed by:

2007-02-12 02:21:34,241 DEBUG [istener0-2]                  
org.mortbay.http.ajp.AJP13Packet IGNORED
java.lang.StringIndexOutOfBoundsException: String index out of range:
11525
        at java.lang.String.checkBounds(String.java:402)
        at java.lang.String.<init>(String.java:443)
        at
org.mortbay.http.ajp.AJP13Packet.getString(AJP13Packet.java:257)
        at
org.mortbay.http.ajp.AJP13Packet.getHeader(AJP13Packet.java:290)
        at
org.mortbay.http.ajp.AJP13Connection.handleNext(AJP13Connection.java:232)
        at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
        at
org.mortbay.http.ajp.AJP13Listener.handleConnection(AJP13Listener.java:212)
        at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
        at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
2007-02-12 02:21:34,241 DEBUG [istener0-2]                  
org.mortbay.http.ajp.AJP13Packet IGNORED
java.lang.StringIndexOutOfBoundsException: String index out of range:
28159
        at java.lang.String.checkBounds(String.java:402)
        at java.lang.String.<init>(String.java:443)
        at
org.mortbay.http.ajp.AJP13Packet.getString(AJP13Packet.java:257)
        at
org.mortbay.http.ajp.AJP13Connection.handleNext(AJP13Connection.java:233)
        at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
        at
org.mortbay.http.ajp.AJP13Listener.handleConnection(AJP13Listener.java:212)
        at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
        at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
2007-02-12 02:21:34,241 WARN  [istener0-2]              
org.mortbay.http.ajp.AJP13Connection EXCEPTION
java.lang.IllegalArgumentException: null value
        at org.mortbay.http.HttpFields.add(HttpFields.java:917)
        at org.mortbay.http.HttpMessage.addField(HttpMessage.java:321)
        at
org.mortbay.http.ajp.AJP13Connection.handleNext(AJP13Connection.java:234)
        at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
        at
org.mortbay.http.ajp.AJP13Listener.handleConnection(AJP13Listener.java:212)
        at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
        at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)


----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107322&aid=1648335&group_id=7322

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
jetty-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-discuss