New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gateway] ConcurrentModificationException while stopping an API with multiple endpoints #286

Closed
brasseld opened this Issue Oct 27, 2016 · 0 comments

Comments

Projects
None yet
2 participants
@brasseld
Member

brasseld commented Oct 27, 2016

12:56:35.689 [main] INFO  i.g.g.h.a.m.impl.ApiManagerImpl - Undeployment of Api{id='api-echo', name='api-echo', version='null'}
12:56:35.689 [main] DEBUG i.g.c.event.impl.EventManagerImpl - Publish event UNDEPLOY - Api{id='api-echo', name='api-echo', version='null'}
12:56:35.689 [main] INFO  i.g.g.handlers.api.ApiReactorHandler - API handler is now stopping, closing context...
12:56:35.690 [main] DEBUG i.g.g.h.c.e.i.EndpointLifecycleManagerImpl - Closing target endpoint: 3ad0d671-3440-450a-90d6-713440b50aa4
12:56:35.691 [main] INFO  i.g.g.http.vertx.VertxHttpClient - Closing HTTP Client for '3ad0d671-3440-450a-90d6-713440b50aa4' endpoint [http://localhost:60118/echo]
12:56:35.694 [main] ERROR i.g.g.r.h.i.DefaultReactorHandlerRegistry - Unable to un-register handler
java.util.ConcurrentModificationException: null
    at java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:711)
    at java.util.LinkedHashMap$LinkedEntryIterator.next(LinkedHashMap.java:744)
    at java.util.LinkedHashMap$LinkedEntryIterator.next(LinkedHashMap.java:742)
    at io.gravitee.gateway.http.core.endpoint.impl.EndpointLifecycleManagerImpl.doStop(EndpointLifecycleManagerImpl.java:72)
    at io.gravitee.common.component.AbstractLifecycleComponent.stop(AbstractLifecycleComponent.java:41)
    at io.gravitee.gateway.handlers.api.ApiReactorHandler.doStop(ApiReactorHandler.java:260)
    at io.gravitee.common.component.AbstractLifecycleComponent.stop(AbstractLifecycleComponent.java:41)
    at io.gravitee.gateway.reactor.handler.impl.DefaultReactorHandlerRegistry.remove(DefaultReactorHandlerRegistry.java:90)
    at io.gravitee.gateway.reactor.impl.DefaultReactor.onEvent(DefaultReactor.java:108)
    at io.gravitee.common.event.impl.EventManagerImpl.publishEvent(EventManagerImpl.java:44)
    at io.gravitee.common.event.impl.EventManagerImpl.publishEvent(EventManagerImpl.java:36)
    at io.gravitee.gateway.handlers.api.manager.impl.ApiManagerImpl.undeploy(ApiManagerImpl.java:105)
    at io.gravitee.gateway.standalone.junit.stmt.ApiDeployerStatement.evaluate(ApiDeployerStatement.java:74)
    at io.gravitee.gateway.standalone.junit.stmt.ApiPublisherStatement.evaluate(ApiPublisherStatement.java:54)
    at org.junit.rules.RunRules.evaluate(RunRules.java:20)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment