Hi,
I am trying to upload files to database using hibernate. I am using struts FormFile to get the necessary information about the uploaded file. But while committng the transaction i am getting hibernate exception.My insert statements are forming fine. Please reply soon if anybody has got a solution to this problem.
Following error is dispalyed in the console:
[1/8/07 11:31:52:657 IST] 00000032 JDBCException W SQL Error: 0, SQLState: null
[1/8/07 11:31:52:667 IST] 00000032 JDBCException E could not reset reader
[1/8/07 11:31:52:698 IST] 00000032 AbstractFlush E Could not synchronize database state with session
[1/8/07 11:31:52:868 IST] 00000032 AbstractFlush E TRAS0014I: The following exception was logged org.hibernate.exception.GenericJDBCException: could not insert: org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2078)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2427)
at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:51)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:139)
at
|