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.
-create ejb ff from attached sources => NPE is thrown: java.lang.NullPointerException at org.netbeans.modules.j2ee.ejbfreeform.EJBFreeformModule.getModuleVersion(EJBFreeformModule.java:95) at org.netbeans.modules.j2ee.sun.share.configbean.SunONEDeploymentConfiguration.init(SunONEDeploymentConfiguration.java:227) at org.netbeans.modules.j2ee.sun.ide.j2ee.ConfigurationSupportImpl.initConfiguration(ConfigurationSupportImpl.java:65) at org.netbeans.modules.j2ee.deployment.config.ConfigSupportImpl.getDeploymentConfiguration(ConfigSupportImpl.java:439) at org.netbeans.modules.j2ee.deployment.config.ConfigSupportImpl.ensureConfigurationReady(ConfigSupportImpl.java:211) at org.netbeans.modules.j2ee.ejbfreeform.LookupProviderImpl$ProjectOpenedHookImpl.projectOpened(LookupProviderImpl.java:138) at org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:56) [catch] at org.netbeans.modules.project.ui.OpenProjectList.notifyOpened(OpenProjectList.java:613)
Created attachment 39397 [details] nb ejbff to open
Caused by the missing metadata model.
This will be quite hard to fix with the current freeform architecture, where the Java EE modules don't have a clue about the underlying compilation units. The Java EE modules need a boot and compile classpath in order to create the metadata model, which they can only obtain from the compilation units.
Why is creating metadata model required to determine the version? Isn't that coded into the project?
I don't plan to use the metadata model to get the version, that is indeed in the deployment descriptor (if any) and in project.xml. It's implementing the metadata model itself that will be hard.
The EJB freeform project has been dropped from NetBeans 6.0.
ok.