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
UnsupportedOperationException thrown on macos with KQueue in 4.1.54.Final with io.netty.noUnsafe set to true #10813
Milestone
Comments
Yes thats a bug... Let me fix it asap. |
normanmaurer
added a commit
that referenced
this issue
Nov 23, 2020
Motivation: In some enviroments sun.misc.Unsafe is not present. We should support these as well. Modifications: Fallback to JNI if we can't directly access the memoryAddress of the buffer. Result: Fixes #10813
Fixed #10814 |
normanmaurer
added a commit
that referenced
this issue
Nov 23, 2020
Motivation: In some enviroments sun.misc.Unsafe is not present. We should support these as well. Modifications: Fallback to JNI if we can't directly access the memoryAddress of the buffer. Result: Fixes #10813
normanmaurer
added a commit
that referenced
this issue
Nov 23, 2020
Motivation: In some enviroments sun.misc.Unsafe is not present. We should support these as well. Modifications: Fallback to JNI if we can't directly access the memoryAddress of the buffer. Result: Fixes #10813
Unfortunately the reported problem is still there even with 4.1.55. I tried 4.1.55 with 2.3.6 and 2.4.1, still same behaviour:
Steps to reproduce are same, just use spring boot 2.4.1. |
@henrychv doh! We missed another place :/ |
normanmaurer
added a commit
that referenced
this issue
Dec 16, 2020
Motivation: #10814 did fix a bug where we did try to call memoryAddress() even tho this is not supported. Unfortunally this fix was only applied for one method and so we missed another method which then could throw an exception when we called memoryAddress() Modifications: - Also fix the memoryAddress(offset) method. _ Adjust unit test to also test this. Result: Fixes #10813 completely.
normanmaurer
added a commit
that referenced
this issue
Dec 16, 2020
Motivation: #10814 did fix a bug where we did try to call memoryAddress() even tho this is not supported. Unfortunally this fix was only applied for one method and so we missed another method which then could throw an exception when we called memoryAddress() Modifications: - Also fix the memoryAddress(offset) method. _ Adjust unit test to also test this. Result: Fixes #10813 completely.
normanmaurer
added a commit
that referenced
this issue
Dec 16, 2020
Motivation: #10814 did fix a bug where we did try to call memoryAddress() even tho this is not supported. Unfortunally this fix was only applied for one method and so we missed another method which then could throw an exception when we called memoryAddress() Modifications: - Also fix the memoryAddress(offset) method. _ Adjust unit test to also test this. Result: Fixes #10813 completely.
raidyue
pushed a commit
to raidyue/netty
that referenced
this issue
Jul 8, 2022
Motivation: In some enviroments sun.misc.Unsafe is not present. We should support these as well. Modifications: Fallback to JNI if we can't directly access the memoryAddress of the buffer. Result: Fixes netty#10813
raidyue
pushed a commit
to raidyue/netty
that referenced
this issue
Jul 8, 2022
Motivation: netty#10814 did fix a bug where we did try to call memoryAddress() even tho this is not supported. Unfortunally this fix was only applied for one method and so we missed another method which then could throw an exception when we called memoryAddress() Modifications: - Also fix the memoryAddress(offset) method. _ Adjust unit test to also test this. Result: Fixes netty#10813 completely.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We updated our spring boot project to version 2.3.6.RELEASE which uses netty 4.1.54.Final and now exceptions like the one below are thrown.
When we override version of netty dependencies to 4.1.53.Final in our project, everything works again. (Works also when noUnsafe set to false or when nio is used instead of kqueue).
Expected behavior
Result is returned from rest api calls.
Actual behavior
Exception is thrown:
Steps to reproduce
Create Spring Boot project (use version 2.3.6.Release) with added Reactive Web.
In generated pom add dependency:
When launching add parameter
-Dio.netty.noUnsafe=true
to jvm.Minimal yet complete reproducer code (or URL to code)
Netty version
4.1.54.Final
JVM version (e.g.
java -version
)openjdk version "11.0.7" 2020-04-14
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.7+10)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.7+10, mixed mode)
OS version (e.g.
uname -a
)Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64 x86_64
The text was updated successfully, but these errors were encountered: