Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.3.0.Beta1
    • Fix Version/s: 3.3.0.Beta3
    • Component/s: hibernate
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      1. JPA Project, add hibernate 4.0 classes (referenced from other General project folder)
      2. create package-info.java

      @TypeDefs(

      { @TypeDef(Name="addr", typeClass=test.pack.AddressTypeDescriptor.class, defaultForType=test.pack.AddressType.class, parameters = @Parameter(name = "pp", value = "bb")), @TypeDef(name="intt", typeClass=test.pack.IntTypeDescriptor.class, defaultForType=int.class) }

      )
      @GenericGenerator(name="gg1",stragety="hillo")
      @NamedQuery(name = "hibNamed")
      package test.pack
      import org.hibernate.annotations.*;

      3. Remove line "package test.pack"

      Show
      1. JPA Project, add hibernate 4.0 classes (referenced from other General project folder) 2. create package-info.java @TypeDefs( { @TypeDef(Name="addr", typeClass=test.pack.AddressTypeDescriptor.class, defaultForType=test.pack.AddressType.class, parameters = @Parameter(name = "pp", value = "bb")), @TypeDef(name="intt", typeClass=test.pack.IntTypeDescriptor.class, defaultForType=int.class) } ) @GenericGenerator(name="gg1",stragety="hillo") @NamedQuery(name = "hibNamed") package test.pack import org.hibernate.annotations.*; 3. Remove line "package test.pack"

      Description

      java.lang.NullPointerException
      at org.jboss.tools.hibernate.jpt.core.internal.HibernateJpaProject$4.transform(HibernateJpaProject.java:134)
      at org.jboss.tools.hibernate.jpt.core.internal.HibernateJpaProject$4.transform(HibernateJpaProject.java:1)
      at org.eclipse.jpt.common.utility.internal.iterables.TransformationIterable$DefaultTransformer.transform(TransformationIterable.java:87)
      at org.eclipse.jpt.common.utility.internal.iterators.TransformationIterator.transform(TransformationIterator.java:95)
      at org.eclipse.jpt.common.utility.internal.iterators.TransformationIterator.next(TransformationIterator.java:83)
      at org.eclipse.jpt.common.utility.internal.iterators.FilteringIterator.loadNext(FilteringIterator.java:119)
      at org.eclipse.jpt.common.utility.internal.iterators.FilteringIterator.<init>(FilteringIterator.java:87)
      at org.eclipse.jpt.common.utility.internal.iterables.FilteringIterable.iterator(FilteringIterable.java:66)
      at org.eclipse.jpt.common.utility.internal.iterables.CompositeIterable$1.transform(CompositeIterable.java:81)
      at org.eclipse.jpt.common.utility.internal.iterables.CompositeIterable$1.transform(CompositeIterable.java:1)
      at org.eclipse.jpt.common.utility.internal.iterators.TransformationIterator.next(TransformationIterator.java:83)
      at org.eclipse.jpt.common.utility.internal.iterators.CompositeIterator.loadCurrentIterator(CompositeIterator.java:150)
      at org.eclipse.jpt.common.utility.internal.iterators.CompositeIterator.hasNext(CompositeIterator.java:113)
      at org.eclipse.jpt.jpa.core.internal.context.ContextContainerTools.sync(ContextContainerTools.java:101)
      at org.eclipse.jpt.jpa.core.internal.context.ContextContainerTools.update(ContextContainerTools.java:88)
      at org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit.updateImpliedClassRefs(AbstractPersistenceUnit.java:961)
      at org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit.update(AbstractPersistenceUnit.java:252)
      at org.jboss.tools.hibernate.jpt.core.internal.context.HibernatePersistenceUnit.update(HibernatePersistenceUnit.java:96)
      at org.eclipse.jpt.jpa.core.internal.context.AbstractJpaContextNode.updateNodes(AbstractJpaContextNode.java:55)
      at org.eclipse.jpt.jpa.core.internal.jpa1.context.persistence.GenericPersistence.update(GenericPersistence.java:69)
      at org.eclipse.jpt.jpa.core.internal.jpa1.context.persistence.GenericPersistenceXml.update(GenericPersistenceXml.java:113)
      at org.eclipse.jpt.jpa.core.internal.jpa1.context.GenericRootContextNode.syncPersistenceXml(GenericRootContextNode.java:123)
      at org.eclipse.jpt.jpa.core.internal.jpa1.context.GenericRootContextNode.updatePersistenceXml(GenericRootContextNode.java:157)
      at org.eclipse.jpt.jpa.core.internal.jpa1.context.GenericRootContextNode.update(GenericRootContextNode.java:73)
      at org.eclipse.jpt.jpa.core.internal.AbstractJpaProject.update(AbstractJpaProject.java:1905)
      at org.eclipse.jpt.jpa.core.GenericJpaProjectManager$2.execute(GenericJpaProjectManager.java:452)
      at org.eclipse.jpt.common.core.internal.utility.JobSynchronizer$SynchronizationJob.run(JobSynchronizer.java:160)
      at org.eclipse.jpt.common.core.internal.utility.CallbackJobSynchronizer$CallbackSynchronizationJob.run(CallbackJobSynchronizer.java:137)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                dgeraskov Dmitry Geraskov
                Reporter:
                jpeterka Jiri Peterka
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: