java_rosbridge icon indicating copy to clipboard operation
java_rosbridge copied to clipboard

Error trying to execute SimpleEchoClient

Open antolinos95 opened this issue 9 years ago • 2 comments

Hi! I get the next exception when I execute SimpleEchoClient or RosTest:

Exception in thread "main" java.lang.NullPointerException at org.eclipse.jetty.websocket.common.extensions.AbstractExtension.getName(AbstractExtension.java:90) at org.eclipse.jetty.websocket.api.extensions.ExtensionFactory.(ExtensionFactory.java:37) at org.eclipse.jetty.websocket.common.extensions.WebSocketExtensionFactory.(WebSocketExtensionFactory.java:40) at org.eclipse.jetty.websocket.client.WebSocketClient.(WebSocketClient.java:85) at org.eclipse.jetty.websocket.client.WebSocketClient.(WebSocketClient.java:78) at tests.SimpleEchoClient.main(SimpleEchoClient.java:18)

Thank you!

antolinos95 avatar Oct 26 '16 08:10 antolinos95

I'm going to guess it's something to do with Jetty not having all the libraries that it needs... It's trying to load an extension and failing. Is Jetty installed correctly? Your classpath set up? Have you tried looking on Jetty forums?

On 10/26/2016 04:41 AM, antolinos95 wrote:

Hi! I get the next exception when I execute SimpleEchoClient or RosTest:

Exception in thread "main" java.lang.NullPointerException
at
org.eclipse.jetty.websocket.common.extensions.AbstractExtension.getName(AbstractExtension.java:90)
at
org.eclipse.jetty.websocket.api.extensions.ExtensionFactory.(ExtensionFactory.java:37)
at
org.eclipse.jetty.websocket.common.extensions.WebSocketExtensionFactory.(WebSocketExtensionFactory.java:40)
at
org.eclipse.jetty.websocket.client.WebSocketClient.(WebSocketClient.java:85)
at
org.eclipse.jetty.websocket.client.WebSocketClient.(WebSocketClient.java:78)
at tests.SimpleEchoClient.main(SimpleEchoClient.java:18)

Thank you!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/h2r/java_rosbridge/issues/4, or mute the thread https://github.com/notifications/unsubscribe-auth/ABAIHQrRl-NJJQ4aLM9WjU87hbEK5416ks5q3xIsgaJpZM4Kg5vv.

stefie10 avatar Oct 27 '16 21:10 stefie10

It was a weird conflict between different versions of Jetty, now it's solved. Thank you! :smile:

antolinos95 avatar Oct 28 '16 08:10 antolinos95