D
Dave Rudolf
Hi all,
I have a class that implements Serializable, but also inherits from an
abstract (and non-serializable) class. For some reason, when I try to write
it to an ObjectOutputStream, it gives the following exception (sorry about
the line wrapping):
java.io.InvalidClassException: texdist.util.array2d.ObjectArray2D; no valid
constructor
at java.i
bjectStreamClass.<init>(ObjectStreamClass.java:375)
at java.i
bjectStreamClass.lookup(ObjectStreamClass.java:249)
at java.i
bjectOutputStream.writeObject0(ObjectOutputStream.java:1010)
at
java.i
bjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1330)
at java.i
bjectOutputStream.writeSerialData(ObjectOutputStream.java:1302)
at
java.i
bjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1245)
at java.i
bjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
at java.i
bjectOutputStream.writeObject(ObjectOutputStream.java:278)
at
texdist.texture.morphogen.AbstractMorphogenLattice.cloneRaw(AbstractMorphoge
nLattice.java:108)
....
Can anyone tell me what it's complaining about? The top class two
constructors: one has a couple of int params, the other has no params and
just calls the two-int constructor with default values.
Dave
I have a class that implements Serializable, but also inherits from an
abstract (and non-serializable) class. For some reason, when I try to write
it to an ObjectOutputStream, it gives the following exception (sorry about
the line wrapping):
java.io.InvalidClassException: texdist.util.array2d.ObjectArray2D; no valid
constructor
at java.i
at java.i
at java.i
at
java.i
at java.i
at
java.i
at java.i
at java.i
at
texdist.texture.morphogen.AbstractMorphogenLattice.cloneRaw(AbstractMorphoge
nLattice.java:108)
....
Can anyone tell me what it's complaining about? The top class two
constructors: one has a couple of int params, the other has no params and
just calls the two-int constructor with default values.
Dave