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 208325 - AssertionError: Need to normalize /var/folders/8b/7g0zvyhj7p1clpsjk1k8pws00000gn/T/AnagramGame1/src/com/toy/anagrams/lib/WordLibrary.java!
Summary: AssertionError: Need to normalize /var/folders/8b/7g0zvyhj7p1clpsjk1k8pws0000...
Status: RESOLVED DUPLICATE of bug 209904
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 7.2
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-13 10:16 UTC by Jan Becicka
Modified: 2012-04-04 15:16 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 185032


Attachments
stacktrace (6.49 KB, text/plain)
2012-02-13 10:16 UTC, Jan Becicka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Becicka 2012-02-13 10:16:26 UTC
Build: NetBeans IDE Dev (Build 20120208-a33f618c21ef)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.1-b02-383, Java(TM) SE Runtime Environment, 1.6.0_26-b03-383-11D50
OS: Mac OS X

Stacktrace: 
java.lang.AssertionError: Need to normalize /var/folders/8b/7g0zvyhj7p1clpsjk1k8pws00000gn/T/AnagramGame1/src/com/toy/anagrams/lib/WordLibrary.java!
   at org.openide.filesystems.FileUtil.assertNormalized(FileUtil.java:140)
   at org.openide.filesystems.FileUtil.toFile(FileUtil.java:993)
   at org.netbeans.modules.maven.queries.MavenFileOwnerQueryImpl.getOwner(MavenFileOwnerQueryImpl.java:144)
   at org.netbeans.api.project.FileOwnerQuery.getOwner(FileOwnerQuery.java:104)
   at org.netbeans.modules.csl.core.ProjectClassPathProvider.findClassPath(ProjectClassPathProvider.java:66)
   at org.netbeans.api.java.classpath.ClassPath.getClassPath(ClassPath.java:627)
Comment 1 Jan Becicka 2012-02-13 10:16:30 UTC
Created attachment 115644 [details]
stacktrace
Comment 2 Milos Kleint 2012-02-14 08:06:20 UTC
there is something wrong with the /var/folders/8b/7g0zvyhj7p1clpsjk1k8pws00000gn/T on mac... maybe related. yesterday I've tried the Add module action on the Modules subnode of pom projects. the added path was ../../../../../var/folders.. and so on.. rather than a direct module1 reference..
Comment 3 Milos Kleint 2012-02-15 08:21:52 UTC
unfortunately I cannot reproduce today on my mac.

however the maven codebase is calling FileUtil.toFile(fileObject), the fileobject was passed from outside and that call is failing with non normalized file. I'm not aware of the fact that FileObject instances need to be normalized. passing to filesystems for evaluation.
Comment 4 Jesse Glick 2012-02-15 16:37:53 UTC
IIRC there was another case where FU.tF(FO) failed with an assertion on Macs; perhaps a bug in masterfs.
Comment 5 Jaroslav Tulach 2012-04-04 15:16:23 UTC

*** This bug has been marked as a duplicate of bug 209904 ***