Jhipster注册表管理+ UAA

时间:2018-12-03 13:50:08

标签: jhipster

Jhipster Registry管理面板与UAA配合使用是否需要任何特殊的配置?

1 个答案:

答案 0 :(得分:0)

我不知道答案,但至少我知道此讨论是相关的: https://github.com/jhipster/jhipster-registry/pull/278

在我的情况下,我升级到jhipster / jhipster-registry:v5.0.1,但仍然像这样由UaaTokenRelayFilter抛出NPE:

WARN 1 --- [  XNIO-1 task-5] o.s.c.n.z.filters.post.SendErrorFilter   : Error during filtering
 com.netflix.zuul.exception.ZuulException: Filter threw Exception
      at com.netflix.zuul.FilterProcessor.processZuulFilter(FilterProcessor.java:227)
      at com.netflix.zuul.FilterProcessor.runFilters(FilterProcessor.java:157)
      at com.netflix.zuul.FilterProcessor.preRoute(FilterProcessor.java:133)
      at com.netflix.zuul.ZuulRunner.preRoute(ZuulRunner.java:105)
      at com.netflix.zuul.http.ZuulServlet.preRoute(ZuulServlet.java:125)
      at com.netflix.zuul.http.ZuulServlet.service(ZuulServlet.java:74)
      ...
 Caused by: java.lang.NullPointerException: null
      at org.springframework.security.jwt.JwtHelper.decode(JwtHelper.java:45)
      at io.github.jhipster.registry.security.oauth2.OAuth2ClientCredentialsService.getAccessToken(OAuth2ClientCredentialsService.java:40)
      at io.github.jhipster.registry.filters.UaaTokenRelayFilter.run(UaaTokenRelayFilter.java:51)
      at com.netflix.zuul.ZuulFilter.runFilter(ZuulFilter.java:117)
      at com.netflix.zuul.FilterProcessor.processZuulFilter(FilterProcessor.java:193)
      ... 111 common frames omitted