Project

Profile

Help

java.lang.CloneNotSupportedException thrown in .NET

Added by O'Neil Delpratt over 9 years ago

Reported by Saxon user: We are getting the below error when we are using the saxon(version : Saxon-PE 9.6.0.5N) . Command used:

Transform.exe -s:sourcefile.xml -xsl:Inputfile.xsl -o:outputfile

Exception:

Error : java.lang.CloneNotSupportedException
        at java.lang.Object.clone(map.xml)
        at net.sf.saxon.lib.StandardErrorListener.getExpandedMessage(StandardErrorListener.java:487)
        at net.sf.saxon.lib.StandardErrorListener.fatalError(StandardErrorListener.java:291)
        at net.sf.saxon.Controller.reportFatalError(Controller.java:840)
       at net.sf.saxon.Controller.transform(Controller.java:1727)
        at net.sf.saxon.s9api.XsltTransformer.transform(XsltTransformer.java:548)
        at net.sf.saxon.Transform.processFile(Transform.java:1059)
        at net.sf.saxon.Transform.doTransform(Transform.java:661)
        at cli.Saxon.Cmd.DotNetTransform.Main(Unknown Source)
Fatal error during transformation: java.lang.CloneNotSupportedException:  (no message)

They installed the latest .NET version 4.5 which resolved the issue. The problem was caused due to the use of an older version of .NET.


Please register to reply