[jbosstools-issues] [JBoss JIRA] Created: (JBIDE-4194) NPE with Hibernate Tools

Murat HAZER (JIRA) jira-events at lists.jboss.org
Thu Apr 16 09:58:22 EDT 2009


NPE with Hibernate Tools
------------------------

                 Key: JBIDE-4194
                 URL: https://jira.jboss.org/jira/browse/JBIDE-4194
             Project: Tools (JBoss Tools)
          Issue Type: Bug
          Components: Hibernate
    Affects Versions: 3.0.0.GA
         Environment: Eclipse Platform, Version: 3.4.2, Build id: M20090211-1700
JBoss Tools RichFaces for Eclipse, Version: 3.0.0.GA-R200903141626-H5
            Reporter: Murat HAZER


if you create hibernate-cfg.xml with annotations driven mapping classes hibernate tools gives following error;

!ENTRY org.hibernate.eclipse.console 4 2 2009-04-16 16:14:58.008
!MESSAGE java.lang.NullPointerException
!SUBENTRY 1 org.hibernate.eclipse.console 4 150 2009-04-16 16:14:58.008
!MESSAGE <No message>
!STACK 0
java.lang.NullPointerException
	at org.hibernate.cfg.annotations.CollectionBinder.buildOrderByClauseFromHql(CollectionBinder.java:851)
	at org.hibernate.cfg.annotations.CollectionBinder.bindOneToManySecondPass(CollectionBinder.java:608)
	at org.hibernate.cfg.annotations.CollectionBinder.bindStarToManySecondPass(CollectionBinder.java:563)
	at org.hibernate.cfg.annotations.CollectionBinder$1.secondPass(CollectionBinder.java:517)
	at org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:43)
	at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1130)
	at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:316)
	at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1115)
	at org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter$1.execute(ConsoleConfigurationWorkbenchAdapter.java:45)
	at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:64)
	at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:94)
	at org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:41)
	at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:99)
	at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:105)
	at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:234)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

solution: upgrade hibernate-annotations.jar to 3.3.1.GA and hibernate-entitymanager.jar to 3.3.2.GA


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list