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 199551

Summary: IllegalArgumentException: Parameter file was not normalized. Was C:\Program Files\NetBeans 7.0.1 Dev 201106192100\. instead of C:\Program Files\NetBeans 7.0.1 Dev 201106192100
Product: platform Reporter: asenk
Component: NodesAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED DUPLICATE    
Severity: normal CC: epdv, hallyhaa, jglick, MackSix, mmirilovic, mps77, musilt2, sreimers, wvankuipers
Priority: P3    
Version: 7.0.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 160762
Bug Depends on: 199471    
Bug Blocks:    
Attachments: stacktrace
stacktrace
stacktrace
messages.log file in zip

Description asenk 2011-06-20 14:38:48 UTC
Build: NetBeans IDE 7.0.1 Dev (Build 201106192100)
VM: Java HotSpot(TM) Client VM, 21.0-b15, Java(TM) SE Runtime Environment, 1.7.0-ea-b145
OS: Windows XP

User Comments:
asenk: 1.Start IDE with clean user dir
2.Create new j2se project JavaApplication
3.In very short time invoke some pop up menus in project tab on: JavaApplication.java, javaaplication, Source Packages, JavaApplication
4.Invoking of pop up menus must be quick with no time gaps




Stacktrace: 
java.lang.IllegalArgumentException: Parameter file was not normalized. Was C:\Program Files\NetBeans 7.0.1 Dev 201106192100\. instead of C:\Program Files\NetBeans 7.0.1 Dev 201106192100
   at org.openide.filesystems.FileUtil.toFileObject(FileUtil.java:1015)
   at org.openide.loaders.DataFolder$FolderNode.createNodeTransferable(DataFolder.java:1409)
   at org.openide.loaders.DataFolder$FolderNode.createPasteTypes(DataFolder.java:1390)
   at org.openide.nodes.AbstractNode.getPasteTypes(AbstractNode.java:543)
   at org.netbeans.spi.java.project.support.ui.PackageRootNode.createPasteTypes(PackageRootNode.java:320)
   at org.openide.nodes.AbstractNode.getPasteTypes(AbstractNode.java:543)
Comment 1 asenk 2011-06-20 14:38:53 UTC
Created attachment 108996 [details]
stacktrace
Comment 2 asenk 2011-06-20 15:13:32 UTC
Sometimes this exception is not thrown just once, but is thrown in cca. 5 seconds interval until the IDE is shot down.
Comment 3 asenk 2011-06-20 15:34:20 UTC
(In reply to comment #2)
> Sometimes this exception is not thrown just once, but is thrown in cca. 5
> seconds interval until the IDE is shot down.

And its continue even after IDE is restarted!!!
Comment 4 Jaroslav Tulach 2011-06-22 07:59:35 UTC
Not a P1: just disable asserts in your config file.

Anyway it is strange, since
http://hg.netbeans.org/releases/rev/f2e72f53aad9
the parameter to FileUtil.toFileObject is normalized. How can it be not normalized!?
Comment 5 Jesse Glick 2011-06-27 19:30:39 UTC
Right, this stack trace looks impossible.
Comment 6 Exceptions Reporter 2011-09-11 07:59:59 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=160762
Comment 7 Peter Nabbefeld 2011-09-19 12:03:55 UTC
Created attachment 110869 [details]
stacktrace
Comment 8 Peter Nabbefeld 2011-09-19 12:36:33 UTC
What's this strange path? "C:\Programme\NetBeans Dev 201009130000\." isn't usual in windows, so where and why is this string created?

IDE currently does not work (it's even been nearly impossible to file a bug report, commenting already did not work, as the exception report popped up again and again :-(
Comment 9 sreimers 2011-10-01 01:05:46 UTC
Created attachment 111384 [details]
stacktrace
Comment 10 MackSix 2011-10-09 05:45:36 UTC
I opened up a project and right clicked on a package and it throws this exception over and over again. I had to collapse the package tree so I could report this. I thought it was a particular project that I had and I closed it and deleted it and opened up a different one and I still get this exception. I don't know what I did to cause it.
Comment 11 MackSix 2011-10-19 20:05:50 UTC
Created attachment 112232 [details]
messages.log file in zip

I left my computer running for a couple of hours with NetBeans running and came back and clicked on a Project node in the Project Window and this Exception kept throwing over and over again until I canceled the exception reporter.

Product Version: NetBeans IDE Dev (Build 201110180600)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 12 Exceptions Reporter 2011-10-27 22:44:44 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=160762
Comment 13 MackSix 2011-11-08 01:33:09 UTC
Here is a video of the bug occurring once and then it happened after NetBeans was restarted on the same project. 

http://youtu.be/1JW1iKDI8L4

I cannot reproduce it now.
Comment 14 MackSix 2011-11-22 02:05:07 UTC
This happened again, see http://statistics.netbeans.org/analytics/exception.do?id=544765 for steps that caused it. I cannot reproduce it now.
Comment 15 Jaroslav Tulach 2012-03-22 07:43:21 UTC
(In reply to comment #13)
> http://youtu.be/1JW1iKDI8L4

Nice video. As a workaround you can disable assertions.
Comment 16 Jaroslav Tulach 2012-04-04 15:16:40 UTC

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