h2r / java_rosbridge

A simple library using Jetty 9 to connect Java to a rosbridge server. Supports publishing and subscribing with different topic delegates
GNU Lesser General Public License v3.0
37 stars 20 forks source link

Error trying to execute SimpleEchoClient #4

Open antolinos95 opened 8 years ago

antolinos95 commented 8 years ago

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!

stefie10 commented 8 years ago

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.

antolinos95 commented 8 years ago

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