I am writing an application in Java using Swing. I am trying to implement functionality to save and load simulation states for at simulation i am running. The entire simulat
You've got some deeply nested ArrayLists.
I think maybe it's just going depth first, and that means it's going for the bottom Sensor, which is too deep.
Maybe you could create a custom structure with Sensors starting with the bottom Sensor?
Or maybe you'll have to provide your own serialisation to handle it? http://java.sun.com/developer/technicalArticles/Programming/serialization/