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 20051211] Steps: 1) import attached cmp2 freeform project 2) add CMP bean from database ERROR: this exception is thrown java.lang.NullPointerException at org.netbeans.modules.j2ee.sun.share.configbean.SunONEDeploymentConfiguration.ensureResourceDefined(SunONEDeploymentConfiguration.java:395)
Created attachment 27779 [details] test application
It seems that issue isn't related to sunappserv8 -> j2ee
Created attachment 27780 [details] stack trace
Caused by the EJB freeform project not having a server instance ID, only a server ID. We could work around in the CMP wizard by disabling it when the target project doesn't have a server instance, but before that we should probably rethink the purpose of the EJB freeform project and the use cases it is supposed to provide. Could by probably addressed together with issue 66807.
I would prefer if the freeform project knew its server type (and instance if needed) just for configuration purpose. We should also make sure that the CMP wizard works, albeit without creating server configuration, if there is no target server. Not critical for 5.0.
The last exception (the one the user would see, not the INFORMATIONAL ones) shouldn't happen anymore - I fixed that in response to a related IZ issue, though the user will not be notified that their server resource wasn't created -- which I suppose is not very good either.
Disregard last comment, code inspection suggested there is another place that could have occurred that is not yet fixed.
Already fixed by Andrei. The wizard was disabled for EJB freeform project.