[ 
https://issues.apache.org/jira/browse/QPID-5364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alex Rudyy resolved QPID-5364.
------------------------------

       Resolution: Cannot Reproduce
    Fix Version/s: 0.27

I was not able to reproduce the issue at home with IBM and Sun JDK. 

> 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
>            Assignee: Alex Rudyy
>             Fix For: 0.27
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to