java.lang.StackOverflowError

Hi,
I get java.lang.StackOverflowError error after every 1 hour the server is started and the server shuts down abruptly. We are running 4.0.1. This happens on the production. Did anybody see this error or has a solution / possible explanation? If so, please let me know. This is very urgent.The stack trace is as follows…

java.lang.StackOverflowError
at com.wm.app.tn.cm.IDataCoderHash.put(TempCoder.java(Compiled

Code))
at com.wm.app.tn.cm.TempCoder._encode(TempCoder.java(Compiled

Code))
at com.wm.app.tn.cm.TempCoder._encode(TempCoder.java(Compiled

Code))
at com.wm.app.tn.cm.TempCoder._encode(TempCoder.java(Compiled

Code))
at com.wm.app.tn.cm.TempCoder._encode(TempCoder.java(Compiled

Code))
at com.wm.app.tn.cm.TempCoder._encode(TempCoder.java(Compiled

Code))
at com.wm.app.tn.cm.TempCoder._encode(TempCoder.java(Compiled

Code))
at com.wm.app.tn.cm.TempCoder._encode(TempCoder.java(Compiled

Code))
at com.wm.app.tn.cm.TempCoder._encode(TempCoder.java(Compiled

Code))
at com.wm.app.tn.cm.TempCoder._encode(TempCoder.java(Compiled

Code))
at com.wm.app.tn.cm.TempCoder._encode(TempCoder.java(Compiled

Code))
at com.wm.app.tn.cm.TempCoder._encode(TempCoder.java(Compiled


at

com.wm.app.tn.cm.InvocationStep.process(InvocationStep.java:282)
at com.wm.app.tn.cm.Step.performJump(Step.java:220)
at

com.wm.app.tn.cm.InvocationStep.process(InvocationStep.java:282)
at com.wm.app.tn.cm.Step.performJump(Step.java:220)
at

com.wm.app.tn.cm.InvocationStep.process(InvocationStep.java:282)
at com.wm.app.tn.cm.Step.performJump(Step.java:220)
at

com.wm.app.tn.cm.InvocationStep.process(InvocationStep.java:282)
at com.wm.app.tn.cm.Step.performJump(Step.java:220)
at

com.wm.app.tn.cm.InvocationStep.process(InvocationStep.java:282)
at

com.wm.app.tn.cm.ConversationScript.process(ConversationScript.java:2
94)
at

com.wm.app.tn.cm.ConversationAgent.process(ConversationAgent.java:194
)
at

com.wm.app.tn.cm.ConversationThread.synchRun(ConversationThread.java:
194)
at

com.wm.app.tn.cm.ConversationThread.run(ConversationThread.java:90)
at com.wm.util.pool.PooledThread.run(PooledThread.java:103)
at java.lang.Thread.run(Thread.java:498)

Don’t know if you found your solution (after all, this question is over two months old), but the Java API says it is “thrown when a stack overflow occurs because an application recurses too deeply”.

I’d look for code that you’ve written where a method calls itself. I’ve done this to myself in Java where I’ve written a recursive function without paying close enough attention to the stopping condition. It’s usually pretty easy to spot and fix in those cases.

What’s that method com.wm.app.tn.cm.TempCoder._encode that shows up a dozen times in the stack trace? Odd…

The only other thing that bothers me is that all the package names start with com.wm.app.tn.cm - obviously none of these are your code. Did WebMethods accept this as a bug, or did it trace back to something you wrote? Did you find a solution?

These forums aren’t very active, are they? There are lots of notes that are never answered. - MOD