New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug frequently hangs at "Listening for transport dt_socket at address: 5005" #152

Closed
swpalmer opened this Issue Aug 11, 2014 · 8 comments

Comments

Projects
None yet
2 participants
@swpalmer

swpalmer commented Aug 11, 2014

Lately I've been having a lot of trouble with the debugger not connecting.
The last thing I see in the output window is the message:

Listening for transport dt_socket at address: 5005

...but it sits there forever.

I can get to finally connect by manually selecting Attach Debugger... which switches to Debug view but still doesn't connect properly, and then clicking the Stop button that appears in the toolbar while in debug mode.

When I do that, I see a second "Listening for transport..." message appear right after the first, and things unblock and the app continues to start up properly.

But then it just happens all over again when I try to debug the next time.

When I try to close NetBeans I see a message dialog:
"Exiting the IDE will terminate the following processes:
Attaching Debugger
Attaching Debugger
...

apparently those extra "Listening for.." messages have left a process hanging around

@kelemen

This comment has been minimized.

Owner

kelemen commented Aug 11, 2014

Can you see anything in the "messages.log" of NetBeans? In particular some exception after the "Attempting to attach to debugee on port" line is logged.

@swpalmer

This comment has been minimized.

swpalmer commented Aug 11, 2014

Here is the entire log from the point of the "Attempting to attach to debugee..." message to when I got the app to continue...

