-
Notifications
You must be signed in to change notification settings - Fork 26.4k
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
not support java 10 #1500
Comments
Hi, Welcome! Can you provide more details, e.g. do you have stack trace? |
There's no exception, but not work. |
What JMH version are you using, is it Java 10 compatible? |
jmh 1.20, it's no problem |
I run the two test cases under Java 10, they're all ok. And I also build dubbo under Java 10, there is a NullPointerException which is thrown by maven-javadoc-plugin. More details can be obtained from https://stackoverflow.com/questions/49460751/execution-attach-javadocs-of-goal-org-apache-maven-pluginsmaven-javadoc-plugin After upgrade maven-javadoc-plugin to 3.0.1-SNAPSHOT, the build process and all test cases pass. @hank-whu So I can't repeat your problem. You can review it again and tell us if getting the same problem. |
嗯,搞明白了,不是dubbo 跟 java 10 的兼容性问题。 |
@hank-whu What's the detail compatible problem about Dubbo 2.6.1 and maven-assembly-plugin? Could you paste the exception stack trace here? |
>java -jar dubbo-server-round-2-jar-with-dependencies.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/context/support/ClassPathXmlApplicationContext
at benchmark.rpc.Server.main(Server.java:8)
Caused by: java.lang.ClassNotFoundException: org.springframework.context.support.ClassPathXmlApplicationContext
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
... 1 more |
eclipse 中启动是没问题的,打包成 dubbo-server-round-2-jar-with-dependencies.jar 就会抛错。 |
@hank-whu I run this two server/client demo with Dubbo 2.6.1 on my mac, and it's all ok. And my maven version is 3.3.9, my java version is:
So please check your maven and jdk10 env. |
@diecui1202 Please use text instead of pic as much as possible. Text is more search engine friendly. |
Looks like this issue is not reproducible, I am closing this issue now. Feel free to reopen it if you can reproduce it later. |
@diecui1202 |
@diecui1202 |
I just change version.dubbo to 2.6.1 |
应该是我电脑 maven 的问题,删掉 maven 的 repository 后问题解决。 |
Can't start the dubbo server.
VM version: JDK 10, VM 10+46
OS version: Ubuntu 16.04 x64
The text was updated successfully, but these errors were encountered: