I am getting the following java stackoverflow error on a xml transformation in weblogic server 10g hosted in sun solaris. This happens only for a particular xml tranformation and rest all xml transformation works fine. The xsl file used is also not very big.
I am using the Transformation api available in rt.jar but getting this error from xalan apache package(com.sun.org.apache.xalan.internal.xsltc.dom.SimpleResultTreeImpl
) which I havent packaged in my application.
Another interesting thing is that I didnt get this exception when I run the application in weblogic 10g server hosted in windows machine, I get this only in sun solaris.
Can anyone let me know why I get this error.
Can you let me know which jar file is causing the exception ? Will weblogic have a xalan.jar ? If so I can try to upgrade the jar file and see if its working ?
Caused by: java.lang.StackOverflowError
at com.sun.org.apache.xalan.internal.xsltc.dom.SimpleResultTreeImpl.characters(SimpleResultTreeImpl.java)
at com.sun.org.apache.xalan.internal.xsltc.dom.SimpleResultTreeImpl.copy(SimpleResultTreeImpl.java:438)
at com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary.copy(BasisLibrary.java:1317)
at GregorSamsa.replace()
at GregorSamsa.replace()
at GregorSamsa.replace()
at GregorSamsa.replace()
at GregorSamsa.replace()
at GregorSamsa.replace()
at GregorSamsa.replace()
at GregorSamsa.replace()
at GregorSamsa.replace()
at GregorSamsa.replace()
at GregorSamsa.replace()
at GregorSamsa.replace()
at GregorSamsa.replace()