[ 
https://issues.apache.org/jira/browse/NETBEANS-1387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Derrick Claar updated NETBEANS-1387:
------------------------------------
     Attachment: appletScreenShotProcessHung.png
    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).

  was:
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)


> When debugging an applet, I expect to be able to take a screen shot from the 
> debug tools
> ----------------------------------------------------------------------------------------
>
>                 Key: NETBEANS-1387
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-1387
>             Project: NetBeans
>          Issue Type: Bug
>          Components: cnd - Debugger
>    Affects Versions: 8.2, 9.0
>         Environment: Windows 10, java 1.8.0_161, weblogic 12c, IE 11, NB 9
>            Reporter: Derrick Claar
>            Priority: Major
>         Attachments: appletScreenShotProcessHung.png
>
>
> 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).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to