wangyao2016 commented on PR #1527:
URL: 
https://github.com/apache/incubator-hugegraph/pull/1527#issuecomment-1128720092

   With this PR, I cannot  start hugegraph successful. Err:
   
   `2022-05-17 18:37:28 [main] [INFO] c.b.h.s.RestServer - RestServer 
starting...
   2022-05-17 18:37:30 [main] [INFO] c.b.h.u.ConfigUtil - Scanning option 
'graphs' directory './conf/graphs'
   2022-05-17 18:37:30 [main] [INFO] c.b.h.b.c.Cache - Init RamCache for 
'users-hugegraph' with capacity 10240
   2022-05-17 18:37:30 [main] [INFO] c.b.h.b.c.Cache - Init RamCache for 
'users_pwd-hugegraph' with capacity 10240
   2022-05-17 18:37:30 [main] [INFO] c.b.h.b.c.Cache - Init RamCache for 
'token-hugegraph' with capacity 10240
   2022-05-17 18:37:30 [main] [INFO] c.b.h.s.RestServer - Graph 'hugegraph' was 
successfully configured via './conf/graphs/hugegraph.properties'
   2022-05-17 18:37:30 [main] [INFO] c.b.h.r.RpcServer - RpcServer config is 
empty, skip starting RpcServer
   2022-05-17 18:37:30 [main] [ERROR] c.b.h.d.HugeGraphServer - HugeRestServer 
start error: 
   java.lang.NullPointerException: null
        at 
com.baidu.hugegraph.testutil.Whitebox.getInternalState(Whitebox.java:69) 
~[hugegraph-common-2.1.2.jar:2.1.2.0]
        at 
com.baidu.hugegraph.core.GraphManager.remotingRpcServer(GraphManager.java:301) 
~[hugegraph-api-0.13.0.jar:0.69.0.0]
        at 
com.baidu.hugegraph.core.GraphManager.waitGraphsReady(GraphManager.java:373) 
~[hugegraph-api-0.13.0.jar:0.69.0.0]
        at com.baidu.hugegraph.core.GraphManager.<init>(GraphManager.java:112) 
~[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:121) 
~[hugegraph-dist-0.13.0.jar:?]`
   
   I found 
[serverConfig.getServer()](https://github.com/apache/incubator-hugegraph/commit/8609968e6648d69189b6ea6d37b68b81e245e4dc#diff-7a0b04965824fe2f392d66bc9cb0addb6b059d81142c3117f8ff6c390b5e4e03R299)
  was null. Actually ServerConfig is `[protocol=bolt, port=8091, 
host=127.0.0.1]`
   
   
   Can you take a look?Thanks. @Linary 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to