java.lang.StringIndexOutOfBoundsException: String index out of range: -18 at java.lang.String.substring(String.java:1768) at org.netbeans.modules.java.source.usages.RepositoryUpdater.gatherResources (RepositoryUpdater.java:2297) at org.netbeans.modules.java.source.usages.RepositoryUpdater.access$3500 (RepositoryUpdater.java:133) at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.recompi le(RepositoryUpdater.java:1622) at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.access$ 2400(RepositoryUpdater.java:814) at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker$1.run (RepositoryUpdater.java:1031) at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker$1.run (RepositoryUpdater.java:842) at org.netbeans.modules.java.source.usages.ClassIndexManager.writeLock (ClassIndexManager.java:78) at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.run (RepositoryUpdater.java:839) at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.run (RepositoryUpdater.java:814) [catch] at org.netbeans.api.java.source.JavaSource$CompilationJob.run (JavaSource.java:1179)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via netbeans.org by Unknown author, 1 year ago
String index out of range: -18 at java.lang.String.substring(String.java:1768) at org.netbeans.modules.java.source.usages.RepositoryUpdater.gatherResources (RepositoryUpdater.java:2297) at
java.lang.StringIndexOutOfBoundsException: String index out of range: -18 at java.lang.String.substring(String.java:1768) at org.netbeans.modules.java.source.usages.RepositoryUpdater.gatherResources (RepositoryUpdater.java:2297) at org.netbeans.modules.java.source.usages.RepositoryUpdater.access$3500 (RepositoryUpdater.java:133) at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.recompi le(RepositoryUpdater.java:1622) at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.access$ 2400(RepositoryUpdater.java:814) at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker$1.run (RepositoryUpdater.java:1031) at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker$1.run (RepositoryUpdater.java:842) at org.netbeans.modules.java.source.usages.ClassIndexManager.writeLock (ClassIndexManager.java:78) at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.run (RepositoryUpdater.java:839) at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.run (RepositoryUpdater.java:814) [catch] at org.netbeans.api.java.source.JavaSource$CompilationJob.run (JavaSource.java:1179)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.