-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Application crash with Hibernate 3.0.1 Query.list
PostPosted: Wed Apr 27, 2005 3:15 pm 
Newbie

Joined: Thu Feb 17, 2005 2:04 pm
Posts: 4
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.