You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juddi.apache.org by "subes (JIRA)" <ju...@ws.apache.org> on 2013/04/11 18:43:17 UTC

[jira] [Comment Edited] (JUDDI-587) JUDDI incompatible with Hibernate 4.1.x and 4.2.x

    [ https://issues.apache.org/jira/browse/JUDDI-587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13629091#comment-13629091 ] 

subes edited comment on JUDDI-587 at 4/11/13 4:41 PM:
------------------------------------------------------

Hi Kurt,

1) The resulting error is the same. I've shortened the stacktrace to show the commonanlity between these two.
2) I guess you could try your JUDDI testcases in combination with hibernate using a more recent version of hibernate ( e.g. 4.2.0.Final).
3) I don't know of a workaround, nor about any specifics how this bug is actually caused. Maybe the person who reported the issue for hibernate has some information about this. My workaround is currently to drop to an earlier version of hibernate. I am currently regression testing to find out which is the latest version that works with JUDDI.
                
      was (Author: subes):
    Hi Kurt,

1) The resulting error is the same. I've shortened the stacktrace to show the commonanlity between these two.
2) I guess you could try your JUDDI testcases in combination with hibernate using a more recent version of hibernate ( e.g. 4.2.0.Final).
3) I don't know of a workaround, nor about any specifics how this bug is actually caused. Maybe the person who reported the issue for hibernate has some information about this. My workaround is currently to drop to an earlier version to hibernate. I am currently regression testing to find out which is the latest version that works with JUDDI.
                  
> JUDDI incompatible with Hibernate 4.1.x and 4.2.x
> -------------------------------------------------
>
>                 Key: JUDDI-587
>                 URL: https://issues.apache.org/jira/browse/JUDDI-587
>             Project: jUDDI
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.1.4
>            Reporter: subes
>            Assignee: Kurt T Stam
>
> JUDDI is affected by the following Bug in Hibernate: https://hibernate.atlassian.net/browse/HHH-7630
> {quote}
> Caused by: org.hibernate.HibernateException: Could not locate table which owns column [entity_key] referenced in order-by mapping
> 	at org.hibernate.persister.entity.JoinedSubclassEntityPersister.determineTableNumberForColumn(JoinedSubclassEntityPersister.java:854)
> 	at org.hibernate.persister.entity.AbstractEntityPersister.getTableAliasForColumn(AbstractEntityPersister.java:4967)
> 	at org.hibernate.persister.collection.AbstractCollectionPersister$StandardOrderByAliasResolver.resolveTableAlias(AbstractCollectionPersister.java:1931)
> 	at org.hibernate.sql.ordering.antlr.OrderByFragmentTranslator$StandardOrderByTranslationImpl.injectAliases(OrderByFragmentTranslator.java:106)
> 	at org.hibernate.persister.collection.AbstractCollectionPersister.getSQLOrderByString(AbstractCollectionPersister.java:747)
> 	at org.hibernate.loader.JoinWalker.orderBy(JoinWalker.java:938)
> 	at org.hibernate.loader.JoinWalker.orderBy(JoinWalker.java:850)
> 	at org.hibernate.loader.AbstractEntityJoinWalker.initStatementString(AbstractEntityJoinWalker.java:123)
> 	at org.hibernate.loader.AbstractEntityJoinWalker.initStatementString(AbstractEntityJoinWalker.java:108)
> 	at org.hibernate.loader.AbstractEntityJoinWalker.initAll(AbstractEntityJoinWalker.java:90)
> 	at org.hibernate.loader.AbstractEntityJoinWalker.initAll(AbstractEntityJoinWalker.java:77)
> 	at org.hibernate.loader.entity.CascadeEntityJoinWalker.<init>(CascadeEntityJoinWalker.java:51)
> 	at org.hibernate.loader.entity.CascadeEntityLoader.<init>(CascadeEntityLoader.java:46)
> 	at org.hibernate.persister.entity.AbstractEntityPersister.createLoaders(AbstractEntityPersister.java:3881)
> 	at org.hibernate.persister.entity.AbstractEntityPersister.postInstantiate(AbstractEntityPersister.java:3818)
> 	at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:461)
> 	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1750)
> 	at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:94)
> 	at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:920)
> 	... 45 more
> {quote}
> Maybe this can be fixed inside JUDDI instead of waiting for a fix in Hibernate (since it persists for a very long time now).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira