ERROR agent.SpringLoadedPreProcessor - Unexpected _problem_ transforming
call sites
Performing an XSL transform I get the following error 3 times in a row
(even though I only call transform once). The really strange thing is that
other than the error message everything seems fine, that is to say the
result of the transform is what I expected to see.
The error occurs in my Grails project, but using same code in a Groovy
script does not produce the error.
Why is this happening and how do I correct it?
Code in Grails src/groovy folder:
import javax.xml.transform.TransformerFactory
import javax.xml.transform.stream.StreamResult
import javax.xml.transform.stream.StreamSource
class Util {
static def formatXml(def xmlFile) {
def sw = new StringWriter()
def xslFile = getXslFile()
def factory = TransformerFactory.newInstance()
def transformer = factory.newTransformer(new StreamSource(xslFile))
transformer.transform(new StreamSource(xmlFile), new
StreamResult(sw)) // Error occurs here
xmlFile.setText(sw.toString())
xmlFile
}
}
Error Message:
| Error 2013-09-11 16:00:20,693 [http-bio-8080-exec-8] ERROR
agent.SpringLoadedPreProcessor - Unexpected problem transforming call
sites
Message: null
Line | Method
->> 109 | <init> in java.lang.StringBuilder
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 792 | defineClass in java.lang.ClassLoader
| 635 | defineClass . . . . . in ''
| 136 | defineClass in
com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl$TransletClassLoader
| 339 | defineTransletClasses in
com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl
| 376 | getTransletInstance in ''
| 410 | newTransformer . . . in ''
| 672 | newTransformer in
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
| 97 | formatXml . . . . . . in test.Util
| 293 | upload in test.XmlUploadService
| 16 | upload . . . . . . . in test.XmlUploadController
| 195 | doFilter in
grails.plugin.cache.web.filter.PageFragmentCachingFilter
| 63 | doFilter . . . . . . in
grails.plugin.cache.web.filter.AbstractFilter
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run . . . . . . . . . in
java.util.concurrent.ThreadPoolExecutor$Worker
^ 724 | run in java.lang.Thread
No comments:
Post a Comment