-->
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.  [ 2 posts ] 
Author Message
 Post subject: while loading Jsp with F5 key
PostPosted: Fri Feb 23, 2007 11:41 am 
Newbie

Joined: Thu Feb 22, 2007 12:21 pm
Posts: 3
tpMgr.runServiceNoHandler("ServiceName", "Name", params );
if (tpMgr.getServiceResult() instanceof ArrayList) {
arBeanName = ((ArrayList) tpMgr.getServiceResult());
tpMgr.clearServiceResult();
}
I am developing appliction with Hibernate technology.
This code i have written in jsp and works fine. , but if i use F5 key to refresh this jsp page it throws an error.

it throws an error like this

Caused by: org.hibernate.exception.GenericJDBCException: could not execute query
at org.hibernate.exception.ErrorCodeConverter.handledNonSpecificException(ErrorCodeConverter.java:92)
at org.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:80)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.loader.Loader.doList(Loader.java:1596)
at org.hibernate.loader.Loader.list(Loader.java:1577)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:395)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:271)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:844)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)



Thanks in advance


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 23, 2007 12:44 pm 
Beginner
Beginner

Joined: Sat Aug 19, 2006 8:04 pm
Posts: 30
man so many things could cause that

most often when i've got that error it's due to not having the table setup correctly.

we really need more information, more stack trace, more code.

you'd probably be better off turning the logging up to DEBUG and step through the code with a debugger. or if you don't have that capability, throw some print statments in there to check if stuff isn't null etc


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

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.