brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BROOKLYN-537) NPE listing catalog items
Date Thu, 21 Sep 2017 09:24:03 GMT

    [ https://issues.apache.org/jira/browse/BROOKLYN-537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16174491#comment-16174491
] 

ASF GitHub Bot commented on BROOKLYN-537:
-----------------------------------------

GitHub user aledsage opened a pull request:

    https://github.com/apache/brooklyn-server/pull/839

    BROOKLYN-537: fix NPE listing catalog items

    Fixes https://issues.apache.org/jira/browse/BROOKLYN-537

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/aledsage/brooklyn-server BROOKLYN-537-npe-listing-catalog

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/brooklyn-server/pull/839.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #839
    
----
commit 54d4633dfaaa2ac7682667f6a02e22073ee8c18c
Author: Aled Sage <aled.sage@gmail.com>
Date:   2017-09-21T08:51:25Z

    BROOKLYN-537: fix NPE listing catalog items

----


> NPE listing catalog items
> -------------------------
>
>                 Key: BROOKLYN-537
>                 URL: https://issues.apache.org/jira/browse/BROOKLYN-537
>             Project: Brooklyn
>          Issue Type: Bug
>            Reporter: Aled Sage
>
> I found this NPE in my log (using bleeding edge 0.12.0-SNAPSHOT):
> {noformat}
> 2017-09-20T14:47:22,570 WARN  337 o.a.b.r.t.CatalogTransformer [tp421541516-2347] Unable
to create spec for BasicRegisteredType[docker-swarm-template:2.1.0-SNAPSHOT;null]: java.lang.NullPointerException
> java.lang.NullPointerException: null
>         at org.apache.brooklyn.core.typereg.BasicBrooklynTypeRegistry.createSpec(BasicBrooklynTypeRegistry.java:202)
[122:org.apache.brooklyn.core:0.12.0.SNAPSHOT]
>         at org.apache.brooklyn.rest.transform.CatalogTransformer.catalogEntitySummary(CatalogTransformer.java:86)
[337:org.apache.brooklyn.rest-resources:0.12.0.SNAPSHOT]
>         at org.apache.brooklyn.rest.transform.CatalogTransformer.catalogItemSummary(CatalogTransformer.java:126)
[337:org.apache.brooklyn.rest-resources:0.12.0.SNAPSHOT]
>         at org.apache.brooklyn.rest.resources.CatalogResource$1.apply(CatalogResource.java:91)
[337:org.apache.brooklyn.rest-resources:0.12.0.SNAPSHOT]
>         at org.apache.brooklyn.rest.resources.CatalogResource$1.apply(CatalogResource.java:88)
[337:org.apache.brooklyn.rest-resources:0.12.0.SNAPSHOT]
>         at com.google.common.collect.Lists$TransformingRandomAccessList$1.transform(Lists.java:617)
[66:com.google.guava:18.0.0]
>         at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)
[66:com.google.guava:18.0.0]
>         at org.apache.brooklyn.rest.resources.CatalogResource.castList(CatalogResource.java:531)
[337:org.apache.brooklyn.rest-resources:0.12.0.SNAPSHOT]
>         at org.apache.brooklyn.rest.resources.CatalogResource.listEntities(CatalogResource.java:303)
[337:org.apache.brooklyn.rest-resources:0.12.0.SNAPSHOT]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~[?:?]
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:?]
>         at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
>         at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
[152:org.apache.cxf.cxf-core:3.1.10]
>         at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
[152:org.apache.cxf.cxf-core:3.1.10]
>         at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:189) [156:org.apache.cxf.cxf-rt-frontend-jaxrs:3.1.10]
>         at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:99) [156:org.apache.cxf.cxf-rt-frontend-jaxrs:3.1.10]
>         at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)
[152:org.apache.cxf.cxf-core:3.1.10]
>         at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96)
[152:org.apache.cxf.cxf-core:3.1.10]
>         at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
[152:org.apache.cxf.cxf-core:3.1.10]
>         at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
[152:org.apache.cxf.cxf-core:3.1.10]
>         at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:262)
[164:org.apache.cxf.cxf-rt-transports-http:3.1.10]
>         at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234)
[164:org.apache.cxf.cxf-rt-transports-http:3.1.10]
>         at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208)
[164:org.apache.cxf.cxf-rt-transports-http:3.1.10]
>         at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160)
[164:org.apache.cxf.cxf-rt-transports-http:3.1.10]
>         at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:180)
[164:org.apache.cxf.cxf-rt-transports-http:3.1.10]
>         at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:299)
[164:org.apache.cxf.cxf-rt-transports-http:3.1.10]
>         at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:223)
[164:org.apache.cxf.cxf-rt-transports-http:3.1.10]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) [95:javax.servlet-api:3.1.0]
>         at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:274)
[164:org.apache.cxf.cxf-rt-transports-http:3.1.10]
>         at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:845) [219:org.eclipse.jetty.servlet:9.3.14.v20161028]
>         at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:584)
[219:org.eclipse.jetty.servlet:9.3.14.v20161028]
>         at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)
[240:org.ops4j.pax.web.pax-web-jetty:6.0.6]
>         at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
[218:org.eclipse.jetty.server:9.3.14.v20161028]
>         at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
[216:org.eclipse.jetty.security:9.3.14.v20161028]
>         at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
[218:org.eclipse.jetty.server:9.3.14.v20161028]
>         at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)
[218:org.eclipse.jetty.server:9.3.14.v20161028]
>         at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:284)
[240:org.ops4j.pax.web.pax-web-jetty:6.0.6]
>         at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512)
[219:org.eclipse.jetty.servlet:9.3.14.v20161028]
>         at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
[218:org.eclipse.jetty.server:9.3.14.v20161028]
>         at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)
[218:org.eclipse.jetty.server:9.3.14.v20161028]
>         at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
[218:org.eclipse.jetty.server:9.3.14.v20161028]
>         at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)
[240:org.ops4j.pax.web.pax-web-jetty:6.0.6]
>         at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
[218:org.eclipse.jetty.server:9.3.14.v20161028]
>         at org.eclipse.jetty.server.Server.handle(Server.java:534) [218:org.eclipse.jetty.server:9.3.14.v20161028]
>         at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320) [218:org.eclipse.jetty.server:9.3.14.v20161028]
>         at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
[218:org.eclipse.jetty.server:9.3.14.v20161028]
>         at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
[211:org.eclipse.jetty.io:9.3.14.v20161028]
>         at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95) [211:org.eclipse.jetty.io:9.3.14.v20161028]
>         at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
[211:org.eclipse.jetty.io:9.3.14.v20161028]
>         at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
[221:org.eclipse.jetty.util:9.3.14.v20161028]
>         at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
[221:org.eclipse.jetty.util:9.3.14.v20161028]
>         at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
[221:org.eclipse.jetty.util:9.3.14.v20161028]
>         at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
[221:org.eclipse.jetty.util:9.3.14.v20161028]
>         at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
[221:org.eclipse.jetty.util:9.3.14.v20161028]
>         at java.lang.Thread.run(Thread.java:748) [?:?]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message