vert-x / mod-lang-groovy

Vert.x 2.x is deprecated - use instead
https://github.com/vert-x3/vertx-lang-groovy
Other
16 stars 15 forks source link

Programatic deployment of multiple instances of a verticle / module in Groovy requires a config #14

Closed jhanzair closed 10 years ago

jhanzair commented 11 years ago

If a groovy verticle tries to deploy multiple instances of a module or verticle, for example:

container.deployVerticle("server.groovy", 4);

vertx returns:

java.lang.RuntimeException: java.lang.reflect.InvocationTargetException

The solution is to deploy the verticles or modules and pass a config, even if its empty, i. e.:

container.deployVerticle("server.groovy", new HashMap(), 4);

This workaround was suggested by Tim Fox in this vert.x google group post, which discusses the problem.

LostInBrittany commented 10 years ago

It should be solved