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 - 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
Summary: IllegalArgumentException: Parameter file was not normalized. Was c:\Progra~1\...
Status: RESOLVED WORKSFORME
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Vitezslav Stejskal
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-03 10:16 UTC by pribyl
Modified: 2009-09-23 16:31 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 148823


Attachments
stacktrace (1.60 KB, text/plain)
2009-04-03 10:17 UTC, pribyl
Details
msg log (47.56 KB, text/plain)
2009-04-03 10:43 UTC, pribyl
Details

Note You need to log in before you can comment on or make changes to this bug.
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.