axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Veithen <andreas.veit...@gmail.com>
Subject Re: Does Mail transport work with MTOM?
Date Wed, 15 Jun 2011 10:15:26 GMT
Did you use the latest version of Geronimo's JavaMail implementation?

Andreas

On Wed, Jun 15, 2011 at 12:02, Amila Suriarachchi
<amilasuriarachchi@gmail.com> wrote:
> this is because of the geronimo mail jar. it works fine with java mail jar
>
> thanks,
> Amila.
>
> On Wed, Jun 15, 2011 at 1:06 PM, Amila Suriarachchi
> <amilasuriarachchi@gmail.com> wrote:
>>
>> I looked at the received message at the inbox.
>>
>> According to this sender has send it properly but at the receiving side
>> non of the headers are being read.
>>
>> Basically
>>
>> Map trpHeaders = getTransportHeaders(message, entry);
>>
>> returns an empty map. is this a problem with gmail or java mail?
>>
>> thanks,
>> Amila.
>>
>> Delivered-To: synapse.demo.1@gmail.com
>> Received: by 10.213.27.66 with SMTP id h2cs360786ebc;
>>
>>
>>         Wed, 15 Jun 2011 00:27:27 -0700 (PDT)
>> Received: by 10.236.153.163 with SMTP id f23mr299159yhk.60.1308122846454;
>>         Wed, 15 Jun 2011 00:27:26 -0700 (PDT)
>> Return-Path: <synapse.demo.0@gmail.com>
>>
>>
>> Received: from mail-pv0-f174.google.com (mail-pv0-f174.google.com
>> [74.125.83.174])
>>         by mx.google.com with ESMTPS id
>> v4si1120398icx.104.2011.06.15.00.27.25
>>
>>
>>         (version=TLSv1/SSLv3 cipher=OTHER);
>>         Wed, 15 Jun 2011 00:27:26 -0700 (PDT)
>> Received-SPF: pass (google.com: domain of synapse.demo.0@gmail.com
>> designates 74.125.83.174 as permitted sender) client-ip=74.125.83.174;
>>
>>
>> Authentication-Results: mx.google.com; spf=pass (google.com: domain of
>> synapse.demo.0@gmail.com designates 74.125.83.174 as permitted sender)
>> smtp.mail=synapse.demo.0@gmail.com; dkim=pass (test mode)
>> header.i=@gmail.com
>>
>>
>> Received: by mail-pv0-f174.google.com with SMTP id 12so107632pvg.33
>>         for <synapse.demo.1@gmail.com>; Wed, 15 Jun 2011 00:27:25 -0700
>> (PDT)
>>
>>
>> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
>>         d=gmail.com; s=gamma;
>>         h=domainkey-signature:date:from:reply-to:to:message-id:subject
>>          :mime-version:content-type:soapaction;
>>
>>
>>         bh=fUEElc+cyOnZ2Heo8krpJ9RDwpkU4UuNB3HeJNHfq+M=;
>>
>> b=gBNr8mdpK2OMrHlQgixpuRmGh1/05i902cDnbyl+c2L8pnVBZMDdmY07LxJEGCDzyA
>>
>> Yo3wanVDzhouujKIaBgx2+9B9BmQPfcUHC56bJAOBPjrSMCeGrC2Tq4+w1t+3APnX4kM
>>
>>
>>          Xu6NJblCs8jqfKtyl5jlXFbL8pYjuwB0SNPGY=
>> DomainKey-Signature: a=rsa-sha1; c=nofws;
>>         d=gmail.com; s=gamma;
>>
>> h=date:from:reply-to:to:message-id:subject:mime-version:content-type
>>
>>
>>          :soapaction;
>>
>> b=M1QqQZiOCVE2Swe0nrURLXpo/F2gxt3BXaAOdjgP3JlVurgu8jRBtkt5lVnw10eTyw
>>
>> heAyuJA4SWklkN/Dd55osWHOGYx9zng0ldbChj2wxJ2lgsx5YW/lKLzbjoAS2tvv3qDL
>>          QgpBm6Ae8NL2gdE0482HFBFbUeNPHi/+OJ+x0=
>>
>>
>> Received: by 10.68.7.194 with SMTP id l2mr77480pba.155.1308122845767;
>>         Wed, 15 Jun 2011 00:27:25 -0700 (PDT)
>> Return-Path: <synapse.demo.0@gmail.com>
>>
>> Received: from amila ([116.12.101.118])
>>
>>         by mx.google.com with ESMTPS id
>> n1sm124814pbi.15.2011.06.15.00.27.24
>>         (version=TLSv1/SSLv3 cipher=OTHER);
>>         Wed, 15 Jun 2011 00:27:25 -0700 (PDT)
>>
>> Date: Wed, 15 Jun 2011 12:57:17 +0530 (IST)
>>
>> From: synapse.demo.0@gmail.com
>> Reply-To: synapse.demo.0@gmail.com
>> To: synapse.demo.1@gmail.com
>>
>>
>> Message-ID:
>> <urn.uuid.F42C387055E79FBAE21308122837215synapse.demo.0@gmail.com>
>> Subject: SOAPAction: urn:getBinaryData
>>
>> MIME-Version: 1.0
>>
>> Content-Type: multipart/related;
>> boundary="MIMEBoundary_b2912156243432d5f7506cd15276c82321dcb66277e56bbc";
>> type="application/xop+xml";
>> start="<0.a2912156243432d5f7506cd15276c82321dcb66277e56bbc@apache.org>";
>> start-info="application/soap+xml"; action="urn:getBinaryData"
>>
>>
>> SOAPAction: urn:getBinaryData
>>
>> --MIMEBoundary_b2912156243432d5f7506cd15276c82321dcb66277e56bbc
>> Content-Type: application/xop+xml; charset=UTF-8;
>> type="application/soap+xml"
>> Content-Transfer-Encoding: binary
>>
>>
>> Content-ID:
>> <0.a2912156243432d5f7506cd15276c82321dcb66277e56bbc@apache.org>
>>
>> <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Body><ns1:getBinaryData
>> xmlns:ns1="http://service.test.apache.org"><ns1:dataHandler><xop:Include
>> xmlns:xop="http://www.w3.org/2004/08/xop/include"
>> href="cid:1.92912156243432d5f7506cd15276c82321dcb66277e56bbc@apache.org"
>> /></ns1:dataHandler></ns1:getBinaryData></soapenv:Body></soapenv:Envelope>
>>
>>
>> --MIMEBoundary_b2912156243432d5f7506cd15276c82321dcb66277e56bbc
>> Content-Type: application/octet-stream
>> Content-Transfer-Encoding: base64
>> Content-ID:
>> <1.92912156243432d5f7506cd15276c82321dcb66277e56bbc@apache.org>
>>
>>
>>
>>
>> PGNsYXNzIGNhbGxiYWNrbmFtZT0iVGVzdFNlcnZpY2VDYWxsYmFja0hhbmRsZXIiIGludGVyZmFjZU5hbWU9IlRlc3RTZXJ2aWNlIiBpc0FzeW5jPSIxIiBpc1N5bmM9IjEiCiAgICAgICBpc2JhY2tjb21wYXRpYmxlPSJmYWxzZSIgbmFtZT0iVGVzdFNlcnZpY2VTdHViI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dcb66277e56bbc--
>>
>>
>> On Tue, Jun 14, 2011 at 7:04 PM, Amila Suriarachchi
>> <amilasuriarachchi@gmail.com> wrote:
>>>
>>> hi,
>>>
>>> Recently I had a look at with the $subject using a working MTOM sample
>>> with http.
>>>
>>> When I use this sample with the mail transport (using the default synapse
>>> gmail account) I can see two attachments. But at the server side I get the
>>> following error.
>>>
>>> java.lang.NullPointerException: charsetName
>>>     at java.lang.String.<init>(String.java:442)
>>>     at java.lang.String.<init>(String.java:516)
>>>     at
>>> org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:694)
>>>     at
>>> org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:197)
>>>     at
>>> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:145)
>>>
>>> When I debug this at the server side I saw the Content Type read in the
>>> org.apache.axis2.transport.mail.MailTransportListener : 589 is
>>> text/plain. But with http content type is multpart-related with other
>>> boundary details.
>>>
>>> is this means a problem with mail transport sender?
>>>
>>> thanks,
>>> Amila.
>>>
>>> --
>>> Amila Suriarachchi
>>> WSO2 Inc.
>>> blog: http://amilachinthaka.blogspot.com/
>>
>>
>>
>> --
>> Amila Suriarachchi
>> WSO2 Inc.
>> blog: http://amilachinthaka.blogspot.com/
>
>
>
> --
> Amila Suriarachchi
> WSO2 Inc.
> blog: http://amilachinthaka.blogspot.com/
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message