Fix LS2J error causes java.lang.StackOverflowError
When you use an LS2J agent to connect to an external database and retrieve large amounts of data, then create a new JavaObject for each row of data, the following error occurs:
“LS2J Error: Threw java.lang.StackOverflowError”
I found this error message when I use lotus Script call Java run some module with big size data. This issue was reported to Quality Engineering as SPR# JGON5W5UHR and fixed in Domino 6.5.5 and Domino 7.0.1.
- SPR# JGON5W5UHR – Fixed an LS2J memory leak that caused a java.lang.StackOverflowError or OutOfMemory error after repeated LS2J calls to a Java Method returning an Object.
To work around the issue in earlier releases, do not create the JavaObject in LotusScript and pass it to Java. Create the object in Java only. If someone have any idea please tell me. Thanks.
Viewed 10429 times by 2403 viewers
Categories: Lotus Notes Tutorial, LotusScript, Notes Designer, Notes Java, Notes Web Notes Java, Notes Web













