Skip to content
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

Type mismatch: java.lang.Object is not a subtype of io.netty.util.concurrent.Future #613

Closed
dubinsky opened this issue Dec 13, 2021 · 3 comments · Fixed by #608
Closed
Labels
bug Something isn't working

Comments

@dubinsky
Copy link

ZIO: 1.0.12; zhttp 1.0.0.0-RC17 works fine; with 1.0.0.0-RC18 I get:

Fiber failed.
An unchecked error was produced.
java.lang.BootstrapMethodError: bootstrap method initialization exception
	at java.base/java.lang.invoke.BootstrapMethodInvoker.invoke(BootstrapMethodInvoker.java:194)
	at java.base/java.lang.invoke.CallSite.makeSite(CallSite.java:307)
	at java.base/java.lang.invoke.MethodHandleNatives.linkCallSiteImpl(MethodHandleNatives.java:258)
	at java.base/java.lang.invoke.MethodHandleNatives.linkCallSite(MethodHandleNatives.java:248)
	at zhttp.service.HttpRuntime.unsafeRun$$anonfun$4$$anonfun$2$$anonfun$2(HttpRuntime.scala:24)
	at zio.ZIO$.effectTotal$$anonfun$1(ZIO.scala:2819)
	at zio.internal.FiberContext.evaluateNow(FiberContext.scala:344)
	at zio.internal.FiberContext.evaluateLater$$anonfun$1(FiberContext.scala:776)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.invoke.LambdaConversionException: Type mismatch for instantiated parameter 0: class java.lang.Object is not a subtype of interface io.netty.util.concurrent.Future
	at java.base/java.lang.invoke.AbstractValidatingLambdaMetafactory.checkDescriptor(AbstractValidatingLambdaMetafactory.java:308)
	at java.base/java.lang.invoke.AbstractValidatingLambdaMetafactory.validateMetafactoryArgs(AbstractValidatingLambdaMetafactory.java:294)
	at java.base/java.lang.invoke.LambdaMetafactory.altMetafactory(LambdaMetafactory.java:503)
	at java.base/java.lang.invoke.BootstrapMethodInvoker.invoke(BootstrapMethodInvoker.java:138)
	... 10 more

What am I doing wrong?
Thanks!

@amitksingh1490
Copy link
Collaborator

@dubinsky. You are not doing anything wrong, we found that in RC18 there was an issue with HttpRuntime when used with scala3 and jdk 11+. It has been fixed in this PR #608. Please try the latest snapshot.

@amitksingh1490 amitksingh1490 linked a pull request Dec 13, 2021 that will close this issue
@dubinsky
Copy link
Author

... It has been fixed in this PR #608. Please try the latest snapshot.

Yay! Seems to work with 1.0.0.0-RC18+8-fecadc20-SNAPSHOT!
Looking forward to a non-snapshot release ;)
Thanks!

@tusharmath tusharmath added the bug Something isn't working label Dec 13, 2021
@tusharmath
Copy link
Collaborator

Fixed in #608

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants