Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
[b]Hibernate version:[/b]
[b]Mapping documents:[/b]
[b]Code between sessionFactory.openSession() and session.close():[/b]
[b]Full stack trace of any exception that occurs:[/b]
[b]Name and version of the database you are using:[/b]
[b]The generated SQL (show_sql=true):[/b]
[b]Debug level Hibernate log excerpt:[/b]
I am using web service and hibernate to update the objects. But I got rollback without any error message. The local unit test working but the remote access does not work.
The following is the printout:
[2005-06-20 13:21:05,401] INFO Transaction-2005-06-20 DeviceDAO:updateDevice::starting --> the identifier is: 983041
[2005-06-20 13:21:05,401] DEBUG org.hibernate.engine.Cascades id unsaved-value: null
[2005-06-20 13:21:05,401] DEBUG org.hibernate.event.def.AbstractSaveEventListener detached instance of: com.avocent.msg.jsentry.server.objectmodel.entity.Device
[2005-06-20 13:21:05,401] DEBUG org.hibernate.event.def.DefaultSaveOrUpdateEventListener updating detached instance
[2005-06-20 13:21:05,401] DEBUG org.hibernate.event.def.DefaultSaveOrUpdateEventListener updating [com.avocent.msg.jsentry.server.objectmodel.entity.Device#983041]
[2005-06-20 13:21:05,401] DEBUG org.hibernate.transaction.JDBCTransaction rollback
[2005-06-20 13:21:05,401] DEBUG org.hibernate.jdbc.JDBCContext before transaction completion
[2005-06-20 13:21:05,401] DEBUG org.hibernate.impl.SessionImpl before transaction completion
[2005-06-20 13:21:05,401] DEBUG org.hibernate.transaction.JDBCTransaction rolled back JDBC Connection
[2005-06-20 13:21:05,401] DEBUG org.hibernate.jdbc.JDBCContext after transaction completion
[2005-06-20 13:21:05,401] DEBUG org.hibernate.impl.SessionImpl after transaction completion
[2005-06-20 13:21:05,401] DEBUG org.hibernate.impl.SessionImpl closing session
[2005-06-20 13:21:05,401] DEBUG org.hibernate.jdbc.AbstractBatcher closing JDBC connection (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)
[2005-06-20 13:21:05,416] DEBUG org.hibernate.connection.DriverManagerConnectionProvider returning connection to pool, pool size: 1
[2005-06-20 13:21:05,416] DEBUG org.hibernate.jdbc.JDBCContext after transaction completion
[2005-06-20 13:21:05,416] DEBUG org.hibernate.impl.SessionImpl after transaction completion
[2005-06-20 13:21:16,339] INFO DefaultTransaction Shutting down...
[2005-06-20 13:21:16,339] INFO org.mortbay.util.ThreadedServer Stopping Acceptor [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=443]]
[2005-06-20 13:21:17,292] INFO org.mortbay.http.SocketListener Stopped SocketListener on 0.0.0.0:443
[2005-06-20 13:21:17,292] INFO org.mortbay.util.Container Stopped org.mortbay.jetty.servlet.WebApplicationHandler@d1fa5
[2005-06-20 13:21:17,292] INFO org.mortbay.util.Container Stopped WebApplicationContext[/jsentry,Apache-Axis]
[2005-06-20 13:21:17,292] INFO org.mortbay.util.Container Stopped org.mortbay.jetty.Server@1f9dc36
Any instruction will be appreciated.
Wade