Note: Recompile with -Xlint:unchecked for details.
INFO [org.netbeans.gradle.project.tasks.AttacherListener]: Attempting to attach to debugee on port: 5,005
INFO [org.netbeans.gradle.project.query.GradleSourceEncodingQuery]: The character encoding of a file has been requested from a wrong thread.
java.lang.IllegalStateException: This method cannot be access from the PROJECT_PROCESSOR.
at org.netbeans.gradle.project.properties.ProjectPropertiesProxy.waitForLoaded(ProjectPropertiesProxy.java:116)
at org.netbeans.gradle.project.NbGradleProject.getLoadedProperties(NbGradleProject.java:391)
[catch] at org.netbeans.gradle.project.query.GradleSourceEncodingQuery.getEncoding(GradleSourceEncodingQuery.java:28)
at org.netbeans.modules.projectapi.ProjectFileEncodingQueryImplementation.getEncoding(ProjectFileEncodingQueryImplementation.java:76)
at org.netbeans.api.queries.FileEncodingQuery.getEncoding(FileEncodingQuery.java:96)
at org.openide.text.DataEditorSupport.openDocument(DataEditorSupport.java:582)
at org.openide.text.NbDocument.getDocument(NbDocument.java:616)
at org.netbeans.modules.debugger.jpda.projects.LineTranslations$BreakpointLineUpdater.attach(LineTranslations.java:447)
at org.netbeans.modules.debugger.jpda.projects.LineTranslations.registerForLineUpdates(LineTranslations.java:321)
at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationManager.breakpointAdded(BreakpointAnnotationManager.java:89)
at org.netbeans.api.debugger.DebuggerManager.fireBreakpointCreated(DebuggerManager.java:883)
at org.netbeans.api.debugger.DebuggerManager.initBreakpoints(DebuggerManager.java:1055)
at org.netbeans.api.debugger.DebuggerManager.addBreakpoint(DebuggerManager.java:532)
at org.netbeans.modules.debugger.jpda.visual.VisualDebuggerListener.engineAdded(VisualDebuggerListener.java:205)
at org.netbeans.api.debugger.DebuggerManager.fireEngineAdded(DebuggerManager.java:1415)
at org.netbeans.api.debugger.DebuggerManager.addEngine(DebuggerManager.java:1638)
at org.netbeans.api.debugger.Session.addLanguage(Session.java:375)
at org.netbeans.api.debugger.DebuggerManager.startDebugging(DebuggerManager.java:381)
at org.netbeans.api.debugger.jpda.JPDADebugger.attach(JPDADebugger.java:311)
at org.netbeans.gradle.project.tasks.AttacherListener.doAttach(AttacherListener.java:121)
at org.netbeans.gradle.project.tasks.AttacherListener.access$000(AttacherListener.java:37)
at org.netbeans.gradle.project.tasks.AttacherListener$1.execute(AttacherListener.java:130)
at org.jtrim.concurrent.AbstractTaskExecutorService$1.execute(AbstractTaskExecutorService.java:142)
at org.jtrim.concurrent.AbstractTaskExecutorService$FunctionWrapper.execute(AbstractTaskExecutorService.java:270)
at org.jtrim.concurrent.AbstractTaskExecutorService$TaskOfAbstractExecutor.execute(AbstractTaskExecutorService.java:340)
at org.jtrim.concurrent.Tasks$RunOnceCancelableTask.execute(Tasks.java:342)
at org.jtrim.concurrent.SingleThreadedExecutor$QueuedItem.runTask(SingleThreadedExecutor.java:905)
at org.jtrim.concurrent.SingleThreadedExecutor$QueuedItem.access$1200(SingleThreadedExecutor.java:884)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.executeTask(SingleThreadedExecutor.java:798)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.processQueue(SingleThreadedExecutor.java:813)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.run(SingleThreadedExecutor.java:847)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$1.run(SingleThreadedExecutor.java:453)
at java.lang.Thread.run(Thread.java:745)
INFO [org.netbeans.gradle.project.ProjectLookupHack]: Activating project lookup because of the request type: org.netbeans.spi.queries.FileEncodingQueryImplementation
INFO [org.netbeans.gradle.project.ProjectLookupHack]: Activating project lookup because of the request type: org.netbeans.gradle.project.properties.NbGradleSingleProjectConfigProvider
INFO [org.netbeans.gradle.project.query.GradleSourceEncodingQuery]: The character encoding of a file has been requested from a wrong thread.
java.lang.IllegalStateException: This method cannot be access from the PROJECT_PROCESSOR.
at org.netbeans.gradle.project.properties.ProjectPropertiesProxy.waitForLoaded(ProjectPropertiesProxy.java:116)
at org.netbeans.gradle.project.NbGradleProject.getLoadedProperties(NbGradleProject.java:391)
[catch] at org.netbeans.gradle.project.query.GradleSourceEncodingQuery.getEncoding(GradleSourceEncodingQuery.java:28)
at org.netbeans.modules.projectapi.ProjectFileEncodingQueryImplementation.getEncoding(ProjectFileEncodingQueryImplementation.java:76)
at org.netbeans.api.queries.FileEncodingQuery.getEncoding(FileEncodingQuery.java:96)
at org.openide.text.DataEditorSupport.openDocument(DataEditorSupport.java:582)
at org.openide.text.NbDocument.getDocument(NbDocument.java:616)
at org.netbeans.modules.debugger.jpda.projects.LineTranslations$BreakpointLineUpdater.attach(LineTranslations.java:447)
at org.netbeans.modules.debugger.jpda.projects.LineTranslations.registerForLineUpdates(LineTranslations.java:321)
at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationManager.breakpointAdded(BreakpointAnnotationManager.java:89)
at org.netbeans.api.debugger.DebuggerManager.fireBreakpointCreated(DebuggerManager.java:883)
at org.netbeans.api.debugger.DebuggerManager.initBreakpoints(DebuggerManager.java:1055)
at org.netbeans.api.debugger.DebuggerManager.addBreakpoint(DebuggerManager.java:532)
at org.netbeans.modules.debugger.jpda.visual.VisualDebuggerListener.engineAdded(VisualDebuggerListener.java:205)
at org.netbeans.api.debugger.DebuggerManager.fireEngineAdded(DebuggerManager.java:1415)
at org.netbeans.api.debugger.DebuggerManager.addEngine(DebuggerManager.java:1638)
at org.netbeans.api.debugger.Session.addLanguage(Session.java:375)
at org.netbeans.api.debugger.DebuggerManager.startDebugging(DebuggerManager.java:381)
at org.netbeans.api.debugger.jpda.JPDADebugger.attach(JPDADebugger.java:311)
at org.netbeans.gradle.project.tasks.AttacherListener.doAttach(AttacherListener.java:121)
at org.netbeans.gradle.project.tasks.AttacherListener.access$000(AttacherListener.java:37)
at org.netbeans.gradle.project.tasks.AttacherListener$1.execute(AttacherListener.java:130)
at org.jtrim.concurrent.AbstractTaskExecutorService$1.execute(AbstractTaskExecutorService.java:142)
at org.jtrim.concurrent.AbstractTaskExecutorService$FunctionWrapper.execute(AbstractTaskExecutorService.java:270)
at org.jtrim.concurrent.AbstractTaskExecutorService$TaskOfAbstractExecutor.execute(AbstractTaskExecutorService.java:340)
at org.jtrim.concurrent.Tasks$RunOnceCancelableTask.execute(Tasks.java:342)
at org.jtrim.concurrent.SingleThreadedExecutor$QueuedItem.runTask(SingleThreadedExecutor.java:905)
at org.jtrim.concurrent.SingleThreadedExecutor$QueuedItem.access$1200(SingleThreadedExecutor.java:884)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.executeTask(SingleThreadedExecutor.java:798)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.processQueue(SingleThreadedExecutor.java:813)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.run(SingleThreadedExecutor.java:847)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$1.run(SingleThreadedExecutor.java:453)
at java.lang.Thread.run(Thread.java:745)
INFO [org.netbeans.gradle.project.ProjectLookupHack]: Activating project lookup because of the request type: org.netbeans.spi.queries.FileEncodingQueryImplementation
INFO [org.netbeans.gradle.project.ProjectLookupHack]: Activating project lookup because of the request type: org.netbeans.gradle.project.properties.NbGradleSingleProjectConfigProvider
INFO [org.netbeans.gradle.project.query.GradleSourceEncodingQuery]: The character encoding of a file has been requested from a wrong thread.
java.lang.IllegalStateException: This method cannot be access from the PROJECT_PROCESSOR.
at org.netbeans.gradle.project.properties.ProjectPropertiesProxy.waitForLoaded(ProjectPropertiesProxy.java:116)
at org.netbeans.gradle.project.NbGradleProject.getLoadedProperties(NbGradleProject.java:391)
[catch] at org.netbeans.gradle.project.query.GradleSourceEncodingQuery.getEncoding(GradleSourceEncodingQuery.java:28)
at org.netbeans.modules.projectapi.ProjectFileEncodingQueryImplementation.getEncoding(ProjectFileEncodingQueryImplementation.java:76)
at org.netbeans.api.queries.FileEncodingQuery.getEncoding(FileEncodingQuery.java:96)
at org.openide.text.DataEditorSupport.openDocument(DataEditorSupport.java:582)
at org.openide.text.NbDocument.getDocument(NbDocument.java:616)
at org.netbeans.modules.debugger.jpda.projects.LineTranslations$BreakpointLineUpdater.attach(LineTranslations.java:447)
at org.netbeans.modules.debugger.jpda.projects.LineTranslations.registerForLineUpdates(LineTranslations.java:321)
at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationManager.breakpointAdded(BreakpointAnnotationManager.java:89)
at org.netbeans.api.debugger.DebuggerManager.fireBreakpointCreated(DebuggerManager.java:883)
at org.netbeans.api.debugger.DebuggerManager.initBreakpoints(DebuggerManager.java:1055)
at org.netbeans.api.debugger.DebuggerManager.addBreakpoint(DebuggerManager.java:532)
at org.netbeans.modules.debugger.jpda.visual.VisualDebuggerListener.engineAdded(VisualDebuggerListener.java:205)
at org.netbeans.api.debugger.DebuggerManager.fireEngineAdded(DebuggerManager.java:1415)
at org.netbeans.api.debugger.DebuggerManager.addEngine(DebuggerManager.java:1638)
at org.netbeans.api.debugger.Session.addLanguage(Session.java:375)
at org.netbeans.api.debugger.DebuggerManager.startDebugging(DebuggerManager.java:381)
at org.netbeans.api.debugger.jpda.JPDADebugger.attach(JPDADebugger.java:311)
at org.netbeans.gradle.project.tasks.AttacherListener.doAttach(AttacherListener.java:121)
at org.netbeans.gradle.project.tasks.AttacherListener.access$000(AttacherListener.java:37)
at org.netbeans.gradle.project.tasks.AttacherListener$1.execute(AttacherListener.java:130)
at org.jtrim.concurrent.AbstractTaskExecutorService$1.execute(AbstractTaskExecutorService.java:142)
at org.jtrim.concurrent.AbstractTaskExecutorService$FunctionWrapper.execute(AbstractTaskExecutorService.java:270)
at org.jtrim.concurrent.AbstractTaskExecutorService$TaskOfAbstractExecutor.execute(AbstractTaskExecutorService.java:340)
at org.jtrim.concurrent.Tasks$RunOnceCancelableTask.execute(Tasks.java:342)
at org.jtrim.concurrent.SingleThreadedExecutor$QueuedItem.runTask(SingleThreadedExecutor.java:905)
at org.jtrim.concurrent.SingleThreadedExecutor$QueuedItem.access$1200(SingleThreadedExecutor.java:884)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.executeTask(SingleThreadedExecutor.java:798)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.processQueue(SingleThreadedExecutor.java:813)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.run(SingleThreadedExecutor.java:847)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$1.run(SingleThreadedExecutor.java:453)
at java.lang.Thread.run(Thread.java:745)
INFO [org.netbeans.gradle.project.query.GradleSourceEncodingQuery]: The character encoding of a file has been requested from a wrong thread.
java.lang.IllegalStateException: This method cannot be access from the PROJECT_PROCESSOR.
at org.netbeans.gradle.project.properties.ProjectPropertiesProxy.waitForLoaded(ProjectPropertiesProxy.java:116)
at org.netbeans.gradle.project.NbGradleProject.getLoadedProperties(NbGradleProject.java:391)
[catch] at org.netbeans.gradle.project.query.GradleSourceEncodingQuery.getEncoding(GradleSourceEncodingQuery.java:28)
at org.netbeans.modules.projectapi.ProjectFileEncodingQueryImplementation.getEncoding(ProjectFileEncodingQueryImplementation.java:76)
at org.netbeans.api.queries.FileEncodingQuery.getEncoding(FileEncodingQuery.java:96)
at org.openide.text.DataEditorSupport.openDocument(DataEditorSupport.java:582)
at org.openide.text.NbDocument.getDocument(NbDocument.java:616)
at org.netbeans.modules.debugger.jpda.projects.LineTranslations$BreakpointLineUpdater.attach(LineTranslations.java:447)
at org.netbeans.modules.debugger.jpda.projects.LineTranslations.registerForLineUpdates(LineTranslations.java:321)
at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationManager.breakpointAdded(BreakpointAnnotationManager.java:89)
at org.netbeans.api.debugger.DebuggerManager.fireBreakpointCreated(DebuggerManager.java:883)
at org.netbeans.api.debugger.DebuggerManager.initBreakpoints(DebuggerManager.java:1055)
at org.netbeans.api.debugger.DebuggerManager.addBreakpoint(DebuggerManager.java:532)
at org.netbeans.modules.debugger.jpda.visual.VisualDebuggerListener.engineAdded(VisualDebuggerListener.java:205)
at org.netbeans.api.debugger.DebuggerManager.fireEngineAdded(DebuggerManager.java:1415)
at org.netbeans.api.debugger.DebuggerManager.addEngine(DebuggerManager.java:1638)
at org.netbeans.api.debugger.Session.addLanguage(Session.java:375)
at org.netbeans.api.debugger.DebuggerManager.startDebugging(DebuggerManager.java:381)
at org.netbeans.api.debugger.jpda.JPDADebugger.attach(JPDADebugger.java:311)
at org.netbeans.gradle.project.tasks.AttacherListener.doAttach(AttacherListener.java:121)
at org.netbeans.gradle.project.tasks.AttacherListener.access$000(AttacherListener.java:37)
at org.netbeans.gradle.project.tasks.AttacherListener$1.execute(AttacherListener.java:130)
at org.jtrim.concurrent.AbstractTaskExecutorService$1.execute(AbstractTaskExecutorService.java:142)
at org.jtrim.concurrent.AbstractTaskExecutorService$FunctionWrapper.execute(AbstractTaskExecutorService.java:270)
at org.jtrim.concurrent.AbstractTaskExecutorService$TaskOfAbstractExecutor.execute(AbstractTaskExecutorService.java:340)
at org.jtrim.concurrent.Tasks$RunOnceCancelableTask.execute(Tasks.java:342)
at org.jtrim.concurrent.SingleThreadedExecutor$QueuedItem.runTask(SingleThreadedExecutor.java:905)
at org.jtrim.concurrent.SingleThreadedExecutor$QueuedItem.access$1200(SingleThreadedExecutor.java:884)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.executeTask(SingleThreadedExecutor.java:798)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.processQueue(SingleThreadedExecutor.java:813)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.run(SingleThreadedExecutor.java:847)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$1.run(SingleThreadedExecutor.java:453)
at java.lang.Thread.run(Thread.java:745)
INFO [org.netbeans.gradle.project.query.GradleSourceEncodingQuery]: The character encoding of a file has been requested from a wrong thread.
java.lang.IllegalStateException: This method cannot be access from the PROJECT_PROCESSOR.
at org.netbeans.gradle.project.properties.ProjectPropertiesProxy.waitForLoaded(ProjectPropertiesProxy.java:116)
at org.netbeans.gradle.project.NbGradleProject.getLoadedProperties(NbGradleProject.java:391)
[catch] at org.netbeans.gradle.project.query.GradleSourceEncodingQuery.getEncoding(GradleSourceEncodingQuery.java:28)
at org.netbeans.modules.projectapi.ProjectFileEncodingQueryImplementation.getEncoding(ProjectFileEncodingQueryImplementation.java:76)
at org.netbeans.api.queries.FileEncodingQuery.getEncoding(FileEncodingQuery.java:96)
at org.openide.text.DataEditorSupport.openDocument(DataEditorSupport.java:582)
at org.openide.text.NbDocument.getDocument(NbDocument.java:616)
at org.netbeans.modules.debugger.jpda.projects.LineTranslations$BreakpointLineUpdater.attach(LineTranslations.java:447)
at org.netbeans.modules.debugger.jpda.projects.LineTranslations.registerForLineUpdates(LineTranslations.java:321)
at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationManager.breakpointAdded(BreakpointAnnotationManager.java:89)
at org.netbeans.api.debugger.DebuggerManager.fireBreakpointCreated(DebuggerManager.java:883)
at org.netbeans.api.debugger.DebuggerManager.initBreakpoints(DebuggerManager.java:1055)
at org.netbeans.api.debugger.DebuggerManager.addBreakpoint(DebuggerManager.java:532)
at org.netbeans.modules.debugger.jpda.visual.VisualDebuggerListener.engineAdded(VisualDebuggerListener.java:205)
at org.netbeans.api.debugger.DebuggerManager.fireEngineAdded(DebuggerManager.java:1415)
at org.netbeans.api.debugger.DebuggerManager.addEngine(DebuggerManager.java:1638)
at org.netbeans.api.debugger.Session.addLanguage(Session.java:375)
at org.netbeans.api.debugger.DebuggerManager.startDebugging(DebuggerManager.java:381)
at org.netbeans.api.debugger.jpda.JPDADebugger.attach(JPDADebugger.java:311)
at org.netbeans.gradle.project.tasks.AttacherListener.doAttach(AttacherListener.java:121)
at org.netbeans.gradle.project.tasks.AttacherListener.access$000(AttacherListener.java:37)
at org.netbeans.gradle.project.tasks.AttacherListener$1.execute(AttacherListener.java:130)
at org.jtrim.concurrent.AbstractTaskExecutorService$1.execute(AbstractTaskExecutorService.java:142)
at org.jtrim.concurrent.AbstractTaskExecutorService$FunctionWrapper.execute(AbstractTaskExecutorService.java:270)
at org.jtrim.concurrent.AbstractTaskExecutorService$TaskOfAbstractExecutor.execute(AbstractTaskExecutorService.java:340)
at org.jtrim.concurrent.Tasks$RunOnceCancelableTask.execute(Tasks.java:342)
at org.jtrim.concurrent.SingleThreadedExecutor$QueuedItem.runTask(SingleThreadedExecutor.java:905)
at org.jtrim.concurrent.SingleThreadedExecutor$QueuedItem.access$1200(SingleThreadedExecutor.java:884)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.executeTask(SingleThreadedExecutor.java:798)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.processQueue(SingleThreadedExecutor.java:813)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.run(SingleThreadedExecutor.java:847)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$1.run(SingleThreadedExecutor.java:453)
at java.lang.Thread.run(Thread.java:745)
INFO [org.netbeans.gradle.project.query.GradleSourceEncodingQuery]: The character encoding of a file has been requested from a wrong thread.
java.lang.IllegalStateException: This method cannot be access from the PROJECT_PROCESSOR.
at org.netbeans.gradle.project.properties.ProjectPropertiesProxy.waitForLoaded(ProjectPropertiesProxy.java:116)
at org.netbeans.gradle.project.NbGradleProject.getLoadedProperties(NbGradleProject.java:391)
[catch] at org.netbeans.gradle.project.query.GradleSourceEncodingQuery.getEncoding(GradleSourceEncodingQuery.java:28)
at org.netbeans.modules.projectapi.ProjectFileEncodingQueryImplementation.getEncoding(ProjectFileEncodingQueryImplementation.java:76)
at org.netbeans.api.queries.FileEncodingQuery.getEncoding(FileEncodingQuery.java:96)
at org.openide.text.DataEditorSupport.openDocument(DataEditorSupport.java:582)
at org.openide.text.NbDocument.getDocument(NbDocument.java:616)
at org.netbeans.modules.debugger.jpda.projects.LineTranslations$BreakpointLineUpdater.attach(LineTranslations.java:447)
at org.netbeans.modules.debugger.jpda.projects.LineTranslations.registerForLineUpdates(LineTranslations.java:321)
at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationManager.breakpointAdded(BreakpointAnnotationManager.java:89)
at org.netbeans.api.debugger.DebuggerManager.fireBreakpointCreated(DebuggerManager.java:883)
at org.netbeans.api.debugger.DebuggerManager.initBreakpoints(DebuggerManager.java:1055)
at org.netbeans.api.debugger.DebuggerManager.addBreakpoint(DebuggerManager.java:532)
at org.netbeans.modules.debugger.jpda.visual.VisualDebuggerListener.engineAdded(VisualDebuggerListener.java:205)
at org.netbeans.api.debugger.DebuggerManager.fireEngineAdded(DebuggerManager.java:1415)
at org.netbeans.api.debugger.DebuggerManager.addEngine(DebuggerManager.java:1638)
at org.netbeans.api.debugger.Session.addLanguage(Session.java:375)
at org.netbeans.api.debugger.DebuggerManager.startDebugging(DebuggerManager.java:381)
at org.netbeans.api.debugger.jpda.JPDADebugger.attach(JPDADebugger.java:311)
at org.netbeans.gradle.project.tasks.AttacherListener.doAttach(AttacherListener.java:121)
at org.netbeans.gradle.project.tasks.AttacherListener.access$000(AttacherListener.java:37)
at org.netbeans.gradle.project.tasks.AttacherListener$1.execute(AttacherListener.java:130)
at org.jtrim.concurrent.AbstractTaskExecutorService$1.execute(AbstractTaskExecutorService.java:142)
at org.jtrim.concurrent.AbstractTaskExecutorService$FunctionWrapper.execute(AbstractTaskExecutorService.java:270)
at org.jtrim.concurrent.AbstractTaskExecutorService$TaskOfAbstractExecutor.execute(AbstractTaskExecutorService.java:340)
at org.jtrim.concurrent.Tasks$RunOnceCancelableTask.execute(Tasks.java:342)
at org.jtrim.concurrent.SingleThreadedExecutor$QueuedItem.runTask(SingleThreadedExecutor.java:905)
at org.jtrim.concurrent.SingleThreadedExecutor$QueuedItem.access$1200(SingleThreadedExecutor.java:884)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.executeTask(SingleThreadedExecutor.java:798)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.processQueue(SingleThreadedExecutor.java:813)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.run(SingleThreadedExecutor.java:847)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$1.run(SingleThreadedExecutor.java:453)
at java.lang.Thread.run(Thread.java:745)
INFO [org.netbeans.gradle.project.query.GradleSourceEncodingQuery]: The character encoding of a file has been requested from a wrong thread.
java.lang.IllegalStateException: This method cannot be access from the PROJECT_PROCESSOR.
at org.netbeans.gradle.project.properties.ProjectPropertiesProxy.waitForLoaded(ProjectPropertiesProxy.java:116)
at org.netbeans.gradle.project.NbGradleProject.getLoadedProperties(NbGradleProject.java:391)
[catch] at org.netbeans.gradle.project.query.GradleSourceEncodingQuery.getEncoding(GradleSourceEncodingQuery.java:28)
at org.netbeans.modules.projectapi.ProjectFileEncodingQueryImplementation.getEncoding(ProjectFileEncodingQueryImplementation.java:76)
at org.netbeans.api.queries.FileEncodingQuery.getEncoding(FileEncodingQuery.java:96)
at org.openide.text.DataEditorSupport.openDocument(DataEditorSupport.java:582)
at org.openide.text.PositionRef$Manager$OffsetKind.getLine(PositionRef.java:689)
at org.openide.text.PositionRef.getLine(PositionRef.java:181)
at org.openide.text.DocumentLine.getLineNumber(DocumentLine.java:123)
at org.openide.text.DocumentLine.equals(DocumentLine.java:253)
at java.util.WeakHashMap.eq(WeakHashMap.java:344)
at java.util.WeakHashMap.get(WeakHashMap.java:469)
at org.openide.text.Line$Set.registerLine(Line.java:562)
at org.openide.text.DocumentLine$Set.access$201(DocumentLine.java:920)
at org.openide.text.DocumentLine$Set$1DocumentRenderer.run(DocumentLine.java:1089)
at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1391)
at org.openide.text.DocumentLine$Set.safelyRegisterLine(DocumentLine.java:1095)
at org.openide.text.DocumentLine$Set.getCurrent(DocumentLine.java:1060)
at org.netbeans.modules.debugger.jpda.projects.LineTranslations$BreakpointLineUpdater.attach(LineTranslations.java:439)
at org.netbeans.modules.debugger.jpda.projects.LineTranslations.registerForLineUpdates(LineTranslations.java:321)
at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationManager.breakpointAdded(BreakpointAnnotationManager.java:89)
at org.netbeans.api.debugger.DebuggerManager.fireBreakpointCreated(DebuggerManager.java:883)
at org.netbeans.api.debugger.DebuggerManager.initBreakpoints(DebuggerManager.java:1055)
at org.netbeans.api.debugger.DebuggerManager.addBreakpoint(DebuggerManager.java:532)
at org.netbeans.modules.debugger.jpda.visual.VisualDebuggerListener.engineAdded(VisualDebuggerListener.java:205)
at org.netbeans.api.debugger.DebuggerManager.fireEngineAdded(DebuggerManager.java:1415)
at org.netbeans.api.debugger.DebuggerManager.addEngine(DebuggerManager.java:1638)
at org.netbeans.api.debugger.Session.addLanguage(Session.java:375)
at org.netbeans.api.debugger.DebuggerManager.startDebugging(DebuggerManager.java:381)
at org.netbeans.api.debugger.jpda.JPDADebugger.attach(JPDADebugger.java:311)
at org.netbeans.gradle.project.tasks.AttacherListener.doAttach(AttacherListener.java:121)
at org.netbeans.gradle.project.tasks.AttacherListener.access$000(AttacherListener.java:37)
at org.netbeans.gradle.project.tasks.AttacherListener$1.execute(AttacherListener.java:130)
at org.jtrim.concurrent.AbstractTaskExecutorService$1.execute(AbstractTaskExecutorService.java:142)
at org.jtrim.concurrent.AbstractTaskExecutorService$FunctionWrapper.execute(AbstractTaskExecutorService.java:270)
at org.jtrim.concurrent.AbstractTaskExecutorService$TaskOfAbstractExecutor.execute(AbstractTaskExecutorService.java:340)
at org.jtrim.concurrent.Tasks$RunOnceCancelableTask.execute(Tasks.java:342)
at org.jtrim.concurrent.SingleThreadedExecutor$QueuedItem.runTask(SingleThreadedExecutor.java:905)
at org.jtrim.concurrent.SingleThreadedExecutor$QueuedItem.access$1200(SingleThreadedExecutor.java:884)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.executeTask(SingleThreadedExecutor.java:798)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.processQueue(SingleThreadedExecutor.java:813)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.run(SingleThreadedExecutor.java:847)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$1.run(SingleThreadedExecutor.java:453)
at java.lang.Thread.run(Thread.java:745)
INFO [org.netbeans.gradle.project.query.GradleSourceEncodingQuery]: The character encoding of a file has been requested from a wrong thread.
java.lang.IllegalStateException: This method cannot be access from the PROJECT_PROCESSOR.
at org.netbeans.gradle.project.properties.ProjectPropertiesProxy.waitForLoaded(ProjectPropertiesProxy.java:116)
at org.netbeans.gradle.project.NbGradleProject.getLoadedProperties(NbGradleProject.java:391)
[catch] at org.netbeans.gradle.project.query.GradleSourceEncodingQuery.getEncoding(GradleSourceEncodingQuery.java:28)
at org.netbeans.modules.projectapi.ProjectFileEncodingQueryImplementation.getEncoding(ProjectFileEncodingQueryImplementation.java:76)
at org.netbeans.api.queries.FileEncodingQuery.getEncoding(FileEncodingQuery.java:96)
at org.openide.text.DataEditorSupport.openDocument(DataEditorSupport.java:582)
at org.openide.text.PositionRef$Manager$DocumentRenderer.run(PositionRef.java:1027)
at org.openide.text.PositionRef$Manager$DocumentRenderer.render(PositionRef.java:911)
at org.openide.text.PositionRef$Manager$DocumentRenderer.renderToInt(PositionRef.java:945)
at org.openide.text.PositionRef$Manager$DocumentRenderer.renderToIntIOE(PositionRef.java:935)
at org.openide.text.PositionRef$Manager$OffsetKind.getLine(PositionRef.java:691)
at org.openide.text.PositionRef.getLine(PositionRef.java:181)
at org.openide.text.DocumentLine.getLineNumber(DocumentLine.java:123)
at org.openide.text.DocumentLine.equals(DocumentLine.java:253)
at java.util.WeakHashMap.eq(WeakHashMap.java:344)
at java.util.WeakHashMap.get(WeakHashMap.java:469)
at org.openide.text.Line$Set.registerLine(Line.java:562)
at org.openide.text.DocumentLine$Set.access$201(DocumentLine.java:920)
at org.openide.text.DocumentLine$Set$1DocumentRenderer.run(DocumentLine.java:1089)
at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1391)
at org.openide.text.DocumentLine$Set.safelyRegisterLine(DocumentLine.java:1095)
at org.openide.text.DocumentLine$Set.getCurrent(DocumentLine.java:1060)
at org.netbeans.modules.debugger.jpda.projects.LineTranslations$BreakpointLineUpdater.attach(LineTranslations.java:439)
at org.netbeans.modules.debugger.jpda.projects.LineTranslations.registerForLineUpdates(LineTranslations.java:321)
at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationManager.breakpointAdded(BreakpointAnnotationManager.java:89)
at org.netbeans.api.debugger.DebuggerManager.fireBreakpointCreated(DebuggerManager.java:883)
at org.netbeans.api.debugger.DebuggerManager.initBreakpoints(DebuggerManager.java:1055)
at org.netbeans.api.debugger.DebuggerManager.addBreakpoint(DebuggerManager.java:532)
at org.netbeans.modules.debugger.jpda.visual.VisualDebuggerListener.engineAdded(VisualDebuggerListener.java:205)
at org.netbeans.api.debugger.DebuggerManager.fireEngineAdded(DebuggerManager.java:1415)
at org.netbeans.api.debugger.DebuggerManager.addEngine(DebuggerManager.java:1638)
at org.netbeans.api.debugger.Session.addLanguage(Session.java:375)
at org.netbeans.api.debugger.DebuggerManager.startDebugging(DebuggerManager.java:381)
at org.netbeans.api.debugger.jpda.JPDADebugger.attach(JPDADebugger.java:311)
at org.netbeans.gradle.project.tasks.AttacherListener.doAttach(AttacherListener.java:121)
at org.netbeans.gradle.project.tasks.AttacherListener.access$000(AttacherListener.java:37)
at org.netbeans.gradle.project.tasks.AttacherListener$1.execute(AttacherListener.java:130)
at org.jtrim.concurrent.AbstractTaskExecutorService$1.execute(AbstractTaskExecutorService.java:142)
at org.jtrim.concurrent.AbstractTaskExecutorService$FunctionWrapper.execute(AbstractTaskExecutorService.java:270)
at org.jtrim.concurrent.AbstractTaskExecutorService$TaskOfAbstractExecutor.execute(AbstractTaskExecutorService.java:340)
at org.jtrim.concurrent.Tasks$RunOnceCancelableTask.execute(Tasks.java:342)
at org.jtrim.concurrent.SingleThreadedExecutor$QueuedItem.runTask(SingleThreadedExecutor.java:905)
at org.jtrim.concurrent.SingleThreadedExecutor$QueuedItem.access$1200(SingleThreadedExecutor.java:884)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.executeTask(SingleThreadedExecutor.java:798)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.processQueue(SingleThreadedExecutor.java:813)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.run(SingleThreadedExecutor.java:847)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$1.run(SingleThreadedExecutor.java:453)
at java.lang.Thread.run(Thread.java:745)
INFO [org.netbeans.gradle.project.query.GradleSourceEncodingQuery]: The character encoding of a file has been requested from a wrong thread.
java.lang.IllegalStateException: This method cannot be access from the PROJECT_PROCESSOR.
at org.netbeans.gradle.project.properties.ProjectPropertiesProxy.waitForLoaded(ProjectPropertiesProxy.java:116)
at org.netbeans.gradle.project.NbGradleProject.getLoadedProperties(NbGradleProject.java:391)
[catch] at org.netbeans.gradle.project.query.GradleSourceEncodingQuery.getEncoding(GradleSourceEncodingQuery.java:28)
at org.netbeans.modules.projectapi.ProjectFileEncodingQueryImplementation.getEncoding(ProjectFileEncodingQueryImplementation.java:76)
at org.netbeans.api.queries.FileEncodingQuery.getEncoding(FileEncodingQuery.java:96)
at org.openide.text.DataEditorSupport.openDocument(DataEditorSupport.java:582)
at org.openide.text.PositionRef$Manager$OffsetKind.getLine(PositionRef.java:689)
at org.openide.text.PositionRef.getLine(PositionRef.java:181)
at org.openide.text.DocumentLine.getLineNumber(DocumentLine.java:123)
at org.openide.text.DocumentLine.equals(DocumentLine.java:253)
at java.util.WeakHashMap.eq(WeakHashMap.java:344)
at java.util.WeakHashMap.put(WeakHashMap.java:522)
at org.openide.text.Line$Set.registerLine(Line.java:570)
at org.openide.text.DocumentLine$Set.access$201(DocumentLine.java:920)
at org.openide.text.DocumentLine$Set$1DocumentRenderer.run(DocumentLine.java:1089)
at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1391)
at org.openide.text.DocumentLine$Set.safelyRegisterLine(DocumentLine.java:1095)
at org.openide.text.DocumentLine$Set.getCurrent(DocumentLine.java:1060)
at org.netbeans.modules.debugger.jpda.projects.LineTranslations$BreakpointLineUpdater.attach(LineTranslations.java:439)
at org.netbeans.modules.debugger.jpda.projects.LineTranslations.registerForLineUpdates(LineTranslations.java:321)
at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationManager.breakpointAdded(BreakpointAnnotationManager.java:89)
at org.netbeans.api.debugger.DebuggerManager.fireBreakpointCreated(DebuggerManager.java:883)
at org.netbeans.api.debugger.DebuggerManager.initBreakpoints(DebuggerManager.java:1055)
at org.netbeans.api.debugger.DebuggerManager.addBreakpoint(DebuggerManager.java:532)
at org.netbeans.modules.debugger.jpda.visual.VisualDebuggerListener.engineAdded(VisualDebuggerListener.java:205)
at org.netbeans.api.debugger.DebuggerManager.fireEngineAdded(DebuggerManager.java:1415)
at org.netbeans.api.debugger.DebuggerManager.addEngine(DebuggerManager.java:1638)
at org.netbeans.api.debugger.Session.addLanguage(Session.java:375)
at org.netbeans.api.debugger.DebuggerManager.startDebugging(DebuggerManager.java:381)
at org.netbeans.api.debugger.jpda.JPDADebugger.attach(JPDADebugger.java:311)
at org.netbeans.gradle.project.tasks.AttacherListener.doAttach(AttacherListener.java:121)
at org.netbeans.gradle.project.tasks.AttacherListener.access$000(AttacherListener.java:37)
at org.netbeans.gradle.project.tasks.AttacherListener$1.execute(AttacherListener.java:130)
at org.jtrim.concurrent.AbstractTaskExecutorService$1.execute(AbstractTaskExecutorService.java:142)
at org.jtrim.concurrent.AbstractTaskExecutorService$FunctionWrapper.execute(AbstractTaskExecutorService.java:270)
at org.jtrim.concurrent.AbstractTaskExecutorService$TaskOfAbstractExecutor.execute(AbstractTaskExecutorService.java:340)
at org.jtrim.concurrent.Tasks$RunOnceCancelableTask.execute(Tasks.java:342)
at org.jtrim.concurrent.SingleThreadedExecutor$QueuedItem.runTask(SingleThreadedExecutor.java:905)
at org.jtrim.concurrent.SingleThreadedExecutor$QueuedItem.access$1200(SingleThreadedExecutor.java:884)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.executeTask(SingleThreadedExecutor.java:798)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.processQueue(SingleThreadedExecutor.java:813)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.run(SingleThreadedExecutor.java:847)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$1.run(SingleThreadedExecutor.java:453)
at java.lang.Thread.run(Thread.java:745)
INFO [org.netbeans.gradle.project.query.GradleSourceEncodingQuery]: The character encoding of a file has been requested from a wrong thread.
java.lang.IllegalStateException: This method cannot be access from the PROJECT_PROCESSOR.
at org.netbeans.gradle.project.properties.ProjectPropertiesProxy.waitForLoaded(ProjectPropertiesProxy.java:116)
at org.netbeans.gradle.project.NbGradleProject.getLoadedProperties(NbGradleProject.java:391)
[catch] at org.netbeans.gradle.project.query.GradleSourceEncodingQuery.getEncoding(GradleSourceEncodingQuery.java:28)
at org.netbeans.modules.projectapi.ProjectFileEncodingQueryImplementation.getEncoding(ProjectFileEncodingQueryImplementation.java:76)
at org.netbeans.api.queries.FileEncodingQuery.getEncoding(FileEncodingQuery.java:96)
at org.openide.text.DataEditorSupport.openDocument(DataEditorSupport.java:582)
at org.openide.text.PositionRef$Manager$DocumentRenderer.run(PositionRef.java:1027)
at org.openide.text.PositionRef$Manager$DocumentRenderer.render(PositionRef.java:911)
at org.openide.text.PositionRef$Manager$DocumentRenderer.renderToInt(PositionRef.java:945)
at org.openide.text.PositionRef$Manager$DocumentRenderer.renderToIntIOE(PositionRef.java:935)
at org.openide.text.PositionRef$Manager$OffsetKind.getLine(PositionRef.java:691)
at org.openide.text.PositionRef.getLine(PositionRef.java:181)
at org.openide.text.DocumentLine.getLineNumber(DocumentLine.java:123)
at org.openide.text.DocumentLine.equals(DocumentLine.java:253)
at java.util.WeakHashMap.eq(WeakHashMap.java:344)
at java.util.WeakHashMap.put(WeakHashMap.java:522)
at org.openide.text.Line$Set.registerLine(Line.java:570)
at org.openide.text.DocumentLine$Set.access$201(DocumentLine.java:920)
at org.openide.text.DocumentLine$Set$1DocumentRenderer.run(DocumentLine.java:1089)
at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1391)
at org.openide.text.DocumentLine$Set.safelyRegisterLine(DocumentLine.java:1095)
at org.openide.text.DocumentLine$Set.getCurrent(DocumentLine.java:1060)
at org.netbeans.modules.debugger.jpda.projects.LineTranslations$BreakpointLineUpdater.attach(LineTranslations.java:439)
at org.netbeans.modules.debugger.jpda.projects.LineTranslations.registerForLineUpdates(LineTranslations.java:321)
at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationManager.breakpointAdded(BreakpointAnnotationManager.java:89)
at org.netbeans.api.debugger.DebuggerManager.fireBreakpointCreated(DebuggerManager.java:883)
at org.netbeans.api.debugger.DebuggerManager.initBreakpoints(DebuggerManager.java:1055)
at org.netbeans.api.debugger.DebuggerManager.addBreakpoint(DebuggerManager.java:532)
at org.netbeans.modules.debugger.jpda.visual.VisualDebuggerListener.engineAdded(VisualDebuggerListener.java:205)
at org.netbeans.api.debugger.DebuggerManager.fireEngineAdded(DebuggerManager.java:1415)
at org.netbeans.api.debugger.DebuggerManager.addEngine(DebuggerManager.java:1638)
at org.netbeans.api.debugger.Session.addLanguage(Session.java:375)
at org.netbeans.api.debugger.DebuggerManager.startDebugging(DebuggerManager.java:381)
at org.netbeans.api.debugger.jpda.JPDADebugger.attach(JPDADebugger.java:311)
at org.netbeans.gradle.project.tasks.AttacherListener.doAttach(AttacherListener.java:121)
at org.netbeans.gradle.project.tasks.AttacherListener.access$000(AttacherListener.java:37)
at org.netbeans.gradle.project.tasks.AttacherListener$1.execute(AttacherListener.java:130)
at org.jtrim.concurrent.AbstractTaskExecutorService$1.execute(AbstractTaskExecutorService.java:142)
at org.jtrim.concurrent.AbstractTaskExecutorService$FunctionWrapper.execute(AbstractTaskExecutorService.java:270)
at org.jtrim.concurrent.AbstractTaskExecutorService$TaskOfAbstractExecutor.execute(AbstractTaskExecutorService.java:340)
at org.jtrim.concurrent.Tasks$RunOnceCancelableTask.execute(Tasks.java:342)
at org.jtrim.concurrent.SingleThreadedExecutor$QueuedItem.runTask(SingleThreadedExecutor.java:905)
at org.jtrim.concurrent.SingleThreadedExecutor$QueuedItem.access$1200(SingleThreadedExecutor.java:884)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.executeTask(SingleThreadedExecutor.java:798)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.processQueue(SingleThreadedExecutor.java:813)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.run(SingleThreadedExecutor.java:847)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$1.run(SingleThreadedExecutor.java:453)
at java.lang.Thread.run(Thread.java:745)
INFO [org.netbeans.gradle.project.query.GradleSourceEncodingQuery]: The character encoding of a file has been requested from a wrong thread.
java.lang.IllegalStateException: This method cannot be access from the PROJECT_PROCESSOR.
at org.netbeans.gradle.project.properties.ProjectPropertiesProxy.waitForLoaded(ProjectPropertiesProxy.java:116)
at org.netbeans.gradle.project.NbGradleProject.getLoadedProperties(NbGradleProject.java:391)
[catch] at org.netbeans.gradle.project.query.GradleSourceEncodingQuery.getEncoding(GradleSourceEncodingQuery.java:28)
at org.netbeans.modules.projectapi.ProjectFileEncodingQueryImplementation.getEncoding(ProjectFileEncodingQueryImplementation.java:76)
at org.netbeans.api.queries.FileEncodingQuery.getEncoding(FileEncodingQuery.java:96)
at org.openide.text.DataEditorSupport.openDocument(DataEditorSupport.java:582)
at org.openide.text.NbDocument.getDocument(NbDocument.java:616)
at org.netbeans.modules.debugger.jpda.projects.LineTranslations$BreakpointLineUpdater.attach(LineTranslations.java:447)
at org.netbeans.modules.debugger.jpda.projects.LineTranslations.registerForLineUpdates(LineTranslations.java:321)
at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationManager.breakpointAdded(BreakpointAnnotationManager.java:89)
at org.netbeans.api.debugger.DebuggerManager.fireBreakpointCreated(DebuggerManager.java:883)
at org.netbeans.api.debugger.DebuggerManager.initBreakpoints(DebuggerManager.java:1055)
at org.netbeans.api.debugger.DebuggerManager.addBreakpoint(DebuggerManager.java:532)
at org.netbeans.modules.debugger.jpda.visual.VisualDebuggerListener.engineAdded(VisualDebuggerListener.java:205)
at org.netbeans.api.debugger.DebuggerManager.fireEngineAdded(DebuggerManager.java:1415)
at org.netbeans.api.debugger.DebuggerManager.addEngine(DebuggerManager.java:1638)
at org.netbeans.api.debugger.Session.addLanguage(Session.java:375)
at org.netbeans.api.debugger.DebuggerManager.startDebugging(DebuggerManager.java:381)
at org.netbeans.api.debugger.jpda.JPDADebugger.attach(JPDADebugger.java:311)
at org.netbeans.gradle.project.tasks.AttacherListener.doAttach(AttacherListener.java:121)
at org.netbeans.gradle.project.tasks.AttacherListener.access$000(AttacherListener.java:37)
at org.netbeans.gradle.project.tasks.AttacherListener$1.execute(AttacherListener.java:130)
at org.jtrim.concurrent.AbstractTaskExecutorService$1.execute(AbstractTaskExecutorService.java:142)
at org.jtrim.concurrent.AbstractTaskExecutorService$FunctionWrapper.execute(AbstractTaskExecutorService.java:270)
at org.jtrim.concurrent.AbstractTaskExecutorService$TaskOfAbstractExecutor.execute(AbstractTaskExecutorService.java:340)
at org.jtrim.concurrent.Tasks$RunOnceCancelableTask.execute(Tasks.java:342)
at org.jtrim.concurrent.SingleThreadedExecutor$QueuedItem.runTask(SingleThreadedExecutor.java:905)
at org.jtrim.concurrent.SingleThreadedExecutor$QueuedItem.access$1200(SingleThreadedExecutor.java:884)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.executeTask(SingleThreadedExecutor.java:798)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.processQueue(SingleThreadedExecutor.java:813)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.run(SingleThreadedExecutor.java:847)
at org.jtrim.concurrent.SingleThreadedExecutor$Impl$1.run(SingleThreadedExecutor.java:453)
at java.lang.Thread.run(Thread.java:745)
08-11 11:25:27 INFO normal messages from my app startup follow from here...

