java.lang.IllegalArgumentException: No enum constant io.vertx.core.http.HttpMethod.TRACK

321 views
Skip to first unread message

Oje Preradovic

unread,
Nov 13, 2015, 1:07:55 PM11/13/15
to vert.x
Simple to reproduce:

a. Start any HTTP server let's say on 8080
b. On the command line issue:


In vertx you will get the exception:

java.lang.IllegalArgumentException: No enum constant io.vertx.core.http.HttpMethod.TRACK
at java.lang.Enum.valueOf(Enum.java:238)
at io.vertx.core.http.HttpMethod.valueOf(HttpMethod.java:26)
at io.vertx.core.http.impl.HttpServerRequestImpl.method(HttpServerRequestImpl.java:124)
at io.vertx.ext.dropwizard.impl.HttpServerMetricsImpl.requestBegin(HttpServerMetricsImpl.java:40)
at io.vertx.ext.dropwizard.impl.HttpServerMetricsImpl.requestBegin(HttpServerMetricsImpl.java:32)

The worse thing is the connection stays open!

Cheers,

Nat

unread,
Nov 13, 2015, 4:03:28 PM11/13/15
to vert.x
The standard API is "TRACE" not "TRACK". In the current version of vert.x, it does not allow non-standard http methods.

Oje Preradovic

unread,
Nov 13, 2015, 8:56:27 PM11/13/15
to vert.x
That's not the problem. The problem is the connection is connected forever (hangs). We didn't call it, some outside random party did. Vertx should just reject it maybe give a 404 or even a 500 and close the connection. 

Tim Fox

unread,
Nov 14, 2015, 3:37:27 AM11/14/15
to ve...@googlegroups.com
Could you add a BZ?
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/1e88659c-141f-40e8-9418-a3ec1d3c82e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alexander Lehmann

unread,
Nov 14, 2015, 4:25:51 AM11/14/15
to vert.x
The reply on Apache is "501 Not Implemented"

www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.2

Oje Preradovic

unread,
Nov 14, 2015, 4:17:10 PM11/14/15
to vert.x
Issue created in 

vert-x3/vertx-web


cheers

Oje Preradovic

unread,
Nov 14, 2015, 5:02:46 PM11/14/15
to vert.x
Also added in  bugzilla - 482207
Reply all
Reply to author
Forward
0 new messages