Alex Rudyy created QPID-6686:
--------------------------------

             Summary: NPE is thrown on evaluating BrokerFileLogger#logFiles 
when BrokerFileLogger is in ERRORED state due to attribute value resolution 
errors
                 Key: QPID-6686
                 URL: https://issues.apache.org/jira/browse/QPID-6686
             Project: Qpid
          Issue Type: Bug
          Components: Java Broker
    Affects Versions: qpid-java-6.0
            Reporter: Alex Rudyy
            Assignee: Alex Rudyy
            Priority: Blocker
             Fix For: qpid-java-6.0


When BrokerFileLogger data is access via REST (either broker file logger REST 
or Broker REST) and BrokerFileLogger is in ERRORED state because of attribute 
value resolution errors, NPE is throw:

{noformat}
java.lang.NullPointerException: null
        at 
org.apache.qpid.server.logging.BrokerFileLoggerImpl.getLogFiles(BrokerFileLoggerImpl.java:154)
 ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[na:1.7.0_75]
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
~[na:1.7.0_75]
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[na:1.7.0_75]
        at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_75]
        at 
org.apache.qpid.server.model.ConfiguredObjectAttributeOrStatistic.getValue(ConfiguredObjectAttributeOrStatistic.java:60)
 ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
        at 
org.apache.qpid.server.model.ConfiguredObjectAttribute.getValue(ConfiguredObjectAttribute.java:27)
 ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
        at 
org.apache.qpid.server.model.AbstractConfiguredObject.getAttribute(AbstractConfiguredObject.java:1444)
 ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
        at 
org.apache.qpid.server.management.plugin.servlet.rest.ConfiguredObjectToMapConverter.incorporateAttributesIntoMap(ConfiguredObjectToMapConverter.java:117)
 ~[qpid-broker-plugins-management-http-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
        at 
org.apache.qpid.server.management.plugin.servlet.rest.ConfiguredObjectToMapConverter.convertObjectToMap(ConfiguredObjectToMapConverter.java:66)
 ~[qpid-broker-plugins-management-http-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
        at 
org.apache.qpid.server.management.plugin.servlet.rest.ConfiguredObjectToMapConverter.incorporateChildrenIntoMap(ConfiguredObjectToMapConverter.java:290)
 ~[qpid-broker-plugins-management-http-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
        at 
org.apache.qpid.server.management.plugin.servlet.rest.ConfiguredObjectToMapConverter.convertObjectToMap(ConfiguredObjectToMapConverter.java:75)
 ~[qpid-broker-plugins-management-http-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
        at 
org.apache.qpid.server.management.plugin.servlet.rest.RestServlet.doGetWithSubjectAndActor(RestServlet.java:410)
 ~[qpid-broker-plugins-management-http-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
        at 
org.apache.qpid.server.management.plugin.servlet.rest.AbstractServlet$1.run(AbstractServlet.java:90)
 [qpid-broker-plugins-management-http-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
        at 
org.apache.qpid.server.management.plugin.servlet.rest.AbstractServlet$1.run(AbstractServlet.java:86)
 [qpid-broker-plugins-management-http-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
        at java.security.AccessController.doPrivileged(Native Method) 
[na:1.7.0_75]
        at javax.security.auth.Subject.doAs(Subject.java:415) [na:1.7.0_75]
        at 
org.apache.qpid.server.management.plugin.servlet.rest.AbstractServlet.doWithSubjectAndActor(AbstractServlet.java:215)
 [qpid-broker-plugins-management-http-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
        at 
org.apache.qpid.server.management.plugin.servlet.rest.AbstractServlet.doGet(AbstractServlet.java:84)
 [qpid-broker-plugins-management-http-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:575) 
[geronimo-servlet_3.0_spec-1.0.jar:1.0]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:668) 
[geronimo-servlet_3.0_spec-1.0.jar:1.0]
        at 
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) 
[jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031]
        at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1496)
 [jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031]
        at 
org.apache.qpid.server.management.plugin.filter.ForbiddingAuthorisationFilter.doFilter(ForbiddingAuthorisationFilter.java:90)
 [qpid-broker-plugins-management-http-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
        at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1467)
 [jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031]
        at 
org.apache.qpid.server.management.plugin.filter.ForbiddingTraceFilter.doFilter(ForbiddingTraceFilter.java:65)
 [qpid-broker-plugins-management-http-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
        at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1467)
 [jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031]
        at 
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499) 
[jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031]
        at 
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:229)
 [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
        at 
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
 [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
        at 
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428) 
[jetty-servlet-8.1.14.v20131031.jar:8.1.14.v20131031]
        at 
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
 [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
        at 
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
 [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
        at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) 
[jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
        at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) 
[jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
        at org.eclipse.jetty.server.Server.handle(Server.java:370) 
[jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
        at 
org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
 [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
        at 
org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)
 [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
        at 
org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)
 [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644) 
[jetty-http-8.1.14.v20131031.jar:8.1.14.v20131031]
        at 
org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) 
[jetty-http-8.1.14.v20131031.jar:8.1.14.v20131031]
        at 
org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
 [jetty-server-8.1.14.v20131031.jar:8.1.14.v20131031]
        at 
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)
 [jetty-io-8.1.14.v20131031.jar:8.1.14.v20131031]
        at 
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
 [jetty-io-8.1.14.v20131031.jar:8.1.14.v20131031]
        at 
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
 [jetty-util-8.1.14.v20131031.jar:8.1.14.v20131031]
        at 
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) 
[jetty-util-8.1.14.v20131031.jar:8.1.14.v20131031]
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to