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

[management] create empty group list on import #1317

Closed
NicolasGeraud opened this Issue Jun 15, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@NicolasGeraud
Member

NicolasGeraud commented Jun 15, 2018

if we create an api with the following json, an error is thrown on gateway deployment and we cannot be able to add endpoints.

the api

{
  "name": "bbbbbbbbb",
  "version": "bbb",
  "description": "bbbbbb",
  "visibility": "PRIVATE",
  "tags": [],
  "labels": [],
  "proxy": {
    "context_path": "/bbbbbbbbbbbb",
    "strip_context_path": false,
    "loggingMode": "NONE",
    "load_balancing": {
      "type": "ROUND_ROBIN"
    }
  },
  "paths": {
    "/": []
  },
  "services": {
    "discovery": {
      "enabled": false
    }
  },
  "resources": []
}

the gateway stack trace

14:13:50.080 [vert.x-eventloop-thread-1] [] ERROR io.vertx.core.impl.ContextImpl - Unhandled exception
java.lang.NullPointerException: null
    at io.gravitee.gateway.services.endpoint.discovery.consul.verticle.EndpointDiscoveryConsulVerticle.handleRegisterService(EndpointDiscoveryConsulVerticle.java:151)
    at io.gravitee.gateway.services.endpoint.discovery.consul.verticle.EndpointDiscoveryConsulVerticle.lambda$startWatch$0(EndpointDiscoveryConsulVerticle.java:117)
    at io.vertx.ext.consul.impl.WatchImpl.sendSuccess(WatchImpl.java:211)
    at io.vertx.ext.consul.impl.WatchImpl.lambda$go$3(WatchImpl.java:180)
    at io.vertx.ext.consul.impl.WatchImpl.lambda$fetch$5(WatchImpl.java:196)
    at io.vertx.ext.consul.impl.WatchImpl$Service.lambda$wait$1(WatchImpl.java:94)
    at io.vertx.ext.consul.impl.ConsulClientImpl.lambda$reqOnContext$61(ConsulClientImpl.java:723)
    at io.vertx.ext.web.client.impl.HttpContext.lambda$null$0(HttpContext.java:125)
    at io.vertx.core.impl.ContextImpl.lambda$wrapTask$2(ContextImpl.java:339)
    at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
    at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:463)
    at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:886)
    at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
    at java.lang.Thread.run(Thread.java:748)

the webui stacktrace

angular.js:14525 TypeError: Cannot read property 'push' of undefined
    at ApiEndpointGroupController.update (group.controller.ts?f8db:69)
    at fn (eval at compile (angular.js:15358), <anonymous>:4:286)
    at callback (angular.js:26994)
    at Scope.$eval (angular.js:18161)
    at Scope.$apply (angular.js:18261)
    at HTMLFormElement.<anonymous> (angular.js:26999)
    at defaultHandlerWrapper (angular.js:3734)
    at HTMLFormElement.eventHandler (angular.js:3722) undefined

@NicolasGeraud NicolasGeraud added this to the 1.20.0 milestone Sep 7, 2018

@NicolasGeraud NicolasGeraud self-assigned this Sep 7, 2018

NicolasGeraud added a commit to gravitee-io/gravitee-gateway that referenced this issue Sep 20, 2018

NicolasGeraud added a commit to gravitee-io/gravitee-management-webui that referenced this issue Sep 20, 2018

NicolasGeraud added a commit to gravitee-io/gravitee-gateway that referenced this issue Sep 20, 2018

NicolasGeraud added a commit to gravitee-io/gravitee-gateway that referenced this issue Sep 20, 2018

NicolasGeraud added a commit to gravitee-io/gravitee-management-webui that referenced this issue Sep 25, 2018

brasseld added a commit to gravitee-io/gravitee-gateway that referenced this issue Oct 1, 2018

brasseld added a commit to gravitee-io/gravitee-management-webui that referenced this issue Oct 1, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment