-
Bug
-
Resolution: Done
-
Critical
-
4.1.0.Alpha1
When creating projects from JBoss Central ("HTML5 Project" or "RichFaces Project" for example) lot of errors like this appears in error log:
java.lang.ClassCastException: org.eclipse.jpt.jpa.core.internal.jpa1.context.persistence.GenericClassRef cannot be cast to org.jboss.tools.hibernate.jpt.core.internal.context.persistence.HibernateClassRef at org.jboss.tools.hibernate.jpt.core.internal.context.HibernatePersistenceUnit$2.transform(HibernatePersistenceUnit.java:1) at org.eclipse.jpt.common.utility.internal.iterator.TransformationIterator.next(TransformationIterator.java:54) at org.eclipse.jpt.common.utility.internal.iterator.FilteringIterator.loadNext(FilteringIterator.java:122) at org.eclipse.jpt.common.utility.internal.iterator.FilteringIterator.<init>(FilteringIterator.java:90) at org.eclipse.jpt.common.utility.internal.iterable.FilteringIterable.iterator(FilteringIterable.java:68) at org.eclipse.jpt.common.utility.internal.iterable.TransformationIterable.iterator(TransformationIterable.java:50) at org.eclipse.jpt.common.utility.internal.iterable.CompositeIterable.iterables(CompositeIterable.java:72) at org.eclipse.jpt.common.utility.internal.iterable.CompositeIterable.iterators(CompositeIterable.java:65) at org.eclipse.jpt.common.utility.internal.iterable.CompositeIterable.iterator(CompositeIterable.java:57) at org.eclipse.jpt.common.utility.internal.iterable.IterableTools$IteratorTransformer.transform(IterableTools.java:914) at org.eclipse.jpt.common.utility.internal.iterable.IterableTools$IteratorTransformer.transform(IterableTools.java:1) at org.eclipse.jpt.common.utility.internal.iterator.TransformationIterator.next(TransformationIterator.java:54) at org.eclipse.jpt.common.utility.internal.iterator.CompositeIterator.loadCurrentIterator(CompositeIterator.java:88) at org.eclipse.jpt.common.utility.internal.iterator.CompositeIterator.hasNext(CompositeIterator.java:51) at org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit.mapByName(AbstractPersistenceUnit.java:2112) at org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit.buildGenerators(AbstractPersistenceUnit.java:1527) at org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit.update(AbstractPersistenceUnit.java:294) at org.jboss.tools.hibernate.jpt.core.internal.context.HibernatePersistenceUnit.update(HibernatePersistenceUnit.java:92) at org.eclipse.jpt.jpa.core.internal.context.AbstractJpaContextNode.updateNodes(AbstractJpaContextNode.java:61) at org.eclipse.jpt.jpa.core.internal.jpa1.context.persistence.GenericPersistence.update(GenericPersistence.java:71) at org.eclipse.jpt.jpa.core.internal.jpa1.context.persistence.GenericPersistenceXml.syncPersistence(GenericPersistenceXml.java:140) at org.eclipse.jpt.jpa.core.internal.jpa1.context.persistence.GenericPersistenceXml.updatePersistence(GenericPersistenceXml.java:97) at org.eclipse.jpt.jpa.core.internal.jpa1.context.persistence.GenericPersistenceXml.update(GenericPersistenceXml.java:93) at org.eclipse.jpt.jpa.core.internal.jpa1.context.GenericRootContextNode.syncPersistenceXml(GenericRootContextNode.java:126) at org.eclipse.jpt.jpa.core.internal.jpa1.context.GenericRootContextNode.updatePersistenceXml(GenericRootContextNode.java:160) at org.eclipse.jpt.jpa.core.internal.jpa1.context.GenericRootContextNode.update(GenericRootContextNode.java:76) at org.eclipse.jpt.jpa.core.internal.AbstractJpaProject.update(AbstractJpaProject.java:2011) at org.eclipse.jpt.jpa.core.internal.AbstractJpaProject$UpdateJobCommand.execute(AbstractJpaProject.java:1998) at org.eclipse.jpt.common.core.internal.utility.command.RepeatingJobCommandWrapper.executeCommand(RepeatingJobCommandWrapper.java:207) at org.eclipse.jpt.common.core.internal.utility.command.NotifyingRepeatingJobCommandWrapper.executeCommand(NotifyingRepeatingJobCommandWrapper.java:68) at org.eclipse.jpt.common.core.internal.utility.command.RepeatingJobCommandWrapper.execute_(RepeatingJobCommandWrapper.java:192) at org.eclipse.jpt.common.core.internal.utility.command.RepeatingJobCommandWrapper$StartJobCommand.execute(RepeatingJobCommandWrapper.java:172) at org.eclipse.jpt.jpa.core.internal.InternalJpaProjectManager.execute_(InternalJpaProjectManager.java:1202) at org.eclipse.jpt.jpa.core.internal.InternalJpaProjectManager$ClientJobCommandWrapper.execute(InternalJpaProjectManager.java:1182) at org.eclipse.jpt.common.core.internal.utility.command.JobCommandJob.run(JobCommandJob.java:42) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
- is related to
-
JBIDE-13607 Central archetypes not working
- Closed
- relates to
-
JBIDE-13731 error when creating html5 project from central: duplicate listener
- Closed