Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-6316

String index out of range exception in log

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • core
    • None
    • master: hudson 1.355 SUSE 10 x64 jdk 1.6.0_06-b02 x64 Tomcat 6.0.18, slave: Windows XP SP2 x86, jre 1.6.0_20-b02

      When task is running there is String index out of range exception in log, plain text log (below) is fine:

      http://url/hudson/view/PerformanceTest/job/ServicePerformanceTest%28win%29/2/console

      HTTP Status 500 -

      type Exception report

      message

      description The server encountered an internal error () that prevented it from fulfilling this request.

      exception

      javax.servlet.ServletException: java.lang.StringIndexOutOfBoundsException: String index out of range: 235
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:554)
      org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:145)
      org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:519)
      org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:319)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:519)
      org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:181)
      org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:519)
      org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:181)
      org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:519)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:435)
      org.kohsuke.stapler.Stapler.service(Stapler.java:123)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
      hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:64)
      hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:97)
      hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
      hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)

      root cause

      java.lang.StringIndexOutOfBoundsException: String index out of range: 235
      java.lang.String.substring(String.java:1935)
      hudson.MarkupText$SubText.getText(MarkupText.java:106)
      hudson.console.UrlAnnotator$UrlConsoleAnnotator.annotate(UrlAnnotator.java:30)
      hudson.console.ConsoleAnnotationOutputStream.eol(ConsoleAnnotationOutputStream.java:145)
      hudson.console.LineTransformationOutputStream.eol(LineTransformationOutputStream.java:60)
      hudson.console.LineTransformationOutputStream.write(LineTransformationOutputStream.java:56)
      hudson.console.LineTransformationOutputStream.write(LineTransformationOutputStream.java:74)
      org.apache.commons.io.output.ProxyOutputStream.write(ProxyOutputStream.java:70)
      org.apache.commons.io.output.CountingOutputStream.write(CountingOutputStream.java:71)
      org.kohsuke.stapler.framework.io.LargeText$HeadMark.moveTo(LargeText.java:237)
      org.kohsuke.stapler.framework.io.LargeText.writeLogTo(LargeText.java:152)
      hudson.console.AnnotatedLargeText.writeHtmlTo(AnnotatedLargeText.java:150)
      hudson.console.AnnotatedLargeText.writeLogTo(AnnotatedLargeText.java:142)
      org.kohsuke.stapler.framework.io.LargeText.doProgressText(LargeText.java:187)
      hudson.console.AnnotatedLargeText.doProgressiveHtml(AnnotatedLargeText.java:92)
      sun.reflect.GeneratedMethodAccessor248.invoke(Unknown Source)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:597)
      org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:169)
      org.kohsuke.stapler.Function.bindAndInvoke(Function.java:101)
      org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:54)
      org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:75)
      org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:519)
      org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:145)
      org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:519)
      org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:319)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:519)
      org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:181)
      org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:519)
      org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:181)
      org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:519)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:435)
      org.kohsuke.stapler.Stapler.service(Stapler.java:123)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
      hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:64)
      hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:97)
      hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
      hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)

      note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.

      http://url/hudson/view/PerformanceTest/job/ServicePerformanceTest%28win%29/2/consoleText

      Started by user anonymous
      Building remotely on wnyc1108000203
      Updating http://url/svn/HermesAPI/trunk/Scripts/PerformanceTests
      At revision 19331
      no change for http://url/svn/HermesAPI/trunk/Scripts/PerformanceTests since the previous build
      [ServicePerformanceTest(win)] $ cmd /c call C:\WINNT\TEMP\hudson190145892070904114.bat

      C:\Hudson\workspace\ServicePerformanceTest(win)>cd PerformanceTests

      C:\Hudson\workspace\ServicePerformanceTest(win)\PerformanceTests>runall.cmd

      C:\Hudson\workspace\ServicePerformanceTest(win)\PerformanceTests>SET HUDSON_JOBS_URL=http://url/hudson/job/

      C:\Hudson\workspace\ServicePerformanceTest(win)\PerformanceTests>SET OUT_PATH=Out

      C:\Hudson\workspace\ServicePerformanceTest(win)\PerformanceTests>SET WORK_PATH=WORK

      C:\Hudson\workspace\ServicePerformanceTest(win)\PerformanceTests>SET CYGWIN=nontsec

      C:\Hudson\workspace\ServicePerformanceTest(win)\PerformanceTests>if "" == "" (if exist C:\cygwin\nul SET CYGWIN_PATH=C:\Cygwin )

      C:\Hudson\workspace\ServicePerformanceTest(win)\PerformanceTests>if "C:\Cygwin" == "" (FOR /F "TOKENS=1* DELIMS=" %A IN ('cygpath -w /') DO SET CYGWIN_PATH=%A )

      C:\Hudson\workspace\ServicePerformanceTest(win)\PerformanceTests>if "C:\Cygwin" == "" (
      echo CYGWIN path not found
      exit 1
      )

      C:\Hudson\workspace\ServicePerformanceTest(win)\PerformanceTests>set datepath=C:\Cygwin\bin\date

      C:\Hudson\workspace\ServicePerformanceTest(win)\PerformanceTests>FOR /F "TOKENS=1* DELIMS=" %B IN ('"C:\Cygwin\bin\date" +%Y%m%d') DO SET CDATE=%B

      C:\Hudson\workspace\ServicePerformanceTest(win)\PerformanceTests>SET CDATE=20100420

      C:\Hudson\workspace\ServicePerformanceTest(win)\PerformanceTests>if not exist Out\nul mkdir Out

      C:\Hudson\workspace\ServicePerformanceTest(win)\PerformanceTests>if not exist Out\20100420\nul mkdir Out\20100420

      C:\Hudson\workspace\ServicePerformanceTest(win)\PerformanceTests>if not exist WORK\nul mkdir WORK

      C:\Hudson\workspace\ServicePerformanceTest(win)\PerformanceTests>cd WORK

      C:\Hudson\workspace\ServicePerformanceTest(win)\PerformanceTests\WORK>rm *

      C:\Hudson\workspace\ServicePerformanceTest(win)\PerformanceTests\WORK>call ../run_sharp "http://url/hudson/job/HermesSharpSvnPublish/ws/HermesCSharp/Deploy/Dynamic/" "../Out/20100420/cs_win_dynamic.csv"

      C:\Hudson\workspace\ServicePerformanceTest(win)\PerformanceTests\WORK>SET URL="http://url/hudson/job/HermesSharpSvnPublish/ws/HermesCSharp/Deploy/Dynamic/"

      C:\Hudson\workspace\ServicePerformanceTest(win)\PerformanceTests\WORK>SET OUTPUT="../Out/20100420/cs_win_dynamic.csv"

      C:\Hudson\workspace\ServicePerformanceTest(win)\PerformanceTests\WORK>if ""../Out/20100420/cs_win_dynamic.csv"" == "" set OUTPUT=CON

      C:\Hudson\workspace\ServicePerformanceTest(win)\PerformanceTests\WORK>if ""http://url/hudson/job/HermesSharpSvnPublish/ws/HermesCSharp/Deploy/Dynamic/"" NEQ "" (
      wget "http://url/hudson/job/HermesSharpSvnPublish/ws/HermesCSharp/Deploy/Dynamic/"\PerformanceTest.zip
      7z x -y PerformanceTest.zip
      )
      -2010-04-20 11:26:23- http://url/hudson/job/HermesSharpSvnPublish/ws/HermesCSharp/Deploy/Dynamic/PerformanceTest.zip
      Resolving url... 169.49.12.22
      Connecting to url|169.49.12.22|:8080... connected.
      HTTP request sent, awaiting response... 200 OK
      Length: 826844 (807K) [application/zip]
      Saving to: `PerformanceTest.zip'

      0K .......... .......... .......... .......... .......... 6% 2.58M 0s
      50K .......... .......... .......... .......... .......... 12% 11.0M 0s
      100K .......... .......... .......... .......... .......... 18% 1.16M 0s
      150K .......... .......... .......... .......... .......... 24% 11.2M 0s
      200K .......... .......... .......... .......... .......... 30% 10.9M 0s
      250K .......... .......... .......... .......... .......... 37% 10.7M 0s
      300K .......... .......... .......... .......... .......... 43% 9.85M 0s
      350K .......... .......... .......... .......... .......... 49% 10.7M 0s
      400K .......... .......... .......... .......... .......... 55% 9.86M 0s
      450K .......... .......... .......... .......... .......... 61% 11.9M 0s
      500K .......... .......... .......... .......... .......... 68% 11.0M 0s
      550K .......... .......... .......... .......... .......... 74% 3.08M 0s
      600K .......... .......... .......... .......... .......... 80% 7.74M 0s
      650K .......... .......... .......... .......... .......... 86% 8.39M 0s
      700K .......... .......... .......... .......... .......... 92% 2.37M 0s
      750K .......... .......... .......... .......... .......... 99% 11.0M 0s
      800K ....... 100% 8.86M=0.2s

      2010-04-20 11:26:23 (5.07 MB/s) - `PerformanceTest.zip' saved [826844/826844]

      7-Zip 9.11 beta Copyright (c) 1999-2010 Igor Pavlov 2010-03-15

      Processing archive: PerformanceTest.zip

      Extracting PerformanceTest.exe

      Everything is Ok

      Size: 2616320
      Compressed: 826844

      C:\Hudson\workspace\ServicePerformanceTest(win)\PerformanceTests\WORK>PerformanceTest.exe -csv 1>"../Out/20100420/cs_win_dynamic.csv"

            Unassigned Unassigned
            ISanych ISanych
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: