Closed jhanzair closed 10 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.
It should be solved
If a groovy verticle tries to deploy multiple instances of a module or verticle, for example:
vertx returns:
The solution is to deploy the verticles or modules and pass a config, even if its empty, i. e.:
This workaround was suggested by Tim Fox in this vert.x google group post, which discusses the problem.