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...
|