Closed igorgallingani closed 2 years ago
With what is here so far this issue would require a lot of work to attempt to reproduce because there are no steps to reproduce, without a stacktrace it would be difficult to know where the NPE happened in the existing code, and with a code snippet that includes formatting changes rather than something like a patch it is a lot of work to figure out what the changes you made are.
Without more information this could easily take an hour to reproduce and track down... with a risk that there is some nuance to your scenario that is not stated here and that effort in reproducing it would fail, making it a waste of time.
With more information, and information in a more consumable form where you are not asking me or others to do so much work, this could be a matter of a few minutes to review and fix.
Sorry David, I ran the moqui-cluster1-compose.yml with the 'moqui' image prepared with the moqui-hazelcast component. The variable ecfi on line 129 is null during a distributed invocation of the services. Initializing it with ecfi = getEcfi () at the beginning of the method solves the problem.
I think I see what you mean, in the ServiceCallAsyncImpl.AsyncServiceInfo inner class the way it handles the local/cached ecfi field versus the getEcfi() method did not guarantee that it always called the method. Changes to do that are in commit 0a78537c.
If that resolves the issue you're running into please close this issue.
During a distributed asynchronous call, via Hazelcast, the instruction at line 129
raises a NullPointerException. Here is the suggested change to the runInternal method: