Skip to content
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

NPE when client reconnect to server while server is handling disconnect. #157

Open
janssk1 opened this issue Jul 20, 2020 · 0 comments
Open

Comments

@janssk1
Copy link

janssk1 commented Jul 20, 2020

Scenario;

  1. Client and server have a connection
  2. Connection is suddenly lost, without proper cleanup
  3. Client detects this, goes to REOPEN
  4. Server detects this and goes to 'down' state
  5. Client sends a CER after REOPEN timeout
  6. Server detected connection loss and starts shutting down the peer threads. First thread that ends will already clear administraive objects such as the statistics.
  7. Server receives the CER (on a thread that is not shut down yet)
  8. NPE raised by server and no CEA send to client

.PeerFSMImpl - Error during processing FSM event
java.lang.NullPointerException
at org.jdiameter.server.impl.PeerImpl.createPeerStatistics(PeerImpl.java:118)
at org.jdiameter.client.impl.controller.PeerImpl.access$2100(PeerImpl.java:145)
at org.jdiameter.client.impl.controller.PeerImpl$ActionContext.createStatistics(PeerImpl.java:1069)
at org.jdiameter.server.impl.fsm.PeerFSMImpl$3.processEvent(PeerFSMImpl.java:322)
at org.jdiameter.client.impl.fsm.PeerFSMImpl$3.run(PeerFSMImpl.java:207)
at java.lang.Thread.run(Thread.java:748)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant