[hibernate-issues] [Hibernate-JIRA] Created: (HB-1567) could not insert exception with db2

olivier royo (JIRA) noreply at atlassian.com
Thu Aug 24 05:25:24 EDT 2006


 could not insert exception with db2
------------------------------------

         Key: HB-1567
         URL: http://opensource.atlassian.com/projects/hibernate/browse/HB-1567
     Project: Hibernate2
        Type: Bug

    Reporter: olivier royo


Hi, I'm getting this exception while using db2 . Everything works fine using mysql.
Is it a bug?
Is there an issue for this problem???

best regards.

ERROR - DB2 SQL error: SQLCODE: -302, SQLSTATE: 22001, SQLERRMC: null
ERROR - Could not synchronize database state with session
org.hibernate.exception.GenericJDBCException: could not insert: [eserve.bco_ta_address]
	at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:82)
	at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:70)
	at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
	at org.hibernate.persister.entity.BasicEntityPersister.insert(BasicEntityPersister.java:1869)
	at org.hibernate.persister.entity.BasicEntityPersister.insert(BasicEntityPersister.java:2200)
	at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:46)
	at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:239)
	at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:223)
	at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:136)
	at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:274)
	at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
	at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:730)
	at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:324)
	at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:86)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira




More information about the hibernate-issues mailing list