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 219837

Summary: Save threads image to Libraries > Pictures doesn't work
Product: platform Reporter: Alexander Kouznetsov <mrkam>
Component: JDK ProblemsAssignee: Stanislav Aubrecht <saubrecht>
Status: RESOLVED WONTFIX    
Severity: normal CC: anebuzelsky
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Windows 7   
URL: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8003399
Issue Type: DEFECT Exception Reporter:
Attachments: Screenshot
Screenshot of Libraries selection

Description Alexander Kouznetsov 2012-10-10 14:39:37 UTC
Created attachment 125705 [details]
Screenshot

Try to save Threads image on Windows 7 into Libraries > Pictures folder.

You'll get the following error message (attached): "Failed to save image to C:\Program Files (x86)\NetBeans Dev 201210100002\Pictures\threads.png."

Even the path shown in this message is not correct.
Comment 1 Jiri Sedlacek 2012-10-10 14:54:18 UTC
Can't reproduce the problem, there's no Libraries > Pictures folder provided by the Swing 'Select File or Directory' in my Windows 7. Saving to C:\Users\%USER%\Pictures ("My Pictures") works fine.

Please describe how did you access the Libraries > Pictures folder. Does the same work correctly for you in other Java applications?
Comment 2 Alexander Kouznetsov 2012-10-10 22:18:10 UTC
Created attachment 125722 [details]
Screenshot of Libraries selection

I'm selecting this from the dropdown on top. However you're right that this doesn't seem to be the profiler only problem. I tried to Save As a NetBeans file and got almost the same result: "Cannot create the target folder" message.
Comment 3 Alexander Kouznetsov 2012-10-10 22:19:57 UTC
This is common NetBeans problem.
Comment 4 Jaroslav Tulach 2012-10-14 19:43:48 UTC
If it is so common outside of profiler, then give me steps to reproduce without "threads image". Otherwise I'll assume it is a profiler problem.
Comment 5 Tomas Hurka 2012-10-14 20:33:52 UTC
(In reply to comment #4)
> If it is so common outside of profiler, then give me steps to reproduce without
> "threads image". Otherwise I'll assume it is a profiler problem.
Read comment #2.
Comment 6 Jaroslav Tulach 2012-10-24 07:27:33 UTC
Let's pretend it is a Swing file chooser problem. Tonda can find somebody to confirm and possibly workaround it.
Comment 7 Stanislav Aubrecht 2012-11-06 15:50:02 UTC
Please provide JDK version info and reopen, thanks.
Comment 8 Alexander Kouznetsov 2012-11-06 16:00:11 UTC
Reproducible with the following JDK:
Java: 1.7.0_04; Java HotSpot(TM) 64-Bit Server VM 23.0-b21