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.
This bug was originally marked as duplicate of bug 246364, 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) 64-Bit Server VM, 25.25-b02, Java(TM) SE Runtime Environment, 1.8.0_25-b17 OS: Linux User Comments: abien: Happened during calling the JavaFX wizard for the creation of a presenter pangalz: Cannot create an empty JavaFX fxml file Stacktrace: java.lang.IllegalArgumentException: Called DataObject.find on null at org.openide.loaders.DataObject.find(DataObject.java:555) at org.openide.loaders.DataFolder.findFolder(DataFolder.java:540) at org.netbeans.modules.javafx2.project.fxml.FXMLTemplateWizardIterator.instantiate(FXMLTemplateWizardIterator.java:214) at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1046) at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:605) at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:439)
Created attachment 151730 [details] stacktrace
Thanks for the report, but I am not able to reproduce the issue. Could you please provide more details about the steps that lead to the mentioned exception?
Created attachment 151754 [details] ErrorTestCase I'm only getting error with this project. If I create a new JavaFX (Maven or Ant) from NetBeans, the FXML wizard works correctly.
(In reply to pangalz from comment #3) > I'm only getting error with this project. Thanks for the error test case. In your pom.xml, did you specify resources outside the default location (src/main/resources) intentionally? <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.fxml</include> <include>**/*.css</include> <include>**/*.properties</include> </includes> </resource> </resources>
(In reply to Roman Svitanic from comment #4) > (In reply to pangalz from comment #3) > > I'm only getting error with this project. > > Thanks for the error test case. > > In your pom.xml, did you specify resources outside the default location > (src/main/resources) intentionally? > > <resources> > <resource> > <directory>src/main/java</directory> > <includes> > <include>**/*.fxml</include> > <include>**/*.css</include> > <include>**/*.properties</include> > </includes> > </resource> > </resources> Yes, thats because alot of internet templates and samples conventionally put resources inside sources packages. Even samples from Oracle website (HelloI18N and IssueTracking) use that approach.
Changeset: 260689532fa9 Author: Roman Svitanic <rsvitanic@netbeans.org> Date: 2015-02-09 13:32 Message: #250097: IllegalArgumentException: Called DataObject.find on null - fixed
Integrated into 'main-silver', will be available in build *201502110001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/260689532fa9 User: Roman Svitanic <rsvitanic@netbeans.org> Log: #250097: IllegalArgumentException: Called DataObject.find on null - fixed Task #250097 - IllegalArgumentException: Called DataObject.find on null
*** Bug 251444 has been marked as a duplicate of this bug. ***