Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Exception initiating WebSocketClient

It was the solution, thank you so much!

2016-10-28 9:47 GMT+02:00 Simone Bordet <sbordet@xxxxxxxxxxx>:
Hi,

On Fri, Oct 28, 2016 at 9:42 AM, Elias Antolinos Garcia
<eliasantolinos@xxxxxxxxx> wrote:
> Hi community!
>
> I am trying to load an example where I change messages between Ros and Java.
> I have add all the libraries that I have found, but I always get the
> following exception:
>
> 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.<init>(ExtensionFactory.java:37)
>     at
> org.eclipse.jetty.websocket.common.extensions.WebSocketExtensionFactory.<init>(WebSocketExtensionFactory.java:40)
>     at
> org.eclipse.jetty.websocket.client.WebSocketClient.<init>(WebSocketClient.java:85)
>     at
> org.eclipse.jetty.websocket.client.WebSocketClient.<init>(WebSocketClient.java:78)
>     at ros.RosBridge.connect(RosBridge.java:113)
>     at tests.RosTest.main(RosTest.java:27)
>
>
> These are the libraries:
>
> com.fasterxml.jackson.core.jar
> jetty-websocket-8.0.0.v20110901.jar
> com.fasterxml.jackson.databind.jar
> websocket-api-9.0.0.rc0.jar
> websocket-client-9.0.3.v20130506.jar
> websocket-client-9.0.3.v20130506-hybrid.jar
> websocket-client-9.0.2.v20130417.jar
> websocket-client-9.0.2.v20130417-hybrid.jar
> websocket-client-9.1.0.m0-hybrid.jar
> jetty-util-9.0.0.rc0.jar
> jetty-io-9.0.0.m1.jar
> websocket-common-9.0.0.rc1.jar
> java_rosbridge.jar
> java_rosbridge_all.jar
> jetty-all.jar
> jetty-all-9.2.6.v20141205.jar

Please note you have a weird number of different versions of the Jetty
libraries.
Pick one version only, we recommend you stay on the latest, 9.3.13.v20161014.
Don't use the jetty*-all.jar versions.

Once you have only one version for all the Jetty libraries, try again.

--
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users



--
Un Saludo
Elías Antolinos García 

Back to the top