It worked! I separated the processes 'creating and reading the BioNet' and 'connecting the nodes'. Only after retrieving the "eco.net" object I am establishing the final structure. No StackOverflowEr ror any more.
Thank you all for the final clue and all the help, now I can finally sleep without nightmares of Stacks falling on my head again.
User Profile
Collapse
-
Thank you! I already suspected it to be a recursion problem, but couldn't connect it with my network. I will try to change its structure again, so perhaps I can avoid deep recursion. It became a lot clearer to me now.
By the way, changing the stack size was without effect, as well.
Have a nice day still and thank you again!Leave a comment:
-
Thank you for your quick answer. I tried raising the maximum memory to 120Mb without effect, I still get the same error message for the applet. My goal is to create a web-tool for external users that work with the biochemical network (a graph creation and manipulation tool), so I would like to keep the applet. It is already working as a standalone application. I have been working with objects of similar size already and it worked without problems,...Leave a comment:
-
Applet: StackOverflowError when calling readObject()
Hello everyone,
I have been searching this forum for a solution to my problem, but unfortunately couldn't find anything so far. It would be very kind if you could take a look at this.
I am trying to read an object, that I have saved before in a file called "eco.net", in an applet with the readObject() method:
[CODE=java]import java.applet.*;
import java.io.*;
public class TestApplet extends Applet...
No activity results to display
Show More
Leave a comment: