-->
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.  [ 1 post ] 
Author Message
 Post subject: BLOB insertion into database error
PostPosted: Mon Jan 08, 2007 2:32 am 
Newbie

Joined: Mon Dec 11, 2006 12:54 am
Posts: 14
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.