Return-Path: X-Original-To: apmail-qpid-dev-archive@www.apache.org Delivered-To: apmail-qpid-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E5337109EC for ; Mon, 14 Oct 2013 12:48:49 +0000 (UTC) Received: (qmail 88184 invoked by uid 500); 14 Oct 2013 12:48:45 -0000 Delivered-To: apmail-qpid-dev-archive@qpid.apache.org Received: (qmail 88046 invoked by uid 500); 14 Oct 2013 12:48:44 -0000 Mailing-List: contact dev-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@qpid.apache.org Delivered-To: mailing list dev@qpid.apache.org Received: (qmail 88025 invoked by uid 99); 14 Oct 2013 12:48:43 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Oct 2013 12:48:43 +0000 Date: Mon, 14 Oct 2013 12:48:43 +0000 (UTC) From: "Keith Wall (JIRA)" To: dev@qpid.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (QPID-5205) Viewing an exchange with alternate exchange through the Management UI causes exception in Broker logs. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/QPID-5205?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:all-tabpanel ] Keith Wall updated QPID-5205: ----------------------------- Fix Version/s: 0.25 > Viewing an exchange with alternate exchange through the Management UI cau= ses exception in Broker logs. > -------------------------------------------------------------------------= ----------------------------- > > Key: QPID-5205 > URL: https://issues.apache.org/jira/browse/QPID-5205 > Project: Qpid > Issue Type: Bug > Components: Java Broker > Affects Versions: 0.24 > Reporter: Keith Wall > Assignee: Alex Rudyy > Fix For: 0.25 > > > If I create an exchange with an alternate exchange with the following com= mand: > {code} > java -cp ... 'org.apache.qpid.example.Spout' "ADDR:test-exch; {create: = always, node:{type: topic,x-declare: {alternate-exchange:'am q.fanout'}}}" > {code} > and then try and view the exchange through the Web Management Console, I = see the following exception reported in the Broker logs. > {noformat} > 2013-10-03 18:00:58,112 ERROR [qtp2123954626-50] (rest.AbstractServlet) -= Unable to perform action > java.security.PrivilegedActionException: org.codehaus.jackson.map.JsonMap= pingException: No serializer found for class org.apache.qpid.server.securit= y.SecurityManager and no properties discovered to create BeanSerializer (to= avoid exception, disable SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS) = ) (through reference chain: java.util.ArrayList[0]->java.util.LinkedHashMap= ["exchanges"]->java.util.ArrayList[4]->java.util.LinkedHashMap["alternateEx= change"]->org.apache.qpid.server.exchange.FanoutExchange["virtualHost"]->or= g.apache.qpid.server.virtualhost.StandardVirtualHost["securityManager"]) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:396) > at org.apache.qpid.server.management.plugin.servlet.rest.Abstract= Servlet.doWithSubjectAndActor(AbstractServlet.java:208) > at org.apache.qpid.server.management.plugin.servlet.rest.Abstract= Servlet.doGet(AbstractServlet.java:74) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:693) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) > at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.j= ava:652) > at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(= ServletHandler.java:1320) > at org.apache.qpid.server.management.plugin.filter.ForbiddingAuth= orisationFilter.doFilter(ForbiddingAuthorisationFilter.java:90) > at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(= ServletHandler.java:1291) > at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandl= er.java:443) > at org.eclipse.jetty.server.session.SessionHandler.doHandle(Sessi= onHandler.java:225) > at org.eclipse.jetty.server.handler.ContextHandler.doHandle(Conte= xtHandler.java:1044) > at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandle= r.java:372) > at org.eclipse.jetty.server.session.SessionHandler.doScope(Sessio= nHandler.java:189) > at org.eclipse.jetty.server.handler.ContextHandler.doScope(Contex= tHandler.java:978) > at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHa= ndler.java:135) > at org.eclipse.jetty.server.handler.HandlerWrapper.handle(Handler= Wrapper.java:116) > at org.eclipse.jetty.server.Server.handle(Server.java:367) > at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(= AbstractHttpConnection.java:486) > at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete= (AbstractHttpConnection.java:926) > at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler= .headerComplete(AbstractHttpConnection.java:988) > at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:64= 0) > at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.ja= va:235) > at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpC= onnection.java:82) > at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectCh= annelEndPoint.java:628) > at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectCha= nnelEndPoint.java:52) > at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedTh= readPool.java:608) > at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThr= eadPool.java:543) > at java.lang.Thread.run(Thread.java:662) > Caused by: org.codehaus.jackson.map.JsonMappingException: No serializer f= ound for class org.apache.qpid.server.security.SecurityManager and no prope= rties discovered to create BeanSerializer (to avoid exception, disable Seri= alizationConfig.Feature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: ja= va.util.ArrayList[0]->java.util.LinkedHashMap["exchanges"]->java.util.Array= List[4]->java.util.LinkedHashMap["alternateExchange"]->org.apache.qpid.serv= er.exchange.FanoutExchange["virtualHost"]->org.apache.qpid.server.virtualho= st.StandardVirtualHost["securityManager"]) > at org.codehaus.jackson.map.ser.impl.UnknownSerializer.failForEmp= ty(UnknownSerializer.java:52) > {noformat} > I've also seen this same problem manifest StackOverflowException (Darwin = Oslo.local 12.5.0/Java(TM) SE Runtime Environment (build 1.7.0_12-ea-b08)).= I suspect that the difference may be down to the unpredictable serialisat= ion order. > {noformat} > Caused by: org.codehaus.jackson.map.JsonMappingException: Infinite recurs= ion (StackOverflowError) (through reference chain: org.apache.qpid.server.v= irtualhost.VirtualHostRegistry["defaultVirtualHost"]->org.apache.qpid.serve= r.virtualhost.StandardVirtualHost["virtualHostRegistry"]->org.apache.qpid.s= erver.virtualhost.VirtualHostRegistry["defaultVirtualHost"]->org.apache.qpi= d.server.virtualhost.StandardVirtualHost["virtualHostRegistry"]->org.apache= .qpid.server.virtualhost.VirtualHostRegistry["defaultVirtualHost"]->org.apa= che.qpid.server.virtualhost.StandardVirtualHost["virtualHostRegistry"]->org= .apache.qpid.server.virtualhost.VirtualHostRegistry["defaultVirtualHost"]->= org.apache.qpid.server.virtualhost.StandardVirtualHost["virtualHostRegistry= "]->org.apache.qpid.server.virtualhost.VirtualHostRegistry["defaultVirtualH= ost"]->org.apache.qpid.server.virtualhost.StandardVirtualHost["virtualHostR= egistry"]->org.apache.qpid.server.virtualhost.VirtualHostRegistry["defaultV= irtualHost"]->org.apache.qpid.server.virtualhost.StandardVirtualHost["virtu= alHostRegistry"]->org.apache.qpid.server.virtualhost.VirtualHostRegistry["d= efaultVirtualHost"] > {noformat} -- This message was sent by Atlassian JIRA (v6.1#6144) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org For additional commands, e-mail: dev-help@qpid.apache.org