-
Notifications
You must be signed in to change notification settings - Fork 529
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
fix(dist): start server with java 11 #2020
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2020 +/- ##
============================================
- Coverage 66.36% 66.34% -0.02%
+ Complexity 978 976 -2
============================================
Files 482 482
Lines 41462 41462
Branches 5890 5890
============================================
- Hits 27515 27508 -7
- Misses 11247 11255 +8
+ Partials 2700 2699 -1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
java11 ci error: Error: -18 12:24:06 [main] [ERROR] c.b.h.d.HugeGraphServer - HugeRestServer start error:
java.lang.ExceptionInInitializerError: null
at java.lang.Class.forName0(Native Method) ~[?:?]
at java.lang.Class.forName(Class.java:315) ~[?:?]
at org.apache.tinkerpop.gremlin.structure.util.GraphFactory.open(GraphFactory.java:63) ~[gremlin-core-3.5.1.jar:3.5.1]
at com.baidu.hugegraph.auth.StandardAuthenticator.setup(StandardAuthenticator.java:131) ~[hugegraph-api-0.13.0.jar:0.69.0.0]
at com.baidu.hugegraph.auth.HugeAuthenticator.loadAuthenticator(HugeAuthenticator.java:146) ~[hugegraph-api-0.13.0.jar:0.69.0.0]
at com.baidu.hugegraph.core.GraphManager.<init>(GraphManager.java:96) ~[hugegraph-api-0.13.0.jar:0.69.0.0]
at com.baidu.hugegraph.server.ApplicationConfig$GraphManagerFactory$1.onEvent(ApplicationConfig.java:130) ~[hugegraph-api-0.13.0.jar:0.69.0.0]
at org.glassfish.jersey.server.internal.monitoring.CompositeApplicationEventListener.onEvent(CompositeApplicationEventListener.java:49) ~[jersey-server-3.0.3.jar:?]
at org.glassfish.jersey.server.internal.monitoring.MonitoringContainerListener.onStartup(MonitoringContainerListener.java:56) ~[jersey-server-3.0.3.jar:?]
at org.glassfish.jersey.server.ApplicationHandler.onStartup(ApplicationHandler.java:711) ~[jersey-server-3.0.3.jar:?]
at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.start(GrizzlyHttpContainer.java:330) ~[jersey-container-grizzly2-http-3.0.3.jar:?]
at org.glassfish.grizzly.http.server.HttpHandlerChain.start(HttpHandlerChain.java:376) ~[grizzly-http-server-3.0.1.jar:3.0.1]
at org.glassfish.grizzly.http.server.HttpServer.setupHttpHandler(HttpServer.java:268) ~[grizzly-http-server-3.0.1.jar:3.0.1]
at org.glassfish.grizzly.http.server.HttpServer.start(HttpServer.java:245) ~[grizzly-http-server-3.0.1.jar:3.0.1]
at com.baidu.hugegraph.server.RestServer.start(RestServer.java:73) ~[hugegraph-api-0.13.0.jar:0.69.0.0]
at com.baidu.hugegraph.server.RestServer.start(RestServer.java:180) ~[hugegraph-api-0.13.0.jar:0.69.0.0]
at com.baidu.hugegraph.dist.HugeRestServer.start(HugeRestServer.java:34) ~[hugegraph-dist-0.13.0.jar:?]
at com.baidu.hugegraph.dist.HugeGraphServer.<init>(HugeGraphServer.java:62) ~[hugegraph-dist-0.13.0.jar:?]
at com.baidu.hugegraph.dist.HugeGraphServer.main(HugeGraphServer.java:122) ~[hugegraph-dist-0.13.0.jar:?]
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make public static synchronized void jdk.internal.reflect.Reflection.registerFieldsToFilter(java.lang.Class,java.lang.String[]) accessible: module java.base does not "exports jdk.internal.reflect" to unnamed module @49070868
at java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:340) ~[?:?]
at java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:280) ~[?:?]
at java.lang.reflect.Method.checkCanSetAccessible(Method.java:198) ~[?:?]
at java.lang.reflect.Method.setAccessible(Method.java:192) ~[?:?]
at com.baidu.hugegraph.util.Reflection.registerFieldsToFilter(Reflection.java:89) ~[hugegraph-core-0.13.0.jar:2.1.2.0]
at com.baidu.hugegraph.auth.HugeFactoryAuthProxy.registerPrivateActions(HugeFactoryAuthProxy.java:94) ~[hugegraph-api-0.13.0.jar:0.69.0.0]
at com.baidu.hugegraph.auth.HugeFactoryAuthProxy.<clinit>(HugeFactoryAuthProxy.java:75) ~[hugegraph-api-0.13.0.jar:0.69.0.0]
... 19 more |
it's not easy to handle One way is we truncate the num before the 2nd
try this command: (check the logic)
|
@zyxxoo start with java11, the log alert the warning: |
fixed #1957