Re: [Dev] [ESB] Premature end of file Error
Hi, According to the wire logs I have observed that the response is spilled in to two messages as follows. I think this is why client can't process the response. wire ?xml[\r][\n] wire version=1.0 encoding=UTF-8?soapenv:Envelope xmlns:soapenv= http://schemas.xmlsoap.org/soap/envelope/;soapenv:Header xmlns:wsa= http://www.w3.org/2005/08/addressing;wsa:Actionurn:sampleOperationResponse/wsa:Actionwsa:RelatesTourn:uuid:afacf573-b705-4cb4-a29a-c761186bf648/wsa:RelatesTo/soapenv:Headersoapenv:BodyValueResponse from server: MyServer2/Value/soapenv:Body/soapenv:Envelope[\r][\n] What can be the cause for this ? Thanks! On Tue, Mar 10, 2015 at 2:40 PM, Sewmini Jayaweera sewm...@wso2.com wrote: Hi Chathura, An issue is being reported for a similar error. Please check whether that is the same. https://wso2.org/jira/browse/ESBJAVA-2973 Thanks! Sewmini Jayaweera *Software Engineer - QA Team* Mobile: +94 (0) 773 381 250 sewm...@wso2.com On Tue, Mar 10, 2015 at 2:22 PM, Chathura Priyankara chathu...@wso2.com wrote: Hi, This error comes when I'm trying to resend a message. Here is the wire logs of the response [2015-03-10 14:16:54,899] DEBUG - wire HTTP/1.1 200 OK[\r][\n] [2015-03-10 14:16:54,899] DEBUG - wire Content-Type: text/xml; charset=UTF-8[\r][\n] [2015-03-10 14:16:54,899] DEBUG - wire Date: Tue, 10 Mar 2015 08:46:54 GMT[\r][\n] [2015-03-10 14:16:54,900] DEBUG - wire Server: WSO2-PassThrough-HTTP[\r][\n] [2015-03-10 14:16:54,900] DEBUG - wire Transfer-Encoding: chunked[\r][\n] [2015-03-10 14:16:54,900] DEBUG - wire [\r][\n] [2015-03-10 14:16:54,904] DEBUG - wire 1a2[\r][\n] [2015-03-10 14:16:54,904] DEBUG - wire ?xml version=1.0 encoding=UTF-8?soapenv:Envelope xmlns:soapenv= http://schemas.xmlsoap.org/soap/envelope/;soapenv:Header xmlns:wsa= http://www.w3.org/2005/08/addressing;wsa:Actionurn:sampleOperationResponse/wsa:Actionwsa:RelatesTourn:uuid:1565f9cc-4e70-413d-bafa-ec9de05f156b/wsa:RelatesTo/soapenv:Headersoapenv:BodyValueResponse from server: MyServer2/Value/soapenv:Body/soapenv:Envelope[\r][\n] [2015-03-10 14:16:54,904] DEBUG - wire 0[\r][\n] [2015-03-10 14:16:54,904] DEBUG - wire [\r][\n] [2015-03-10 14:16:54,905] DEBUG - wire 0[\r][\n] [2015-03-10 14:16:54,905] DEBUG - wire [\r][\n] Thanks! On Tue, Mar 10, 2015 at 1:50 AM, Malaka Silva mal...@wso2.com wrote: Hi Chathura, In order to identify the issue, need to see the response coming to ESB. To do that enable the wire logs and share. On Mon, Mar 9, 2015 at 2:09 PM, Chathura Priyankara chathu...@wso2.com wrote: Hi, I'm getting following error in client side when after receiving the response from the service through ESB. [java] javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1] [java] Message: Premature end of file. Is this error comes because response message is empty ? How can I fix this issue ? The ESB log : [2015-03-09 14:01:17,002] DEBUG - SynapseCallbackReceiver Synapse received an asynchronous response message [2015-03-09 14:01:17,002] DEBUG - SynapseCallbackReceiver Received To: null [2015-03-09 14:01:17,002] DEBUG - SynapseCallbackReceiver SOAPAction: [2015-03-09 14:01:17,002] DEBUG - SynapseCallbackReceiver WSA-Action: [2015-03-09 14:01:17,002] DEBUG - SynapseCallbackReceiver Body : ?xml version=1.0 encoding=utf-8?soapenv:Envelope xmlns:soapenv= http://schemas.xmlsoap.org/soap/envelope/ soapenv:Body/soapenv:Body/soapenv:Envelope [2015-03-09 14:01:17,003] DEBUG - Axis2SynapseEnvironment Injecting MessageContext [2015-03-09 14:01:17,003] DEBUG - Axis2SynapseEnvironment Using Main Sequence for injected message [2015-03-09 14:01:17,003] DEBUG - SequenceMediator Start : Sequence main [2015-03-09 14:01:17,003] DEBUG - SequenceMediator Setting the onError handler : errorHandler for the sequence : main [2015-03-09 14:01:17,003] DEBUG - SequenceMediator Sequence SequenceMediator :: mediate() [2015-03-09 14:01:17,003] DEBUG - SequenceMediator Mediation started from mediator position : 0 [2015-03-09 14:01:17,003] DEBUG - InMediator Start : In mediator [2015-03-09 14:01:17,003] DEBUG - InMediator Current message is a response - skipping child mediators [2015-03-09 14:01:17,003] DEBUG - InMediator End : In mediator [2015-03-09 14:01:17,003] DEBUG - OutMediator Start : Out mediator [2015-03-09 14:01:17,003] DEBUG - OutMediator Current message is outgoing - executing child mediators [2015-03-09 14:01:17,004] DEBUG - OutMediator Sequence OutMediator :: mediate() [2015-03-09 14:01:17,004] DEBUG - OutMediator Mediation started from mediator position : 0 [2015-03-09 14:01:17,004] DEBUG - SendMediator Start : Send mediator [2015-03-09 14:01:17,004] DEBUG - SendMediator Sending response message using implicit message properties.. Sending To: http://www.w3.org/2005/08/addressing/anonymous SOAPAction: [2015-03-09 14:01:17,004] DEBUG - SendMediator End : Send mediator [2015-03-09 14:01:17,004] DEBUG - OutMediator
Re: [Dev] [ESB] Premature end of file Error
Hi, This error comes when I'm trying to resend a message. Here is the wire logs of the response [2015-03-10 14:16:54,899] DEBUG - wire HTTP/1.1 200 OK[\r][\n] [2015-03-10 14:16:54,899] DEBUG - wire Content-Type: text/xml; charset=UTF-8[\r][\n] [2015-03-10 14:16:54,899] DEBUG - wire Date: Tue, 10 Mar 2015 08:46:54 GMT[\r][\n] [2015-03-10 14:16:54,900] DEBUG - wire Server: WSO2-PassThrough-HTTP[\r][\n] [2015-03-10 14:16:54,900] DEBUG - wire Transfer-Encoding: chunked[\r][\n] [2015-03-10 14:16:54,900] DEBUG - wire [\r][\n] [2015-03-10 14:16:54,904] DEBUG - wire 1a2[\r][\n] [2015-03-10 14:16:54,904] DEBUG - wire ?xml version=1.0 encoding=UTF-8?soapenv:Envelope xmlns:soapenv= http://schemas.xmlsoap.org/soap/envelope/;soapenv:Header xmlns:wsa= http://www.w3.org/2005/08/addressing;wsa:Actionurn:sampleOperationResponse/wsa:Actionwsa:RelatesTourn:uuid:1565f9cc-4e70-413d-bafa-ec9de05f156b/wsa:RelatesTo/soapenv:Headersoapenv:BodyValueResponse from server: MyServer2/Value/soapenv:Body/soapenv:Envelope[\r][\n] [2015-03-10 14:16:54,904] DEBUG - wire 0[\r][\n] [2015-03-10 14:16:54,904] DEBUG - wire [\r][\n] [2015-03-10 14:16:54,905] DEBUG - wire 0[\r][\n] [2015-03-10 14:16:54,905] DEBUG - wire [\r][\n] Thanks! On Tue, Mar 10, 2015 at 1:50 AM, Malaka Silva mal...@wso2.com wrote: Hi Chathura, In order to identify the issue, need to see the response coming to ESB. To do that enable the wire logs and share. On Mon, Mar 9, 2015 at 2:09 PM, Chathura Priyankara chathu...@wso2.com wrote: Hi, I'm getting following error in client side when after receiving the response from the service through ESB. [java] javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1] [java] Message: Premature end of file. Is this error comes because response message is empty ? How can I fix this issue ? The ESB log : [2015-03-09 14:01:17,002] DEBUG - SynapseCallbackReceiver Synapse received an asynchronous response message [2015-03-09 14:01:17,002] DEBUG - SynapseCallbackReceiver Received To: null [2015-03-09 14:01:17,002] DEBUG - SynapseCallbackReceiver SOAPAction: [2015-03-09 14:01:17,002] DEBUG - SynapseCallbackReceiver WSA-Action: [2015-03-09 14:01:17,002] DEBUG - SynapseCallbackReceiver Body : ?xml version=1.0 encoding=utf-8?soapenv:Envelope xmlns:soapenv= http://schemas.xmlsoap.org/soap/envelope/ soapenv:Body/soapenv:Body/soapenv:Envelope [2015-03-09 14:01:17,003] DEBUG - Axis2SynapseEnvironment Injecting MessageContext [2015-03-09 14:01:17,003] DEBUG - Axis2SynapseEnvironment Using Main Sequence for injected message [2015-03-09 14:01:17,003] DEBUG - SequenceMediator Start : Sequence main [2015-03-09 14:01:17,003] DEBUG - SequenceMediator Setting the onError handler : errorHandler for the sequence : main [2015-03-09 14:01:17,003] DEBUG - SequenceMediator Sequence SequenceMediator :: mediate() [2015-03-09 14:01:17,003] DEBUG - SequenceMediator Mediation started from mediator position : 0 [2015-03-09 14:01:17,003] DEBUG - InMediator Start : In mediator [2015-03-09 14:01:17,003] DEBUG - InMediator Current message is a response - skipping child mediators [2015-03-09 14:01:17,003] DEBUG - InMediator End : In mediator [2015-03-09 14:01:17,003] DEBUG - OutMediator Start : Out mediator [2015-03-09 14:01:17,003] DEBUG - OutMediator Current message is outgoing - executing child mediators [2015-03-09 14:01:17,004] DEBUG - OutMediator Sequence OutMediator :: mediate() [2015-03-09 14:01:17,004] DEBUG - OutMediator Mediation started from mediator position : 0 [2015-03-09 14:01:17,004] DEBUG - SendMediator Start : Send mediator [2015-03-09 14:01:17,004] DEBUG - SendMediator Sending response message using implicit message properties.. Sending To: http://www.w3.org/2005/08/addressing/anonymous SOAPAction: [2015-03-09 14:01:17,004] DEBUG - SendMediator End : Send mediator [2015-03-09 14:01:17,004] DEBUG - OutMediator End : Out mediator [2015-03-09 14:01:17,005] DEBUG - SequenceMediator End : Sequence main Thanks! -- Chathura Priyankara Software Engineer | WSO2 Inc. Mobile : +94718795340 Blog : www.codeoncloud.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ http://wso2.com/about/team/malaka-silva/ Save a tree -Conserve nature Save the world for your future. Print this email only if it is absolutely necessary. -- Chathura Priyankara Software Engineer | WSO2 Inc. Mobile : +94718795340 Blog : www.codeoncloud.blogspot.com ___ Dev mailing list Dev@wso2.org
Re: [Dev] [ESB] Premature end of file Error
Hi Chathura, In order to identify the issue, need to see the response coming to ESB. To do that enable the wire logs and share. On Mon, Mar 9, 2015 at 2:09 PM, Chathura Priyankara chathu...@wso2.com wrote: Hi, I'm getting following error in client side when after receiving the response from the service through ESB. [java] javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1] [java] Message: Premature end of file. Is this error comes because response message is empty ? How can I fix this issue ? The ESB log : [2015-03-09 14:01:17,002] DEBUG - SynapseCallbackReceiver Synapse received an asynchronous response message [2015-03-09 14:01:17,002] DEBUG - SynapseCallbackReceiver Received To: null [2015-03-09 14:01:17,002] DEBUG - SynapseCallbackReceiver SOAPAction: [2015-03-09 14:01:17,002] DEBUG - SynapseCallbackReceiver WSA-Action: [2015-03-09 14:01:17,002] DEBUG - SynapseCallbackReceiver Body : ?xml version=1.0 encoding=utf-8?soapenv:Envelope xmlns:soapenv= http://schemas.xmlsoap.org/soap/envelope/ soapenv:Body/soapenv:Body/soapenv:Envelope [2015-03-09 14:01:17,003] DEBUG - Axis2SynapseEnvironment Injecting MessageContext [2015-03-09 14:01:17,003] DEBUG - Axis2SynapseEnvironment Using Main Sequence for injected message [2015-03-09 14:01:17,003] DEBUG - SequenceMediator Start : Sequence main [2015-03-09 14:01:17,003] DEBUG - SequenceMediator Setting the onError handler : errorHandler for the sequence : main [2015-03-09 14:01:17,003] DEBUG - SequenceMediator Sequence SequenceMediator :: mediate() [2015-03-09 14:01:17,003] DEBUG - SequenceMediator Mediation started from mediator position : 0 [2015-03-09 14:01:17,003] DEBUG - InMediator Start : In mediator [2015-03-09 14:01:17,003] DEBUG - InMediator Current message is a response - skipping child mediators [2015-03-09 14:01:17,003] DEBUG - InMediator End : In mediator [2015-03-09 14:01:17,003] DEBUG - OutMediator Start : Out mediator [2015-03-09 14:01:17,003] DEBUG - OutMediator Current message is outgoing - executing child mediators [2015-03-09 14:01:17,004] DEBUG - OutMediator Sequence OutMediator :: mediate() [2015-03-09 14:01:17,004] DEBUG - OutMediator Mediation started from mediator position : 0 [2015-03-09 14:01:17,004] DEBUG - SendMediator Start : Send mediator [2015-03-09 14:01:17,004] DEBUG - SendMediator Sending response message using implicit message properties.. Sending To: http://www.w3.org/2005/08/addressing/anonymous SOAPAction: [2015-03-09 14:01:17,004] DEBUG - SendMediator End : Send mediator [2015-03-09 14:01:17,004] DEBUG - OutMediator End : Out mediator [2015-03-09 14:01:17,005] DEBUG - SequenceMediator End : Sequence main Thanks! -- Chathura Priyankara Software Engineer | WSO2 Inc. Mobile : +94718795340 Blog : www.codeoncloud.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ http://wso2.com/about/team/malaka-silva/ Save a tree -Conserve nature Save the world for your future. Print this email only if it is absolutely necessary. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev