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 250097 - IllegalArgumentException: Called DataObject.find on null
Summary: IllegalArgumentException: Called DataObject.find on null
Status: RESOLVED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Roman Svitanic
URL:
Keywords:
: 251444 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-01-29 15:22 UTC by pangalz
Modified: 2015-03-26 16:38 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 215076


Attachments
stacktrace (1.25 KB, text/plain)
2015-01-29 15:22 UTC, pangalz
Details
ErrorTestCase (6.39 KB, application/zip)
2015-01-30 18:34 UTC, pangalz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pangalz 2015-01-29 15:22:17 UTC
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)
Comment 1 pangalz 2015-01-29 15:22:19 UTC
Created attachment 151730 [details]
stacktrace
Comment 2 Roman Svitanic 2015-01-30 16:36:38 UTC
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?
Comment 3 pangalz 2015-01-30 18:34:00 UTC
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.
Comment 4 Roman Svitanic 2015-02-04 13:56:07 UTC
(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>
Comment 5 pangalz 2015-02-04 15:01:30 UTC
(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.
Comment 6 Roman Svitanic 2015-02-09 12:32:01 UTC
Changeset: 260689532fa9
Author:    Roman Svitanic <rsvitanic@netbeans.org>
Date:      2015-02-09 13:32
Message:   #250097: IllegalArgumentException: Called DataObject.find on null - fixed
Comment 7 Quality Engineering 2015-02-11 03:34:26 UTC
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
Comment 8 Roman Svitanic 2015-03-26 16:38:50 UTC
*** Bug 251444 has been marked as a duplicate of this bug. ***