********************
Hibernate version: hibernate3.2.6.ga
********************
stack trace of any exception that occurs:
23:03:22,765 WARN [ServiceController] Problem starting service persistence.units:jar=EntityGenDao.jar,unitName=genPersistUn
it
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:1136)
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:316)
.../...
********************
Name and version of the database you are using: MySQL 5
********************
I have the same problem.
There is a JIRA about that :
http://opensource.atlassian.com/projects/hibernate/browse/ANN-617
**************
It seems to be in Hibernate Annotation : Exception is happening in "org.hibernate.cfg.annotations.CollectionBinder....."
in JBoss, I have seen that the hibernate-annotations.jar is also in the .../jboss-4.2.2.GA/client folder.
In my config, I did not updated this lib....
I wonder if it may be the reason of this exception, related to the JIRA...
will do a check....
*************
Anyway, if any one have an idea about that @orderBy problem ?....