java.lang.StringIndexOutOfBoundsException: String index out of range: -5

Jenkins JIRA | wang y | 5 years ago
  1. 0

    console output: {quote} ERROR: Publisher hudson.plugins.sloccount.SloccountPublisher aborted due to exception java.lang.StringIndexOutOfBoundsException: String index out of range: -5 at java.lang.String.substring(String.java:1937) at java.lang.String.substring(String.java:1904) at hudson.plugins.sloccount.model.Folder.simplifyName(Folder.java:22) at hudson.plugins.sloccount.model.SloccountReport.simplifyNames(SloccountReport.java:175) at hudson.plugins.sloccount.model.SloccountParser.invoke(SloccountParser.java:42) at hudson.plugins.sloccount.model.SloccountParser.invoke(SloccountParser.java:17) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2154) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:287) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) {quote} sloccount file: {quote} Have a non-directory at the top, so creating directory top_dir Adding /g2m_builder_test/railway-svn-code/support/cppcheck-check-Make to top_dir Adding /g2m_builder_test/railway-svn-code/support/cppcheck_reports.xml to top_dir Adding /g2m_builder_test/railway-svn-code/support/cppcheck-suppress to top_dir Creating filelist for driver Adding /g2m_builder_test/railway-svn-code/support/sloccount.sc to top_dir Creating filelist for test Categorizing files. Computing results. 43 ansic test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/GhtDspDisp.c 197 ansic test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/GhtDspEnc.c 268 ansic test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/GhtDspCap.c 179 ansic test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/GhtDspDec.c 87 ansic test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/Convert.c 636 ansic test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/dm648api.c 387 ansic test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/GhtDspApi.c 173 ansic test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/include/dm648api.h 27 ansic test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/include/GhtDspCommon.h 173 ansic test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/include/GhtDspApi.h 5 ansic test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/Convert.h 6 ansic test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/SdkVersion.h 240 ansic test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/ShareStruct.h 37 makefile test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/Makefile 174 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/dialog/iconDecodeArea.cpp 236 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/dialog/iconPreviewArea.cpp 223 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/dialog/mainWindow.cpp 12 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/main.cpp 39 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/public/sunday.cpp 220 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/public/yuv.cpp 143 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/thread/Timer.cpp 41 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/thread/Thread.cpp 295 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/video/videoThread.cpp 64 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/video/videoTimer.cpp 445 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/pages.cpp 998 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/vmsdk.cpp 10 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/main.cpp 181 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/SI3000Page.cpp 143 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/public/thread/Timer.cpp 41 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/public/thread/Thread.cpp 26 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/dogTimer.cpp 371 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/logicPage.cpp 166 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/configdialog.cpp 31 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/SDevThread.cpp 57 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/dialog/mainWindow.h 73 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/dialog/iconPreviewArea.h 64 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/dialog/iconDecodeArea.h 7 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/public/sunday.h 22 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/public/yuv.h 56 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/thread/Timer.h 24 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/thread/Thread.h 45 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/thread/Mutex.h 43 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/thread/Sem.h 53 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/video/videoThread.h 22 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/video/imageDef.h 24 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/video/videoTimer.h 51 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/logicPage.h 64 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/configdialog.h 348 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/vmsdk.h 56 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/public/thread/Timer.h 24 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/public/thread/Thread.h 45 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/public/thread/Mutex.h 43 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/public/thread/Sem.h 13 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/dogTimer.h 76 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/sdkFunc.h 35 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/SI3000Page.h 16 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/SDevThread.h 56 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/pages.h 9 lisp top_dir /g2m_builder_test/railway-svn-code/support/sloccount.sc {quote}

    Jenkins JIRA | 5 years ago | wang y
    java.lang.StringIndexOutOfBoundsException: String index out of range: -5
  2. 0

    console output: {quote} ERROR: Publisher hudson.plugins.sloccount.SloccountPublisher aborted due to exception java.lang.StringIndexOutOfBoundsException: String index out of range: -5 at java.lang.String.substring(String.java:1937) at java.lang.String.substring(String.java:1904) at hudson.plugins.sloccount.model.Folder.simplifyName(Folder.java:22) at hudson.plugins.sloccount.model.SloccountReport.simplifyNames(SloccountReport.java:175) at hudson.plugins.sloccount.model.SloccountParser.invoke(SloccountParser.java:42) at hudson.plugins.sloccount.model.SloccountParser.invoke(SloccountParser.java:17) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2154) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:287) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) {quote} sloccount file: {quote} Have a non-directory at the top, so creating directory top_dir Adding /g2m_builder_test/railway-svn-code/support/cppcheck-check-Make to top_dir Adding /g2m_builder_test/railway-svn-code/support/cppcheck_reports.xml to top_dir Adding /g2m_builder_test/railway-svn-code/support/cppcheck-suppress to top_dir Creating filelist for driver Adding /g2m_builder_test/railway-svn-code/support/sloccount.sc to top_dir Creating filelist for test Categorizing files. Computing results. 43 ansic test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/GhtDspDisp.c 197 ansic test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/GhtDspEnc.c 268 ansic test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/GhtDspCap.c 179 ansic test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/GhtDspDec.c 87 ansic test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/Convert.c 636 ansic test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/dm648api.c 387 ansic test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/GhtDspApi.c 173 ansic test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/include/dm648api.h 27 ansic test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/include/GhtDspCommon.h 173 ansic test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/include/GhtDspApi.h 5 ansic test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/Convert.h 6 ansic test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/SdkVersion.h 240 ansic test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/ShareStruct.h 37 makefile test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/Makefile 174 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/dialog/iconDecodeArea.cpp 236 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/dialog/iconPreviewArea.cpp 223 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/dialog/mainWindow.cpp 12 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/main.cpp 39 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/public/sunday.cpp 220 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/public/yuv.cpp 143 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/thread/Timer.cpp 41 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/thread/Thread.cpp 295 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/video/videoThread.cpp 64 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/video/videoTimer.cpp 445 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/pages.cpp 998 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/vmsdk.cpp 10 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/main.cpp 181 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/SI3000Page.cpp 143 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/public/thread/Timer.cpp 41 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/public/thread/Thread.cpp 26 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/dogTimer.cpp 371 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/logicPage.cpp 166 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/configdialog.cpp 31 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/SDevThread.cpp 57 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/dialog/mainWindow.h 73 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/dialog/iconPreviewArea.h 64 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/dialog/iconDecodeArea.h 7 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/public/sunday.h 22 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/public/yuv.h 56 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/thread/Timer.h 24 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/thread/Thread.h 45 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/thread/Mutex.h 43 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/thread/Sem.h 53 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/video/videoThread.h 22 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/video/imageDef.h 24 cpp test /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/video/videoTimer.h 51 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/logicPage.h 64 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/configdialog.h 348 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/vmsdk.h 56 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/public/thread/Timer.h 24 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/public/thread/Thread.h 45 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/public/thread/Mutex.h 43 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/public/thread/Sem.h 13 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/dogTimer.h 76 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/sdkFunc.h 35 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/SI3000Page.h 16 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/SDevThread.h 56 cpp test /g2m_builder_test/railway-svn-code/support/test/auSdkDialog/pages.h 9 lisp top_dir /g2m_builder_test/railway-svn-code/support/sloccount.sc {quote}

    Jenkins JIRA | 5 years ago | wang y
    java.lang.StringIndexOutOfBoundsException: String index out of range: -5
  3. 0

    4.0.0-a1 on Mac OS X 10.7 Lion - fails to start up

    GitHub | 2 years ago | dreamcat4
    java.lang.StringIndexOutOfBoundsException: String index out of range: -5
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.lang.StringIndexOutOfBoundsException on some java classes

    GitHub | 3 years ago | micw
    java.lang.StringIndexOutOfBoundsException: String index out of range: -5

  1. richard77 2 times, last 2 days ago
  2. kjhdofjosvs 2 times, last 6 days ago
  3. archenroot 17 times, last 2 weeks ago
  4. Alexandru Popa 2 times, last 3 weeks ago
  5. poroszd 3 times, last 1 month ago
