java.lang.StringIndexOutOfBoundsException: String index out of range: 1065

Jenkins JIRA | rombert | 7 years ago
  1. 0

    [JENKINS-5753] Standalone install does not work with Apache + mod_proxy_ajp + SSL - Jenkins JIRA

    jenkins-ci.org | 11 months ago
    java.lang.StringIndexOutOfBoundsException: String index out of range: 1065
  2. 0

    [JENKINS-5753] Standalone install does not work with Apache + mod_proxy_ajp + SSL - Jenkins JIRA

    jenkins-ci.org | 11 months ago
    java.lang.StringIndexOutOfBoundsException: String index out of range: 1065
  3. 0

    I've configured hudson to only use the ajp connector using a command line similar to {noformat} /usr/lib/jvm/java-1.6.0/bin/java -Dcom.sun.akuma.Daemon=daemonized -Djava.awt.headless=true -Xmx64m -DHUDSON_HOME=/space/hudson -jar /usr/lib/hudson/hudson.war --logfile=/var/log/hudson/hudson.log --daemon --prefix=hudson --httpPort=-1 --ajp13Port=8109 --debug=5 --handlerCountMax=10 --handlerCountMaxIdle=0 {noformat} I'm using the following apache configuration file {noformat} ProxyRequests Off ProxyPreserveHost On <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass /hudson ajp://localhost:8109/hudson retry=1 ProxyPassReverse /hudson ajp://localhost:8109/hudson {noformat} When accessing https://host/hudson , I get a 503 error page from Apache. The apache logs contain: {noformat} [Wed Feb 24 23:58:04 2010] [error] ajp_read_header: ajp_ilink_receive failed [Wed Feb 24 23:58:04 2010] [error] (120006)APR does not understand this error code: proxy: read response failed from (null) (localhost) {noformat} while the winstone logs contain: {noformat} [Winstone 2010/02/24 23:58:04] - Error within request handler thread java.lang.StringIndexOutOfBoundsException: String index out of range: 1065 at java.lang.String.checkBounds(String.java:401) at java.lang.String.<init>(String.java:442) at winstone.ajp13.Ajp13IncomingPacket.readString(Ajp13IncomingPacket.java:275) at winstone.ajp13.Ajp13IncomingPacket.parsePacket(Ajp13IncomingPacket.java:189) at winstone.ajp13.Ajp13Listener.allocateRequestResponse(Ajp13Listener.java:179) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:79) at java.lang.Thread.run(Thread.java:619) {noformat} It's worth mentioning that this was working with Tomcat 6.0.20 , but stopped working when I tried to move over to the standalone install. I've tried various combinations with or without prefix, and the only one which seems to work is ajp without any prefix.

    Jenkins JIRA | 7 years ago | rombert
    java.lang.StringIndexOutOfBoundsException: String index out of range: 1065
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I've configured hudson to only use the ajp connector using a command line similar to {noformat} /usr/lib/jvm/java-1.6.0/bin/java -Dcom.sun.akuma.Daemon=daemonized -Djava.awt.headless=true -Xmx64m -DHUDSON_HOME=/space/hudson -jar /usr/lib/hudson/hudson.war --logfile=/var/log/hudson/hudson.log --daemon --prefix=hudson --httpPort=-1 --ajp13Port=8109 --debug=5 --handlerCountMax=10 --handlerCountMaxIdle=0 {noformat} I'm using the following apache configuration file {noformat} ProxyRequests Off ProxyPreserveHost On <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass /hudson ajp://localhost:8109/hudson retry=1 ProxyPassReverse /hudson ajp://localhost:8109/hudson {noformat} When accessing https://host/hudson , I get a 503 error page from Apache. The apache logs contain: {noformat} [Wed Feb 24 23:58:04 2010] [error] ajp_read_header: ajp_ilink_receive failed [Wed Feb 24 23:58:04 2010] [error] (120006)APR does not understand this error code: proxy: read response failed from (null) (localhost) {noformat} while the winstone logs contain: {noformat} [Winstone 2010/02/24 23:58:04] - Error within request handler thread java.lang.StringIndexOutOfBoundsException: String index out of range: 1065 at java.lang.String.checkBounds(String.java:401) at java.lang.String.<init>(String.java:442) at winstone.ajp13.Ajp13IncomingPacket.readString(Ajp13IncomingPacket.java:275) at winstone.ajp13.Ajp13IncomingPacket.parsePacket(Ajp13IncomingPacket.java:189) at winstone.ajp13.Ajp13Listener.allocateRequestResponse(Ajp13Listener.java:179) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:79) at java.lang.Thread.run(Thread.java:619) {noformat} It's worth mentioning that this was working with Tomcat 6.0.20 , but stopped working when I tried to move over to the standalone install. I've tried various combinations with or without prefix, and the only one which seems to work is ajp without any prefix.

    Jenkins JIRA | 7 years ago | rombert
    java.lang.StringIndexOutOfBoundsException: String index out of range: 1065
  6. 0

    JTidy / Bugs / #205 StringIndexOutOfBoundsException while lexing script content

    sourceforge.net | 1 year ago
    java.lang.StringIndexOutOfBoundsException: String index out of range: 16385

  1. adawolfs 2 times, last 5 months ago
  2. bpbhat77 1 times, last 7 months ago
3 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.StringIndexOutOfBoundsException

    String index out of range: 1065

    at java.lang.String.checkBounds()
  2. Java RT
    String.<init>
    1. java.lang.String.checkBounds(String.java:401)
    2. java.lang.String.<init>(String.java:442)
    2 frames
  3. winstone.ajp13
    Ajp13Listener.allocateRequestResponse
    1. winstone.ajp13.Ajp13IncomingPacket.readString(Ajp13IncomingPacket.java:275)
    2. winstone.ajp13.Ajp13IncomingPacket.parsePacket(Ajp13IncomingPacket.java:189)
    3. winstone.ajp13.Ajp13Listener.allocateRequestResponse(Ajp13Listener.java:179)
    3 frames
  4. winstone
    RequestHandlerThread.run
    1. winstone.RequestHandlerThread.run(RequestHandlerThread.java:79)
    1 frame
  5. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:619)
    1 frame