-->
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.  [ 3 posts ] 
Author Message
 Post subject: Error in Hibernate named query
PostPosted: Fri Aug 10, 2012 2:13 am 
Newbie

Joined: Fri Aug 10, 2012 2:06 am
Posts: 2
Hi..
I just using a simlpe hibernate query in 2 different java classes. One class its working fine but the other class gives an error saying,,

WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: 25P02
11:26:39,569 ERROR [JDBCExceptionReporter] ERROR: current transaction is aborted, commands ignored until end of transaction block
11:26:39,574 INFO [STDOUT] org.hibernate.exception.GenericJDBCException: could not execute query
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:91)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:79)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.loader.Loader.doList(Loader.java:2150)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2026)
at org.hibernate.loader.Loader.list(Loader.java:2021)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:369)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:298)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1020)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)


Why only one class its giving this error??? passing data is same for both classes..
Please explain...


Top
 Profile  
 
 Post subject: Re: Error in Hibernate named query
PostPosted: Fri Aug 10, 2012 7:16 am 
Newbie

Joined: Tue Aug 07, 2012 4:58 am
Posts: 4
hi, Krish_Costa

can you paste some of your code?

maybe I could help you:)


Top
 Profile  
 
 Post subject: Re: Error in Hibernate named query
PostPosted: Fri Aug 10, 2012 7:30 am 
Newbie

Joined: Fri Aug 10, 2012 2:06 am
Posts: 2
Hi kenny,
Tnx for quick response. I found the issue. I was using multiple HBM queries and one of the previous hbm query giving this error. But when I am debuging the app it was giving the error here. But the actual issue was in the previous hbm query.

Tnx


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.