Return-Path: Delivered-To: apmail-synapse-dev-archive@www.apache.org Received: (qmail 60072 invoked from network); 4 May 2009 07:44:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 May 2009 07:44:13 -0000 Received: (qmail 73834 invoked by uid 500); 4 May 2009 07:44:12 -0000 Delivered-To: apmail-synapse-dev-archive@synapse.apache.org Received: (qmail 73747 invoked by uid 500); 4 May 2009 07:44:12 -0000 Mailing-List: contact dev-help@synapse.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@synapse.apache.org Delivered-To: mailing list dev@synapse.apache.org Received: (qmail 73739 invoked by uid 99); 4 May 2009 07:44:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 May 2009 07:44:12 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of andreas.veithen@gmail.com designates 209.85.219.170 as permitted sender) Received: from [209.85.219.170] (HELO mail-ew0-f170.google.com) (209.85.219.170) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 May 2009 07:44:04 +0000 Received: by ewy18 with SMTP id 18so3631450ewy.3 for ; Mon, 04 May 2009 00:43:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=FE6onqxzdkmRg0u/QF7HWLPsW3V5HmkOLEuwWMRlQZ0=; b=q0w6fPzAG+e2PjOHUdzUhZid6HEKGmETSmfWT00hdw2/WiVHy9v7jS7Dx2ohH6g5Oh RHrHVbtTt8+GOecmlxf0MO9g5pEzHng0mZ3qiF+VVnVhVTplqsGbgGEIYHRAnsYOLwbC 53alY5Q4OjeOVVzBHCs10FNKsJqd2s9F2lAbA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=FLBrG0hFb+KbGzIPuLLK0yISAPnJAE3wmdkPeFNz+eImburjFZYRphRotFaNUIm93y n3Rp6pTmj4xgYwyAl7727UzeESJ2XyWWNw7wJPw9CjrLE1orDtK9n0us1r3/lTXal4/T 3aAi5GYm4yM41+byWZ8/exy+XKkjgHHkxASgY= MIME-Version: 1.0 Received: by 10.216.17.213 with SMTP id j63mr1530951wej.140.1241423022975; Mon, 04 May 2009 00:43:42 -0700 (PDT) In-Reply-To: <881f359f0905032345q63ea54c9mff9d1ff9716d48db@mail.gmail.com> References: <881f359f0905032152o22d2e5a5p93606d8717aadaa7@mail.gmail.com> <881f359f0905032311j2568659bqef83cda8441c52d2@mail.gmail.com> <881f359f0905032345q63ea54c9mff9d1ff9716d48db@mail.gmail.com> Date: Mon, 4 May 2009 09:43:42 +0200 Message-ID: Subject: Re: Error when retrieving mail from GMail From: Andreas Veithen To: dev@synapse.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Saliya, Can you please tell us the version of Synapse you are using? Andreas On Mon, May 4, 2009 at 08:45, Saliya Ekanayake wrote: > Hi, > > I was able to get passed this by sending a plain text message from > GMail. It seems that when HTML formatted message is present, Synapse > cannot properly build the SOAP envelope. > > At the same time I found that the error with configuration occurs when > you send a mail from the same account as the recipient (the > configuration simply checks for the "from" address and send the > reply). So in fact I think it's not an error. > > Thanks, > Saliya > > On Mon, May 4, 2009 at 11:41 AM, Saliya Ekanayake wrote: >> Regarding issue 2, I think the reason is having a wrong input stream in >> creating the XMLStreamReader. The input stream taken from the message >> contains all the headers as well (I did a debug and found the presence of >> headers). Thus, when parsing the stream to create a SOAP message I hit the >> error "Unexpected character" (Woodstock 3.2.4: BasicStreamReader: line >> 2047). >> >> Thanks, >> Saliya >> >> >> >> On Mon, May 4, 2009 at 10:22 AM, Saliya Ekanayake wrote: >>> >>> Hi all, >>> >>> I have encountered two issues with sample 256 - using mail transport with >>> Synapse. >>> >>> 1. The configuration is wrong as it simply sends the response back to the >>> same mail address. Then, Synapse will again send that response mail back to >>> the service thinking it is a request. >>> >>> 2. When retrieving mail from GMail I am getting a null pointer exception >>> due to null charset while parsing. >>> >>> The first issue can be corrected by modifying the configuration. The >>> second one, however, was bit unclear to me even after a debug. Could someone >>> please help on this. To reproduce this simply run sample 256 as given. >>> >>> Thanks, >>> Saliya >>> >> >> >> >> -- >> Saliya Ekanayake >> Software Engineer, WSO2 Inc. (http://www.wso2.com) >> >> > > > > -- > Saliya Ekanayake > Software Engineer, WSO2 Inc. (http://www.wso2.com) > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org > For additional commands, e-mail: dev-help@synapse.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org For additional commands, e-mail: dev-help@synapse.apache.org