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 97661

Summary: Can't have ejbff w/o DD
Product: obsolete Reporter: Lukas Jungmann <jungi>
Component: EJB FreeformAssignee: Andrei Badea <abadea>
Status: VERIFIED WONTFIX    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 95534    
Bug Blocks:    
Attachments: nb ejbff to open

Description Lukas Jungmann 2007-03-12 15:44:00 UTC
-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)
Comment 1 Lukas Jungmann 2007-03-12 15:45:38 UTC
Created attachment 39397 [details]
nb ejbff to open
Comment 2 Andrei Badea 2007-03-22 14:36:03 UTC
Caused by the missing metadata model.
Comment 3 Andrei Badea 2007-06-19 14:27:02 UTC
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.
Comment 4 _ pcw 2007-06-20 00:36:39 UTC
Why is creating metadata model required to determine the version?  Isn't that coded into the project?
Comment 5 Andrei Badea 2007-06-20 08:29:11 UTC
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.
Comment 6 Andrei Badea 2007-07-04 09:57:25 UTC
The EJB freeform project has been dropped from NetBeans 6.0.
Comment 7 Lukas Jungmann 2007-08-24 13:56:45 UTC
ok.