This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 174711 - get EMF exceptions when J2EEDeployableFactory tries access ear edit for projects of version 5.0
Summary: get EMF exceptions when J2EEDeployableFactory tries access ear edit for proje...
Status: CLOSED FIXED
Alias: None
Product: WTP Java EE Tools
Classification: WebTools
Component: jst.j2ee (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.0   Edit
Assignee: Raj Mandayam CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-19 17:38 EST by Raj Mandayam CLA
Modified: 2008-04-23 04:22 EDT (History)
0 users

See Also:


Attachments
this patch prevents access to ear edit in most cases (1.79 KB, patch)
2007-02-19 17:41 EST, Raj Mandayam CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Raj Mandayam CLA 2007-02-19 17:38:05 EST
Build ID: WTP I20070206

Steps To Reproduce:
1. create an ejb 3.0, ear 5.0 or web 2.5 project
2.see this exception in log
3.

*** ERROR ***: Mon Feb 19 17:35:12 EST 2007    org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException: index=0, size=0
    	at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:535)
    	at org.eclipse.jst.j2ee.componentcore.EnterpriseArtifactEdit.getDeploymentDescriptorRoot(EnterpriseArtifactEdit.java:154)
    	at org.eclipse.jst.j2ee.componentcore.util.EARArtifactEdit.getApplication(EARArtifactEdit.java:291)
    	at org.eclipse.jst.j2ee.internal.deployables.J2EEDeployableFactory.createBinaryModules(J2EEDeployableFactory.java:109)
    	at org.eclipse.jst.j2ee.internal.deployables.J2EEDeployableFactory.createModuleDelegates(J2EEDeployableFactory.java:97)
    	at org.eclipse.jst.j2ee.internal.deployables.J2EEDeployableFactory.createModules(J2EEDeployableFactory.java:72)
    	at org.eclipse.jst.j2ee.internal.deployables.J2EEDeployableFactory.createModules(J2EEDeployableFactory.java:61)
    	at org.eclipse.wst.server.core.util.ProjectModuleFactoryDelegate.cacheModules(ProjectModuleFactoryDelegate.java:60)
    	at org.eclipse.wst.server.core.util.ProjectModuleFactoryDelegate.getModules(ProjectModuleFactoryDelegate.java:257)
    	at org.eclipse.wst.server.core.internal.ModuleFactory.getModules(ModuleFactory.java:127)
    	at org.eclipse.wst.server.core.ServerUtil.getModules(ServerUtil.java:98)
    	at org.eclipse.wst.server.core.internal.ResourceManager.publishHandleProjectChange(ResourceManager.java:971)
    	at org.eclipse.wst.server.core.internal.ResourceManager$1.visit(ResourceManager.java:120)
    	at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:67)
    	at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:76)
    	at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:48)
    	at org.eclipse.wst.server.core.internal.ResourceManager$ServerResourceChangeListener.resourceChanged(ResourceManager.java:114)
    	at org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:282)
    	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    	at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:276)
    	at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:148)
    	at org.eclipse.core.internal.resources.Workspace.broadcastBuildEvent(Workspace.java:241)
    	at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:159)
    	at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:222)
    	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)



More information:
Comment 1 Raj Mandayam CLA 2007-02-19 17:41:56 EST
Created attachment 59323 [details]
this patch prevents access to ear edit in most cases

This is done because only when the component is binary does it actually use earedit, so I did some refactoring see patch.
Comment 2 Raj Mandayam CLA 2007-04-10 14:40:15 EDT
fixed 02/20
Comment 3 Raj Mandayam CLA 2007-04-10 14:40:38 EDT
closed