-->
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: Tomcat control-c removes added entries
PostPosted: Mon May 10, 2004 12:10 am 
Newbie

Joined: Sun May 09, 2004 10:34 pm
Posts: 16
I'm using an example found at http://homepage.mac.com/edahand/project ... mple1.html with Sybase Anywhere 9 and Tomcat 5.0.19. Adding entries to my testdb seems to work fine, however when I shut down the instance of Tomcat with a control-c the entries within my table get removed. I turned on logging with gives the following, but I can't tell what's going on. Please help.


Code:
FINEST: done processing result set (4 rows)
May 9, 2004 10:58:15 PM net.sf.hibernate.impl.BatcherImpl logClosePreparedStatement
FINEST: done closing: 4 open PreparedStatements, 0 open ResultSets
May 9, 2004 10:58:15 PM net.sf.hibernate.impl.BatcherImpl closePreparedStatement
FINEST: closing statement
May 9, 2004 10:58:15 PM net.sf.hibernate.loader.Loader doQuery
FINEST: total objects hydrated: 4
May 9, 2004 10:58:15 PM net.sf.hibernate.impl.SessionImpl initializeEntity
FINE: resolving associations for [com.edhand.example1.Item#21]
May 9, 2004 10:58:15 PM net.sf.hibernate.impl.SessionImpl initializeEntity
FINE: done materializing entity [com.edhand.example1.Item#21]
May 9, 2004 10:58:15 PM net.sf.hibernate.impl.SessionImpl initializeEntity
FINE: resolving associations for [com.edhand.example1.Item#22]
May 9, 2004 10:58:15 PM net.sf.hibernate.impl.SessionImpl initializeEntity
FINE: done materializing entity [com.edhand.example1.Item#22]
May 9, 2004 10:58:15 PM net.sf.hibernate.impl.SessionImpl initializeEntity
FINE: resolving associations for [com.edhand.example1.Item#20]
May 9, 2004 10:58:15 PM net.sf.hibernate.impl.SessionImpl initializeEntity
FINE: done materializing entity [com.edhand.example1.Item#20]
May 9, 2004 10:58:15 PM net.sf.hibernate.impl.SessionImpl initializeEntity
FINE: resolving associations for [com.edhand.example1.Item#19]
May 9, 2004 10:58:15 PM net.sf.hibernate.impl.SessionImpl initializeEntity
FINE: done materializing entity [com.edhand.example1.Item#19]
May 9, 2004 10:58:15 PM net.sf.hibernate.impl.SessionImpl initializeNonLazyCollections
FINE: initializing non-lazy collections
May 9, 2004 10:58:15 PM net.sf.hibernate.impl.SessionImpl close
FINEST: closing session
May 9, 2004 10:58:15 PM net.sf.hibernate.impl.SessionImpl disconnect
FINE: disconnecting session
May 9, 2004 10:58:15 PM net.sf.hibernate.connection.DriverManagerConnectionProvider closeConnection
FINEST: returning connection to pool, pool size: 1
May 9, 2004 10:58:15 PM net.sf.hibernate.impl.SessionImpl afterTransactionCompletion
FINEST: transaction completion
May 9, 2004 10:58:21 PM org.apache.coyote.http11.Http11Protocol pause
INFO: http11protocol.pause


Derek Greer


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 10, 2004 2:00 pm 
Newbie

Joined: Sun May 09, 2004 10:34 pm
Posts: 16
I figured out the problem. The example did not include the necessary commit call.

Derek Greer


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.