From: Steve E. (JIRA) <no...@at...> - 2006-07-12 15:29:56
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1898?page=comments#action_23605 ] Steve Ebersole commented on HHH-1898: ------------------------------------- Interesting. We are only handling ClassNotFoundExceptions (which is actually all that is ever thrown on my box and the QA boxes at least). We really should handle any exception being thrown there logically... Out of curiosity, what type of environment is this? > With hibernate 3.2.0-cr3 there is an hql parsing error on a one-to-one relation > ------------------------------------------------------------------------------- > > Key: HHH-1898 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1898 > Project: Hibernate3 > Type: Bug > Components: core > Versions: 3.2.0.cr3 > Reporter: Sebastien Cesbron > > > With the same test case as described in issue HHH-1849, there is an hql parse error with 3.2.0-cr3 version. My query is "from Master master where master.slave=:slave", the association between master and slave is one-to-one and hibernate try to find a "master" class instead of Master. The stack trace is : > Hibernate: select gen_id( hibernate_sequence, 1 ) from RDB$DATABASE > Requete sur l'oid > Hibernate: insert into Slave (libelle, oid) values (?, ?) > Hibernate: insert into Master (libelle, oid) values (?, ?) > Hibernate: select master0_.oid as oid0_, master0_.libelle as libelle0_ from Master master0_ where master0_.oid=? > Master@1fc6e42 > Exception in thread "main" java.lang.NoClassDefFoundError: master (wrong name: Master) > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:620) > at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) > at java.net.URLClassLoader.access$000(URLClassLoader.java:56) > at java.net.URLClassLoader$1.run(URLClassLoader.java:195) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:95) > at org.hibernate.util.ReflectHelper.getConstantValue(ReflectHelper.java:128) > at org.hibernate.hql.ast.QueryTranslatorImpl$JavaConstantConverter.handleDotStructure(QueryTranslatorImpl.java:569) > at org.hibernate.hql.ast.QueryTranslatorImpl$JavaConstantConverter.visit(QueryTranslatorImpl.java:564) > at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.java:40) > at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.java:41) > at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.java:41) > at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.java:42) > at org.hibernate.hql.ast.util.NodeTraverser.traverseDepthFirst(NodeTraverser.java:33) > at org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:254) > at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:157) > at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111) > at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:77) > at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:56) > at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72) > at org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133) > at org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112) > at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623) > at Test.main(Test.java:32) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |