Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326785 - EjbJar31FactoryImpl cannot be cast to EjbJar30.EjbJar30Factory
Summary: EjbJar31FactoryImpl cannot be cast to EjbJar30.EjbJar30Factory
Status: CLOSED FIXED
Alias: None
Product: MoDisco
Classification: Modeling
Component: Technologies (show other bugs)
Version: 0.9.0   Edit
Hardware: PC Windows 7
: P1 normal (vote)
Target Milestone: 0.9.0 M3   Edit
Assignee: Fabien Giquel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-01 10:18 EDT by Nicolas Bros CLA
Modified: 2011-01-11 04:59 EST (History)
3 users (show)

See Also:
fabien.giquel: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Bros CLA 2010-10-01 10:18:56 EDT
- install eclipse-SDK-3.6-win32
- install MoDisco SDK from http://download.eclipse.org/modeling/mdt/modisco/updates/milestones/0.9
- open the "EPackage Registry" view

I get the following 4 exceptions:

org.eclipse.modisco.jee.ejbjar.EjbJar30.impl.EjbJar30FactoryImpl cannot be cast to org.eclipse.modisco.jee.webapp.webapp25.Webapp25Factory

org.eclipse.modisco.jee.webapp.webapp24.impl.Webapp24FactoryImpl cannot be cast to org.eclipse.modisco.jee.ejbjar.EjbJar21.EjbJar21Factory

org.eclipse.modisco.jee.ejbjar.EjbJar31.impl.EjbJar31FactoryImpl cannot be cast to org.eclipse.modisco.jee.ejbjar.EjbJar30.EjbJar30Factory

org.eclipse.modisco.jee.webapp.webapp30.impl.Webapp30FactoryImpl cannot be cast to org.eclipse.modisco.jee.ejbjar.EjbJar31.EjbJar31Factory



java.lang.ClassCastException: org.eclipse.modisco.jee.ejbjar.EjbJar31.impl.EjbJar31FactoryImpl cannot be cast to org.eclipse.modisco.jee.ejbjar.EjbJar30.EjbJar30Factory
at org.eclipse.modisco.jee.ejbjar.EjbJar30.impl.EjbJar30FactoryImpl.init(EjbJar30FactoryImpl.java:167)
at org.eclipse.modisco.jee.ejbjar.EjbJar30.EjbJar30Factory.<clinit>(EjbJar30Factory.java:31)
at org.eclipse.modisco.jee.ejbjar.EjbJar30.impl.EjbJar30PackageImpl.<init>(EjbJar30PackageImpl.java:1181)
at org.eclipse.modisco.jee.ejbjar.EjbJar30.impl.EjbJar30PackageImpl.init(EjbJar30PackageImpl.java:1205)
at org.eclipse.modisco.jee.ejbjar.EjbJar30.EjbJar30Package.<clinit>(EjbJar30Package.java:69)
at sun.misc.Unsafe.ensureClassInitialized(Native Method)
at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(Unknown Source)
at sun.reflect.ReflectionFactory.newFieldAccessor(Unknown Source)
at java.lang.reflect.Field.acquireFieldAccessor(Unknown Source)
at java.lang.reflect.Field.getFieldAccessor(Unknown Source)
at java.lang.reflect.Field.get(Unknown Source)
at org.eclipse.emf.ecore.plugin.RegistryReader$EPackageDescriptor.getEPackage(RegistryReader.java:274)
at org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage(EPackageRegistryImpl.java:133)
at org.eclipse.gmt.modisco.infra.common.ui.internal.views.PackageRegistryView.preloadRegistry(PackageRegistryView.java:168)
at org.eclipse.gmt.modisco.infra.common.ui.internal.views.PackageRegistryView.doRefresh(PackageRegistryView.java:302)
at org.eclipse.gmt.modisco.infra.common.ui.internal.views.AbstractCatalogView$5.run(AbstractCatalogView.java:182)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 1 Nicolas Bros CLA 2010-10-04 08:21:55 EDT
I have noticed that generators created with Acceleo (classes extending AbstractAcceleoGenerator) manipulate the package registry (AbstractAcceleoGenerator#registerPackages).

Maybe this is linked?
Comment 2 Fabien Giquel CLA 2010-10-25 12:36:25 EDT
A fix has been commited into SVN (revisions 3359 3360 3361 3362 3363)
Comment 3 Hugo Bruneliere CLA 2011-01-11 04:59:53 EST
Bug fixed.