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.
Summary: | java.nio.file.InvalidPathException: Illegal char <:> at index 0: ::{20D04FE0-3AEA-1069-A2D8-08002B30309D} | ||
---|---|---|---|
Product: | platform | Reporter: | mienamoo |
Component: | Filesystems | Assignee: | Jaroslav Havlin <jhavlin> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | 280Z28, adam_felix_fps, CdTCzech, Chiana, chintan4fun, Darknight10c, dynamite, ecerichter, fleka, gtzabari, jhavlin, jskrivanek, jungi, kanakmar, KhArtNJava, lhochet, MackSix, markiewb, mkhramov, mkroll, mslama, padraigdoran, psomol, pwade, rhollencamp, rodrigorsantos, rsvitanic, rudyment, saurabhsport, tnleeuw, zdenek.rod |
Priority: | P2 | ||
Version: | 7.4 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 200290 |
Bug Depends on: | |||
Bug Blocks: | 229178 | ||
Attachments: |
stacktrace
stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace |
Description
mienamoo
2013-04-29 06:16:39 UTC
Created attachment 133903 [details]
stacktrace
is ::{20D04FE0-3AEA-1069-A2D8-08002B30309D} some sort of directory path that you were browsing? No, it was something like "C:\Projects\Tests\SomeFolder". I was looking for some random Maven project to test something in the IDE, so I don't recall exactly which folder it was. *** Bug 229171 has been marked as a duplicate of this bug. *** Product Version: NetBeans IDE Dev (Build 201304282301) Java: 1.7.0_21; Java HotSpot(TM) 64-Bit Server VM 23.21-b01 My Steps to reproduce: Create fresh Ant based java project. Open properties window and click on add folder. Create new folder named resources. Close properties window Click on resources node. The endless exception occurs: java.nio.file.InvalidPathException: Illegal char <O> at index 36: C:\Oracle\NetBeans Dev 201304282301\O at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182) at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153) at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77) at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94) at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255) at java.io.File.toPath(File.java:2069) at org.openide.util.Utilities.toURI(Utilities.java:3114) at org.openide.filesystems.FileUtil.toFileObject(FileUtil.java:875) at org.openide.loaders.DataFolder$FolderNode.createNodeTransferable(DataFolder.java:1421) at org.openide.loaders.DataFolder$FolderNode.createPasteTypes(DataFolder.java:1402) at org.openide.nodes.AbstractNode.getPasteTypes(AbstractNode.java:543) at org.openide.nodes.FilterNode.getPasteTypes(FilterNode.java:684) at org.netbeans.spi.java.project.support.ui.PackageViewChildren$PackageNode.getPasteTypes(PackageViewChildren.java:815) at org.openide.nodes.FilterNode.getPasteTypes(FilterNode.java:684) at org.netbeans.modules.openide.explorer.ExplorerActionsImpl.updatePasteTypes(ExplorerActionsImpl.java:351) at org.netbeans.modules.openide.explorer.ExplorerActionsImpl.updatePasteAction(ExplorerActionsImpl.java:337) at org.netbeans.modules.openide.explorer.ExplorerActionsImpl.updateActions(ExplorerActionsImpl.java:278) at org.netbeans.modules.openide.explorer.ExplorerActionsImpl$ActionStateUpdater.run(ExplorerActionsImpl.java:798) Created attachment 133955 [details]
stacktrace
Was trying to open a project, clicked on a path
*** Bug 228350 has been marked as a duplicate of this bug. *** keeps on coming from various pieces of code in recent builds, reassigning to filesystems for evaluation Created attachment 133968 [details]
stacktrace
Closing a project.
Created attachment 133969 [details]
stacktrace
Opening project.
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=200290 *** Bug 229372 has been marked as a duplicate of this bug. *** This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=200290 Created attachment 134316 [details]
stacktrace
trying to clean & build mvn project, looks like '\t' in path on win is causing troubles
The conversion from \t to hard tabs (and other escapes for \r and \n) in Windows paths occurs in the JSONParser, which appears to be added to the Maven project system originally in 71289f0dadeb. Removed by Administrator - per request from repoter Created attachment 134403 [details]
stacktrace
While creating Maven EAR project with WebLogic server.
I also happens when building a maven application on a windows platform, but only if the application is located in a special directory. The build is stuck when this happens. For example the project is located at "E:\wsgitnb\basis\product.nom.reporting". Within the exception you can see that the path is rewritten to "E:\wsgitnasis\product.nom.reporting", which is wrong. When the project is moved to a different directory (f.e. "E:\wsgitnb\others\product.nom.reporting") then it works, the build isn't stuck and is executed successfully. SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.netbeans.modules.maven.execute.CommandLineOutputHandler$Output java.nio.file.InvalidPathException: Illegal char > at index 10: E:\wsgitnasis\product.nom.reporting at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182) at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153) at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77) at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94) at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255) at java.io.File.toPath(File.java:2069) at org.openide.util.Utilities.toURI(Utilities.java:3114) at org.openide.filesystems.FileUtil.toFileObject(FileUtil.java:875) at org.netbeans.modules.maven.execute.cmd.ExecProject.findProject(ExecProject.java:74) at org.netbeans.modules.maven.execute.CommandLineOutputHandler$Output.processExecEvent(CommandLineOutputHandler.java:405) at org.netbeans.modules.maven.execute.CommandLineOutputHandler$Output.run(CommandLineOutputHandler.java:270) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042) SEVERE [global] java.io.CharConversionException: Invalid XML character . at org.openide.xml.XMLUtil.checkContentCharacters(XMLUtil.java:800) at org.openide.xml.XMLUtil.toElementContent(XMLUtil.java:630) at org.netbeans.modules.notifications.NotificationImpl.createDetails(NotificationImpl.java:245) Caused: java.lang.IllegalArgumentException at org.netbeans.modules.notifications.NotificationImpl.createDetails(NotificationImpl.java:247) at org.netbeans.modules.notifications.NotificationImpl.initDecorations(NotificationImpl.java:173) at org.netbeans.modules.notifications.center.NotificationCenterManager$3.run(NotificationCenterManager.java:227) at org.netbeans.modules.notifications.center.NotificationCenterManager.firePropertyChange(NotificationCenterManager.java:233) at org.netbeans.modules.notifications.center.NotificationCenterManager.add(NotificationCenterManager.java:101) at org.netbeans.modules.notifications.NotificationDisplayerImpl.add(NotificationDisplayerImpl.java:111) at org.netbeans.modules.notifications.NotificationDisplayerImpl.notify(NotificationDisplayerImpl.java:90) at org.netbeans.core.NotifyExcPanel$ExceptionFlasher.notify(NotifyExcPanel.java:617) at org.netbeans.core.NotifyExcPanel$ExceptionFlasher.access$600(NotifyExcPanel.java:610) at org.netbeans.core.NotifyExcPanel$2.run(NotifyExcPanel.java:349) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:727) at java.awt.EventQueue.access$200(EventQueue.java:103) at java.awt.EventQueue$3.run(EventQueue.java:688) at java.awt.EventQueue$3.run(EventQueue.java:686) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:697) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159) [catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.run(EventDispatchThread.java:91) ---- Using a dev build from last week, WinXP 32bit and JDK 1.7.x. This is reproducible for me and has nothing to do with a Maven project. See https://netbeans.org/bugzilla/show_bug.cgi?id=229171 Created attachment 134471 [details]
stacktrace
Opening project
This does not happen when I open project and change directories now in: Product Version: NetBeans IDE Dev (Build 201305152300) Java: 1.7.0_21; Java HotSpot(TM) 64-Bit Server VM 23.21-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb) It should work fine now, the bug has been fixed here: http://hg.netbeans.org/core-main/rev/501be6257f1e *** Bug 229178 has been marked as a duplicate of this bug. *** So far so good. Haven't seen it with build 201306032301 yet. :) *** Bug 240414 has been marked as a duplicate of this bug. *** |