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 246364

Summary: IllegalArgumentException: Called DataObject.find on null
Product: javafx Reporter: abien <abien>
Component: ProjectAssignee: Roman Svitanic <rsvitanic>
Status: RESOLVED INCOMPLETE    
Severity: normal CC: datavirtue
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 211167
Attachments: stacktrace

Description abien 2014-08-10 00:53:04 UTC
This bug was originally marked as duplicate of bug 244860, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201408030001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b70, Java(TM) SE Runtime Environment, 1.8.0-b132
OS: Mac OS X

User Comments:
abien: Happened during calling the JavaFX wizard for the creation of a presenter

GUEST: I have installed JDK 8 with JavaFX to use SceneBuilder. I have set up SceneBuilder Path and wanted to create an empty FXML file, but when i click on finish in the wizard it tells me "called DataObject.find on null". Regardless of the CheckBox "Use Java Controller" or "Use Cascading Stylesheets" or the package i select in which it should be created.




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)
Comment 1 abien 2014-08-10 00:53:06 UTC
Created attachment 148621 [details]
stacktrace
Comment 2 datavirtue 2014-08-13 03:15:12 UTC
Just ended up here while searching this error in Google.  Exact same details as the original poster while creating an Empty FXML via the wizard.  For what it's worth I created a FXML Main Class before attempting to create the Empty FXML.
Comment 3 datavirtue 2014-08-13 03:29:45 UTC
*** Bug 246419 has been marked as a duplicate of this bug. ***
Comment 4 datavirtue 2014-08-13 03:49:11 UTC
Took recent update to FX tonight hoping it would fix the issue.  No dice.  Left creating FXML from scratch in Netbeans in existing projects at least.
Comment 5 Lou Dasaro 2014-08-13 04:05:21 UTC
datavirtue: Please copy ctrl+C information from NetBeans IDE's Help->About and paste into a comment here. For example, mine looks like:

Product Version: NetBeans IDE 8.0.1 RC1 (Build 201408072300)
Java: 1.8.0_20-ea; Java HotSpot(TM) Client VM 25.20-b22
Runtime: Java(TM) SE Runtime Environment 1.8.0_20-ea-b23
System: Windows 8 version 6.2 running on x86; Cp1252; en_US (nb)
Comment 6 Lou Dasaro 2014-08-13 22:01:56 UTC
I am unable to duplicate this error using the latest 8.0.1 release candidate and JDK 1.8.0_20, or 1.8.0_11 (or 1.7.0_67). NetBeans IDE 8.0.1 Release Candidate passed both sanity and full testing with no errors except Bug 242235.

If you can reproduce this error, please reopen this bug with my apologies, and copy your Help->About information here, along with specific steps to reproduce. Thank you.