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 253469 - java.io.FileNotFoundException: C:\Program Files\NetBeans 8.0.1\Frequencias.xml (O sistema n
Summary: java.io.FileNotFoundException: C:\Program Files\NetBeans 8.0.1\Frequencias.xm...
Status: RESOLVED INVALID
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-14 16:50 UTC by Exceptions Reporter
Modified: 2015-09-11 16:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 218526


Attachments
stacktrace (4.81 KB, text/plain)
2015-07-14 16:50 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-07-14 16:50:42 UTC
This bug was originally marked as duplicate of bug 153759, 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.20-b23, Java(TM) SE Runtime Environment, 1.8.0_20-b26
OS: Windows 7

User Comments:
GUEST: http://www.codeproject.com/Articles/677591/Defining-Custom-Source-Event-Listener-in-Java
http://stackoverflow.com/questions/6270132/create-a-custom-event-in-java
http://www.javaworld.com/article/2077333/core-java/mr-happy-object-teaches-custom-events.html?null

Exception is launched when a JForm Class, which inside its initialize() method loads a file, which is not found at its default location, has an instance created in the project view.
In this example a File f = new File ("Frequencies.xml"); //which is located at the project root is not found at the component location

the details says that the current file was not found: //null pointer
C:\Program Files\NetBeans 8.0.1\Frequencies.xml

another example would be using  the path: ./Frequencies.xml which would give C:\Program Files\NetBeans 8.0.1\.\Frequencies.xml




Stacktrace: 
java.io.FileNotFoundException: C:\Program Files\NetBeans 8.0.1\Frequencias.xml (O sistema n
Comment 1 Exceptions Reporter 2015-07-14 16:50:44 UTC
Created attachment 154625 [details]
stacktrace
Comment 2 Tomas Pavek 2015-09-11 16:59:31 UTC
This is an exception from a custom component, the GUI builder cannot do much here. Perhaps the component should check Beans.isDesignTime and no try to do some things when instantiated in GUI builder. But I can hardly guess without knowing the library or having the sources.