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 64568 - Unable to save configuration coming from AS 7.0
Summary: Unable to save configuration coming from AS 7.0
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: _ pcw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-16 19:44 UTC by Nam Nguyen
Modified: 2005-10-05 02:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NB4.1 exception stacks when saving ejbjar project with existing srouce from AS7 (34.78 KB, text/plain)
2005-09-16 19:48 UTC, Nam Nguyen
Details
imported project, just edit configuration and try to save will see stack and config not saved (29.70 KB, application/octet-stream)
2005-09-17 01:36 UTC, Nam Nguyen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nam Nguyen 2005-09-16 19:44:37 UTC
Create new ejbjar project from existing source with AS7 cmp beans (so
sun-cmp-mappings.xml will be at AS7 level), set J2EE level at 1.4.  Try to add a
session bean, open configuration files for AS, edit the new bean jndi name or
some different value like pool size,...  Save is not enabled, close the as
config tab and use the dialog OK to save.  Use text editor to see that the
sun-ejb-jar.xml is not updated with the new bean values.  It seems that the xml
editor on sun-ejb-jar.xml still behave the same way.

On the console, we have multitude of this stack traces (full stack in attachment):
---------------
java.lang.ClassCastException:
org.netbeans.modules.j2ee.sun.dd.impl.ejb.model_2_0_0.PmDescriptors
	at
org.netbeans.modules.j2ee.sun.dd.impl.ejb.model_2_1_1.EnterpriseBeans.setPmDescriptors(EnterpriseBeans.java:146)
	at
org.netbeans.modules.j2ee.sun.share.configBean.EjbJarRoot$2.getDDSnippet(EjbJarRoot.java:219)
	at org.netbeans.modules.j2ee.sun.share.configBean.Base.addToGraphs(Base.java:625)
	at
org.netbeans.modules.j2ee.sun.share.configBean.SunONEDeploymentConfiguration.updateContentMap(SunONEDeploymentConfiguration.java:923)
	at
org.netbeans.modules.j2ee.sun.share.configBean.SunONEDeploymentConfiguration.extractFileFromPlanForModule(SunONEDeploymentConfiguration.java:837)
	at
org.netbeans.modules.j2ee.sun.ide.j2ee.incrdeploy.DirectoryDeployment.writeDeploymentPlanFiles(DirectoryDeployment.java:399)
---------------
java.lang.NullPointerException
	at
org.netbeans.modules.j2ee.sun.share.configBean.EjbJarRoot.processParentBean(EjbJarRoot.java:310)
	at org.netbeans.modules.j2ee.sun.share.configBean.Base.addToGraphs(Base.java:654)
	at
org.netbeans.modules.j2ee.sun.share.configBean.SunONEDeploymentConfiguration.updateContentMap(SunONEDeploymentConfiguration.java:923)
Comment 1 Nam Nguyen 2005-09-16 19:48:51 UTC
Created attachment 24895 [details]
NB4.1 exception stacks when saving ejbjar project with existing srouce from AS7
Comment 2 Vince Kraemer 2005-09-16 21:21:12 UTC
Is the root cause "the same" as the issue 59232???
Comment 3 _ pcw 2005-09-17 00:37:43 UTC
Nam, could you attach the project that generated this problem please?
Comment 4 Nam Nguyen 2005-09-17 01:36:10 UTC
Created attachment 24903 [details]
imported project, just edit configuration and try to save will see stack and config not saved
Comment 5 _ pcw 2005-09-20 08:17:35 UTC
This should be fixed now.
Comment 6 _ pcw 2005-10-05 01:21:26 UTC
More version related code requird to fix this, still some open issues.
Comment 7 _ pcw 2005-10-05 02:57:33 UTC
Updated code that handled different versions of incoming sun-xxx descriptor
files.  7.0 files are now handled properly, 8.0 as well.