jQuery in Action, 2nd edition*
The moose likes Distributed Java and the fly likes UnmarshalException: io.StreamCorruptedException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "UnmarshalException: io.StreamCorruptedException" Watch "UnmarshalException: io.StreamCorruptedException" New topic
Author

UnmarshalException: io.StreamCorruptedException

John Molitor
Ranch Hand

Joined: Nov 08, 2004
Posts: 39
I compiled a client.jar that contains DTO's under jdk 1.4, compiling at 1.3 compliant. I have set the serialVersionUID = 1 in each one of the DTO's and all the DTO's implement serializable. The client is running Weblogic 7sp2 and calling an ejb running in a Weblogic 8.1sp2 instance.
Any thoughts? jdk issue? Weblogic issue?
Bleow is the code for the VehicleDTO.
When the client calls the ejb, the following error occurs on the server:

####<Feb 23, 2005 3:32:11 PM GMT> <Warning> <RMI> <devapr02> <devapr02-21> <ExecuteThread: '13' for queue: 'default'> <<WLS Kernel>> <> <BEA-080005> <Exception thrown by rmi server: com.erac.vaa.service.ejb.VehicleService_hsm1t7_EOImpl.validateVehicle(Lcom.erac.vaa.service.common.dto.VehicleDTO
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.io.StreamCorruptedException.
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.io.StreamCorruptedException
at com.erac.vaa.service.ejb.VehicleService_hsm1t7_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:477)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:108)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:353)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java(Compiled Code))
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
Caused by: java.io.StreamCorruptedException
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java(Inlined Compiled Code))
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readObject(ObjectInputStream.java(Compiled Code))
at java.util.ArrayList.readObject(ArrayList.java(Compiled Code))
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java(Compiled Code))
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readObject(ObjectInputStream.java(Compiled Code))
at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:119)
at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:112)
... 10 more
>
VehicleDTO
public class VehicleDTO implements Serializable
{
public final static long serialVersionUID = 1;
private final static String CREATE = "C";
private final static String UPDATE = "U";
private final static String DELETE = "D";
private final static String ERROR = "ERROR";
private final static String WARN = "WARN";

private Date actDelDate;
private String anticipatedUseCode;
private String buyBackCode;
private String buyType;
private String callingApplication;
private String carbuyId;
private String co2Level;
private String countryCode2;
private String dealerName;
private long deliveryBranchIOrgId;
private Date depStartDate;
private String empId;
private String exteriorColorName;
private String fuelCode;
private long groupIOrgId;
private String ignitionKeyCode;
private String keyCode;
private String legacyBuyBackMaxTerm;
private String legacyBuyBackMinTerm;
private String legacyMake;
private String legacyManufacturer;
private String legacyModel;
private String legacyModelYear;
private String legacySeries;
private String legacyTrimCode;
private String legacyUnitNumber;
private Integer maxHp;
private Integer maxKw;
private String modelYear;
private BigDecimal msrp;
private Collection options;
private Date paidDate;
private String paintTypeCode;
private Date purchaseDate;
private Date purchaseOrderDate;
private String radioCode;
private Date regDate;
private String regNo;
private Date regXprDate;
private String specificationYear;
private boolean transIndicator;
private String transType;
private String useCode;
private ValidationErrorDTO validationErrorDTO;
private String vin;
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: UnmarshalException: io.StreamCorruptedException
 
Similar Threads
java.rmi.unmarshallException
StreamCorruptedException error
unmarshalling return; nested exception is: java.io.OptionalDataException
Simple Weblogic JNDI -- Problem
java.io.OptionalDataException