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 - java.io.IOException: Use FileUtil.createData() instead!
Summary: java.io.IOException: Use FileUtil.createData() instead!
Status: RESOLVED INCOMPLETE
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-11 05:56 UTC by vanob
Modified: 2015-08-01 02:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 218468


Attachments
stacktrace (6.94 KB, text/plain)
2015-07-11 05:56 UTC, vanob
Details

Note You need to log in before you can comment on or make changes to this bug.
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