Does the 'DefaultVersionWithScopesTestCase' pass? On Fri, Mar 13, 2015 at 4:04 PM, Dimuthu De Lanerolle <dimut...@wso2.com> wrote:
> Hi APIM Team, > > Following test case [1] running against the latest wso2/product-apim > master branch product pack throws assert failure for HTTP Post requests > (HttpRequestUtil.doPost(endPointURL, > "<resource><PRICE>8.5</PRICE></resource>", requestHeaders). > > [1] > https://github.com/wso2/product-apim/blob/master/modules/integration/tests/src/test/java/org/wso2/carbon/am/tests/sample/APIScopeTestCase.java > > > > However we noticed product-pack build from the same , wso2/product-apim > master branch on 11-03-2015 does not regenerate this error. Can we get this > fixed? > > We will disable this test class for now and will enable once this issue is > sorted-out. > > > > Error stack trace : > > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - > [2015-03-13 15:38:42,193] ERROR - APIKeyValidator Could not find matching > resource for /PRODUCT/35 > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - > [2015-03-13 15:38:42,194] ERROR - APIKeyValidator Could not find matching > resource for request > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - > [2015-03-13 15:38:42,194] WARN - APIAuthenticationHandler API > authentication failure due to No matching resource found in the API for the > given request > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - > [2015-03-13 15:38:42,194] ERROR - RelayUtils Error while building > Passthrough stream > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - > java.lang.StringIndexOutOfBoundsException: String index out of range: -1 > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > java.lang.String.substring(String.java:1937) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.axis2.builder.XFormURLEncodedBuilder.extractParametersFromRequest(XFormURLEncodedBuilder.java:174) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.axis2.builder.XFormURLEncodedBuilder.processDocument(XFormURLEncodedBuilder.java:112) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.commons.builders.XFormURLEncodedBuilder.processDocument(XFormURLEncodedBuilder.java:36) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.transport.passthru.util.DeferredMessageBuilder.getDocument(DeferredMessageBuilder.java:118) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:107) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:82) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:70) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.wso2.carbon.apimgt.gateway.handlers.security.APIAuthenticationHandler.handleAuthFailure(APIAuthenticationHandler.java:154) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.wso2.carbon.apimgt.gateway.handlers.security.APIAuthenticationHandler.handleRequest(APIAuthenticationHandler.java:112) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.rest.API.process(API.java:289) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:83) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:64) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:220) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:344) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:385) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > java.lang.Thread.run(Thread.java:662) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - > [2015-03-13 15:38:42,195] ERROR - APIAuthenticationHandler Error occurred > while building the message > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - > org.apache.axis2.AxisFault: Error while building Passthrough stream > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.transport.passthru.util.RelayUtils.handleException(RelayUtils.java:236) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:111) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:82) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:70) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.wso2.carbon.apimgt.gateway.handlers.security.APIAuthenticationHandler.handleAuthFailure(APIAuthenticationHandler.java:154) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.wso2.carbon.apimgt.gateway.handlers.security.APIAuthenticationHandler.handleRequest(APIAuthenticationHandler.java:112) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.rest.API.process(API.java:289) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:83) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:64) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:220) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:344) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:385) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > java.lang.Thread.run(Thread.java:662) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - > Caused by: java.lang.StringIndexOutOfBoundsException: String index out of > range: -1 > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > java.lang.String.substring(String.java:1937) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.axis2.builder.XFormURLEncodedBuilder.extractParametersFromRequest(XFormURLEncodedBuilder.java:174) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.axis2.builder.XFormURLEncodedBuilder.processDocument(XFormURLEncodedBuilder.java:112) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.commons.builders.XFormURLEncodedBuilder.processDocument(XFormURLEncodedBuilder.java:36) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.transport.passthru.util.DeferredMessageBuilder.getDocument(DeferredMessageBuilder.java:118) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:107) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - ... > 17 more > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - > [2015-03-13 15:53:43,784] ERROR - APIKeyValidator Could not find matching > resource for /PRODUCT/35 > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - > [2015-03-13 15:53:43,785] ERROR - APIKeyValidator Could not find matching > resource for request > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - > [2015-03-13 15:53:43,785] WARN - APIAuthenticationHandler API > authentication failure due to No matching resource found in the API for the > given request > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - > [2015-03-13 15:53:43,785] ERROR - RelayUtils Error while building > Passthrough stream > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - > java.lang.StringIndexOutOfBoundsException: String index out of range: -1 > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > java.lang.String.substring(String.java:1937) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.axis2.builder.XFormURLEncodedBuilder.extractParametersFromRequest(XFormURLEncodedBuilder.java:174) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.axis2.builder.XFormURLEncodedBuilder.processDocument(XFormURLEncodedBuilder.java:112) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.commons.builders.XFormURLEncodedBuilder.processDocument(XFormURLEncodedBuilder.java:36) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.transport.passthru.util.DeferredMessageBuilder.getDocument(DeferredMessageBuilder.java:118) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:107) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:82) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:70) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.wso2.carbon.apimgt.gateway.handlers.security.APIAuthenticationHandler.handleAuthFailure(APIAuthenticationHandler.java:154) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.wso2.carbon.apimgt.gateway.handlers.security.APIAuthenticationHandler.handleRequest(APIAuthenticationHandler.java:112) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.rest.API.process(API.java:289) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:83) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:64) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:220) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:344) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:385) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > java.lang.Thread.run(Thread.java:662) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - > [2015-03-13 15:53:43,786] ERROR - APIAuthenticationHandler Error occurred > while building the message > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - > org.apache.axis2.AxisFault: Error while building Passthrough stream > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.transport.passthru.util.RelayUtils.handleException(RelayUtils.java:236) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:111) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:82) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:70) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.wso2.carbon.apimgt.gateway.handlers.security.APIAuthenticationHandler.handleAuthFailure(APIAuthenticationHandler.java:154) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.wso2.carbon.apimgt.gateway.handlers.security.APIAuthenticationHandler.handleRequest(APIAuthenticationHandler.java:112) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.rest.API.process(API.java:289) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:83) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:64) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:220) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:344) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:385) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > java.lang.Thread.run(Thread.java:662) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - > Caused by: java.lang.StringIndexOutOfBoundsException: String index out of > range: -1 > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > java.lang.String.substring(String.java:1937) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.axis2.builder.XFormURLEncodedBuilder.extractParametersFromRequest(XFormURLEncodedBuilder.java:174) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.axis2.builder.XFormURLEncodedBuilder.processDocument(XFormURLEncodedBuilder.java:112) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.commons.builders.XFormURLEncodedBuilder.processDocument(XFormURLEncodedBuilder.java:36) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.transport.passthru.util.DeferredMessageBuilder.getDocument(DeferredMessageBuilder.java:118) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at > org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:107) > INFO > [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - ... > 17 more > > > Regards > > -- > Dimuthu De Lanerolle > Software Engineer > WSO2 Inc. > lean . enterprise . middlewear. > http://wso2.com/ > Tel. : +94 11 2145345 Fax : +94 11 2145300 email : dimut...@wso2.com > > -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev