Hi All, When we trying to run the integration test for PowerBI with the BETA release we got the following error[1], but in 4.9.0 it is working fine. I think it is because of [2]. How can we handle this?
[1] [2016-06-23 20:19:14,807] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2016-06-23 20:19:14,807] DEBUG - wire HTTP-Listener I/O dispatcher-1 >> "[\r][\n]" [2016-06-23 20:19:14,807] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2016-06-23 20:19:14,807] DEBUG - wire HTTP-Listener I/O dispatcher-1 >> "{[\n]" [2016-06-23 20:19:14,807] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2016-06-23 20:19:14,807] DEBUG - wire HTTP-Listener I/O dispatcher-1 >> "[\n]" [2016-06-23 20:19:14,807] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2016-06-23 20:19:14,807] DEBUG - wire HTTP-Listener I/O dispatcher-1 >> "[0x9]"authorizationCode":"AAABAAAAiL9Kn2Z27UubvWFPbm0gLdM9QCaEE__Umb9UkVqMUwnGW5ABwXLBdG5PDZbal_1sPGCDl9hb0BntSwR-Ru3gD5buzl8WmK-Xr2k8bIOw5sVZJgQOngtTEZIavKvrWs7vdbJy8VXNyv3YAlQrKDDwZ-MO8cZIOMDzg38LQUa4QwDZeaMr-xBenghSVA91OSr-GRtaMxEo_AZg_q_ajQEMThWYFMIfcjwPsXGf9YkMhNMW_rM_sKm6imyk9L6fkmCqL_AzdvT8WjbPHtam8uyQnTFKtv3Jt7wh3DVfVd1W73_I1k7LJd7ruKyMwiZOXwUDB_S4MnYUS-93_oPQm8V92c6aEOi87Hw9QdYP38mPY-mgYt8DcvSNYH8kBnUO59pC4MjLz34TjJA3VqfsOtUJ1o-AyLDZfpoxmMAIhhfq9gpnfBVA4vK22h_a8RHTQH--H1VUUiHQFhQAQVVsXVMPq2RensvexaJDHhDyhz-g6IKct9dZx6PwnFlHXYsmMuzTeC2BTKhdRnag1ZDzNIA7Q0C7C-mnWFR7n63VtMyMrwWXJQHStkWP7C0KjQFOBQCeZbQyJdGVRCc0nSELCtsgKkgnahvm_9mxmv3AlYjXUkGcUGzMAzsgVQxFzFn23B3B4at9N1BB69gm6vtUMTIkBwUqHtwzQqEEs4WO7WDVYPluq23i1IrmXug8qkoykarPujcccII57plUcj99_vVPPbfjIq51PjmMHpFZxbqjKQZ-pNy-OOLgTVyZDgit8Pt3IAA",[\n]" [2016-06-23 20:19:14,808] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2016-06-23 20:19:14,807] DEBUG - wire HTTP-Listener I/O dispatcher-1 >> "[0x9]"resource":"https://analysis.windows.net/powerbi/api"[\n]" [2016-06-23 20:19:14,808] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2016-06-23 20:19:14,808] DEBUG - wire HTTP-Listener I/O dispatcher-1 >> "}" [2016-06-23 20:19:14,852] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2016-06-23 20:19:14,852] ERROR - SynapseJsonPath #stringValueOf. Error evaluating JSON Path <$.apiUrl>. Returning empty result. Error>>> invalid path [2016-06-23 20:19:14,856] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2016-06-23 20:19:14,856] ERROR - SynapseJsonPath #stringValueOf. Error evaluating JSON Path <$.defaultRetentionPolicy>. Returning empty result. Error>>> invalid path [2016-06-23 20:19:14,859] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2016-06-23 20:19:14,859] ERROR - SynapseJsonPath #stringValueOf. Error evaluating JSON Path <$.datasetName>. Returning empty result. Error>>> invalid path [2016-06-23 20:19:14,861] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2016-06-23 20:19:14,861] ERROR - SynapseJsonPath #stringValueOf. Error evaluating JSON Path <$.tables>. Returning empty result. Error>>> invalid path [2016-06-23 20:19:14,862] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2016-06-23 20:19:14,862] ERROR - SynapseJsonPath #stringValueOf. Error evaluating JSON Path <$.groupId>. Returning empty result. Error>>> invalid path [2016-06-23 20:19:14,863] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2016-06-23 20:19:14,863] ERROR - SynapseJsonPath #stringValueOf. Error evaluating JSON Path <$.datasetId>. Returning empty result. Error>>> invalid path [2016-06-23 20:19:14,864] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2016-06-23 20:19:14,864] ERROR - SynapseJsonPath #stringValueOf. Error evaluating JSON Path <$.tableName>. Returning empty result. Error>>> invalid path [2016-06-23 20:19:14,866] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2016-06-23 20:19:14,865] ERROR - SynapseJsonPath #stringValueOf. Error evaluating JSON Path <$.rows>. Returning empty result. Error>>> invalid path [2016-06-23 20:19:14,867] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2016-06-23 20:19:14,867] ERROR - SynapseJsonPath #stringValueOf. Error evaluating JSON Path <$.columns>. Returning empty result. Error>>> invalid path [2016-06-23 20:19:16,266] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2016-06-23 20:19:16,266] ERROR - SynapseJsonPath #stringValueOf. Error evaluating JSON Path <$.map.access_token>. Returning empty result. Error>>> invalid path [2016-06-23 20:19:16,267] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2016-06-23 20:19:16,267] ERROR - SynapseJsonPath #stringValueOf. Error evaluating JSON Path <$.map.refresh_token>. Returning empty result. Error>>> invalid path [2016-06-23 20:19:16,297] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2016-06-23 20:19:16,296] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "HTTP/1.1 200 OK[\r][\n]" [2016-06-23 20:19:16,298] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2016-06-23 20:19:16,297] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "Action: urn:getAccessTokenFromAuthorizationCode[\r][\n]" [2016-06-23 20:19:16,298] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2016-06-23 20:19:16,297] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "Host: localhost:8280[\r][\n]" [2016-06-23 20:19:16,299] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2016-06-23 20:19:16,298] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "Accept-Charset: UTF-8[\r][\n]" [2016-06-23 20:19:16,299] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2016-06-23 20:19:16,298] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "Content-Type: application/json; charset=UTF-8[\r][\n]" [2016-06-23 20:19:16,299] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2016-06-23 20:19:16,298] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2[\r][\n]" [2016-06-23 20:19:16,299] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2016-06-23 20:19:16,298] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "Date: Thu, 23 Jun 2016 14:49:16 GMT[\r][\n]" [2016-06-23 20:19:16,299] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2016-06-23 20:19:16,298] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "Transfer-Encoding: chunked[\r][\n]" [2016-06-23 20:19:16,299] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2016-06-23 20:19:16,298] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "Connection: keep-alive[\r][\n]" [2016-06-23 20:19:16,299] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2016-06-23 20:19:16,299] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "[\r][\n]" [2016-06-23 20:19:16,299] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2016-06-23 20:19:16,299] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "1d5[\r][\n]" [2016-06-23 20:19:16,300] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2016-06-23 20:19:16,299] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "{"map":{"timestamp":"2016-06-23 14:49:15Z","error":"invalid_request","error_codes":{"myArrayList":[90014]},"trace_id":"7df362a8-c56d-401d-b654-93ecd331fbdd","error_description":"AADSTS90014: The request body must contain the following parameter: \u0027grant_type\u0027.\r\nTrace ID: 7df362a8-c56d-401d-b654-93ecd331fbdd\r\nCorrelation ID: a6c86ecc-59ce-49b0-b074-07c3be2b10fb\r\nTimestamp: 2016-06-23 14:49:15Z","correlation_id":"a6c86ecc-59ce-49b0-b074-07c3be2b10fb"}}[\r][\n]" [2016-06-23 20:19:16,300] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2016-06-23 20:19:16,299] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "0[\r][\n]" [2016-06-23 20:19:16,300] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2016-06-23 20:19:16,299] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "[\r][\n]" [2016-06-23 20:19:16,308] ERROR {org.wso2.carbon.automation.core.PlatformTestManager} - On Test failure.. [2016-06-23 20:19:16,308] ERROR {org.wso2.carbon.automation.core.PlatformTestManager} - org.json.JSONException: JSONObject["token_type"] not found. [2016-06-23 20:19:16,308] INFO {org.wso2.carbon.automation.core.PlatformTestManager} - --------------Tests Failed org.wso2.carbon.connector.integration.test.powerbi.PowerbiConnectorIntegrationTest.testGetAccessTokenFromAuthorizationCode-------- [2] - https://github.com/wso2-extensions/esb-connector-powerbi/blob/master/src/main/resources/powerbi-config/getAccessTokenFromAuthorizationCode.xml#L47 -- *Thank you and Regards**Hariprasath Thanarajah* Associate Software Engineer | WSO2 E: haripras...@wso2.com M: +94752806528, 0777216903
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev