J
javafan
Hi,
I'm trying to develop the application which uses writeObject method to
write Hashtable but after procedure toBytes calling I get the exception:
SEVERE: org.jdesktop.layout.GroupLayout
Here is the code of toBytes procedure:
public static byte[] toBytes(Object object){
java.io.ByteArrayOutputStream baos = new
java.io.ByteArrayOutputStream();
try{
java.ibjectOutputStream oos = new
java.ibjectOutputStream(baos);
oos.writeObject(object);
} catch(java.io.IOException ioe) {
System.err.println("error");
java.util.logging.Logger.global.log(java.util.logging.Level.SEVERE,
ioe.getMessage());
}
return baos.toByteArray();
}
Thanks in advance for any help,
Paul
I'm trying to develop the application which uses writeObject method to
write Hashtable but after procedure toBytes calling I get the exception:
SEVERE: org.jdesktop.layout.GroupLayout
Here is the code of toBytes procedure:
public static byte[] toBytes(Object object){
java.io.ByteArrayOutputStream baos = new
java.io.ByteArrayOutputStream();
try{
java.ibjectOutputStream oos = new
java.ibjectOutputStream(baos);
oos.writeObject(object);
} catch(java.io.IOException ioe) {
System.err.println("error");
java.util.logging.Logger.global.log(java.util.logging.Level.SEVERE,
ioe.getMessage());
}
return baos.toByteArray();
}
Thanks in advance for any help,
Paul