You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2013/11/21 16:54:35 UTC
[jira] [Commented] (QPID-5364) BindingRestTest.testDeleteBinding
failed with 500 internal server error - Too many entries in path. Expected
2; path: []
[ https://issues.apache.org/jira/browse/QPID-5364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13829048#comment-13829048 ]
ASF subversion and git services commented on QPID-5364:
-------------------------------------------------------
Commit 1544228 from [~k-wall] in branch 'qpid/trunk'
[ https://svn.apache.org/r1544228 ]
QPID-5364: [Java Broker Management] Give RestServlet instances different servlet names (for diagnostic purposes) and correct error message used when path info has too many components.
> BindingRestTest.testDeleteBinding failed with 500 internal server error - Too many entries in path. Expected 2; path: []
> ------------------------------------------------------------------------------------------------------------------------
>
> Key: QPID-5364
> URL: https://issues.apache.org/jira/browse/QPID-5364
> Project: Qpid
> Issue Type: Bug
> Components: Java Broker
> Reporter: Keith Wall
>
> Test BindingRestTest.testDeleteBinding failed on a CI (against trunk a RHEL 5.8 ).
> The logs show that the servlet failed with exception "Too many entries in path. Expected [hierarchy length] 2" which is surprising the binding servlet has a hierarchy length of 4. This suggests that somehow the servlet request is being routed to the wrong servlet.
> I've since reproduced the problem once on Windows by running the test in a loop. Extra logging showed on that occasion the bindings request was routed to the new preferencesprovider servlet.
> {noformat}
> java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:10000/rest/binding/test/amq.direct/queue/queue
> at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1479)
> at org.apache.qpid.systest.rest.RestTestHelper.readConnectionInputStream(RestTestHelper.java:177)
> at org.apache.qpid.systest.rest.RestTestHelper.readJsonResponseAsList(RestTestHelper.java:150)
> at org.apache.qpid.systest.rest.RestTestHelper.getJsonAsList(RestTestHelper.java:248)
> at org.apache.qpid.systest.rest.BindingRestTest.testDeleteBinding(BindingRestTest.java:84)
> at org.apache.qpid.test.utils.QpidBrokerTestCase.runBare(QpidBrokerTestCase.java:306)
> at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:150)
> {noformat}
> The logs show:
> {noformat}
> java.lang.IllegalArgumentException: Too many entries in path. Expected 2; path: []
> at org.apache.qpid.server.management.plugin.servlet.rest.RestServlet.getObjects(RestServlet.java:124)
> at org.apache.qpid.server.management.plugin.servlet.rest.RestServlet.doGetWithSubjectAndActor(RestServlet.java:294)
> at org.apache.qpid.server.management.plugin.servlet.rest.AbstractServlet$1.run(AbstractServlet.java:80)
> at org.apache.qpid.server.management.plugin.servlet.rest.AbstractServlet$1.run(AbstractServlet.java:76)
> at java.security.AccessController.doPrivileged(AccessController.java:362)
> {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