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 142725 - [65cat] NullPointerException at org.openide.filesystems.FileUtil.normalizeFileOnWindows
Summary: [65cat] NullPointerException at org.openide.filesystems.FileUtil.normalizeFil...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jiri Skrivanek
URL: http://statistics.netbeans.org/except...
Keywords:
: 142866 143402 143760 144101 144962 145092 145620 145840 145915 146223 147175 147796 154993 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-08-04 00:14 UTC by sunbiz
Modified: 2009-03-10 18:22 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 85893


Attachments
stacktrace (4.75 KB, text/plain)
2008-08-04 00:15 UTC, sunbiz
Details
stacktrace (4.75 KB, text/plain)
2008-08-04 05:40 UTC, sunbiz
Details
stacktrace (4.75 KB, text/plain)
2008-08-04 14:57 UTC, sunbiz
Details
The messages.log complaints with errors on xstream-1.3.jar which is actually present on the given path and hence there should be no error (79.67 KB, text/plain)
2008-08-14 10:06 UTC, sunbiz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sunbiz 2008-08-04 00:14:35 UTC
Build: NetBeans IDE Dev (Build 080804)
VM: Java HotSpot(TM) Client VM, 11.0-b12, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b25
OS: Windows Vista, 6.0, x86

User Comments: 
Opening Netbeans with Web Projects opened

Stacktrace: 
java.lang.NullPointerException
        at org.openide.filesystems.FileUtil.normalizeFileOnWindows(FileUtil.java:1446)
        at org.openide.filesystems.FileUtil.normalizeFile(FileUtil.java:1344)
        at org.netbeans.spi.project.support.ant.PropertyUtils.resolveFile(PropertyUtils.java:509)
        at org.netbeans.spi.project.support.ant.AntProjectHelper.resolveFile(AntProjectHelper.java:1195)
        at org.netbeans.modules.java.freeform.Classpaths.createClasspathEntry(Classpaths.java:448)
        at org.netbeans.modules.java.freeform.Classpaths.createClasspath(Classpaths.java:442)
Comment 1 sunbiz 2008-08-04 00:15:36 UTC
Created attachment 66423 [details]
stacktrace
Comment 2 sunbiz 2008-08-04 05:40:37 UTC
Build: NetBeans IDE Dev (Build 080804)
VM: Java HotSpot(TM) Client VM, 11.0-b12, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b25
OS: Windows Vista, 6.0, x86

User Comments: 
Opening Free-form web projects

Stacktrace: 
java.lang.NullPointerException
        at org.openide.filesystems.FileUtil.normalizeFileOnWindows(FileUtil.java:1446)
        at org.openide.filesystems.FileUtil.normalizeFile(FileUtil.java:1344)
        at org.netbeans.spi.project.support.ant.PropertyUtils.resolveFile(PropertyUtils.java:509)
        at org.netbeans.spi.project.support.ant.AntProjectHelper.resolveFile(AntProjectHelper.java:1195)
        at org.netbeans.modules.java.freeform.Classpaths.createClasspathEntry(Classpaths.java:448)
        at org.netbeans.modules.java.freeform.Classpaths.createClasspath(Classpaths.java:442)
Comment 3 sunbiz 2008-08-04 05:40:41 UTC
Created attachment 66436 [details]
stacktrace
Comment 4 sunbiz 2008-08-04 14:57:27 UTC
Build: NetBeans IDE Dev (Build 080804)
VM: Java HotSpot(TM) Client VM, 11.0-b12, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b25
OS: Windows Vista, 6.0, x86

User Comments: 
Can't open free-form web project... This is a little irritating

Stacktrace: 
java.lang.NullPointerException
        at org.openide.filesystems.FileUtil.normalizeFileOnWindows(FileUtil.java:1446)
        at org.openide.filesystems.FileUtil.normalizeFile(FileUtil.java:1344)
        at org.netbeans.spi.project.support.ant.PropertyUtils.resolveFile(PropertyUtils.java:509)
        at org.netbeans.spi.project.support.ant.AntProjectHelper.resolveFile(AntProjectHelper.java:1195)
        at org.netbeans.modules.java.freeform.Classpaths.createClasspathEntry(Classpaths.java:448)
        at org.netbeans.modules.java.freeform.Classpaths.createClasspath(Classpaths.java:442)
