0 Replies Latest reply on Jan 16, 2013 2:03 AM by veenaonnet

    Getting NotSerializableException for org.hibernate.engine.jdbc.BlobProxy while method returns a class containing Blob

    veenaonnet

      Hi,

       

      I am saving an object of a class containing Blob to a database. This is an EJB 3.1 method which I am calling using a remote interface on JBoss7.

      It saves object data in db successfully. However while trying to return the saved object it throws an Exception

       

      Caused by: java.io.NotSerializableException: org.hibernate.engine.jdbc.BlobProxy

              at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:256)

              at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:135)

              at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:189)

              at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:135)

              at org.jboss.marshalling.cloner.SerializingCloner.cloneFields(SerializingCloner.java:348)

              at org.jboss.marshalling.cloner.SerializingCloner.initSerializableClone(SerializingCloner.java:309)

              at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:254)

              at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:135)

              at org.jboss.marshalling.cloner.SerializingCloner.cloneFields(SerializingCloner.java:348)

              at org.jboss.marshalling.cloner.SerializingCloner.initSerializableClone(SerializingCloner.java:309)

              at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:254)

              at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:135)

              at org.jboss.as.ejb3.remote.LocalEjbReceiver.clone(LocalEjbReceiver.java:225) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

       

      Please let me know how to solve this issue.

       

      Regards,

      Veena