I get the following java stackoverflow error when converting xml in 10g web server hosted in sun solaris . This only happens for a specific xml transformation, and all xml conversions work just fine. The xsl file used is also not very large.
I am using the Transformation api available in rt.jar, but getting this error from the xalan apache package ( com.sun.org.apache.xalan.internal.xsltc.dom.SimpleResultTreeImpl
), which I did not pack in my application.
Another interesting thing: I did not get this exception, when I run the application on a 10g weblogic server hosted on a Windows machine, I only get it in a solarium.
Can someone tell me why I am getting this error.
Can you tell me which jar file throws an exception? Will weblogic have xalan.jar? If so, can I try updating the jar file and see if it works?
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()
source share