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.
- start with *fresh* user dir using development build - create web project - create entities from sample database selecting all tables, make sure you also create a Persistence Unit for the sample database. - download 'REST Web Services' plugin from Update Center - Right click on entities classes package and do new 'RESTful Web Services from Entity Classes', select all entities. - Close the web project - Reopen the web project. Some times the IDE hang. This happen to many people, and for me its more than one time. Thread dump is attached.
Created attachment 50846 [details] hang on reopen we project
From the dump, I note that SourceForBinaryQueryImpl.findSourceRoots is blocked by GlobalSourcePath$SourcePathImplementation.firePropertyChange(). I note the usage of Logger on RepositoryUpdater.java:267 calling of toString() is too costly. Even in normal Logger.Level run, the argument to the log() call are evaluated first, causing unecessary performance lost and potential threading contention.
toString() called only if (LOGGER.isLoggable(Level.FINER)) Checking in RepositoryUpdater.java; /cvs/java/source/src/org/netbeans/modules/java/source/usages/RepositoryUpdater.java,v <-- RepositoryUpdater.java new revision: 1.97; previous revision: 1.96 done