Hi All,
In jira connectoor I need to send json object instead of atomic
entities.When I send ,ESB RC1 pack behave differently (append escape
characters).Is this a expected behavior? or am I miss anything?please find
the wire log below.
[2015-08-25 09:44:49,017] DEBUG - wire >> "POST /services/updateIssue
HTTP/1.1[\r][\n]"
[2015-08-25 09:44:49,018] DEBUG - wire >> "Host:
kesavan-thinkpad-t530:8280[\r][\n]"
[2015-08-25 09:44:49,018] DEBUG - wire >> "Connection: keep-alive[\r][\n]"
[2015-08-25 09:44:49,018] DEBUG - wire >> "Content-Length: 452[\r][\n]"
[2015-08-25 09:44:49,018] DEBUG - wire >> "Cache-Control: no-cache[\r][\n]"
[2015-08-25 09:44:49,018] DEBUG - wire >> "Origin:
chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]"
[2015-08-25 09:44:49,019] DEBUG - wire >> "User-Agent: Mozilla/5.0 (X11;
Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135
Safari/537.36[\r][\n]"
[2015-08-25 09:44:49,019] DEBUG - wire >> "Content-Type:
application/json[\r][\n]"
[2015-08-25 09:44:49,019] DEBUG - wire >> "Accept: */*[\r][\n]"
[2015-08-25 09:44:49,019] DEBUG - wire >> "Accept-Encoding: gzip,
deflate[\r][\n]"
[2015-08-25 09:44:49,019] DEBUG - wire >> "Accept-Language:
en-US,en;q=0.8[\r][\n]"
[2015-08-25 09:44:49,019] DEBUG - wire >> "Cookie: CFID=55267374;
CFTOKEN=6f91a96bf8f74eda-C7032C97-0E19-597A-2C58EE90A9C69BA4;
c3a52dd11e=4b1a38dcaa2e362ad44da59630c7272d;
2803525351=8b7e7b116412f31cfed6561ef0db5477[\r][\n]"
[2015-08-25 09:44:49,019] DEBUG - wire >> "[\r][\n]"
[2015-08-25 09:44:49,019] DEBUG - wire >> "{[\n]"
[2015-08-25 09:44:49,020] DEBUG - wire >> "[0x9]"username":"admin",[\n]"
[2015-08-25 09:44:49,020] DEBUG - wire >> " "password":"jira@jaffna",
[\n]"
[2015-08-25 09:44:49,020] DEBUG - wire >> " "uri":"
https://jafnnacon.atlassian.net", [\n]"
[2015-08-25 09:44:49,020] DEBUG - wire >> " "issueIdOrKey":"TEST-6",[\n]"
[2015-08-25 09:44:49,020] DEBUG - wire >> " "issueFields":{[\n]"
[2015-08-25 09:44:49,020] DEBUG - wire >> " "update": {[\n]"
[2015-08-25 09:44:49,020] DEBUG - wire >> " "summary": [[\n]"
[2015-08-25 09:44:49,020] DEBUG - wire >> " {[\n]"
[2015-08-25 09:44:49,021] DEBUG - wire >> " "set": "Bug in
business logic"[\n]"
[2015-08-25 09:44:49,021] DEBUG - wire >> " }[\n]"
[2015-08-25 09:44:49,021] DEBUG - wire >> " ],[\n]"
[2015-08-25 09:44:49,021] DEBUG - wire >> " "labels": [[\n]"
[2015-08-25 09:44:49,021] DEBUG - wire >> " {[\n]"
[2015-08-25 09:44:49,021] DEBUG - wire >> " "add":
"triaged"[\n]"
[2015-08-25 09:44:49,021] DEBUG - wire >> " },[\n]"
[2015-08-25 09:44:49,021] DEBUG - wire >> " {[\n]"
[2015-08-25 09:44:49,021] DEBUG - wire >> " "remove":
"blocker"[\n]"
[2015-08-25 09:44:49,021] DEBUG - wire >> " }[\n]"
[2015-08-25 09:44:49,022] DEBUG - wire >> " ][\n]"
[2015-08-25 09:44:49,022] DEBUG - wire >> " }[\n]"
[2015-08-25 09:44:49,022] DEBUG - wire >> "} [\n]"
[2015-08-25 09:44:49,022] DEBUG - wire >> "}[\n]"
[2015-08-25 09:44:49,022] DEBUG - wire >> "[\n]"
[2015-08-25 09:44:49,283] INFO - TimeoutHandler This engine will expire
all callbacks after : 120 seconds, irrespective of the timeout action,
after the specified or optional timeout
[2015-08-25 09:44:50,363] DEBUG - wire << "PUT /rest/api/2/issue/TEST-6
HTTP/1.1[\r][\n]"
[2015-08-25 09:44:50,363] DEBUG - wire << "Accept-Language:
en-US,en;q=0.8[\r][\n]"
[2015-08-25 09:44:50,363] DEBUG - wire << "Cookie: CFID=55267374;
CFTOKEN=6f91a96bf8f74eda-C7032C97-0E19-597A-2C58EE90A9C69BA4;
c3a52dd11e=4b1a38dcaa2e362ad44da59630c7272d;
2803525351=8b7e7b116412f31cfed6561ef0db5477[\r][\n]"
[2015-08-25 09:44:50,364] DEBUG - wire << "Authorization: Basic
YWRtaW46amlyYUBqYWZmbmE=[\r][\n]"
[2015-08-25 09:44:50,364] DEBUG - wire << "Origin:
chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]"
[2015-08-25 09:44:50,364] DEBUG - wire << "Content-Type: application/json;
charset=UTF-8[\r][\n]"
[2015-08-25 09:44:50,364] DEBUG - wire << "Accept: */*[\r][\n]"
[2015-08-25 09:44:50,364] DEBUG - wire << "Cache-Control: no-cache[\r][\n]"
[2015-08-25 09:44:50,364] DEBUG - wire << "Transfer-Encoding:
chunked[\r][\n]"
[2015-08-25 09:44:50,364] DEBUG - wire << "Host: jafnnacon.atlassian.net:443
[\r][\n]"
[2015-08-25 09:44:50,364] DEBUG - wire << "Connection: Keep-Alive[\r][\n]"
[2015-08-25 09:44:50,364] DEBUG - wire << "User-Agent:
Synapse-PT-HttpComponents-NIO[\r][\n]"
[2015-08-25 09:44:50,365] DEBUG - wire << "[\r][\n]"
[2015-08-25 09:44:50,365] DEBUG - wire << "7c[\r][\n]"
[2015-08-25 09:44:50,365] DEBUG - wire <<
"*{\"update\":{\"summary\":[{\"set\":\"Bug
in business
logic\"}],\"labels\":[{\"add\":\"triaged\"},{\"remove\":\"blocker\"}]}}*
[\r][\n]"
[2015-08-25 09:44:50,365] DEBUG - wire << "0[\r][\n]"
[2015-08-25 09:44:50,365] DEBUG - wire << "[\r][\n]"
[2015-08-25 09:44:51,880] DEBUG - wire >> "HTTP/1.1 400 Bad Request[\r][\n]"
[2015-08-25 09:44:51,880] DEBUG - wire >> "Server: nginx[\r][\n]"
[2015-08-25 09:44:51,881] DEBUG - wire >> "Date: Tue, 25 Aug 2015 04:14:50
GMT[\r][\n]"
[2015-08-25 09:44:51,881] DEBUG - wire >> "Content-Type:
application/json;charset=UTF-8[\r][\n]"
[2015-08-25 09:44:51,881] DEBUG - wire >> "Transfer-Encoding:
chunked[\r][\n]"
[2015-08-25 09:44:51,881] DEBUG - wire >> "Connection: keep-alive[\r][\n]"
[2015-08-25 09:44:51,882] DEBUG - wire >> "X-AREQUESTID: 584x2262x1[\r][\n]"
[2015-08-25 09:44:51,882] DEBUG - wire >> "X-ASEN: SEN-5600441[\r][\n]"
[2015-08-25 09:44:51,882] DEBUG - wire >> "Set-Cookie:
JSESSIONID=BE5BDE3D06FE32D4C18DB183082D50FB; Path=/; Secure;
HttpOnly[\r][\n]"
[2015-08-25 09:44:51,882] DEBUG - wire >> "Set-Cookie:
studio.crowd.tokenkey=""; Domain=.jafnnacon.atlassian.net; Expires=Thu,
01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly[\r][\n]"
[2015-08-25 09:44:51,883] DEBUG - wire >> "X-Seraph-LoginReason:
OUT[\r][\n]"
[2015-08-25 09:44:51,883] DEBUG - wire >> "Set-Cookie:
studio.crowd.tokenkey=gCkJNZ6QnyMA6rKfDDMvtw00; Domain=.
jafnnacon.atlassian.net; Path=/; Secure; HttpOnly[\r][\n]"
[2015-08-25 09:44:51,883] DEBUG - wire >> "X-Seraph-LoginReason: OK[\r][\n]"
[2015-08-25 09:44:51,883] DEBUG - wire >> "Set-Cookie:
atlassian.xsrf.token=BBA6-YLXF-YNES-FSUQ|badff3d81ec7fd75cbe545fa50371194e2e7c6a5|lin;
Path=/; Secure[\r][\n]"
[2015-08-25 09:44:51,884] DEBUG - wire >> "X-ASESSIONID: 1m4eydy[\r][\n]"
[2015-08-25 09:44:51,884] DEBUG - wire >> "X-AUSERNAME: admin[\r][\n]"
[2015-08-25 09:44:51,884] DEBUG - wire >> "X-ATENANT-ID:
jafnnacon.atlassian.net[\r][\n]"
[2015-08-25 09:44:51,884] DEBUG - wire >> "Cache-Control: no-cache,
no-store, no-transform[\r][\n]"
[2015-08-25 09:44:51,885] DEBUG - wire >> "X-Content-Type-Options:
nosniff[\r][\n]"
[2015-08-25 09:44:51,885] DEBUG - wire >> "[\r][\n]"
[2015-08-25 09:44:51,885] DEBUG - wire >> "c5[\r][\n]"
[2015-08-25 09:44:51,886] DEBUG - wire >> "{"errorMessages":["Unexpected
character ('\\' (code 92)): was expecting double-quote to start field
name\n at [Source: org.apache.catalina.connector.CoyoteInputStream@2d4ac1;
line: 1, column: 3]"]}[\r][\n]"
[2015-08-25 09:44:51,886] DEBUG - wire >> "0[\r][\n]"
[2015-08-25 09:44:51,886] DEBUG - wire >> "[\r][\n]"
[2015-08-25 09:44:51,907] INFO - LogMediator To:
http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: ,
MessageID: urn:uuid:97d84453-3ad4-42bf-8a1a-708dcd296c92, Direction:
request, Payload: {"errorMessages":["Unexpected character ('\\' (code 92)):
was expecting double-quote to start field name\n at [Source:
org.apache.catalina.connector.CoyoteInputStream@2d4ac1; line: 1, column:
3]"]}
[2015-08-25 09:44:51,914] DEBUG - wire << "HTTP/1.1 400 Bad Request[\r][\n]"
[2015-08-25 09:44:51,914] DEBUG - wire << "X-ATENANT-ID:
jafnnacon.atlassian.net[\r][\n]"
[2015-08-25 09:44:51,914] DEBUG - wire << "X-ASESSIONID: 1m4eydy[\r][\n]"
[2015-08-25 09:44:51,915] DEBUG - wire << "X-ASEN: SEN-5600441[\r][\n]"
[2015-08-25 09:44:51,915] DEBUG - wire << "Set-Cookie:
JSESSIONID=BE5BDE3D06FE32D4C18DB183082D50FB; Path=/; Secure;
HttpOnly[\r][\n]"
[2015-08-25 09:44:51,915] DEBUG - wire << "Set-Cookie:
atlassian.xsrf.token=BBA6-YLXF-YNES-FSUQ|badff3d81ec7fd75cbe545fa50371194e2e7c6a5|lin;
Path=/; Secure[\r][\n]"
[2015-08-25 09:44:51,915] DEBUG - wire << "Set-Cookie:
studio.crowd.tokenkey=""; Domain=.jafnnacon.atlassian.net; Expires=Thu,
01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly[\r][\n]"
[2015-08-25 09:44:51,915] DEBUG - wire << "Set-Cookie:
studio.crowd.tokenkey=gCkJNZ6QnyMA6rKfDDMvtw00; Domain=.
jafnnacon.atlassian.net; Path=/; Secure; HttpOnly[\r][\n]"
[2015-08-25 09:44:51,916] DEBUG - wire << "Content-Type:
application/json;charset=UTF-8; charset=UTF-8[\r][\n]"
[2015-08-25 09:44:51,916] DEBUG - wire << "X-AUSERNAME: admin[\r][\n]"
[2015-08-25 09:44:51,916] DEBUG - wire << "X-Seraph-LoginReason: OK[\r][\n]"
[2015-08-25 09:44:51,917] DEBUG - wire << "X-Seraph-LoginReason:
OUT[\r][\n]"
[2015-08-25 09:44:51,917] DEBUG - wire << "X-AREQUESTID: 584x2262x1[\r][\n]"
[2015-08-25 09:44:51,917] DEBUG - wire << "X-Content-Type-Options:
nosniff[\r][\n]"
[2015-08-25 09:44:51,917] DEBUG - wire << "Cache-Control: no-cache,
no-store, no-transform[\r][\n]"
[2015-08-25 09:44:51,917] DEBUG - wire << "Date: Tue, 25 Aug 2015 04:14:51
GMT[\r][\n]"
[2015-08-25 09:44:51,918] DEBUG - wire << "Transfer-Encoding:
chunked[\r][\n]"
[2015-08-25 09:44:51,918] DEBUG - wire << "Connection: Close[\r][\n]"
[2015-08-25 09:44:51,918] DEBUG - wire << "[\r][\n]"
[2015-08-25 09:44:51,918] DEBUG - wire << "c5[\r][\n]"
[2015-08-25 09:44:51,918] DEBUG - wire << "{"errorMessages":["Unexpected
character ('\\' (code 92)): was expecting double-quote to start field
name\n at [Source: org.apache.catalina.connector.CoyoteInputStream@2d4ac1;
line: 1, column: 3]"]}[\r][\n]"
[2015-08-25 09:44:51,918] DEBUG - wire << "0[\r][\n]"
[2015-08-25 09:44:51,918] DEBUG - wire << "[\r][\n]"
Thanks
Kesavan Yogarajah
Associate Software Engineer
Mobile :+94 (0) 779 758021
[email protected]
WSO2, Inc.
lean . enterprise . middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev