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 161858

Summary: IllegalArgumentException: Parameter file was not normalized. Was c:\Progra~1\Java\jdk1.6.0_13\jre\lib\jsse.jar instead of C:\Program Files\Java\jdk1.6.0_13\jre\lib\jsse.jar
Product: editor Reporter: pribyl <pribyl>
Component: Parsing & IndexingAssignee: Vitezslav Stejskal <vstejskal>
Status: RESOLVED WORKSFORME    
Severity: blocker CC: mmirilovic
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=148823
Issue Type: DEFECT Exception Reporter: 148823
Attachments: stacktrace
msg log

Description pribyl 2009-04-03 10:16:21 UTC
Build: NetBeans IDE Dev (Build 200904030200)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Windows XP, 5.1, x86

User Comments:
pribyl: Opening the IDE with parameter --open for opening existing project.



Stacktrace: 
java.lang.IllegalArgumentException: Parameter file was not normalized. Was c:\Progra~1\Java\jdk1.6.0_13\jre\lib\jsse.jar instead of C:\Program Files\Java\jdk1.6.0_13\jre\lib\jsse.jar
        at org.openide.filesystems.FileUtil.toFileObject(FileUtil.java:864)
        at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$RootsWork.scanBinary(RepositoryUpdater.java:1081)
        at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$RootsWork.scanBinaries(RepositoryUpdater.java:1055)
        at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$RootsWork.getDone(RepositoryUpdater.java:949)
        at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$1.getDone(RepositoryUpdater.java:558)
        at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doTheWork(RepositoryUpdater.java:737)
Comment 1 pribyl 2009-04-03 10:17:36 UTC
Created attachment 79360 [details]
stacktrace
Comment 2 pribyl 2009-04-03 10:38:55 UTC
I am able to reproduce this issue with following steps:

1,In the IDE, create new project (e.g. "C:\TestProject"), close the IDE.
2,Delete userdir
3,open command line console and run NB with parameter:  --open "C:\TestProject"

This Exception (and some more) is thrown during the "activating Java" process. 

Comment 3 pribyl 2009-04-03 10:43:10 UTC
Created attachment 79365 [details]
msg log
Comment 4 Vitezslav Stejskal 2009-04-06 13:31:11 UTC
I think this warning falls to the category of warnings that should have lower log level (eg. FINE). It's really just a
warning. The call to FU.toFO succeeds even for not normalized File instances. IMO there is no point in forcing everybody
to call FU.normalizeFile before calling FU.toFO. Moreover if that's exactly what FU.toFO does as well.
Comment 5 Jiri Skrivanek 2009-04-06 15:20:47 UTC
It does normalization only if assertions are turned on. Also exception is thrown only when assertions are enabled.
Otherwise input file is not normalized and it may lead to faulty behavior.
Comment 6 Vitezslav Stejskal 2009-04-16 15:38:26 UTC
Ok, so someone, somewhere is somehow adding not-normalized path to a classpath.
Comment 7 Vitezslav Stejskal 2009-09-23 16:31:36 UTC
Seems no longer happening. Please reopen if this is spotted again in recent dev builds.