Results 1 to 4 of 4

Thread: Data size bigger than max size for this type

  1. #1

    Default Data size bigger than max size for this type

    This error occurs when I use setString in JDBC because there is a restriction of data size: 4000 bytes
    I am using SqlUpdate to insert a registry in the database and the setters method are implicit to me...
    I read about a solution: to use setCharacterString
    But, how the setters method are implicit I don't get change the setString method to setCharacterString in this situations.
    Does somebody have any solutions ?

    Thanks in advance

  2. #2

    Default

    Hi,
    are you using the Oracle 9i drivers (odbc14.jar)?. If so, try to switch to the Oracle 10 drivers, as far as i know there should not be such a 4K limit.

    regards,
    Mario

  3. #3

    Default

    I'm also receiving this error when trying to insert a BLOB over 4k into an oracle table. I'm using NamedParameterJdbcDaoSupport and issuing an insert with a Map of parameters, one of which is a byte[] for the BLOB column. I did upgrade my oracle driver to 10.2.0 as recommended by this post and it did not seem to help.

    Any other advice?

  4. #4

    Default

    I have just downloaded the most recent version of the odbc14.jar file and now it works
    Last edited by martynhiemstra; Jul 20th, 2007 at 03:55 AM.

Similar Threads

  1. Order of Bean definitions matters?
    By cfuser in forum Container
    Replies: 2
    Last Post: Oct 21st, 2005, 10:29 AM
  2. EHCaching Hibernate
    By dencamel in forum Data
    Replies: 3
    Last Post: Sep 6th, 2005, 09:03 PM
  3. Replies: 4
    Last Post: Aug 17th, 2005, 04:42 AM
  4. could not satisfy dependencies
    By springuser in forum Container
    Replies: 4
    Last Post: Apr 26th, 2005, 01:15 PM
  5. Replies: 1
    Last Post: Apr 25th, 2005, 07:37 PM

Posting Permissions

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