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.
This bug was originally marked as duplicate of bug 229135, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE 8.1 RC (Build 201510012201) VM: Java HotSpot(TM) 64-Bit Server VM, 25.40-b25, Java(TM) SE Runtime Environment, 1.8.0_40-b26 OS: Windows 7 User Comments: GUEST: renaming a web project Stacktrace: java.nio.file.InvalidPathException: Trailing char < > at index 61: C:\Users\adm_mipolo\Documents\NetBeansProjects\WS REST Sample \src\conf\persistence.xml at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:172) 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:2234)
Created attachment 156642 [details] stacktrace
This bug is a regression, introduced in fix for bug 254567. Fixed in http://hg.netbeans.org/core-main/rev/44bfe5c45233. (Increasing priority and adding keyword 81_HR_FIX_CANDIDATE.) Please verify. (Reproducible probably only on Windows - renaming project, setting a path with trailing space.) Thank you.
http://hg.netbeans.org/core-main/rev/9d24252ce47b Improved fix. Thank you, Ondra, for consultation.
The fix appears fine and safe enough.
verified in trunk
Thanks Jirko. Jardo, please transplant the fix to release81 branch.
> verified in trunk Thank you very much, Jirka, and also Stepan, for verification. > Jardo, please transplant the fix to release81 branch Integrated as: http://hg.netbeans.org/releases/rev/fa05bf5e8184 http://hg.netbeans.org/releases/rev/123dac7e6c8e Thank you.
Integrated into 'main-silver', will be available in build *201510130002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/44bfe5c45233 User: Jaroslav Havlin <jhavlin@netbeans.org> Log: #255828: java.nio.file.InvalidPathException: Trailing char < > FileObj.setLastModified(File, boolean) should be more protective, various Throwables can be thrown when accessing an invalid file.
verified Product Version: NetBeans IDE 8.1 RC2 (Build 201510122201) Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23 Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb) User directory: C:\Users\jprox\AppData\Roaming\NetBeans\8.1rc2 Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\8.1rc2