0 Replies Latest reply on Oct 30, 2019 7:53 AM by J Chen

    EJB remote could not read Blob

    J Chen Newbie

      Hi,

       

      I am using ejb remote client to request host for retrieval of data. However, I got a problem to retrieve Blob data. Here are the errors I got:

      Caused by: java.io.EOFException: Read past end of file

      at org.jboss.marshalling.SimpleDataInput.eofOnRead(SimpleDataInput.java:151)

      at org.jboss.marshalling.SimpleDataInput.readUnsignedByteDirect(SimpleDataInput.java:294)

      at org.jboss.marshalling.SimpleDataInput.readIntDirect(SimpleDataInput.java:343)

      at org.jboss.marshalling.SimpleDataInput.readLongDirect(SimpleDataInput.java:325)

      at org.jboss.marshalling.SimpleDataInput.readLong(SimpleDataInput.java:320)

      at org.jboss.marshalling.river.RiverUnmarshaller.doReadClassDescriptor(RiverUnmarshaller.java:1019)

      at org.jboss.marshalling.river.RiverUnmarshaller.doReadClassDescriptor(RiverUnmarshaller.java:1041)

      at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1355)

      at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:272)

      at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:220)

      at org.jboss.marshalling.river.RiverUnmarshaller.readFields(RiverUnmarshaller.java:1853)

      at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1767)

      at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1395)

      at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:272)

      at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:205)

      at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:41)

      at org.jboss.ejb.protocol.remote.EJBClientChannel$MethodInvocation$MethodCallResultProducer.apply(EJBClientChannel.java:1275)

      ... 102 more

      Caused by: an exception which occurred:

      in field com.company.services.Attachment.blob

      in object com.company.services.Attachment@4efcca1a

      in object of type com.company.services.Attachment

      In the Attachment class, I have a private java.sql.Blob blob field. I don't know where went wrong. Any advices?

       

      Best regards,

      Joey