Bryan Bende created NIFIREG-144:
-----------------------------------

             Summary: NPE when accessing for metadata of 'latest' version and 
no versions exists
                 Key: NIFIREG-144
                 URL: https://issues.apache.org/jira/browse/NIFIREG-144
             Project: NiFi Registry
          Issue Type: Bug
    Affects Versions: 0.1.0
            Reporter: Bryan Bende


{code:java}
2018-02-14 10:59:35,879 ERROR [NiFi Registry Web Server-82] 
o.a.n.r.web.mapper.ThrowableMapper An unexpected error has occurred: 
java.lang.NullPointerException. Returning Internal Server Error response.
java.lang.NullPointerException: null
    at 
org.apache.nifi.registry.service.DataModelMapper.map(DataModelMapper.java:106) 
~[nifi-registry-framework-0.2.0-SNAPSHOT.jar:0.2.0-SNAPSHOT]
    at 
org.apache.nifi.registry.service.RegistryService.getLatestFlowSnapshotMetadata(RegistryService.java:742)
 ~[nifi-registry-framework-0.2.0-SNAPSHOT.jar:0.2.0-SNAPSHOT]
    at 
org.apache.nifi.registry.service.RegistryService$$FastClassBySpringCGLIB$$274de08.invoke(<generated>)
 ~[nifi-registry-framework-0.2.0-SNAPSHOT.jar:0.2.0-SNAPSHOT]
    at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) 
~[spring-core-5.0.2.RELEASE.jar:5.0.2.RELEASE]
    at 
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:747)
 ~[spring-aop-5.0.2.RELEASE.jar:5.0.2.RELEASE]
    at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
 ~[spring-aop-5.0.2.RELEASE.jar:5.0.2.RELEASE]
    at 
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:294)
 ~[spring-tx-5.0.2.RELEASE.jar:5.0.2.RELEASE]
    at 
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98)
 ~[spring-tx-5.0.2.RELEASE.jar:5.0.2.RELEASE]
    at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
 ~[spring-aop-5.0.2.RELEASE.jar:5.0.2.RELEASE]
    at 
org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:689)
 ~[spring-aop-5.0.2.RELEASE.jar:5.0.2.RELEASE]
    at 
org.apache.nifi.registry.service.RegistryService$$EnhancerBySpringCGLIB$$6e647495.getLatestFlowSnapshotMetadata(<generated>)
 ~[nifi-registry-framework-0.2.0-SNAPSHOT.jar:0.2.0-SNAPSHOT]
    at 
org.apache.nifi.registry.web.api.BucketFlowResource.getLatestFlowVersionMetadata(BucketFlowResource.java:368)
 ~[classes/:na]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[na:1.8.0_144]
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[na:1.8.0_144]
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[na:1.8.0_144]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_144]
    at 
org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:76)
 ~[jersey-server-2.26.jar:na]
    at 
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:148)
 ~[jersey-server-2.26.jar:na]
    at 
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:191)
 ~[jersey-server-2.26.jar:na]
    at 
org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:200)
 ~[jersey-server-2.26.jar:na]
    at 
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:103)
 ~[jersey-server-2.26.jar:na]
    at 
org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:493)
 ~[jersey-server-2.26.jar:na]
    at 
org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:415)
 ~[jersey-server-2.26.jar:na]
    at 
org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:104)
 ~[jersey-server-2.26.jar:na]
    at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:277) 
~[jersey-server-2.26.jar:na]
    at org.glassfish.jersey.internal.Errors$1.call(Errors.java:272) 
[jersey-common-2.26.jar:na]
    at org.glassfish.jersey.internal.Errors$1.call(Errors.java:268) 
[jersey-common-2.26.jar:na]
    at org.glassfish.jersey.internal.Errors.process(Errors.java:316) 
[jersey-common-2.26.jar:na]
    at org.glassfish.jersey.internal.Errors.process(Errors.java:298) 
[jersey-common-2.26.jar:na]
    at org.glassfish.jersey.internal.Errors.process(Errors.java:268) 
[jersey-common-2.26.jar:na]
    at 
org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:289)
 [jersey-common-2.26.jar:na]
    at 
