Null Exception calling Future.complete() on verticle deployment in 3.3.3

37 views
Skip to first unread message

Kegan Holtzhausen

unread,
Nov 14, 2016, 4:15:01 AM11/14/16
to vert.x
Hi,


I have the following project which I need to call Future.complete at a later stage due to waiting for warmup. However since 3.3.3, even with @overrride on start method,
I cannot seem to bypass the AbstractVerticle's call to the complete event.

you can reproduce with gradlew test and see Pinger.java, Boot.java and BootVerticleTest


     4027 ERROR io.vertx.core.impl.ContextImpl:322 - Unhandled exception
Gradle Test Executor 1 finished executing tests.    java.lang.IllegalStateException: Result is already complete: succeeded
                                          
        at io.vertx.core.impl.FutureImpl.checkComplete(FutureImpl.java:164)
        at io.vertx.core.impl.FutureImpl.complete(FutureImpl.java:108)
        at io.vertx.core.impl.FutureImpl.handle(FutureImpl.java:135)
        at io.vertx.core.impl.FutureImpl.handle(FutureImpl.java:23)
        at io.vertx.core.eventbus.impl.EventBusImpl.lambda$callCompletionHandlerAsync$2(EventBusImpl.java:340)
        at io.vertx.core.impl.ContextImpl.lambda$wrapTask$2(ContextImpl.java:316)
        at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
        at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:418)
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:440)
        at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:873)
        at java.lang.Thread.run(Thread.java:745)




/Kegan

Thomas SEGISMONT

unread,
Nov 14, 2016, 6:01:40 AM11/14/16
to ve...@googlegroups.com
This is a known issue. It is fixed in master. https://github.com/eclipse/vert.x/issues/1625

There is no workaround but the exception is not harmful.

--
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+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/9abb2303-4058-4a0a-9805-0b3ddd979805%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages