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.
Build: NetBeans IDE Dev (Build 201101220001) VM: Java HotSpot(TM) 64-Bit Server VM, 17.1-b03-307, Java(TM) SE Runtime Environment, 1.6.0_22-b04-307-10M3261 OS: Mac OS X User Comments: mithridates: Trying to open a persistence.xml with dblclick. Stacktrace: java.lang.AssertionError: Need to normalize /Users/bbehrens/xcode/Java/libs/ojdbc14.jar! at org.openide.filesystems.FileUtil.addFileChangeListener(FileUtil.java:273) at org.netbeans.api.java.classpath.ClassPath$RootsListener.addRoots(ClassPath.java:1151) at org.netbeans.api.java.classpath.ClassPath.createRoots(ClassPath.java:291) at org.netbeans.api.java.classpath.ClassPath.getRoots(ClassPath.java:266) at org.netbeans.api.java.classpath.ClassPath.findResource(ClassPath.java:409) at org.netbeans.modules.j2ee.persistence.provider.Provider.isOnClassPath(Provider.java:108)
Created attachment 105285 [details] stacktrace
Is it possible to reproduce with fresh installation? Do you have custom (own) lbraries created in nb? How libraries was created? // looks like PersistenceLibrarySupport::getLibraryClassPath create classpath with not normalized paths sometimes(rare, just 3 reports for 6.9 and 3 for 7.0). need some reproducible test case to test/fix.
only 2 out of 7 reports are from persistence calls, it make me feel it's something more general, all have common place with org.netbeans.api.java.classpath.ClassPath$RootsListener.addRoots it may be a problem with classpath or libraries definition. feel free to push back if you feel it should be handled on persistence etc side, I'll try to split it in several issues then (some are indexing, some persistence etc)
I don't know if the problem is in the cp construction or in conversion from FileObject to File. I will add a logging and we will see.
Fixed jet-main e66643bd138f
Integrated into 'main-golden', will be available in build *201102030000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/e66643bd138f User: Tomas Zezula <tzezula@netbeans.org> Log: #194629:[70cat] AssertionError: Need to normalize /Users/bbehrens/xcode/Java/libs/ojdbc14.jar
thanks for fast fix
seems to be gone, thanks.