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 211554 - java.io.FileNotFoundException: ShellFolder: 0x11\a (The filename, directory name, or volume label syntax is incorrect)
Summary: java.io.FileNotFoundException: ShellFolder: 0x11\a (The filename, directory n...
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Show Data (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords: NETFIX
Depends on:
Blocks:
 
Reported: 2012-04-21 20:47 UTC by sunbiz
Modified: 2012-05-11 10:10 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 187265


Attachments
stacktrace (3.62 KB, text/plain)
2012-04-21 20:48 UTC, sunbiz
Details
proposed patch (9.90 KB, patch)
2012-05-02 14:22 UTC, matthias42
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description sunbiz 2012-04-21 20:47:58 UTC
Build: NetBeans IDE Dev (Build 201204160400)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.6-b01, Java(TM) SE Runtime Environment, 1.6.0_31-b05
OS: Windows 7

User Comments:
sunbiz: Save to "Computer", not a folder from the "Save to File" option from a CLOB database field




Stacktrace: 
java.io.FileNotFoundException: ShellFolder: 0x11\a (The filename, directory name, or volume label syntax is incorrect)
   at java.io.FileOutputStream.open(FileOutputStream.java:0)
   at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
   at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
   at org.netbeans.modules.db.dataview.table.celleditor.ClobFieldTableCellEditor.saveLobToFile(ClobFieldTableCellEditor.java:226)
   at org.netbeans.modules.db.dataview.table.celleditor.ClobFieldTableCellEditor.access$000(ClobFieldTableCellEditor.java:62)
   at org.netbeans.modules.db.dataview.table.celleditor.ClobFieldTableCellEditor$1.actionPerformed(ClobFieldTableCellEditor.java:119)
Comment 1 sunbiz 2012-04-21 20:48:03 UTC
Created attachment 118598 [details]
stacktrace
Comment 2 matthias42 2012-05-02 14:22:44 UTC
Created attachment 118978 [details]
proposed patch

The attached patch catches the exceptions and displays them to the user in a sane way, instead of rethrowing as RunTimeException. In parallel the exception is logged to the netbeans log in full.
Comment 3 Jaroslav Havlin 2012-05-09 12:02:15 UTC
> The attached patch catches the exceptions and displays them to the user in a
> sane way, instead of rethrowing as RunTimeException. In parallel the exception
> is logged to the netbeans log in full.

Integrated as http://hg.netbeans.org/core-main/rev/6060115cd58a

Thank you very much, Matthias.
Comment 4 Quality Engineering 2012-05-11 10:10:53 UTC
Integrated into 'main-golden', will be available in build *201205110400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/6060115cd58a
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #211554 - Catch exceptions when reading or saving blob/clob fields