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 214182 - AssertionError: Need to normalize ... from AntBasedProjectFactorySingleton.loadProject
Summary: AssertionError: Need to normalize ... from AntBasedProjectFactorySingleton.lo...
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-14 09:05 UTC by Jiri Skrivanek
Modified: 2012-07-09 10:57 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 184222


Attachments
stacktrace (5.94 KB, text/plain)
2012-06-14 09:05 UTC, Jiri Skrivanek
Details
stacktrace (7.68 KB, text/plain)
2012-07-04 05:38 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2012-06-14 09:05:23 UTC
Build: NetBeans IDE Dev (Build 201206140001)
VM: Java HotSpot(TM) Client VM, 23.1-b03, Java(TM) SE Runtime Environment, 1.7.0_05-b05
OS: Windows 7

User Comments:
jskrivanek: To reproduce:

- create Java EE 6 Maven web project with GlassFish server
- choose Run on project node and exception appears




Stacktrace: 
java.lang.AssertionError: Need to normalize C:\Users\JSKRIV~1\AppData\Local\Temp was C:\Users\jskrivanek\AppData\Local\Temp
   at org.openide.filesystems.FileUtil.assertNormalized(FileUtil.java:141)
   at org.openide.filesystems.FileUtil.toFile(FileUtil.java:1016)
   at org.netbeans.modules.project.ant.AntBasedProjectFactorySingleton.loadProject(AntBasedProjectFactorySingleton.java:223)
   at org.netbeans.api.project.ProjectManager.createProject(ProjectManager.java:369)
   at org.netbeans.api.project.ProjectManager.access$300(ProjectManager.java:86)
   at org.netbeans.api.project.ProjectManager$2.run(ProjectManager.java:290)
Comment 1 Jiri Skrivanek 2012-06-14 09:05:29 UTC
Created attachment 120818 [details]
stacktrace
Comment 2 Jiri Skrivanek 2012-07-04 05:38:07 UTC
Created attachment 121717 [details]
stacktrace

Build maven web project (GlassFish server).
Comment 3 Tomas Zezula 2012-07-04 06:26:26 UTC
According to:
at org.netbeans.modules.parsing.impl.indexing.PathRegistry.createResources(PathRegistry.java:658)
the binary classpath (boot, compile) contains non normalized root:
C:\Users\jskrivanek\AppData\Local\Temp
According to reporter he only opened project was the maven J2EE project, so the classpath has to be provided by it. Reassigning to J2EE maven.
Comment 4 Milos Kleint 2012-07-04 07:42:05 UTC
well, doesn't the stacktrace show that C:\Users\JSKRIV~1\AppData\Local\Temp most likely contains a build.xml and nbproject/ directory? and is therefore loaded by the ant project?
Comment 5 Tomas Zezula 2012-07-04 07:45:30 UTC
Not sure reporter should clarify. The SFBQ causing the project load iterates through the Cps registered in GlobalPathRegistry.
Comment 6 Jiri Skrivanek 2012-07-04 07:49:45 UTC
Product Version: NetBeans IDE Dev (Build 201207040002)
Java: 1.7.0_06-ea; Java HotSpot(TM) 64-Bit Server VM 23.2-b05
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
User directory: D:\Development\builds\nbUserdir-20120704082115
Cache directory: D:\Development\builds\nbUserdir-20120704082115\var\cache

Maven project created in

D:\Development\builds\nbUserdir-20120704082115
Comment 7 Tomas Zezula 2012-07-04 08:03:55 UTC
No other project opened?
Can you look into C:\Users\JSKRIV~1\AppData\Local\Temp what is in it?
Thanks
Comment 8 Petr Hejl 2012-07-04 12:20:19 UTC
Fixed in web-main 65ca531ad0a1.
Comment 9 Quality Engineering 2012-07-06 03:15:37 UTC
Integrated into 'main-golden', will be available in build *201207060002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/65ca531ad0a1
User: Petr Hejl <phejl@netbeans.org>
Log: #214182 AssertionError: Need to normalize ... from AntBasedProjectFactorySingleton.loadProject