What makes you think this failure is anything to do with Saxon? There is no Saxon code on the stack trace.

Michael Kay
Saxonica

On 31/01/2011 10:50, Pierre wrote:
Hey everyone,

I'm executing an XSLT using saxon that works fine when I test my app in
local but that crashes when running live on the GAE. I have seen posts that claim Saxon works on the GAE, but no working code. I've asked the same question on the Gaelyk list (http://groups.google.com/group/gaelyk/browse_thread/thread/c52109fe69611f70) and the error doesn't seem to come from Groovy.

The code looks like:
        def translator = params.translator ?: "'The received
translation was null.'"
        def input = params.input ?: "'The received input was null.'"

        def StringWriter sw = new StringWriter()
        def Processor proc = new Processor(false)
        def XsltCompiler comp = proc.newXsltCompiler()
        def Serializer out = new Serializer()

        def XsltExecutable exp = comp.compile(new StreamSource(new
StringReader(translator)))
        def XdmNode source = proc.newDocumentBuilder().build(new
StreamSource(new StringReader(input)))

        out.setOutputProperty(Serializer.Property.METHOD, "xml")
        out.setOutputProperty(Serializer.Property.OMIT_XML_DECLARATION,
"yes")
        out.setOutputProperty(Serializer.Property.INDENT, "yes")
        out.setOutputWriter(sw);
        def XsltTransformer trans = exp.load()

        trans.schemaValidationMode

        trans.setInitialContextNode(source)
        trans.setDestination(out)
        trans.transform()
        result = sw.toString()

And I get the following error: http://pastebin.com/h559rYzk

Any tip/idea where that could come from would be welcome :)

All the best,
Pierre

------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/saxon-help