[Ikvm-developers] cli.System.NotImplementedException under mono
Brought to you by:
jfrijters
From: Witold S. <wit...@o2...> - 2016-03-06 15:27:20
|
Hi,we are successfully using IKVM to bridge two applications: Java and .NET. We have a common communication API and using XStream to serialize/deserialize DTOs between the applications. The common communication API and XStream was compiled with ikvmc and is available for the development of the .NET application. The depicted solution works when running the .NET application on Windows. However, when running the .NET application on Linux/Mono it fails. The following exception is thrown on the XStream#fromXML() call. IKVM: ikvmbin-8.1.5717.0 xstream: <dependency> <groupId>com.thoughtworks.xstream</groupId> <artifactId>xstream</artifactId> <version>1.4.3</version> </dependency> Stack trace: java.lang.InternalError: uncaught exception at java.lang.invoke.MethodHandleStatics.newInternalError(MethodHandleStatics.java:117)at java.lang.invoke.MethodHandleStatics.uncaughtException(MethodHandleStatics.java:139)at java.lang.invoke.BoundMethodHandle$Species_L.copyWithExtendL(BoundMethodHandle.java:231)at java.lang.invoke.LambdaFormEditor.bindArgumentL(LambdaFormEditor.java:397)at java.lang.invoke.BoundMethodHandle.bindArgumentL(BoundMethodHandle.java:97)at java.lang.invoke.MethodHandle.bindArgumentL(MethodHandle.java:1315)at java.lang.invoke.MethodHandle.bindTo(MethodHandle.java:1274)at Java_java_lang_invoke_MethodHandleImpl.makePairwiseConvert(Unknown Source)at java.lang.invoke.MethodHandleImpl.makePairwiseConvert(MethodHandleImpl.java)at java.lang.invoke.MethodHandleImpl.makePairwiseConvert(MethodHandleImpl.java:380)at java.lang.invoke.MethodHandle.asTypeUncached(MethodHandle.java:772)at java.lang.invoke.MethodHandle.asType(MethodHandle.java:751)at java.lang.invoke.MethodHandles.explicitCastArguments(MethodHandles.java:2027)at IKVM.Runtime.ByteCodeHelper.DynamicBinderMemberLookup(Unknown Source)at <my code calling the XStream#fromXML()> Caused by: cli.System.NotImplementedException: The method or operation is not implemented.at cli.System.Reflection.MemberInfo.get_Module(Unknown Source)at cli.System.Reflection.Emit.FieldBuilder.get_Module(Unknown Source)at IKVM.Internal.FieldWrapper.ResolveField(Unknown Source)at NativeInvokerBytecodeGenerator.emitStaticInvoke(Unknown Source)at NativeInvokerBytecodeGenerator.generateCustomizedCodeBytes(Unknown Source)at NativeInvokerBytecodeGenerator.generateCustomizedCode(Unknown Source)at java.lang.invoke.LambdaForm.compileToBytecode(LambdaForm.java)... 23 more Could you please help us or give some hints to be able find a root cause of the problem. Greetings, Witold |