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 255828 - java.nio.file.InvalidPathException: Trailing char < > at index 61: C:\Users\adm_mipolo\Documents\NetBeansProjects\WS REST Sample \src\conf\persistence.xml
Summary: java.nio.file.InvalidPathException: Trailing char < > at index 61: C:\Users\a...
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 8.1
Hardware: All All
: P1 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords: 81_HR_FIX
Depends on:
Blocks:
 
Reported: 2015-10-09 10:58 UTC by Exceptions Reporter
Modified: 2015-10-14 13:50 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 220457


Attachments
stacktrace (2.94 KB, text/plain)
2015-10-09 10:58 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2015-10-09 10:58:22 UTC
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)
Comment 1 Exceptions Reporter 2015-10-09 10:58:25 UTC
Created attachment 156642 [details]
stacktrace
Comment 2 Jaroslav Havlin 2015-10-12 07:17:21 UTC
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.
Comment 3 Jaroslav Havlin 2015-10-12 11:08:28 UTC
http://hg.netbeans.org/core-main/rev/9d24252ce47b
Improved fix.

Thank you, Ondra, for consultation.
Comment 4 Ondrej Vrabec 2015-10-12 11:37:13 UTC
The fix appears fine and safe enough.
Comment 5 Jiri Prox 2015-10-12 13:28:34 UTC
verified in trunk
Comment 6 Jiri Kovalsky 2015-10-12 13:43:19 UTC
Thanks Jirko. Jardo, please transplant the fix to release81 branch.
Comment 7 Jaroslav Havlin 2015-10-12 14:39:24 UTC
> 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.
Comment 8 Quality Engineering 2015-10-13 01:32:53 UTC
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.
Comment 9 Jiri Prox 2015-10-14 13:50:04 UTC
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