@kelemen

This comment has been minimized.

Owner

kelemen commented Aug 11, 2014

Though the exception logged is a problem but is irrelevant in this case (eventually, I'll fix that). However, it seems that JPDADebugger.attach blocks indefinitely. I'm not sure why this could happen but possibly because of a stuck debug process or something else listening on this port. Though in the later case, it is strange that you succeed in attaching later.

How deterministic is this issue for you?

@swpalmer

This comment has been minimized.

swpalmer commented Aug 11, 2014

At the moment it seems to be happening every time.
I've reproduced it with NB 8.0 and 8.0.1RC1. I'm running Gradle 2.0, NB-gradle plugin 1.3.1.

If there is any other experiment to do or information you want me to collect, let me know.

@swpalmer

This comment has been minimized.

swpalmer commented Aug 11, 2014

I'm confused as to why you say the exceptions logged are not relevant.
It is happening during JPDADebugger.attach according to the stack trace, so could it not be the problem?

INFO [org.netbeans.gradle.project.query.GradleSourceEncodingQuery]: The character encoding of a file has been requested from a wrong thread.
java.lang.IllegalStateException: This method cannot be access from the PROJECT_PROCESSOR.
at org.netbeans.gradle.project.properties.ProjectPropertiesProxy.waitForLoaded(ProjectPropertiesProxy.java:116)
...
at org.netbeans.api.debugger.jpda.JPDADebugger.attach(JPDADebugger.java:311)
...

i.e. technically the call to attach never returns because an exception happens instead.. so it may appear that it is taking forever for the attach to happen.

@kelemen

This comment has been minimized.

Owner

kelemen commented Aug 12, 2014

The exception is catched right after it is thrown (i.e., it will not propagate out of attach). The only effect it has is that it does not wait until the properties file is loaded before evaluating the source encoding property. So, the worst case is that it falls back to UTF-8. However, by the time you execute a task, the properties file has already been read, so the exception doesn't cause any issue. Regardless, it is unfortunate.

I have tried with debugging with Gradle 2.0 and cannot reproduce the issue. Although, the exception you see is not logged for me which indicates that attach goes on a different code path for you.

If you can build the plugin yourself, you may try this change in the sources of AttacherListener:

  • Declare private static final MonitorableTaskExecutorService ATTACH_PROCESSOR = NbTaskExecutors.newExecutor("Debug-Attach-Processor", 1);
  • Replace NbGradleProject.PROJECT_PROCESSOR in onDebugeeListening with ATTACH_PROCESSOR.
@swpalmer

This comment has been minimized.

swpalmer commented Aug 12, 2014

I applied the above patch and I'm not experiencing the problem so far. I suppose I should have tried building from the latest source before I applied the patch so I could confirm that it wasn't a factor. In any case, I'm happy and I'm not seeing those exceptions in messages.log anymore either.
Thanks.

@kelemen kelemen added the bug label Aug 13, 2014

@kelemen

This comment has been minimized.

Owner

kelemen commented Aug 13, 2014

It's good to know that this helps. It is most likely then that some method - which JPDADebugger.attach calls - waits for a task submitted to the PROJECT_PROCESSOR. Though I don't know what it could be. Regardless, the executor must be replaced anyway.

kelemen added a commit that referenced this issue Aug 20, 2014

@kelemen kelemen closed this Aug 20, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment