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 168558

Summary: IllegalArgumentException: Called DataObject.find on null
Product: ide Reporter: Oleg Khokhlov <ovk>
Component: Features On DemandAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED FIXED    
Severity: blocker CC: jglick
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=153330
Issue Type: DEFECT Exception Reporter: 153330
Attachments: stacktrace

Description Oleg Khokhlov 2009-07-14 15:47:31 UTC
Build: NetBeans IDE Dev (Build 200907130200)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Windows XP, 5.1, x86

User Comments:
ovk: started new ergo IDE
File->Import Eclipse Project-> j2se activation -> exception

GUEST: tried to import an eclipse project directly after installing netbeans ide.



Stacktrace: 
java.lang.IllegalArgumentException: Called DataObject.find on null<br/>
        at org.openide.loaders.DataObject.find(DataObject.java:481)<br/>
        at org.netbeans.modules.ide.ergonomics.ImportProjectAction.performRegular(ImportProjectAction.java:90)<br/>
        at org.netbeans.modules.ide.ergonomics.ImportProjectAction.access$000(ImportProjectAction.java:62)<br/>
        at org.netbeans.modules.ide.ergonomics.ImportProjectAction$1.run(ImportProjectAction.java:78)<br/>
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602)<br/>
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1070)<br/>
Comment 1 Oleg Khokhlov 2009-07-14 15:47:36 UTC
Created attachment 84726 [details]
stacktrace
Comment 2 Jaroslav Tulach 2009-07-23 16:53:54 UTC
ergonomics#61b231826f3c
Comment 3 Jaroslav Tulach 2009-07-23 16:55:26 UTC
*** Issue 168883 has been marked as a duplicate of this issue. ***
Comment 4 Quality Engineering 2009-07-25 06:21:55 UTC
Integrated into 'main-golden', will be available in build *200907250201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/61b231826f3c
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #168558: Using static analysis to correctly point to Import Eclipse Project action
Comment 5 Jesse Glick 2012-02-21 16:47:46 UTC
ImportProjectAction continues to be registered in layer.xml rather than using @ActionRegistration, since @ActionReference cannot recreate the <attr name="ergonomics" boolvalue="true"/>. Is this attribute still needed? The code interpreting it looks to have been moved to ide.ergonomics/src-ant/org/netbeans/modules/ide/ergonomics/ant/entry-points.xsl since then.
Comment 6 Jaroslav Tulach 2012-03-02 15:04:42 UTC
entry-points.xsl is still executed during build, so yes, the attribute may still be needed.