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.
Right after creating a new grails project i get a dialog-box saying: ALL [null]: might be because your user directory is on a Windows UNC path (issue #46813)? If so, try using mapped drive letters. This is the console stacktrace: at org.openide.filesystems.URLMapper.findFileObject(URLMapper.java:210) at org.netbeans.api.java.classpath.ClassPath$Entry.getRoot(ClassPath.java:604) at org.netbeans.api.java.classpath.ClassPath.createRoots(ClassPath.java:272) at org.netbeans.api.java.classpath.ClassPath.getRoots(ClassPath.java:253) at org.netbeans.api.java.classpath.ClassPath.findOwnerRoot(ClassPath.java:439) at org.netbeans.modules.java.source.tasklist.TaskCache.isInError(TaskCache.java:336) at org.netbeans.modules.java.source.tasklist.ErrorAnnotator$1.run(ErrorAnnotator.java:289) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
Simply created a new project on an path without spaces proved that this one is a duplicate of # 46813. *** This issue has been marked as a duplicate of 46813 ***
This issue is still open. It might be related to this one: java.net.URISyntaxException: Illegal character in path at index 36: file:/Applications/NetBeans/NetBeans 6.0 Dev 200711041200.app/Contents/Resources/NetBeans/enterprise4/docs/jstl11-doc.zip http://www.netbeans.org/issues/show_bug.cgi?id=121513 When we create a new Grails project on a path with a space i get this exception: SEVERE [global] msg Caused: java.lang.IllegalArgumentException: Illegal character in path at index 18: file:/C:/Documents and Settings/schmidtm/My Documents/data/TestOnWin/grails-app/controllers/ [file:/C:/Documents and Settings/schmidtm/My Documents/data/TestOnWin/grails-app/controllers/] [catch] at org.netbeans.modules.masterfs.MasterURLMapper.getFileObjects(MasterURLMapper.java:78) at org.openide.filesystems.URLMapper.findFileObject(URLMapper.java:210) at org.openide.filesystems.FileUtil.isArchiveFile(FileUtil.java:1554) at org.netbeans.spi.java.classpath.support.ClassPathSupport.createResource(ClassPathSupport.java:80) at org.netbeans.modules.groovy.grailsproject.classpath.SourcePathImplementation.getResources(SourcePathImplementation.java:86) at org.netbeans.api.java.classpath.ClassPath.entries(ClassPath.java:296) at org.netbeans.api.java.classpath.ClassPath.getRoots(ClassPath.java:247) at org.netbeans.api.java.classpath.ClassPath.findOwnerRoot(ClassPath.java:439) at org.netbeans.modules.java.source.tasklist.TaskCache.isInError(TaskCache.java:336) at org.netbeans.modules.java.source.tasklist.ErrorAnnotator$1.run(ErrorAnnotator.java:289) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986) ALL [null]: might be because your user directory is on a Windows UNC path (issue #46813)? If so, try using mapped drive letters.
I'll check this.
I hereby verify the existance of this issue under Mac OSX/PPC: java.lang.IllegalArgumentException: Illegal character in path at index 25: file:/Users/schmidtm/User Guides and Information/CrashTest/grails-app/taglib/ [file:/Users/schmidtm/User Guides and Information/CrashTest/grails-app/taglib/] at org.netbeans.modules.masterfs.MasterURLMapper.getFileObjects(MasterURLMapper.java:78) at org.openide.filesystems.URLMapper.findFileObject(URLMapper.java:210) at org.netbeans.api.java.classpath.ClassPath$Entry.getRoot(ClassPath.java:604) at org.netbeans.api.java.classpath.ClassPath.createRoots(ClassPath.java:272) at org.netbeans.api.java.classpath.ClassPath.getRoots(ClassPath.java:253) at org.netbeans.api.java.classpath.ClassPath.findOwnerRoot(ClassPath.java:439) at org.netbeans.modules.java.source.tasklist.TaskCache.isInError(TaskCache.java:336) at org.netbeans.modules.java.source.tasklist.ErrorAnnotator$1.run(ErrorAnnotator.java:289) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
Hmm, I cannot reproduce this on Intel/Leopard OS X
I've tested it under 10.4 with my old Dual G5 PowerPC. I have another user facing this on Windows. I'll doublecheck this right now on Ubuntu Linux/AMD64
Created attachment 55044 [details] create new project execption
OK, I've tested it under: Linux baldur 2.6.17-10-generic #2 SMP Fri Oct 13 15:34:39 UTC 2006 x86_64 GNU/Linux Ubuntu 6.10, Edgy Eft - released in October 2006 I don't get the DialogBox but still an entry in the ide.log which indicates that we have an issue. The problem here is that i get a variant of the exception given in the attachment some ~600 times in the message log: WARNING: externally created folder: /home/schmidtm/TestDir with some spaces at org.netbeans.modules.masterfs.filebasedfs.FileBasedFileSystem.findFileObject(FileBasedFileSystem.java:159) at org.netbeans.modules.masterfs.filebasedfs.FileBasedFileSystem.findFileObject(FileBasedFileSystem.java:137) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj.getParent(BaseFileObj.java:364) at org.openide.filesystems.FileUtil.isParentOf(FileUtil.java:1131) at org.netbeans.modules.groovy.grailsproject.classpath.ClassPathProviderImpl.getType(ClassPathProviderImpl.java:130) at org.netbeans.modules.groovy.grailsproject.classpath.ClassPathProviderImpl.getSourcepath(ClassPathProviderImpl.java:217) at org.netbeans.modules.groovy.grailsproject.classpath.ClassPathProviderImpl.findClassPath(ClassPathProviderImpl.java:255) at org.netbeans.modules.java.project.ProjectClassPathProvider.findClassPath(ProjectClassPathProvider.java:64) at org.netbeans.api.java.classpath.ClassPath.getClassPath(ClassPath.java:540) at org.netbeans.modules.java.source.tasklist.TaskCache.isInError(TaskCache.java:330) at org.netbeans.modules.java.source.tasklist.ErrorAnnotator$1.run(ErrorAnnotator.java:290) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
I made one fix today: http://scripting.netbeans.org/source/browse/scripting/groovy/grailsproject/src/org/netbeans/modules/groovy/grailsproject/ui/wizards/NewArtifactWizardI terator.java?r1=1.6&r2=1.7 to resolve problems introduced by recent performance changes in filesystems. Read this: http://www.netbeans.org/servlets/BrowseList?list=nbdev&by=thread&from=827178 http://www.netbeans.org/servlets/ReadMsg?list=nbdev&msgNo=40143 Plaease try to update sources and run it again, let's see if it helps.
So can I close this one now?
OK, this one seems now to be completely fixed: http://scripting.netbeans.org/source/browse/scripting/groovy/grailsproject/src/org/netbeans/modules/groovy/grailsproject/ui/wizards/GetArtifactNamePanel.java http://scripting.netbeans.org/source/browse/scripting/groovy/grailsproject/src/org/netbeans/modules/groovy/grailsproject/ui/GeneralCustomizerPanel.java
Oops, wrong changeset. That's right: http://www.netbeans.org/source/browse/scripting/groovy/grailsproject/src/org/netbeans/modules/groovy/grailsproject/ui/wizards/GetArtifactNamePanel.java?r1=1.5&r2=1.6 http://www.netbeans.org/source/browse/scripting/groovy/grailsproject/src/org/netbeans/modules/groovy/grailsproject/ui/GeneralCustomizerPanel.java?r1=1.7&r2=1.8
v.