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.
Build: NetBeans IDE Dev (Build 090409) VM: Java HotSpot(TM) Client VM, 1.5.0_15-b04, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_15-b04 OS: Windows XP, 5.1, x86 User Comments: psuchomel: Adding Java platform - after opening the Java Platform dialog Stacktrace: java.lang.IllegalArgumentException: Called DataObject.find on null at org.openide.loaders.DataObject.find(DataObject.java:481) at org.netbeans.modules.java.platform.ui.PlatformsCustomizer.addNewPlatform(PlatformsCustomizer.java:326) at org.netbeans.modules.java.platform.ui.PlatformsCustomizer.access$000(PlatformsCustomizer.java:88) at org.netbeans.modules.java.platform.ui.PlatformsCustomizer$1.actionPerformed(PlatformsCustomizer.java:196) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
Created attachment 80224 [details] stacktrace
Changing priority to P2. AFACT, if you start NetBeans with the ergonomics cluster enabled, this action will cause an exception 100% of the time.
Do I understand it correctly that this does not happen without ergonomics?
Not reproducible for me. My usecase: 1) install latest full ide dev build (form netbeans.org!!!) 2) start netbeans > there is no Java Platforms in the Tools menu. So, can you attach some reproducible usecase, please?
I suspect the difference is that I am running NetBeans with the Java Card modules installed. They implement a Java project and Java Platform. Perhaps they trigger some partial enablement of the Java modules? The module is currently on an internal SVN server - I can probably get you access if you need it.
And yes, this does not happen w/o ergonomics
Templates/Services/Platforms/org-netbeans-api-java-Platform/javaplatform.xml does not exist on SystemFileSystem. It's in the module layer in the same module as org.netbeans.modules.java.platform.ui.PlatformsCustomizer. So, something really strange happened....
I guess this one is a duplicate of 160239 which was fixed some time ago. *** This issue has been marked as a duplicate of 160239 ***