[jbosstools-issues] [JBoss JIRA] Closed: (JBIDE-3478) NPE when opening Hibernate Console with type JPA

Juergen Zimmermann (JIRA) jira-events at lists.jboss.org
Sun Jan 11 07:16:04 EST 2009


     [ https://jira.jboss.org/jira/browse/JBIDE-3478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Juergen Zimmermann closed JBIDE-3478.
-------------------------------------

    Resolution: Rejected


A collegue changed an @OrderBy clause for a referenced class having a composed primary key, so that there was @OrderBy("pk.foo ASC"). However, Hibernate doesn't allow a path expression inside @OrderBy

> NPE when opening Hibernate Console with type JPA
> ------------------------------------------------
>
>                 Key: JBIDE-3478
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-3478
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Hibernate
>    Affects Versions: 3.0.0.cr1
>         Environment: Eclipse 3.4.1, WTP 3.0.3
>            Reporter: Juergen Zimmermann
>
> When opening a console configuration I get this stacktrace (I invoked the Hibernate Console the first time after a couple of weeks and definitely the 1st time using 3.0.0.cr1):
> org.hibernate.console.HibernateConsoleRuntimeException: Could not create JPA based Configuration
> 	at org.hibernate.console.ConsoleConfiguration.buildJPAConfiguration(ConsoleConfiguration.java:161)
> 	at org.hibernate.console.ConsoleConfiguration.buildConfiguration(ConsoleConfiguration.java:541)
> 	at org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:526)
> 	at org.hibernate.console.ConsoleConfiguration$2.execute(ConsoleConfiguration.java:222)
> 	at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:64)
> 	at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:204)
> 	at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:111)
> 	at org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:40)
> 	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)
> Caused by: java.lang.reflect.InvocationTargetException
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.hibernate.console.ConsoleConfiguration.buildJPAConfiguration(ConsoleConfiguration.java:146)
> 	... 11 more
> Caused by: javax.persistence.PersistenceException: java.lang.NullPointerException
> 	at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:258)
> 	... 16 more
> Caused by: 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.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1269)
> 	at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:150)
> 	at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:888)
> 	at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:186)
> 	at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:246)
> 	... 16 more

-- 
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