Skip to content
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] could not start an api with an empty endpoint group #2024

Closed
NicolasGeraud opened this Issue Mar 11, 2019 · 0 comments

Comments

@NicolasGeraud
Copy link
Member

NicolasGeraud commented Mar 11, 2019

Create an api with an endpoint and an empty group.
When the gateway start it throws :

java.lang.NullPointerException: null
    at io.gravitee.gateway.services.healthcheck.EndpointHealthcheckResolver.lambda$resolve$0(EndpointHealthcheckResolver.java:55)
    at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:267)
    at java.util.Iterator.forEachRemaining(Iterator.java:116)
    at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
    at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
    at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
    at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
    at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
    at io.gravitee.gateway.services.healthcheck.EndpointHealthcheckResolver.resolve(EndpointHealthcheckResolver.java:89)
    at io.gravitee.gateway.services.healthcheck.verticle.EndpointHealthcheckVerticle.startHealthCheck(EndpointHealthcheckVerticle.java:90)
    at io.gravitee.gateway.services.healthcheck.verticle.EndpointHealthcheckVerticle.onEvent(EndpointHealthcheckVerticle.java:76)
    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.deploy(ApiManagerImpl.java:67)
    at io.gravitee.gateway.services.sync.SyncManager.lambda$computeApiEvents$11(SyncManager.java:242)
    at java.util.HashMap.forEach(HashMap.java:1289)
    at io.gravitee.gateway.services.sync.SyncManager.computeApiEvents(SyncManager.java:211)
    at io.gravitee.gateway.services.sync.SyncManager.synchronizeApis(SyncManager.java:152)
    at io.gravitee.gateway.services.sync.SyncManager.refresh(SyncManager.java:100)
    at io.gravitee.gateway.services.sync.ScheduledSyncService.run(ScheduledSyncService.java:87)
    at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
    at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:93)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)
    at java.util.concurrent.FutureTask.run(FutureTask.java)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.