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
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "UnmarshalException: io.StreamCorruptedException" Watch "UnmarshalException: io.StreamCorruptedException" New topic

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.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
at com.erac.vaa.service.ejb.VehicleService_hsm1t7_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(
at weblogic.rmi.internal.BasicServerRef$
at weblogic.rmi.internal.BasicServerRef.handleRequest(
at weblogic.rmi.internal.BasicExecuteRequest.execute(
at weblogic.kernel.ExecuteThread.execute( Code))
Caused by:
at Code))
at Compiled Code))
at Code))
at Code))
at Code))
at java.util.ArrayList.readObject( Code))
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke( Code))
at java.lang.reflect.Method.invoke( Code))
at Code))
at Code))
at Code))
at Code))
at Code))
at Code))
at Code))
at Code))
at Code))
at weblogic.common.internal.ChunkedObjectInputStream.readObject(
at weblogic.rjvm.MsgAbbrevInputStream.readObject(
... 10 more
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:
subject: UnmarshalException: io.StreamCorruptedException
It's not a secret anymore!