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
java.lang.NoSuchMethodError: java.nio.ByteBuffer.position(I)Ljava/nio/ByteBuffer #11789
Comments
Please try to run the function with java 11. I tested with master branch on java 11, the function runs fine.
|
Thanks for your work and i think it should be work for java8, not java11 only, right? |
Yes, i build and run with java8 hangc@MacBook-Pro-2 ~/Workspace/release/pulsar-2.8.1 java -version
java version "1.8.0_291"
Java(TM) SE Runtime Environment (build 1.8.0_291-b10)
Java HotSpot(TM) 64-Bit Server VM (build 25.291-b10, mixed mode)
hangc@MacBook-Pro-2 ~/Workspace/release/pulsar-2.8.1 mvn -v
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512M; support was removed in 8.0
Apache Maven 3.6.2 (40f52333136460af0dc0d7232c0dc0bcf0d9e117; 2019-08-27T23:06:16+08:00)
Maven home: /Users/hangc/Cloud/apache-maven-3.6.2
Java version: 1.8.0_291, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_291.jdk/Contents/Home/jre
Default locale: en_CN, platform encoding: UTF-8
OS name: "mac os x", version: "10.16", arch: "x86_64", family: "mac" |
I agree with you. When user run pulsar function with java8, it will fail. @nlu90 |
Arw you using latest master? |
@eolivelli Yes, I build from the latest master. build and run with java8 |
I refer to this patch |
it is in a different code path. The correct fix is to upgrade Airlift or to downgrade it |
AirLift has been upgraded @hangc0276 @codelipenghui do you want to send a patch that: |
@eolivelli Ok, i upgrade the aircompressor to 0.20, it works, thank you very much. It push a PR #11790, PTAL. |
Fix #11789 ### Modification upgrade aircompressor from 0.19 to 0.20
Fix apache#11789 ### Modification upgrade aircompressor from 0.19 to 0.20
Describe the bug
When create a function, the server side throws NosuchMethodError exception
To Reproduce
Steps to reproduce the behavior:
$ bin/pulsar standalone $ bin/pulsar-admin tenants create test $ bin/pulsar-admin namespaces create test/test-namespace $ bin/pulsar-admin functions create --function-config-file examples/example-function-config.yaml --jar examples/api-examples.jar
Expected behavior
Created Successfully
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: