[jboss-dev-forums] [JBoss Serialization Development] - Re: OutOfMemoryError

lawc do-not-reply at jboss.com
Wed Sep 23 10:06:33 EDT 2009


I've traced the second exception to the readObject method of javax.management.openmbean.OpenType. The method has the following line:

ObjectInputStream.GetField fields = in.readFields();

The class below gives the same exception when trying to deserialize:

import java.io.IOException;
  | import java.io.ObjectInputStream;
  | import java.io.Serializable;
  | 
  | public class MyObject implements Serializable {
  | 
  | 	private String name;
  | 
  | 	public MyObject() {
  | 		this.name = "Test";
  | 	}
  | 
  | 	private void readObject(ObjectInputStream in) throws IOException,
  | 			ClassNotFoundException {
  | 		ObjectInputStream.GetField fields = in.readFields();
  | 		String name = (String) fields.get("name", null);
  | 	}
  | }

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4256652#4256652

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4256652



More information about the jboss-dev-forums mailing list