Project

Profile

Help

Bug #1593

closed

Saxon .NET throws NoClassDefFoundError when bytecode generation is enabled

Added by O'Neil Delpratt over 12 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
High
Category:
Byte code generation
Sprint/Milestone:
-
Start date:
2012-07-20
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

Description

When a Saxon from .NET application is run from Visual Studio 2010 using following code:

Processor processor = new Processor();

XsltCompiler xsltCompiler = processor.NewXsltCompiler();

using (StringReader sr = new StringReader(xslt)) {

XsltExecutable xsltExecutable = xsltCompiler.Compile(sr);

The last line throws NoClassDefFoundError, the stack trace of the error is as follows:

at IKVM.NativeCode.java.lang.ClassLoader.defineClass1(ClassLoader thisClassLoader, String name, Byte[] b, Int32 off, Int32 len, Object pd, String source)
   at java.lang.ClassLoader.defineClass1(String , Byte[] , Int32 , Int32 , ProtectionDomain , String )
   at java.lang.ClassLoader.defineClass(String name, Byte[] b, Int32 off, Int32 len, ProtectionDomain protectionDomain)
   at java.lang.ClassLoader.defineClass(String name, Byte[] b, Int32 off, Int32 len)
   at com.saxonica.bytecode.util.CompilerService$1.findClass(String )
   at java.lang.ClassLoader.loadClass(String name, Boolean resolve)
   at java.lang.ClassLoader.loadClass(String name)
   at com.saxonica.bytecode.util.CompilerService.makeClass(ClassWriter writer, String className)
   at com.saxonica.bytecode.BlockCompiler.generateBlockIterator(CompilerService , Expression , Expression[] )
   at com.saxonica.bytecode.BlockCompiler.compileToIterator(CompilerService compiler, Expression expression)
   at com.saxonica.bytecode.util.CompilerService.compileToIterator(Expression expr)
   at com.saxonica.bytecode.util.CompilerService.compileToByteCode(Expression expr, String objectName, Int32 evaluationModes)
   at com.saxonica.bytecode.LetExpressionCompiler.compileCommonExpr(CompilerService compiler, Expression exp, Int32 evaluationMode, Int32 refCount)
   at com.saxonica.bytecode.ApplyTemplatesCompiler.compileParameterSet(CompilerService compiler, ExpressionCompiler ec, WithParam[] params)
   at com.saxonica.bytecode.CallTemplateCompiler.compileToPush(CompilerService compiler, Expression expression)
   at com.saxonica.bytecode.util.CompilerService.compileToPush(Expression expr)
   at com.saxonica.bytecode.ElementCreatorCompiler.compileToPush(CompilerService compiler, Expression expression)
   at com.saxonica.bytecode.util.CompilerService.compileToPush(Expression expr)
   at com.saxonica.bytecode.util.CompilerService.compileToByteCode(Expression expr, String objectName, Int32 evaluationModes)
   at com.saxonica.expr.ee.OptimizerEE.compileToByteCode(Expression expr, String objectName, Int32 evaluationMethods)
   at net.sf.saxon.style.XSLTemplate.optimize(Declaration declaration)
   at net.sf.saxon.style.PrincipalStylesheetModule.compileStylesheet()
   at net.sf.saxon.PreparedStylesheet.setStylesheetDocument(DocumentImpl doc)
   at net.sf.saxon.PreparedStylesheet.prepare(Source styleSource)
   at net.sf.saxon.TransformerFactoryImpl.newTemplates(Source source, CompilerInfo info)
   at Saxon.Api.XsltCompiler.Compile(TextReader input)

Files

Please register to edit this issue

Also available in: Atom PDF