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 242101 - AssertionError: Original file /Volumes/www/electricity/readpic/. normalized: /Volumes/www/electricity/readpic/.
Summary: AssertionError: Original file /Volumes/www/electricity/readpic/. normalized: ...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-19 14:49 UTC by Exceptions Reporter
Modified: 2014-04-24 02:10 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 207773


Attachments
stacktrace (2.29 KB, text/plain)
2014-02-19 14:49 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2014-02-19 14:49:45 UTC
This issue was reported manually by alexvsimon.
It already has 1 duplicates 


Build: NetBeans IDE 8.0 Beta (Build 201401141042)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Mac OS X

User Comments:
GUEST: I hit compile & run. source code is on a remote server; compiler is on a different machine.




Stacktrace: 
java.lang.AssertionError: Original file /Volumes/www/electricity/readpic/. normalized: /Volumes/www/electricity/readpic/.
   at org.openide.filesystems.FileUtil.normalizeFileCached(FileUtil.java:1581)
   at org.openide.filesystems.FileUtil.normalizeFile(FileUtil.java:1562)
   at org.netbeans.modules.cnd.utils.cache.CndFileUtils.normalizeAbsolutePath(CndFileUtils.java:336)
   at org.netbeans.modules.cnd.api.remote.RemoteFileUtil.normalizeAbsolutePath(RemoteFileUtil.java:194)
   at org.netbeans.modules.cnd.makeproject.api.DefaultProjectActionHandler._execute(DefaultProjectActionHandler.java:171)
   at org.netbeans.modules.cnd.makeproject.api.DefaultProjectActionHandler.access$100(DefaultProjectActionHandler.java:94)
Comment 1 Exceptions Reporter 2014-02-19 14:49:50 UTC
Created attachment 145403 [details]
stacktrace
Comment 2 Vladimir Kvashin 2014-02-20 14:05:30 UTC
Investigation: message log shows that another exception occurs with this directory right before this assertion. This exception is aboutthe same file assertion is. 
It's this exception (failure to canonicalize) which is the root cause of the assertion. However it isn't clear why did it happen.

java.io.IOException: Invalid argument
	at java.io.UnixFileSystem.canonicalize0(Native Method)
	at java.io.UnixFileSystem.canonicalize(UnixFileSystem.java:172)
	at java.io.File.getCanonicalPath(File.java:618)
	at org.netbeans.modules.remote.support.LocalFileSystemProvider.getCanonicalPath(LocalFileSystemProvider.java:200)
	at org.netbeans.modules.remote.spi.FileSystemProvider.getCanonicalPath(FileSystemProvider.java:227)
[catch] at org.netbeans.modules.cnd.makeproject.api.runprofiles.RunProfile.getRunDirectory(RunProfile.java:595)
	at org.netbeans.modules.cnd.makeproject.api.DefaultProjectActionHandler._execute(DefaultProjectActionHandler.java:171)
	at org.netbeans.modules.cnd.makeproject.api.DefaultProjectActionHandler.access$100(DefaultProjectActionHandler.java:94)
	at org.netbeans.modules.cnd.makeproject.api.DefaultProjectActionHandler$2.run(DefaultProjectActionHandler.java:137)
	at org.netbeans.modules.cnd.makeproject.api.DefaultProjectActionHandler.execute(DefaultProjectActionHandler.java:153)
	at org.netbeans.modules.cnd.remote.sync.RemoteBuildProjectActionHandler.execute(RemoteBuildProjectActionHandler.java:196)
	at org.netbeans.modules.cnd.makeproject.api.ProjectActionSupport$EventsProcessor.run(ProjectActionSupport.java:548)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
Comment 4 Quality Engineering 2014-02-22 06:13:32 UTC
Integrated into 'main-silver', will be available in build *201402220001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/06e7622e082d
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixed #242101 - AssertionError: Original file /Volumes/www/electricity/readpic/. normalized: /Volumes/www/electricity/readpic/
Comment 5 Quality Engineering 2014-04-24 02:10:54 UTC
Integrated into 'releases/release80', will be available in build *201404240045* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/80af6e88e098
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixed #242101 - AssertionError: Original file /Volumes/www/electricity/readpic/. normalized: /Volumes/www/electricity/readpic/
(transplanted from 06e7622e082ddc5b81184579e4ba0296b29666ca)