This leads to the follow error when attempting to call the get_work method.
18-06-15 14:22:42.863 DEBUG API [rpc-worker-1]: <rpc-server - internal error [2]>
java.lang.NullPointerException: null
at org.aion.api.server.http.ApiWeb3Aion.stratum_getwork(Unknown Source)
at org.aion.api.server.rpc.RpcMethods.lambda$new$62(Unknown Source)
at org.aion.api.server.rpc.RpcProcessor.processObject(Unknown Source)
at org.aion.api.server.rpc.RpcProcessor.handleSingle(Unknown Source)
at org.aion.api.server.rpc.RpcProcessor.process(Unknown Source)
at org.aion.api.server.nanohttpd.NanoHttpd.respond(Unknown Source)
at org.aion.api.server.nanohttpd.NanoHttpd.serve(Unknown Source)
at fi.iki.elonen.NanoHTTPD$HTTPSession.execute(NanoHTTPD.java:945)
at fi.iki.elonen.NanoHTTPD$ClientHandler.run(NanoHTTPD.java:192)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:844)
I suspect the trace setting may be causing an issue when creating new blocks which leads to this null pointer exception.
Before filing a new issue, please provide the following information.
Your issue description goes here below. Try to include actual vs. expected behavior and steps to reproduce the issue.
Setting DB logging to trace in the config file causes a null pointer exception in the stratum_getwork API.
The issue can be reproduced with the following log settings.
This leads to the follow error when attempting to call the get_work method.
I suspect the trace setting may be causing an issue when creating new blocks which leads to this null pointer exception.