org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:256) 
[jersey-server-2.26.jar:na]
    at 
org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:703)
 [jersey-server-2.26.jar:na]
    at 
org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:416) 
[jersey-container-servlet-core-2.26.jar:na]
    at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:370) 
[jersey-container-servlet-core-2.26.jar:na]
    at 
org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:389)
 [jersey-container-servlet-core-2.26.jar:na]
    at 
org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:342)
 [jersey-container-servlet-core-2.26.jar:na]
    at 
org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:229)
 [jersey-container-servlet-core-2.26.jar:na]
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:841) 
[jetty-servlet-9.4.3.v20170317.jar:9.4.3.v20170317]
    at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1634)
 [jetty-servlet-9.4.3.v20170317.jar:9.4.3.v20170317]
    at 
org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java:119)
 [spring-boot-actuator-2.0.0.M7.jar:2.0.0.M7]
    at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
 [spring-web-5.0.2.RELEASE.jar:5.0.2.RELEASE]
    at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1621)
 [jetty-servlet-9.4.3.v20170317.jar:9.4.3.v20170317]
    at 
org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
 [spring-web-5.0.2.RELEASE.jar:5.0.2.RELEASE]
    at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
 [spring-web-5.0.2.RELEASE.jar:5.0.2.RELEASE]
    at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1621)
 [jetty-servlet-9.4.3.v20170317.jar:9.4.3.v20170317]
    at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320)
 [spring-security-web-5.0.0.RELEASE.jar:5.0.0.RELEASE]
    at 
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127)
 [spring-security-web-5.0.0.RELEASE.jar:5.0.0.RELEASE]
    at 
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91)
 [spring-security-web-5.0.0.RELEASE.jar:5.0.0.RELEASE]
    at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
 [spring-security-web-5.0.0.RELEASE.jar:5.0.0.RELEASE]
    at 
org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119)
 [spring-security-web-5.0.0.RELEASE.jar:5.0.0.RELEASE]
    at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
 [spring-security-web-5.0.0.RELEASE.jar:5.0.0.RELEASE]
    at 
org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137)
 [spring-security-web-5.0.0.RELEASE.jar:5.0.0.RELEASE]
    at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
 [spring-security-web-5.0.0.RELEASE.jar:5.0.0.RELEASE]
    at 
org.apache.nifi.registry.web.security.authentication.IdentityFilter.doFilter(IdentityFilter.java:70)
 [classes/:na]
    at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
 [spring-security-web-5.0.0.RELEASE.jar:5.0.0.RELEASE]
    at 
org.apache.nifi.registry.web.security.authentication.IdentityFilter.doFilter(IdentityFilter.java:91)
 [classes/:na]
    at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
 [spring-security-web-5.0.0.RELEASE.jar:5.0.0.RELEASE]
    at 
org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215)
 [spring-security-web-5.0.0.RELEASE.jar:5.0.0.RELEASE]
    at 
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178)
 [spring-security-web-5.0.0.RELEASE.jar:5.0.0.RELEASE]
    at 
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357)
 [spring-web-5.0.2.RELEASE.jar:5.0.2.RELEASE]
    at 
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270)
 [spring-web-5.0.2.RELEASE.jar:5.0.2.RELEASE]
    at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1621)
 [jetty-servlet-9.4.3.v20170317.jar:9.4.3.v20170317]
    at 
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
 [spring-web-5.0.2.RELEASE.jar:5.0.2.RELEASE]
    at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
 [spring-web-5.0.2.RELEASE.jar:5.0.2.RELEASE]
    at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1621)
 [jetty-servlet-9.4.3.v20170317.jar:9.4.3.v20170317]
    at 
org.springframework.boot.web.servlet.support.ErrorPageFilter.doFilter(ErrorPageFilter.java:115)
 [spring-boot-2.0.0.M7.jar:2.0.0.M7]
    at 
org.springframework.boot.web.servlet.support.ErrorPageFilter.access$000(ErrorPageFilter.java:59)
 [spring-boot-2.0.0.M7.jar:2.0.0.M7]
    at 
