This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | IllegalStateException: No instance created for service org.netbeans.modules.debugger.jpda.actions.StepIntoActionProvider, context = Lookup.Compound@37a1c427[l1=Lookup.Compound@6e36a244[l1=Lookup.Compo | ||
---|---|---|---|
Product: | third-party | Reporter: | sworisbreathing <sworisbreathing> |
Component: | -- Other -- | Assignee: | _ dcaoyuan <dcaoyuan> |
Status: | NEW --- | ||
Severity: | normal | CC: | stefan79 |
Priority: | P3 | ||
Version: | 8.0 | ||
Hardware: | All | ||
OS: | All | ||
URL: | https://github.com/dcaoyuan/nbscala/issues/151 | ||
Issue Type: | DEFECT | Exception Reporter: | 189812 |
Attachments: |
stacktrace
stacktrace |
Description
sworisbreathing
2015-09-23 04:24:50 UTC
Created attachment 156370 [details]
stacktrace
The SourcePathProviderImpl can not be created because of: Caused: java.lang.IllegalArgumentException: file:/Users/Steveo/.gradle/caches/modules-2/files-2.1/antlr/antlr/2.7.7/da39a3ee5e6b4b0d3255bfef95601890afd80709/antlr-2.7.7-sources.jar is not a valid classpath entry; use a jar-protocol URL. at org.netbeans.modules.java.classpath.SimplePathResourceImplementation.verify(SimplePathResourceImplementation.java:104) at org.netbeans.modules.java.classpath.SimplePathResourceImplementation.verify(SimplePathResourceImplementation.java:68) at org.netbeans.modules.java.classpath.SimplePathResourceImplementation.<init>(SimplePathResourceImplementation.java:131) at org.netbeans.spi.java.classpath.support.ClassPathSupport.createResource(ClassPathSupport.java:77) at org.netbeans.spi.java.classpath.support.ClassPathSupport.createClassPath(ClassPathSupport.java:126) at org.netbeans.modules.scala.debugger.projects.SourcePathProviderImpl.<init>(SourcePathProviderImpl.java:205) Already fixed in debugger... The file:/Users/Steveo/.gradle/caches/modules-2/files-2.1/antlr/antlr/2.7.7/da39a3ee5e6b4b0d3255bfef95601890afd80709/antlr-2.7.7-sources.jar is not valid jar url it should be: jar:file:/Users/Steveo/.gradle/caches/modules-2/files-2.1/antlr/antlr/2.7.7/da39a3ee5e6b4b0d3255bfef95601890afd80709/antlr-2.7.7-sources.jar!/ Use FileUtil.urlForArchiveOrDir(File) Aha, this is Scala debugger: org.netbeans.modules.scala.debugger.projects.SourcePathProviderImpl.<init>(SourcePathProviderImpl.java:205) The code must catch IllegalArgumentException, like we do it in org.netbeans.modules.debugger.jpda.projects.SourcePathProviderImpl See: https://github.com/dcaoyuan/nbscala/issues/151 Thanks Tomasi. I believe that it's not up to debugger to prepend the "jar:". Dcaoyuan, can you please take a look at this? Thanks. (In reply to Martin Entlicher from comment #5) > Aha, this is Scala debugger: > org.netbeans.modules.scala.debugger.projects.SourcePathProviderImpl. > <init>(SourcePathProviderImpl.java:205) > > The code must catch IllegalArgumentException, like we do it in > org.netbeans.modules.debugger.jpda.projects.SourcePathProviderImpl > > See: https://github.com/dcaoyuan/nbscala/issues/151 Thanks, guys. I've commented on the GitHub issue. Weird thing is, there weren't any scala files in the project I was debugging. Simply having the plugin installed broke the debugger :-( I've uninstalled the scala plugin and now the debugger is working again. However, I wonder if errors like this could be handled more gracefully. When it happened, the IDE was switching to debugger mode. The stop button on the toolbar (Finish Debugger Session) was enabled, but not the play (Continue) or pause buttons. Clicking the stop button had no effect -> the spawned java processes were still running and although the UI thread in NetBeans wasn't blocked, it wasn't functional. In the end, I had to run `killall java` from the command line and then relaunch NetBeans to get back to a working IDE. Created attachment 160194 [details]
stacktrace
Started Java-Debug-Session.
|