18 more registered users
58 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: -5

    at java.lang.String.substring()
  2. Java RT
    String.substring
    1. java.lang.String.substring(String.java:1937)
    2. java.lang.String.substring(String.java:1904)
    2 frames
  3. hudson.plugins.sloccount
    SloccountParser.invoke
    1. hudson.plugins.sloccount.model.Folder.simplifyName(Folder.java:22)
    2. hudson.plugins.sloccount.model.SloccountReport.simplifyNames(SloccountReport.java:175)
    3. hudson.plugins.sloccount.model.SloccountParser.invoke(SloccountParser.java:42)
    4. hudson.plugins.sloccount.model.SloccountParser.invoke(SloccountParser.java:17)
    4 frames
  4. Hudson
    FilePath$FileCallableWrapper.call
    1. hudson.FilePath$FileCallableWrapper.call(FilePath.java:2154)
    1 frame
  5. Hudson :: Remoting Layer
    InterceptingExecutorService$1.call
    1. hudson.remoting.UserRequest.perform(UserRequest.java:118)
    2. hudson.remoting.UserRequest.perform(UserRequest.java:48)
    3. hudson.remoting.Request$2.run(Request.java:287)
    4. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
    4 frames
  6. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:138)
    3. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    5. java.lang.Thread.run(Thread.java:662)
    5 frames