Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
AcknowledgeExtension NPE #810
We've upgraded CometD / Jetty from 3.0.4 / 9.2 to 3.1.5 / 9.4.
We use vanilla CometD except we add in the Ack extension only.
Everything's great in real-world use (JS websocket client, Java server). However some of our tests use entirely server-side LocalSessions to simulate clients and assert high level message sequences in our app.
When running these tests locally, we get NPE here because
(I notice that in 4.0 it no longer depends on thread IDs. However I'm not sure I'm ready for 4.0 since it's only been out of beta since September.)
In debugging I've observed that
Don't be reticent to file issues, they are an important contribution to the project.
You can perhaps detail in words (or pseudo code) what your closed source test does?
First we create 2 test "clients", each being:
From the server's perspective (this is production code):
The responseMsg never arrives in the test client's 'receive' method, because of the NPE.
I think that's it.