A
Andreas Beresko
hi,
i got following problem: i have a tree with some object. i can add new
objects to the tree an remove them - everything works fine.
now i serialize the tree - works fine. I only do writeObject(mytree) , don't
deserialize it. Now i want to change my tree again - add objects
still works, but when i try to remove an object (I do this by using
removeNodeFromParent() from the DefaultTreeModel) i get following
exception:
java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
at java.util.Vector.elementAt(Unknown Source) and so and and so on ....
When I debug the code, I see the Exception is was thrown by the
DefaultTreeModel.class (but I can't localize the methode, maybe missing
debug informations?). However, if i dont't use the line writeObject(mytree)
everything works fine, that means the serialization process causes a problem
in
my tree(model). How can thsi be, any ideas ?
best regards Andreas
i got following problem: i have a tree with some object. i can add new
objects to the tree an remove them - everything works fine.
now i serialize the tree - works fine. I only do writeObject(mytree) , don't
deserialize it. Now i want to change my tree again - add objects
still works, but when i try to remove an object (I do this by using
removeNodeFromParent() from the DefaultTreeModel) i get following
exception:
java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
at java.util.Vector.elementAt(Unknown Source) and so and and so on ....
When I debug the code, I see the Exception is was thrown by the
DefaultTreeModel.class (but I can't localize the methode, maybe missing
debug informations?). However, if i dont't use the line writeObject(mytree)
everything works fine, that means the serialization process causes a problem
in
my tree(model). How can thsi be, any ideas ?
best regards Andreas