Search code examples
tomcatwebobjects

WebObjects 5.4.3 deployed on Tomcat 6 resulted random StackOverflowError


Please advise. I keep getting the stackoverflow error in _NSWeakMutableCollection. Thanks!

Caused by: java.lang.StackOverflowError 

_NSWeakMutableCollection.java 175 processQueue com.webobjects.foundation 
_NSWeakMutableArray.java 124 __removeReference com.webobjects.foundation 
_NSWeakMutableCollection.java 176 processQueue com.webobjects.foundation 

Solution

  • This is likely a bug within WebObjects 5.4.3 itself, however I believe it is fixed in Project WOnder's re-implementation of _NSWeakMutableArray.java; its __removeReference(Reference) method does not call the processQueue() method.

    Project WOnder is a set of open-source WebObjects frameworks and it offers a number of important bug fixes for WebObjects, not to mention thousands of useful features with new stuff being added all the time.