org.springframework.boot.web.servlet.support.ErrorPageFilter$1.doFilterInternal(ErrorPageFilter.java:90)
 [spring-boot-2.0.0.M7.jar:2.0.0.M7]
    at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
 [spring-web-5.0.2.RELEASE.jar:5.0.2.RELEASE]
    at 
org.springframework.boot.web.servlet.support.ErrorPageFilter.doFilter(ErrorPageFilter.java:108)
 [spring-boot-2.0.0.M7.jar:2.0.0.M7]
    at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1621)
 [jetty-servlet-9.4.3.v20170317.jar:9.4.3.v20170317]
    at 
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:541) 
[jetty-servlet-9.4.3.v20170317.jar:9.4.3.v20170317]
    at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) 
[jetty-server-9.4.3.v20170317.jar:9.4.3.v20170317]
    at 
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) 
[jetty-security-9.4.3.v20170317.jar:9.4.3.v20170317]
    at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) 
[jetty-server-9.4.3.v20170317.jar:9.4.3.v20170317]
    at 
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190)
 [jetty-server-9.4.3.v20170317.jar:9.4.3.v20170317]
    at 
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1593)
 [jetty-server-9.4.3.v20170317.jar:9.4.3.v20170317]
    at 
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)
 [jetty-server-9.4.3.v20170317.jar:9.4.3.v20170317]
    at 
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1239)
 [jetty-server-9.4.3.v20170317.jar:9.4.3.v20170317]
    at 
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)
 [jetty-server-9.4.3.v20170317.jar:9.4.3.v20170317]
    at 
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:481) 
[jetty-servlet-9.4.3.v20170317.jar:9.4.3.v20170317]
    at 
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1562)
 [jetty-server-9.4.3.v20170317.jar:9.4.3.v20170317]
    at 
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)
 [jetty-server-9.4.3.v20170317.jar:9.4.3.v20170317]
    at 
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1141)
 [jetty-server-9.4.3.v20170317.jar:9.4.3.v20170317]
    at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) 
[jetty-server-9.4.3.v20170317.jar:9.4.3.v20170317]
    at 
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:118)
 [jetty-server-9.4.3.v20170317.jar:9.4.3.v20170317]
    at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) 
[jetty-server-9.4.3.v20170317.jar:9.4.3.v20170317]
    at org.eclipse.jetty.server.Server.handle(Server.java:564) 
[jetty-server-9.4.3.v20170317.jar:9.4.3.v20170317]
    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320) 
[jetty-server-9.4.3.v20170317.jar:9.4.3.v20170317]
    at 
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251) 
[jetty-server-9.4.3.v20170317.jar:9.4.3.v20170317]
    at 
org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
 [jetty-io-9.4.3.v20170317.jar:9.4.3.v20170317]
    at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110) 
[jetty-io-9.4.3.v20170317.jar:9.4.3.v20170317]
    at 
org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:258) 
[jetty-io-9.4.3.v20170317.jar:9.4.3.v20170317]
    at 
org.eclipse.jetty.io.ssl.SslConnection$3.succeeded(SslConnection.java:147) 
[jetty-io-9.4.3.v20170317.jar:9.4.3.v20170317]
    at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110) 
[jetty-io-9.4.3.v20170317.jar:9.4.3.v20170317]
    at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124) 
[jetty-io-9.4.3.v20170317.jar:9.4.3.v20170317]
    at 
org.eclipse.jetty.util.thread.Invocable.invokePreferred(Invocable.java:122) 
[jetty-util-9.4.3.v20170317.jar:9.4.3.v20170317]
    at 
org.eclipse.jetty.util.thread.strategy.ExecutingExecutionStrategy.invoke(ExecutingExecutionStrategy.java:58)
 [jetty-util-9.4.3.v20170317.jar:9.4.3.v20170317]
    at 
org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:201)
 [jetty-util-9.4.3.v20170317.jar:9.4.3.v20170317]
    at 
org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:133)
 [jetty-util-9.4.3.v20170317.jar:9.4.3.v20170317]
    at 
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:672)
 [jetty-util-9.4.3.v20170317.jar:9.4.3.v20170317]
    at 
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:590) 
[jetty-util-9.4.3.v20170317.jar:9.4.3.v20170317]
    at java.lang.Thread.run(Thread.java:748) [na:1.8.0_144]{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to