java.rmi.UnmarshalException
Hi,
While running my program, i am getting a java.io.NotSerializableException. This is the exception message:
Caused by: java.io.NotSerializableException: myapp.dto.BSADTO
This is my DTO
import ...
public class BSADTO implements Serializable {
private String stateCode;
private BigDecimal serviceStateId;
private String[] selectedCounties;
private Collection countiesForSelectedState;
public BSADTO() {
}
public BranchServiceAreaDTO(BigDecimal serviceStateId,String stateCode) {
....
}
public BigDecimal getServiceStateId() {
return serviceStateId;
}
public void setServiceStateId(BigDecimal serviceStateId) {
this.serviceStateId = serviceStateId;
}
public String getStateCode() {
return stateCode;
}
public void setStateCode(String stateCode) {
this.stateCode = stateCode;
}
public String[] getSelectedCounties() {
return selectedCounties;
}
public void setSelectedCounties(String[] selectedCounties) {
this.selectedCounties = selectedCounties;
}
public Collection getCountiesForSelectedState() {
return countiesForSelectedState;
}
public void setCountiesForSelectedState(Collection countiesForSelectedState) {
this.countiesForSelectedState = countiesForSelectedState;
}
}
Is there anything wrong with my code.
Please help me. Thanks,
Malar
|