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.
java.lang.IllegalStateException: getUrl called from AWT thread at org.netbeans.modules.profiler.ui.profilepoints.ProfilePointUI$Location.getUrl(ProfilePointUI.java:297) at org.netbeans.modules.profiler.ui.profilepoints.ProfilePointUI$Location.toMethodSourceCodeSelection(ProfilePointUI.java:351) at org.netbeans.modules.profiler.ui.profilepoints.ProfilePointUI$Location.toSourceCodeSelection(ProfilePointUI.java:338) at org.netbeans.modules.profiler.ui.profilepoints.ProfilePointsManager.overrideRootMethods(ProfilePointsManager.java:147) at org.netbeans.modules.profiler.ui.profilepoints.ProfilePointsManager.startNewSession(ProfilePointsManager.java:135) at org.netbeans.modules.profiler.NetBeansProfiler.connectToStartedApp(NetBeansProfiler.java:520) at org.netbeans.modules.profiler.ant.NBProfileDirectTask$1.run(NBProfileDirectTask.java:297) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) [catch] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
I have specified only start profiling and stop profiling points and the exception is throwing always I start profiling by profiling points.
Your stacktrace is out of date and I cannot reproduce it. Please attach updated stacktrace and write some steps to reproduce.
It's from daily build of trunk profiler 060526. I have not newer build. There was start and stop profiling points in one method. Nothing more.
updated stacktrace java.lang.IllegalStateException: getUrl called from AWT thread org.netbeans.modules.profiler.ui.profilepoints.ProfilePointUI$Location.getUrl(ProfilePointUI.java:301) org.netbeans.modules.profiler.ui.profilepoints.ProfilePointUI$Location.toMethodSourceCodeSelection(ProfilePointUI.java:355) org.netbeans.modules.profiler.ui.profilepoints.ProfilePointUI$Location.toSourceCodeSelection(ProfilePointUI.java:342) org.netbeans.modules.profiler.ui.profilepoints.ProfilePointsManager.overrideRootMethods(ProfilePointsManager.java:147) org.netbeans.modules.profiler.ui.profilepoints.ProfilePointsManager.startNewSession(ProfilePointsManager.java:135) org.netbeans.modules.profiler.NetBeansProfiler.connectToStartedApp(NetBeansProfiler.java:520) org.netbeans.modules.profiler.ant.NBProfileDirectTask$1.run(NBProfileDirectTask.java:297)
I see, there is something broken there if you specify a profiling point location by a method name.
My check there is intentional to prevent MDR lookup in AWT. So, the first thing I would like to know whether call to NetBeansProfiler.connectToStartedApp is intended to be made from AWT. I guess that starting profiler engine in event dispatching thread is not a good idea. Tomas? Jirka?
those are my words :-)
Yes, this is not a good idea.
Fixed as a side effect of rewrite to Retouche.
verified