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.

Bug 194629 - [70cat] AssertionError: Need to normalize /Users/bbehrens/xcode/Java/libs/ojdbc14.jar!
Summary: [70cat] AssertionError: Need to normalize /Users/bbehrens/xcode/Java/libs/ojd...
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Classpath (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-23 17:12 UTC by mithridates
Modified: 2011-02-03 20:46 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 167410


Attachments
stacktrace (7.02 KB, text/plain)
2011-01-23 17:12 UTC, mithridates
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mithridates 2011-01-23 17:12:14 UTC
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)
Comment 1 mithridates 2011-01-23 17:12:19 UTC
Created attachment 105285 [details]
stacktrace
Comment 2 Sergey Petrov 2011-01-25 17:36:05 UTC
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.
Comment 3 Sergey Petrov 2011-02-02 16:59:11 UTC
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)
Comment 4 Tomas Zezula 2011-02-02 17:50:31 UTC
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.
Comment 5 Tomas Zezula 2011-02-02 19:02:01 UTC
Fixed jet-main e66643bd138f
Comment 6 Quality Engineering 2011-02-03 05:57:21 UTC
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
Comment 7 Sergey Petrov 2011-02-03 14:08:49 UTC
thanks for fast fix
Comment 8 mithridates 2011-02-03 20:46:57 UTC
seems to be gone, thanks.