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 51616

Summary: getCanonicalFile() on file '(list of jars)' failed message when web project loaded
Product: javaee Reporter: _ pcw <pcw>
Component: Web ProjectAssignee: David Konecny <dkonecny>
Status: RESOLVED WORKSFORME    
Severity: blocker CC: pbuzek, pjiricka
Priority: P4    
Version: 4.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: sample project

Description _ pcw 2004-11-18 00:32:55 UTC
This message, (getCanonicalFile() on file '(list
of jars...)', is being generated onto the console
by web/project when loading.  It's generated by
FileUtil#1045 (normalizeFileOnWindows()) in
response to WebProjectProperties#876, call to
antProjectHelper.resolveFile() where the file is
the  evaluation of the property 'jspc.classpath',
which of course, evaluates to a list of jars.
Comment 1 Pavel Buzek 2004-12-01 12:53:22 UTC
will fix for 4.1
Comment 2 Pavel Buzek 2005-08-25 03:54:33 UTC
haven't seen the message for a while - probably fixed
Comment 3 _ ludo 2006-04-12 22:41:48 UTC
Nobody checked if this bug was fixed...
It seems it is not.
Reopening.
New use case, same pattern:

> getCanonicalFile() on file
C:\demo\StrutsWithEJB\StrutsWithEJB-ejb\dist\StrutsWithEJB-EJBModule.jar;C:\demo\StrutsWithEJB\StrutsWithEJB-war\dist\StrutsWithEJB-WebModule.war
failed. java.io.IOException: The filename, directory name, or volume label
syntax is incorrect


Please investigate with the data that was initially given, related to
antProjectHelper.resolveFile() in Web App projects, and EJB projects.
Comment 4 Radko Najman 2006-08-18 16:04:18 UTC
Could somebody tell me how to reproduce it or attach a sample project, please?
I've never seen this problem.
Comment 5 Radko Najman 2006-09-07 09:49:22 UTC
No more feedback, closing.
Comment 6 Lukas Jungmann 2006-09-07 09:58:42 UTC
Created attachment 33669 [details]
sample project
Comment 7 Lukas Jungmann 2006-09-07 09:59:42 UTC
Should be reproducible w/ attached project - just open it w/ dependencies and
see what is in console (on win)
Comment 8 Radko Najman 2006-09-08 14:04:46 UTC
Still cannot reproduce. Project is open without any problems in the latest dev
build (20060908). Mentioned message is not written in the console (tested on
WinXP and Linux).
Comment 9 Radko Najman 2007-01-09 10:33:22 UTC
Is still somebody able to reproduce it? I cannot and I've never seen the problem.
Comment 10 Lukas Jungmann 2007-01-10 19:17:13 UTC
Yes, I was just able to reproduce this in build 200701081900 on JDK 6-b105, I
hope that it will be reproducible again tomorrow...
Comment 11 David Konecny 2007-10-05 14:05:30 UTC
Considering age of issue and fact I'm not able to reproduce it I'm going to close this.

Also looking into WebProjectProperties I can see that it correctly tokenize path and calls resolveFile just with
individual files.

Feel free to reopen if it happens again and attach as much info as possible please including whole exception stack
trace. Thx David.