Hi,
we've recenlty encountered a problem with encoding DirectedWeightedMultigraph
using XMLEncoder. Basically, for XMLEncoder to work, the object needs to
be Java Bean and implement Serializable. Does anybody has a clue why
it shouldn't work on DirectedWeightedMultigraph?
When attempting to serialize, I get the following execeptions:
java.lang.InstantiationException: org.jgrapht.graph.DirectedWeightedMultigraph
Continuing ...
java.lang.Exception: XMLEncoder: discarding statement
XMLEncoder.writeObject(DirectedWeightedMultigraph);
Continuing ...
TIA,
Petr
|