Comment 5 sunbiz 2008-08-04 14:57:40 UTC
Created attachment 66491 [details]
stacktrace
Comment 6 David Konecny 2008-08-04 22:56:35 UTC
Java part of freeform.
Comment 7 Milan Kubec 2008-08-05 08:28:13 UTC
Probably the problem is in filesystems, reassigning, please evaluate.
Comment 8 Jiri Skrivanek 2008-08-05 08:41:38 UTC
Could you attach your messages.log from your userdir? There should be some warnings.
Comment 9 Jiri Skrivanek 2008-08-05 08:42:12 UTC
*** Issue 142866 has been marked as a duplicate of this issue. ***
Comment 10 Jiri Skrivanek 2008-08-05 09:19:05 UTC
I fixed NPE but I am still interested to see your messages.log to investigate root cause of the failure.

http://hg.netbeans.org/core-main/rev/216ee31e665f
Comment 11 Quality Engineering 2008-08-06 04:30:56 UTC
Integrated into 'main-golden', available in build *200808060201* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/216ee31e665f
User: Jiri Skrivanek <jskrivanek@netbeans.org>
Log: #142725 - prevent NPE when getCanonicalFile fails.
Comment 12 sunbiz 2008-08-14 10:06:10 UTC
Created attachment 67385 [details]
The messages.log complaints with errors on xstream-1.3.jar which is actually present on the given path and hence there should be no error
Comment 13 sunbiz 2008-08-14 10:34:13 UTC
This issue may very well be related to Issue 51616, but I'll let the person assigned the bug to decide
Comment 14 David Konecny 2008-08-14 21:23:55 UTC
It is not related to issue 51616 - that one is about getCanonicalFile() failing because the argument is not a single
file but multiple jar files separated by ";" which is not the case of this issue.

Two strange things: this issue was fixed in 200808060201 and you are using 200808111757 but exception stack trace looks
like you actually still do not have the fix in your build: compare exceptions - the lines numbers are the same.

Could you please attach zipped nbproject folder of your project causing this problem? Looking at your IDE log:

getCanonicalFile() on file D:\OpenMRS\openmrs\lib\xstream\xstream-1.3.jar
                 failed: java.io.IOException: The filename, directory name, or volume label syntax is incorrect

it looks like there is new line character and several " " characters at the of xstream-1.3.jar which could cause
getCanonical to fail. Otherwise the text should be one line.
Comment 15 Jiri Skrivanek 2008-08-18 12:37:58 UTC
*** Issue 143402 has been marked as a duplicate of this issue. ***
Comment 16 Jiri Skrivanek 2008-08-18 14:25:58 UTC
*** Issue 144101 has been marked as a duplicate of this issue. ***
Comment 17 Jiri Skrivanek 2008-08-19 10:45:54 UTC
*** Issue 143760 has been marked as a duplicate of this issue. ***
Comment 18 Jiri Skrivanek 2008-08-25 07:41:22 UTC
*** Issue 144962 has been marked as a duplicate of this issue. ***
Comment 19 Jiri Skrivanek 2008-08-26 08:20:09 UTC
*** Issue 145092 has been marked as a duplicate of this issue. ***
Comment 20 Jiri Skrivanek 2008-08-29 22:08:23 UTC
*** Issue 145620 has been marked as a duplicate of this issue. ***
Comment 21 Jiri Skrivanek 2008-09-02 07:58:41 UTC
*** Issue 145840 has been marked as a duplicate of this issue. ***
Comment 22 Jiri Skrivanek 2008-09-02 14:33:34 UTC
*** Issue 145915 has been marked as a duplicate of this issue. ***
Comment 23 Jiri Skrivanek 2008-09-04 17:34:17 UTC
*** Issue 146223 has been marked as a duplicate of this issue. ***
Comment 24 Jiri Skrivanek 2008-09-15 08:32:12 UTC
*** Issue 147175 has been marked as a duplicate of this issue. ***
Comment 25 sunbiz 2008-09-17 18:47:40 UTC
The issue still persists with latest build (Build 200808111757).. Can't open the freeform project. Haven't found any 
workaround either and there are lots of duplicate issues
Comment 26 Jiri Skrivanek 2008-09-18 08:54:04 UTC
It is fixed in daily builds. Please, download and install it from here:

http://bits.netbeans.org/download/trunk/nightly/latest/
Comment 27 Jiri Skrivanek 2008-09-22 12:19:59 UTC
*** Issue 147796 has been marked as a duplicate of this issue. ***
Comment 28 Jiri Skrivanek 2008-12-09 08:42:06 UTC
*** Issue 154993 has been marked as a duplicate of this issue. ***