harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Roper (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-3831) ClassNotFoundException in Hibernate
Date Thu, 24 May 2007 08:11:16 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-3831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12498539
] 

James Roper commented on HARMONY-3831:
--------------------------------------

Apologies, I should have been more clear.  I tried to running unit tests in Eclipse for my
application (that's where the UnitSchedulingDaoHibernateImplTestCase comes from), which uses
Hibernate, and it gave this Exception.  I have been able to replicate the exception using
a very simple test outside of Eclipse and JUnit, but what I might do is download the Hibernate
source code, and see if I get the same exception when running its unit tests, and I'll see
if I can find a bit more about it.  I'll then let you know.

> ClassNotFoundException in Hibernate
> -----------------------------------
>
>                 Key: HARMONY-3831
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3831
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports
>         Environment: Harmony 5.0M1
> Windows XP SP 2
> Hibernate 3.2
> Eclipse WTP 1.5 (Eclipse 3.2)
> JUnit 4
>            Reporter: James Roper
>
> I've only just started using 5.0M1 of Harmony, and I get the following exception in Hibernate
when running JUnit tests in Eclipse.  The problem doesn't occur when I use the Sun JSE 5.0
to run the tests.  I don't know what information other than this exception and the environment
above I can give you that will be helpful, let me know if there's anything you want me to
try or if there's any way you want me to run it to try and get more information out.
> 2007-05-10 15:59:29.942 ERROR [main]              org.hibernate.impl.SessionFactoryImpl
- Error in named query: Stock.getStockByStockId
> org.hibernate.QueryException: ClassNotFoundException: org.hibernate.hql.ast.HqlToken
[from Stock s where s.stockId = :stockId and s.unit.unitName=:unitName and s.unit.unitLineNo=:unitLineNo
]
> 	at org.hibernate.hql.ast.HqlLexer.panic(HqlLexer.java:57)
> 	at antlr.CharScanner.setTokenObjectClass(CharScanner.java:340)
> 	at org.hibernate.hql.ast.HqlLexer.setTokenObjectClass(HqlLexer.java:31)
> 	at antlr.CharScanner.<init>(CharScanner.java:51)
> 	at antlr.CharScanner.<init>(CharScanner.java:60)
> 	at org.hibernate.hql.antlr.HqlBaseLexer.<init>(HqlBaseLexer.java:56)
> 	at org.hibernate.hql.antlr.HqlBaseLexer.<init>(HqlBaseLexer.java:53)
> 	at org.hibernate.hql.antlr.HqlBaseLexer.<init>(HqlBaseLexer.java:50)
> 	at org.hibernate.hql.ast.HqlLexer.<init>(HqlLexer.java:26)
> 	at org.hibernate.hql.ast.HqlParser.getInstance(HqlParser.java:44)
> 	at org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:242)
> 	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.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:402)
> 	at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:352)
> 	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
> 	at com.bsl.icp.unit_scheduling.data_access_objects.UnitSchedulingDaoHibernateImplTestCase.<init>(UnitSchedulingDaoHibernateImplTestCase.java:1257)
> 	at java.lang.reflect.VMReflection.newClassInstance(VMReflection.java)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:299)
> 	at org.junit.internal.runners.TestClassMethodsRunner.createTest(TestClassMethodsRunner.java:52)
> 	at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:58)
> 	at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
> 	at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
> 	at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
> 	at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
> 	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
> 	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message