Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

class invalid for deserialization

843830Nov 15 2005
I have got a very simple Session bean. Now I am trying to call a class from this bean with the following error:

class invalid for deserialization

Not sure about the detail about the error but I tried doing lots of things with no success .. Please help!

I have a class (see below) is being called by EJB as showns ..
....

Row[] arrSort = new Row[marrRows.size()];
arrSort = (Row[]) marrRows.toArray(arrSort);
Arrays.sort(arrSort, new RowComparator());
ArrayList al = new ArrayList(Arrays.asList(arrSort));

....


----------------------- class source ------------------------
package org.uabhs.svcs.pagination.impl;

import java.io.IOException;
import java.io.Serializable;

public class Row implements Serializable {

public Object[] columns;
public int[] columnSortOrder;
public Row(int[] sortOrder) {
columnSortOrder = sortOrder;
}

public String toString() {
String sReturn = "";

for (int i = 0; i < columns.length; i++) {
try {
sReturn += (columns.toString() + "|");
} catch (Exception e) {
sReturn += "|";
}
}

return sReturn;
}
}
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 13 2005
Added on Nov 15 2005
0 comments
518 views