0

我在 Processor() 构造函数中尝试在 Linux 上将 Saxon.NET 与 Mono 2.10.8 一起使用时遇到此异常:

[eric@farm228 MetaTemplateGenerator]$ mono bin/Debug/MetaTemplateGenerator.exe simple.xml

Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for net.sf.saxon.Configuration ---> System.TypeLoadException: A type load exception has occurred.
  at java.lang.Class.desiredAssertionStatus () [0x00000] in <filename unknown>:0
  at net.sf.saxon.Configuration..cctor () [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at Saxon.Api.Processor..ctor () [0x00000] in <filename unknown>:0
  at MetaTemplateGenerator.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for net.sf.saxon.Configuration ---> System.TypeLoadException: A type load exception has occurred.
  at java.lang.Class.desiredAssertionStatus () [0x00000] in <filename unknown>:0
  at net.sf.saxon.Configuration..cctor () [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at Saxon.Api.Processor..ctor () [0x00000] in <filename unknown>:0
  at MetaTemplateGenerator.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
[eric@farm228 MetaTemplateGenerator]$ which mono
/tools/linux/mono-2.10.8/bin/mono
4

1 回答 1

0

https://dev.saxonica.com/community/boards/3/topics/5417?r=5424#message-5424

于 2012-06-06T15:29:36.443 回答