Saxon 9.0 cause for JVM crash on 64bit?

  • Axel Schulz
    Axel Schulz


    we're using Saxon 9.0 for PDF creation (on-the-fly and cached) in a large
    64-bit java web application environment with Sun GlassFish 2.1 as application
    server. We experience a crash of the JVM on the server from time to time and
    the message in the log files is always the same:

    Current CompileTask:
    C2:6007  !   net.sf.saxon.event.ReceivingContentHandler.startElement(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lorg/xml/sax/Attributes;)V (638 bytes)

    So we're wondering whether there'd be any known problems with Saxon9.0 running
    on 64bit systems? Should we upgrade to a higher version? Since we're using
    extensions we would probably go for the EE-version then...

    Thanks in advance!

  • Michael Kay
    Michael Kay

    I don't recognize this problem, but since it's on the interface between Saxon
    and the XML parser, one suggestion would be to make sure you are running the
    Apache Xerces parser rather than the parser that comes with the JDK. The Sun
    adaptation of the Xerces parser is notoriously buggy.

    There haven't been many changes to Saxon in this area, so I think that
    upgrading your Saxon version is unlikely to make a difference, other than
    perhaps by pure chance.

    It's odd that this should be an intermittent failure as it's a very commonly
    used path.