-->
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: COMMIT : no transaction in progress WARNING
PostPosted: Thu Feb 05, 2004 6:59 am 
Regular
Regular

Joined: Thu Feb 05, 2004 6:51 am
Posts: 50
Hi all,

I'm just beginning with Hibernate ant tyr to test it with a very simple example coming from the doc. I'm using the last version of hibernate ant test it with Jonas 3.3.5 and PostgreSQL 7.3.4.

Every thing goes fine until the HibernateUtil.closeSession() call where I get the following warning :
[main] %-5P impl.SessionImpl - closing session
[main] %-5P impl.SessionImpl - disconnecting session
[main] %-5P util.JDBCExceptionReporter - SQL Warning
java.sql.SQLWarning: WARNING: COMMIT: no transaction in progress

at org.postgresql.jdbc1.AbstractJdbc1Connection.addWarning(AbstractJdbc1Connection.java:430)
at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:111)
at org.postgresql.jdbc1.AbstractJdbc1Connection.ExecSQL(AbstractJdbc1Connection.java:482)
at org.postgresql.jdbc1.AbstractJdbc1Connection.ExecSQL(AbstractJdbc1Connection.java:461)
at org.postgresql.jdbc1.AbstractJdbc1Connection.setAutoCommit(AbstractJdbc1Connection.java:942)
at org.objectweb.jonas.jdbc_xa.ConnectionImpl.setAutoCommit(ConnectionImpl.java:293)
at net.sf.hibernate.transaction.JDBCTransaction.toggleAutoCommit(JDBCTransaction.java:104)
at net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:74)
at fr.openwide.persistence.hib.Initialisation.init(Initialisation.java:47)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3422)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3623)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:162)
at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:182)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:805)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.objectweb.jonas.web.catalina41.CatalinaJWebContainerServiceImpl.doRegisterWar(CatalinaJWebContainerServiceImpl.java:441)
at org.objectweb.jonas.web.AbsJWebContainerServiceImpl.registerWar(AbsJWebContainerServiceImpl.java:752)
at org.objectweb.jonas.web.AbsJWebContainerServiceImpl.doStart(AbsJWebContainerServiceImpl.java:344)
at org.objectweb.jonas.web.catalina41.CatalinaJWebContainerServiceImpl.doStart(CatalinaJWebContainerServiceImpl.java:245)
at org.objectweb.jonas.service.AbsServiceImpl.start(AbsServiceImpl.java:67)
at org.objectweb.jonas.service.ServiceManager.startServices(ServiceManager.java:308)
at org.objectweb.jonas.server.Server.start(Server.java:198)
at org.objectweb.jonas.server.Server.main(Server.java:311)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.objectweb.jonas.server.Bootstrap.main(Bootstrap.java:398)
[main] %-5P util.JDBCExceptionReporter - SQL Warning: 0, SQLState: null
[main] %-5P util.JDBCExceptionReporter - WARNING: COMMIT: no transaction in progress

[main] %-5P impl.SessionImpl - transaction completion

I have read some post in this forum about a transaction commit problem but nothing really explain how to solve it.
Is this more a database issue?

Any help would be appreciated.

Thanks
Vladislav Pernin


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 05, 2004 7:11 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Thats just a warning, it works ok. It's a broken Postgres JDBC driver (for PostgreSQL 7.2) with the new 7.3 database. Use a newer JDBC driver or search for this issue on the PostgreSQL mailinglists.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 05, 2004 8:11 am 
Regular
Regular

Joined: Thu Feb 05, 2004 6:51 am
Posts: 50
Ok thanks, it was a driver problem!

Vladislav Pernin


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.