com.sun.jdi.IncompatibleThreadStateException at com.sun.tools.jdi.ClassTypeImpl.invokeMethod(ClassTypeImpl.java:231) at org.netbeans.modules.debugger.jpda.jdi.ClassTypeWrapper.invokeMethod(ClassTypeWrapper.java:280) Caused: org.netbeans.modules.debugger.jpda.visual.RetrievalException at org.netbeans.modules.debugger.jpda.visual.RemoteAWTScreenshot$1.run(RemoteAWTScreenshot.java:445) at org.netbeans.modules.debugger.jpda.visual.RemoteServices.runOnStoppedThread(RemoteServices.java:396) at org.netbeans.modules.debugger.jpda.visual.RemoteAWTScreenshot.take(RemoteAWTScreenshot.java:234) at org.netbeans.modules.debugger.jpda.visual.RemoteAWTScreenshot.takeCurrent(RemoteAWTScreenshot.java:178) at org.netbeans.modules.debugger.jpda.visual.RemoteAWTScreenshot.takeCurrent(RemoteAWTScreenshot.java:166) at org.netbeans.modules.debugger.jpda.visual.actions.TakeScreenshotActionProvider.doAction(TakeScreenshotActionProvider.java:110) at org.netbeans.spi.debugger.ActionsProvider$1.run(ActionsProvider.java:128) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1411) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1991)