Re: Hi


Daniel Mikusa
 

On Mon, Mar 28, 2016 at 11:55 PM, Mukul Kansal <kansalmukul(a)gmail.com>
wrote:

Please need your inputs on above mail chain query.

Thanks


On Mon, Mar 28, 2016 at 10:14 PM, Dieu Cao <dcao(a)pivotal.io> wrote:

This mailing list has been retired.
Please post to cf-dev(a)lists.cloudfoundry.org


https://lists.cloudfoundry.org/archives/list/cf-dev(a)lists.cloudfoundry.org/

On Mon, Mar 28, 2016 at 12:32 AM, <kansalmukul(a)gmail.com> wrote:

Hi

I have deployed one webapp on CF that contains 3 websocket endpoints.
But when i tried to call these endpoints from my local through Tyrus API
[ws://websocket-server-1-qa.private.run.covisintrnd.com/websocket/event]

I am getting below handshake error

javax.websocket.DeploymentException: Handshake error.
at
org.glassfish.tyrus.client.ClientManager$3$1.run(ClientManager.java:674)
at
org.glassfish.tyrus.client.ClientManager$3.run(ClientManager.java:712)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at
org.glassfish.tyrus.client.ClientManager$SameThreadExecutorService.execute(ClientManager.java:866)
at
java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:110)
at
org.glassfish.tyrus.client.ClientManager.connectToServer(ClientManager.java:511)
at
org.glassfish.tyrus.client.ClientManager.connectToServer(ClientManager.java:373)
at
com.standalone.websockets.WebSocketClient.<init>(WebSocketClient.java:30)
at com.standalone.websockets.MainClient.main(MainClient.java:19)
Caused by: org.glassfish.tyrus.core.HandshakeException: Response code
was not 101: 404.
It's getting a 404. Are you trying the correct URL?


at
org.glassfish.tyrus.client.TyrusClientEngine.processResponse(TyrusClientEngine.java:320)
at
org.glassfish.tyrus.container.grizzly.client.GrizzlyClientFilter.handleHandshake(GrizzlyClientFilter.java:346)
at
org.glassfish.tyrus.container.grizzly.client.GrizzlyClientFilter.handleRead(GrizzlyClientFilter.java:315)
at
org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at
org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283)
at
org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)
at
org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:132)
at
org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:111)
at
org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at
org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:536)
at
org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
at
org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
at
org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
at
org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
at
org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591)
at
org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571)
at java.lang.Thread.run(Thread.java:744)

Please suggest ? Is CF supports websocket request[ws] ?
Try wss instead of ws. Maybe that will help.

By the way, what CF are you targeting? Did you install your own? a public
cloud?

Dan

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.