java - stack overflow exception on xml transformation -
i getting following java stackoverflow error on xml transformation in weblogic server 10g hosted in sun solaris. happens particular xml tranformation , rest xml transformation works fine. xsl file used not big.
i using transformation api available in rt.jar getting error xalan apache package(com.sun.org.apache.xalan.internal.xsltc.dom.simpleresulttreeimpl
) havent packaged in application.
another interesting thing didnt exception when run application in weblogic 10g server hosted in windows machine, in sun solaris.
can let me know why error.
can let me know jar file causing exception ? weblogic have xalan.jar ? if can try upgrade jar file , see if working ?
caused by: java.lang.stackoverflowerror @ com.sun.org.apache.xalan.internal.xsltc.dom.simpleresulttreeimpl.characters(simpleresulttreeimpl.java) @ com.sun.org.apache.xalan.internal.xsltc.dom.simpleresulttreeimpl.copy(simpleresulttreeimpl.java:438) @ com.sun.org.apache.xalan.internal.xsltc.runtime.basislibrary.copy(basislibrary.java:1317) @ gregorsamsa.replace() @ gregorsamsa.replace() @ gregorsamsa.replace() @ gregorsamsa.replace() @ gregorsamsa.replace() @ gregorsamsa.replace() @ gregorsamsa.replace() @ gregorsamsa.replace() @ gregorsamsa.replace() @ gregorsamsa.replace() @ gregorsamsa.replace() @ gregorsamsa.replace() @ gregorsamsa.replace()
it appears there recursion happening here based on calls gregorsamsa.replace()
. fact works on windows , not solaris due different implementations of jvm or more likely, default jvm options stack size.
here jvm stack size option does.
here how can increase stack size in eclipse.
here how can set stack size via command line along more discussion on topic:
$ javac tt.java $ java -xss4m tt
-xss4m = 4 megs
-xss1024k = 1024kb
if want launch new thread application specified stack size thread take @ constructors thread class, including:
public thread(threadgroup group, runnable target,string name,long stacksize)
Comments
Post a Comment