Hi all, I am facing a strange problem with Hibernate. If any body have seen this and has any work around for the same, please let me know
The problem is that hibernate causes the app server to crash instead of throwing a exception if there is a problem. Please help me sort this out.
The client code:
query = "from ActionType"
lst = sess.createQuery(query).list();
I have traced it with the debugger to where i can get to
here are some details
QueryTranslator[] q = getQueries(query, false); (SessionImpl.java ln:783)
(query = "from ActionType")
QueryTranslator[] q = factory.getQuery( query, scalar, getEnabledFilters() ); (SessionImpl.java ln:825)
queries[i].compile( settings.getQuerySubstitutions(), shallow ); (SessionFactoryImpl: ln422)
doCompile( replacements, shallow, null ); (QueryTranslatorImpl: ln83)
HqlParser parser = parse( true ); (QueryTranslatorImpl: ln128)
HqlParser parser = HqlParser.getInstance( hql ); (QueryTranslatorImpl: ln204)
(hql = "from com.sony.spe.soa.domain.objects.ActionType")
HqlLexer lexer = new HqlLexer( new DataInputStream( new ByteArrayInputStream( hql.getBytes() ) ) ); HqlParser.java: ln42
super.setTokenObjectClass( HqlToken.class.getName() ); HQLLexer.java: ln26
That is till where I could trace with the debugger after which it goes into antlr classes
The details of my setup are
Database : Oracle 9i
App server: Weblogic 8.1
Environment: Weblogic workshop domain
Hibernate Version: 3.0.1
The console around the error is given below.. java is run in verbose mode to see the class loading.
:
:
:
[Loaded org.hibernate.hql.antlr.HqlBaseParser]
[Loaded org.hibernate.hql.ast.HqlParser]
[Loaded antlr.collections.impl.BitSet]
[Loaded antlr.TokenStream]
[Loaded antlr.CharScanner]
[Loaded org.hibernate.hql.antlr.HqlBaseLexer]
[Loaded org.hibernate.hql.ast.HqlLexer]
[Loaded antlr.InputBuffer]
[Loaded antlr.ByteBuffer]
[Loaded antlr.CharQueue]
[Loaded antlr.LexerSharedInputState]
[Loaded antlr.ANTLRStringBuffer]
[Loaded antlr.ANTLRHashString]
[Loaded antlr.Token]
[Loaded antlr.CommonToken]
[Loaded org.hibernate.hql.ast.HqlToken]
CharScanner; panic: ClassNotFoundException: org.hibernate.hql.ast.HqlToken
Stopping the Weblogic Workshop debugger...
Debugger Stopped.
Stopping Pointbase server...
Pointbase server stopped.
|