[
https://issues.apache.org/jira/browse/QPID-5364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13829080#comment-13829080
]
Alex Rudyy commented on QPID-5364:
----------------------------------
Keith,
The changes look good to me.
I am going leave this JIRA in open state for next couple of days. I want to try
to reproduce it myself with IBM JDK.
The first occurance of the issue happened with JVM
{noformat}
Java(TM) SE Runtime Environment (build pxa6460sr14-20130705_01(SR14))
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Linux amd64-64
jvmxa6460sr14-20130704_155156 (JIT enabled, AOT enabled)
J9VM - 20130704_155156
JIT - r9_20130517_38390
GC - GA24_Java6_SR14_20130704_1138_B155156)
JCL - 20130618_01
{noformat}
If I will not be able to reproduce it with IBM JDK I will be happy to close the
JIRA with "Cannot Reproduce"
> 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
>
> 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]