Project

Profile

Help

Bug #2693

java.lang.NoClassDefFoundError: com.saxonica.ee.bytecode.GeneratedCode

Added by O'Neil Delpratt about 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Category:
.NET API
Sprint/Milestone:
Start date:
2016-04-04
Due date:
% Done:

100%

Legacy ID:
Applies to branch:
9.7
Fix Committed on Branch:
9.7
Fixed in Maintenance Release:

Description

Bug reported by user.:

ASP.Net web site project, tested on Windows 8.1 + Visual Studio 2013.

It worked fine with Saxon 9.6.0.8 .Net.

With 9.7.0.4, the following unhandled exception happens:

java.lang.NoClassDefFoundError was unhandled by user code
 HResult=-2146233088
 Message=com.saxonica.ee.bytecode.GeneratedCode
 Source=IKVM.Runtime
 StackTrace:
      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 net.sf.saxon.dotnet.DotNetPlatform.MyClassLoader.registerClass(String name, Byte[] classFile)
      at com.saxonica.ee.bytecode.util.CompilerService.makeClass(ClassWriter writer, String className)
      at com.saxonica.ee.bytecode.util.CompilerService.compileToByteCode(Expression expr, String objectName, Int32 evaluationModes)
      at com.saxonica.ee.optim.OptimizerEE.compileToByteCode(Expression expr, String objectName, Int32 evaluationMethods)
      at net.sf.saxon.style.XSLTemplate.generateByteCode(Optimizer opt)
      at net.sf.saxon.style.PrincipalStylesheetModule.compile(Compilation compilation)
      at net.sf.saxon.style.Compilation.compilePackage(Source source)
      at net.sf.saxon.style.StylesheetModule.loadStylesheet(Source styleSource, Compilation compilation)
      at net.sf.saxon.style.Compilation.compileSingletonPackage(Configuration config, CompilerInfo compilerInfo, Source source)
      at Saxon.Api.XsltCompiler.Compile(Stream input, String theBaseUri, Boolean closeStream)
      at Saxon.Api.XsltCompiler.Compile(Uri uri)
      at _Default.Page_Load(Object sender, EventArgs e) in c:\Users\1stUser\Documents\Visual Studio 2013\WebSites\WebSite1\Default.aspx.cs:line 28
      at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
      at System.Web.UI.Control.OnLoad(EventArgs e)
      at System.Web.UI.Control.LoadRecursive()
      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

I have managed to reproduce the problem and investigating it now.

History

#1 Updated by O'Neil Delpratt about 4 years ago

  • % Done changed from 0 to 100
  • Fix Committed on Branch 9.7 added

The fix mentioned in bug https://saxonica.plan.io/issues/2230#note-9 seems to have not been carried through to the 9.7 branch.

Fixed and committed to subversion and fixed on the development branch.

#2 Updated by O'Neil Delpratt about 4 years ago

  • Status changed from New to Resolved

Added some more bytecode nunit test.

#3 Updated by O'Neil Delpratt almost 4 years ago

  • Status changed from Resolved to Closed
  • Fixed in Maintenance Release 9.7.0.5 added

Bug fix applied in the Saxon 9.7.0.5 maintenance release.

#4 Updated by O'Neil Delpratt almost 4 years ago

  • Sprint/Milestone set to 9.7.0.5

Please register to edit this issue

Also available in: Atom PDF