-
-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception when trying to join a CompletableFuture #447
Comments
Sorry I forgot to clarify that I am using IKVM version 8.7.1 |
Any chance you can provide a repro project? And how are you converting the .jar? IkvmReference, MavenReference, ikvmc, etc. |
I tried IkvmReference and also MavenReference, the jar I am using is based on amazon.awssdk.crt software.amazon.awssdk.crt aws-crt 0.28.0I will try to create a repro project with my own CompletableFuture. Thanks for your quick response |
I was unable to reproduce this error with my own code. I have created a repro project in my repository, the code is basically a java class using some amazon libraries
with these maven dependencies
And a console application with this code:
|
I finally took a look at this. Got it running, reproduces. But, without digging into the AWS libraries, I can't tell what's going on. It looks like they're starting native threads or something, and trying to use JNI to attach them? And not checking error results apparently, since they're passing in a null pointer into JNI. But this is too large for me to spend much time on. I'm not going to have time to go through the entire AWS SDK, including all their C code, to figure out where and why it's failing. I'd request a much more narrow test case. |
Hello, I have converted a jar to c# for framework net7.0-windows all the code seems to be working but an exception is thrown when trying to use the method join over a CompletableFuture.
System.ArgumentOutOfRangeException: 'Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')'
System.Private.CoreLib.dll!System.Collections.ArrayList.this[int].get(int index)
IKVM.Runtime.dll!IKVM.Runtime.JNI.JNIGlobalRefTable.Unwrap(nint z)
IKVM.Runtime.dll!IKVM.Runtime.JNI.JavaVM.AttachCurrentThreadImpl(IKVM.Runtime.JNI.JavaVM* pJVM, void** penv, IKVM.Runtime.JNI.JavaVMAttachArgs* pAttachArgs, bool asDaemon)
IKVM.Runtime.dll!IKVM.Runtime.JNI.JavaVM.AttachCurrentThreadAsDaemon(IKVM.Runtime.JNI.JavaVM* pJVM, void** penv, void* args)
I have tried using binaries for windows-x86 & x64.
Any advice would be appreciated.
The text was updated successfully, but these errors were encountered: