Announcement Announcement Module
Collapse
No announcement yet.
BatchPreparedStatementSetter and BLOB Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • BatchPreparedStatementSetter and BLOB

    Hi,

    I am facing a problem when using JDBCTemplate.batchUpdate(sql,BatchPreparedStatemen tSetter ) and if the BatchPreparedStatementSetter sets a BLOB

    I am using the following technique to set the blob in the setValues() method..
    LobCreator lobCreator = new DefaultLobHandler().getLobCreator();
    lobCreator.setBlobAsBytes(ps,5,bytes);

    The message I am getting is

    Error Message Non-atomic batch failure. The batch was submitted, but at least one exception occurred on an individual member of the batch. Use getNextException() to retrieve the exceptions for specific batched elements

    Thanks
    Badri
    Last edited by reachbadri; Jul 9th, 2007, 01:18 AM. Reason: Added Error Message

  • #2
    I don't really know much about this, but you haven't actually said what the problem was.
    Last edited by karldmoore; Aug 29th, 2007, 12:08 PM.

    Comment

    Working...
    X