IllegalArgumentException: Exceeded maximum blob size

Discussions

EJB design: IllegalArgumentException: Exceeded maximum blob size

  1. I'm using Oracle 8.1.7 and Borland App Server 4.5.1
    When my BLOB size exceeds 10000 bytes,
    Borland App Server throws next Exception:

    java.rmi.ServerException: ; nested exception is:
     java.rmi.RemoteException: Exceeded maximum blob size: set the property "EJBCmpMaxBlobSize" to a value greater than: 10000; nested exception is:
     java.lang.IllegalArgumentException: Exceeded maximum blob size: set the property "EJBCmpMaxBlobSize" to a value greater than: 10000
    java.rmi.RemoteException: Exceeded maximum blob size: set the property "EJBCmpMaxBlobSize" to a value greater than: 10000; nested exception is:
     java.lang.IllegalArgumentException: Exceeded maximum blob size: set the property "EJBCmpMaxBlobSize" to a value greater than: 10000
    java.lang.IllegalArgumentException: Exceeded maximum blob size: set the property "EJBCmpMaxBlobSize" to a value greater than: 10000
    <
    How to solve this problem?
    Thank you.
  2. Anton,
    I think this is a JVM property. Try adding a
        -DEJBCmpMaxBlobSize=<an-integer-value>
    in your appserver startup script ...

    Let me know if this helps.
    --Das