Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
8.2, 9.0
-
None
-
None
-
Windows 10, java 1.8.0_161, weblogic 12c, IE 11, NB 9
Description
I'm running a web app from weblogic, starting it from a Windows command prompt, and when I socket attach to the defined port (defined in java config tool), I'm able to debug code, but when I try to get a screen shot of the applet in the browser (IE 11), NB 9 is generating an the following exception:
com.sun.jdi.IncompatibleThreadStateException
at com.sun.tools.jdi.InvokableTypeImpl.invokeMethod(InvokableTypeImpl.java:116)
at org.netbeans.modules.debugger.jpda.jdi.ClassTypeWrapper.invokeMethod(ClassTypeWrapper.java:285)
at org.netbeans.modules.debugger.jpda.visual.RemoteAWTScreenshot$1.run(RemoteAWTScreenshot.java:249)
Caused: org.netbeans.modules.debugger.jpda.visual.RetrievalException
at org.netbeans.modules.debugger.jpda.visual.RemoteAWTScreenshot$1.run(RemoteAWTScreenshot.java:439)
at org.netbeans.modules.debugger.jpda.visual.RemoteServices.runOnStoppedThread(RemoteServices.java:513)
at org.netbeans.modules.debugger.jpda.visual.RemoteAWTScreenshot.take(RemoteAWTScreenshot.java:227)
at org.netbeans.modules.debugger.jpda.visual.RemoteAWTScreenshot.takeCurrent(RemoteAWTScreenshot.java:153)
at org.netbeans.modules.debugger.jpda.visual.RemoteAWTScreenshot.takeCurrent(RemoteAWTScreenshot.java:140)
[catch] at org.netbeans.modules.debugger.jpda.visual.actions.TakeScreenshotActionProvider.doAction(TakeScreenshotActionProvider.java:88)
at org.netbeans.spi.debugger.ActionsProvider$1.run(ActionsProvider.java:106)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
This exception is only produced when trying to take a screen shot of the applet while I'm at a breakpoint in the applet code. If I'm not at a breakpoint, the Taking application screenshot process never completes, and just spins without producing the screen shot of the running java, though the Debugging window does show the thread (see attached screenshot).