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 253411

Summary: java.io.IOException: Use FileUtil.createData() instead!
Product: platform Reporter: vanob <vanob>
Component: FilesystemsAssignee: Jaroslav Havlin <jhavlin>
Status: RESOLVED INCOMPLETE    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 218468
Attachments: stacktrace

Description vanob 2015-07-11 05:56:33 UTC
This bug was originally marked as duplicate of bug 194735, 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.0.2 (Build 201411181905)
VM: Java HotSpot(TM) Client VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b14
OS: Linux

User Comments:
vanob: 1. Project properties
2. Libraries -> Add Library
3. Create
4. In the name I've typed Library 1, pressed OK
5. In the new windows, I've edited the name to Library 2, added jar file and pressed OK




Stacktrace: 
java.io.IOException: Use FileUtil.createData() instead!
   at org.openide.filesystems.AbstractFileObject.createData(AbstractFileObject.java:446)
   at org.openide.filesystems.FileUtil.createData(FileUtil.java:799)
   at org.openide.filesystems.MultiFileObject.createData(MultiFileObject.java:1189)
   at org.openide.filesystems.FileUtil.createData(FileUtil.java:799)
   at org.openide.filesystems.MultiFileObject.createData(MultiFileObject.java:1189)
   at org.openide.filesystems.FileUtil.createData(FileUtil.java:799)
Comment 1 vanob 2015-07-11 05:56:35 UTC
Created attachment 154569 [details]
stacktrace
Comment 2 Jaroslav Havlin 2015-07-30 14:56:07 UTC
It seems to me that the file name must have contained backslash character by mistake.

http://hg.netbeans.org/core-main/rev/0b108d445477
Added file name to error message. It could help us understand what is wrong the next time this problem occurs.

Thank you for reporting.
Comment 3 Quality Engineering 2015-08-01 02:01:07 UTC
Integrated into 'main-silver', will be available in build *201508010002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/0b108d445477
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #253411: Append file name to exception message