I think I have an idea why this may be…
can I contact you directly via Skype so I can show you?
JDK 1.7up 21
OS Ubuntu 12.04
the Manifest is to indicate my jar file, where are the jetty libraries located.
All these may be because how my environment is setted up.
As I told you I have a jar file that has the configuration of jetty by code, and the libs are the basic jetty libraries needed to run.
then the war file that has all the REST things has a web.xml that has the servlets parts, now with the Socket I had to add all the libraries of jetty that were needed not only the ones about web sockets.. so here is where I think that the instance is different so the null pointer, but I think is easier to show you directly sharing my screen and showing you the projects.
I have no idea if this could be achievable. I suppose that if I use other implementation on web socket directly could work… but I would like to stick to jetty.
thanks
On August 20, 2013 at 4:29:16 PM, Joakim Erdfelt (joakim@xxxxxxxxxxx) wrote:
Odd, very odd.
You are definately using websocket correctly, and your servlet is being hit.
However, these 2 lines are causing a NPE for you.
Now why is HttpConnection.getCurrentConnection() null for you?
That is a very strange bug you are experiencing.
What JDK are you using? And on what OS?
I'd like to attempt to replicate.