java.io.NotSerializableException:
what does the above exception mean?
i have a fingerprint template which i placed in an Object and trying to save into a Blob in Oracle. but i get that error
this is what i did
bos =new ByteArrayOutputStream();
oos =new ObjectOutputStream(bos);
oos.writeObject(fprint);
pstmt = con.prepareStatement("UPDATE T_FINGERPRINT SET FINGERPRINT_THUMB=? WHERE BADGENUM ='" +badge+"'");
pstmt.setBytes(1,bos.toByteArray());
rowcount = pstmt.executeUpdate();
this method of course implements the Serializable interface andfprintis of type Object
[725 byte] By [
shuinia] at [2007-10-3 11:31:44]

> Maybe you have a reference to a non serializable
> object within your fprint instance. Doesn't the
> exception contain the not serializable class name?
>
> Mike
Hi Mike
This class implements the Serializable interface
the Object is declared within the class as
private Object image=null;
in a method inside that class, a fingerprint template named fprint is put into the variable image as in fprint=image
and then saved as a blob in the database
>what do you mean by is image serializable?
> how do i make objects serializable?
That's been answered.
> i already implemented the serializable interface
but not for the fprint object
> is it possible for an object to be not serializable?
yes
> the object is an image template
whatever that is
> maybe its not serializable?
I suggested that in reply #2. There's no 'maybe' about it, that's exactly what the exception is telling you.
ejpa at 2007-7-15 13:58:26 >
