Results 1 to 2 of 2

Thread: BatchPreparedStatementSetter and BLOB

Hybrid View

  1. #1
    Join Date
    Jun 2007
    Posts
    2

    Default 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 at 01:18 AM. Reason: Added Error Message

  2. #2
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    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 at 12:08 PM.
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •