es4x: Seems like 0.10.0 vertx.deployVerticle options parameter is not working
src/main/javascript/verticle.js
var options = {
"instances" : 1
};
console.log(options);
vertx.deployVerticle('Test', options);
src/main/java/Test.java
import io.vertx.core.AbstractVerticle;
public class Test extends AbstractVerticle {
public void start() {
System.out.println(config());
vertx.createHttpServer().requestHandler(req -> {
req.response()
.putHeader("content-type", "text/plain")
.end("Hello from Vert.x!");
}).listen(8080);
}
}
then pack into fat jar and run it I got an error:
Unhandled exception caused by java.lang.UnsupportedOperationException: Unsupported operation identifier ‘handle’ and object ‘{instances: 1}’(language: JavaScript, type: Object). Identifier is not executable or instantiable.
if we don’t place options then it works nicely
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 18 (18 by maintainers)
Commits related to this issue
- Added a regression test to verify issue #260 — committed to reactiverse/es4x by pmlopes 5 years ago
I’ve a separate branch for it. Because of the on going changes on future/promise while these things don’t settle on vertx core they keep breaking on es4x.
I’ll bring the branch up to date soon.