|
From: iktuz <do-...@jb...> - 2006-06-13 17:08:12
|
Hi folks. I am getting the same error:
| java.io.IOException
| =09at org.jboss.serial.persister.RegularObjectPersister.readSlotWithMet=
hod(RegularObjectPersister.java:107)
| =09at org.jboss.serial.persister.RegularObjectPersister.defaultRead(Reg=
ularObjectPersister.java:269)
| =09at org.jboss.serial.persister.RegularObjectPersister.readData(Regula=
rObjectPersister.java:241)
| =09at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObje=
ctDescriptionFromStreaming(ObjectDescriptorFactory.java:411)
| =09at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFr=
omDescription(ObjectDescriptorFactory.java:81)
| =09at org.jboss.serial.objectmetamodel.DataContainer$DataContainerInput=
.readObject(DataContainer.java:841)
| =09at org.jboss.serial.io.MarshalledObjectForLocalCalls.get(MarshalledO=
bjectForLocalCalls.java:60)
| =09at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalIntercep=
tor.java:61)
| =09at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocat=
ion.java:101)
| =09at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRem=
oteProxy.java:102)
| =09at $Proxy93.getMMSList(Unknown Source)
|=20
Here you can analyse the method implementation:
|=20
| //...
| @Stateless(name =3D OperationService.NAME)
| @Remote(OperationRemote.class)
| @Local(OperationLocal.class)
| public class OperationServiceImpl implements OperationRemote, Operation=
Local {
|=20
| public List<MMSEvent> getMMSList(final String id, final SearchFilter fi=
lter,
| final RequestInfo reqInfo) throws InvalidKeyException,
| IllegalArgumentException, NoSuchAlgorithmException,
| NoSuchPaddingException, IllegalBlockSizeException,
| BadPaddingException, SQLException, ClassNotFoundException,
| InstantiationException, IllegalAccessException,
| InvocationTargetException, IOException {
|=20
| setResultClass(MMSEvent.class);
| final Object[] params =3D new Object[] { id };
| return performSelect(MMS_LIST, params);
| }
| //...
| }
|=20
Actually I think that the code above is not so much interesting in fact, bu=
t what is returned by it:
| package br.com.suntech.vigiadados.ext.service.oper;
|=20
| import java.io.Serializable;
| import java.sql.Blob;
| import java.sql.Date;
|=20
| import br.com.suntech.util.database.persistence.annot.ColumnAnnotation;
|=20
| /**
| * It encapsulates:
| * <li>String peerPhone;</li>
| * <li>String originator;</li>
| * <li>Blob payload;</li>
| * <li>Date reportTime;</li>
| */
| @SuppressWarnings("serial")
| public class MMSEvent implements Serializable {
|=20
| @ColumnAnnotation(columnName =3D "PEER_PHONE")
| private String peerPhone;
|=20
| @ColumnAnnotation(columnName =3D "ORIGINATOR")
| private String originator;
|=20
| @ColumnAnnotation(columnName =3D "PAYLOAD")
| private Blob payload;
|=20
| @ColumnAnnotation(columnName =3D "REPORT_TIME")
| private Date reportTime;
|=20
| public String getOriginator() {
| return originator;
| }
|=20
| public void setOriginator(String originator) {
| this.originator =3D originator;
| }
|=20
| public Blob getPayload() {
| return payload;
| }
|=20
| public void setPayload(Blob payload) {
| this.payload =3D payload;
| }
|=20
| public String getPeerPhone() {
| return peerPhone;
| }
|=20
| public void setPeerPhone(String peerPhone) {
| this.peerPhone =3D peerPhone;
| }
|=20
| public Date getReportTime() {
| return reportTime;
| }
|=20
| public void setReportTime(Date reportTime) {
| this.reportTime =3D reportTime;
| }
|=20
| }
|=20
The method getMMSList(...) performs without problems because I put sysout=
=C2=B4s between each line and all are printed :) I suspect that the blob fi=
eld is the villain. So I am guessing that during the serialization process =
the problem occurs. Has someone any idea what is going on? Thanks a lot dud=
es, bye.
View the original post : http://www.jboss.com/index.html?module=3Dbb&op=3Dv=
iewtopic&p=3D3950706#3950706
Reply to the post : http://www.jboss.com/index.html?module=3Dbb&op=3Dpostin=
g&mode=3Dreply&p=3D3950706
|