-->
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.  [ 4 posts ] 
Author Message
 Post subject: Most bizarre problem ever
PostPosted: Mon Jun 21, 2004 5:33 pm 
Beginner
Beginner

Joined: Tue Jan 06, 2004 4:51 pm
Posts: 48
Hi,

I've been working on an application for months now and it's always been fine. I am using Tomcat 5 with Hibernate 2. From the logs, everything seems to go well, but my record is not inserted.

Code:
2004-06-21 17:27:13,935 -- DEBUG net.sf.hibernate.SQL -- insert into timeentry (cases, start_time, end_time, earnings, timesh
eet_id, task_id, version_status_id, study_id, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?)
2004-06-21 17:27:13,938 -- DEBUG net.sf.hibernate.SQL -- update timesheet set date=?, exported_date=?, emp_id=?, approver_id=
?, status=? where id=?
2004-06-21 17:27:13,943 -- DEBUG net.sf.hibernate.SQL -- select timesheets0_.id as id0_, timesheets0_.name as name0_ from tim
esheetstatus timesheets0_ where timesheets0_.id=?


These are consecutive entries and as you can see, no errors are thrown. However, when I inspect the database, no entries are there. Has anyone encountered this before? Here is my hibernate.properties:
Code:
hibernate.connection.provider_class=net.sf.hibernate.connection.C3P0ConnectionProvider
hibernate.connection.datasource=java:comp/env/jdbc/pooledDS
hibernate.c3p0.maxPoolSize=15
hibernate.c3p0.minPoolSize=3
hibernate.c3p0.timeout=10000
hibernate.c3p0.maxStatements=200
hibernate.c3p0.validate=false
hibernate.c3p0.numHelperThreads=4
hibernate.cglib.use_reflection_optimizer=false
hibernate.show_sql=false
hibernate.connection.username=dbadmin
hibernate.connection.password=imadba
hibernate.dialect=net.sf.hibernate.dialect.PostgreSQLDialect
hibernate.connection.url=jdbc\:postgresql\://localhost\:5432/dbName
hibernate.connection.driver_class=org.postgresql.Driver


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 21, 2004 5:35 pm 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
show java code

are you sure you commit?

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


Top
 Profile  
 
 Post subject: Hi
PostPosted: Mon Jun 21, 2004 5:44 pm 
Beginner
Beginner

Joined: Tue Jan 06, 2004 4:51 pm
Posts: 48
Thanks for the reply.

I removed the timeout line and the connectionprovider line from my hibernate.properties and now it works fine.

Any ideas why?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 21, 2004 5:48 pm 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
10000 is 10s isn't it? so the session get disconnected, and you must have some exception thrown

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


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