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 114189 - Strange warning "; might be because your user directory is on a Windows UNC path (issue #46813)? If so, try using mapped drive letters."
Summary: Strange warning "; might be because your user directory is on a Windows UNC p...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
: 114139 114149 114250 114299 114335 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-08-30 08:15 UTC by Jan Becicka
Modified: 2007-09-27 15:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Becicka 2007-08-30 08:15:47 UTC
Fresh build, JDK 1.6.0_02, Win XP,
I created a New Class in default package and I get this warning message dialog:
"; might be because your user directory is on a Windows UNC path (issue #46813)? If so, try using mapped drive letters."

From user point of view it is not obvious what I did wrong nor what should I do.

I see this log in console:
SEVERE [global]

msg
Caused: java.lang.IllegalArgumentException: Illegal character in path at index 18: file:/C:/Documents and Settings/Jan
Becicka/My Documents/NetBeansProjects/JavaApplication3/src/NewClass.java [file:/C:/Documents and Settings/Jan Becicka/My
Documents/NetBeansProjects/JavaApplication3/src/NewClass.java]
[catch] at org.netbeans.modules.masterfs.MasterURLMapper.getFileObjects(MasterURLMapper.java:55)
        at org.openide.filesystems.URLMapper.findFileObject(URLMapper.java:188)
        at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.updateFile(RepositoryUpdater.java:1696)
        at
org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.compileWithDeps(RepositoryUpdater.java:1961)
        at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.access$2800(RepositoryUpdater.java:1011)
        at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker$1.run(RepositoryUpdater.java:1269)
        at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker$1.run(RepositoryUpdater.java:1041)
        at org.netbeans.modules.java.source.usages.ClassIndexManager.writeLock(ClassIndexManager.java:78)
        at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.run(RepositoryUpdater.java:1038)
        at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.run(RepositoryUpdater.java:1011)
        at org.netbeans.api.java.source.JavaSource$CompilationJob.run(JavaSource.java:1430)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)
ALL [null]: ; might be because your user directory is on a Windows UNC path (issue #46813)? If so, try using mapped
drive letters.
Comment 1 _ gtzabari 2007-08-30 20:01:22 UTC
I get the same exception in dev build 20070830000 when I create a new Java project. This seems to be random in nature. I
tried reproducing it a second time and no exception occurred. This could be because Netbeans' repository already had the
path cached.
Comment 2 _ gtzabari 2007-08-30 21:59:24 UTC
Upgraded priority to P2. This exception is consistently thrown when I create a new Entity class using the wizard,
thereby preventing me from creating new classes. I had to copy/paste existing classes.
Comment 3 rmatous 2007-08-31 08:16:52 UTC
What about to look at index 18, the probably space isn't allowed. So, escape is necessary:
"file:/tmp/NetBeansProjects/JavaApplication9/C:/Documents%20and%20Settings/JanBecicka/My%20Documents/NetBeansProjects/JavaApplication3/src/NewClass.java"

File f = new File("C:/Documents and Settings/.../NewClass.java");
URL url = f.toURI().toURL();        
Comment 4 Tomas Zezula 2007-08-31 10:00:35 UTC
*** Issue 114299 has been marked as a duplicate of this issue. ***
Comment 5 Tomas Zezula 2007-08-31 11:18:46 UTC
Checking in RepositoryUpdater.java;
/cvs/java/source/src/org/netbeans/modules/java/source/usages/RepositoryUpdater.java,v  <--  RepositoryUpdater.java
new revision: 1.83; previous revision: 1.82
done
Comment 6 rmatous 2007-08-31 11:45:16 UTC
*** Issue 114335 has been marked as a duplicate of this issue. ***
Comment 7 Tomas Zezula 2007-08-31 17:25:35 UTC
*** Issue 114250 has been marked as a duplicate of this issue. ***
Comment 8 Viktor Lapitski 2007-09-04 23:11:50 UTC
*** Issue 114149 has been marked as a duplicate of this issue. ***
Comment 9 Milan Kuchtiak 2007-09-27 15:06:31 UTC
*** Issue 114139 has been marked as a duplicate of this issue. ***