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.
I have project with some JPanel forms. When I load some of these, netbeans is sometimes blocked for several minutes. Sometimes it is when I load the form, sometimes when I select a subcomponent in the form. I have attached a thread dump where you will see the event queue is busy scanning files. Visually it seems that the bug is somewhere in the Properties table where most of the fields are blank, except the name field of the property action. It is a permanent bug that makes netbeans impossible to work with. "AWT-EventQueue-1" prio=6 tid=0x0104c3d0 nid=0x8d0a00 runnable [0xb363a000..0xb363cd90] Jun 23 09:28:33 erikmartino [0x0-0x22022].NetBeans 6.1[286]: at java.io.UnixFileSystem.canonicalize0(Native Method) Jun 23 09:28:33 erikmartino [0x0-0x22022].NetBeans 6.1[286]: at java.io.UnixFileSystem.canonicalize(UnixFileSystem.java:157) Jun 23 09:28:33 erikmartino [0x0-0x22022].NetBeans 6.1[286]: at java.io.File.getCanonicalPath(File.java:531) Jun 23 09:28:33 erikmartino [0x0-0x22022].NetBeans 6.1[286]: at java.io.File.getCanonicalFile(File.java:555) Jun 23 09:28:33 erikmartino [0x0-0x22022].NetBeans 6.1[286]: at org.openide.filesystems.FileUtil.normalizeFileOnMac(FileUtil.java:1365)
Created attachment 63232 [details] Thread dump when netbeans is unresponsive
Created attachment 63233 [details] Screendump showing properties table partially rendered
Reassigning to "form" for evaluation.
Looks like the app framework support repeatedly searching for the Application class in the project. Does your project use Swing Application Framework? Do you have a valid Application subclass in there? Can you check if the class name is present in the project.xml file? This is the part of stacktrace doing the scan: ... org.netbeans.modules.swingapp.AppFrameworkSupport.scanFolderForApplication(AppFrameworkSupport.java:333) org.netbeans.modules.swingapp.AppFrameworkSupport.findApplicationClass(AppFrameworkSupport.java:310) org.netbeans.modules.swingapp.AppFrameworkSupport.getApplicationClassName(AppFrameworkSupport.java:193) org.netbeans.modules.swingapp.AppFrameworkSupport.getApplicationClassName(AppFrameworkSupport.java:152) org.netbeans.modules.swingapp.ResourceUtils.createDesignResourceMap(ResourceUtils.java:95) org.netbeans.modules.swingapp.ResourceUtils.getDesignResourceMap(ResourceUtils.java:126) org.netbeans.modules.swingapp.ActionManager.getActionsFromFile(ActionManager.java:1273) org.netbeans.modules.swingapp.ActionManager.getActions(ActionManager.java:357) org.netbeans.modules.swingapp.ActionEditor.getApplicationActions(ActionEditor.java:362) org.netbeans.modules.swingapp.ActionEditor.scanForActions(ActionEditor.java:341) org.netbeans.modules.swingapp.ActionEditor.getTags(ActionEditor.java:317) ...
No my project.xml didn't contain any application-class definitions. I created a new project where the line was present and edited my old project.xml to look similar. The GUI builder is now faster than I have ever seen it before :) problem solved. But this is not very user friendly, I would never have guessed that solution. But thanks a lot.
Good to see you were able to fix the problem. I've integrated a fix to store the found application class in the project auxiliary configuration if not stored there yet. http://hg.netbeans.org/main/rev/9fd9393cc576
Integrated into 'main-golden', available in NB_Trunk_Production #296 build Changeset: http://hg.netbeans.org/main/rev/9fd9393cc576 User: Tomas Pavek <tpavek@netbeans.org> Log: #137931: try to store found application class in project even if it was not stored there yet
Product Version: NetBeans IDE Dev (Build 200902161401) Java: 1.6.0_12-ea; Java HotSpot(TM) Server VM 11.0-b17 System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb) Verified