# invalid version format: URKOￛ0

**URL:** <https://community.gatling.io/t/invalid-version-format-urko-0/2327>\
**Category:** Gatling (Open-Source)\
**Created:** [May 29, 2015, 1:16pm UTC](https://community.gatling.io/t/invalid-version-format-urko-0/2327 "2015-05-29T13:16:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jaeyoon\_Jung](https://avatars.discourse-cdn.com/v4/letter/j/8dc957/32.png) [@Jaeyoon\_Jung](https://community.gatling.io/u/Jaeyoon_Jung)\
**Post date:** [May 29, 2015, 1:16pm UTC](https://community.gatling.io/t/invalid-version-format-urko-0/2327/1 "2015-05-29T13:16:43Z")

</div>

Hi,

I am using Gatling to test my server, and I got an error message as below.

15:08:05.896 [WARN] c.n.h.c.p.n.h.WebSocketProtocol - onError {}

java.lang.IllegalArgumentException: invalid version format: URKOￛ0

at org.jboss.netty.handler.codec.http.HttpVersion.(HttpVersion.java:94) ~[netty-3.10.3.Final.jar:na]

at org.jboss.netty.handler.codec.http.HttpVersion.valueOf(HttpVersion.java:62) ~[netty-3.10.3.Final.jar:na]

at org.jboss.netty.handler.codec.http.HttpResponseDecoder.createMessage(HttpResponseDecoder.java:104) ~[netty-3.10.3.Final.jar:na]

at org.jboss.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:191) ~[netty-3.10.3.Final.jar:na]

at org.jboss.netty.handler.codec.http.HttpClientCodec$Decoder.decode(HttpClientCodec.java:143) ~[netty-3.10.3.Final.jar:na]

at org.jboss.netty.handler.codec.http.HttpClientCodec$Decoder.decode(HttpClientCodec.java:127) ~[netty-3.10.3.Final.jar:na]

at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:500) ~[netty-3.10.3.Final.jar:na]

at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:435) ~[netty-3.10.3.Final.jar:na]

at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [netty-3.10.3.Final.jar:na]

at org.jboss.netty.handler.codec.http.HttpClientCodec.handleUpstream(HttpClientCodec.java:92) ~[netty-3.10.3.Final.jar:na]

at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.10.3.Final.jar:na]

at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [netty-3.10.3.Final.jar:na]

at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) [netty-3.10.3.Final.jar:na]

at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) [netty-3.10.3.Final.jar:na]

at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) [netty-3.10.3.Final.jar:na]

at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) [netty-3.10.3.Final.jar:na]

at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [netty-3.10.3.Final.jar:na]

at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.10.3.Final.jar:na]

at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) [netty-3.10.3.Final.jar:na]

at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) [netty-3.10.3.Final.jar:na]

at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) [netty-3.10.3.Final.jar:na]

at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) [netty-3.10.3.Final.jar:na]

at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) [netty-3.10.3.Final.jar:na]

at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) [netty-3.10.3.Final.jar:na]

at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) [netty-3.10.3.Final.jar:na]

at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) [netty-3.10.3.Final.jar:na]

at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) [netty-3.10.3.Final.jar:na]

at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) [netty-3.10.3.Final.jar:na]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0\_51]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0\_51]

at java.lang.Thread.run(Thread.java:744) [na:1.7.0\_51]

invalid version format: URKOￛ0

1. I am using the latest version (2.1.6).

2. The error is caused by connecting a web socket.

.exec(

ws(“Connect Websocket Initiator”)

.open("/websocket")

.header(“Authorization”, “${initiator\_authorization}”)

)

1. I made sure to target a wss://url, not http.

I would appreciate any advice or help on solving this problem.

Best,

Jae

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [May 29, 2015, 2:15pm UTC](https://community.gatling.io/t/invalid-version-format-urko-0/2327/2 "2015-05-29T14:15:43Z")

</div>

The issue is probably on your side, either in your Gatling usage (are you sure you don’t mess up between secure wss and plain ws?) or your WebSocket implementation.

See sample below, which works perfectly fine:

val wsMessage = “Rock it with HTML5 WebSocket”

val httpConf = http  
.baseURL(“[https://www.websocket.org](https://www.websocket.org)”)  
.acceptHeader(“text/html,application/xhtml+xml,application/xml;q=0.9,_/_;q=0.8”)  
.doNotTrackHeader(“1”)  
.acceptLanguageHeader(“en-US,en;q=0.5”)  
.acceptEncodingHeader(“gzip, deflate”)  
.userAgentHeader(“Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0”)

val scn = scenario(“FP\_Websocket”)  
.exec(http(“HomePage”).get("/echo.html"))  
.exec(ws(“OpenWS”).open(“wss://[echo.websocket.org](http://echo.websocket.org)”))  
.exec(ws(“SendText”).sendText(wsMessage)  
.check(wsAwait.within(5).expect(1).[message.is](http://message.is)(wsMessage)))  
.exec(ws(“CloseWS”).close)

setUp(scn.inject(atOnceUsers(1))).protocols(httpConf)

---

<div class="post-metadata">

**Author:** ![Jaeyoon\_Jung](https://avatars.discourse-cdn.com/v4/letter/j/8dc957/32.png) [@Jaeyoon\_Jung](https://community.gatling.io/u/Jaeyoon_Jung)\
**Post date:** [June 2, 2015, 1:00pm UTC](https://community.gatling.io/t/invalid-version-format-urko-0/2327/3 "2015-06-02T13:00:38Z")

</div>

Thank you for your reply and the sample.

Yes, my code works perfectly. It is just that the failure rate is quite random from 40~80%.

(As the failure rate is not 100%, I would say at least my code is grammatically correct? )

It also says,

dead letters encountered. This logging can be turned off or adjusted with configuration settings ‘akka.log-dead-letters’ and ‘akka.log-dead-letters-during-shutdown’.

Any idea about this?

Jae
