axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Afkham Azeez" <>
Subject [Axis2] MIME Parsing fails with Sun's JavaMail API Implementation
Date Thu, 02 Mar 2006 04:29:42 GMT
Hi Folks,
I encountered a somewhat critical situation, where if we use Sun's
JavaMail API implementation, instead of Geronimo's JavaMail API
implementation, parsing of MIME Encoded messages fails. The initial
failure occurs in the javax.mail.internet.ContentType class, where we
pass in the Content-Type header.

I reckon when we deploy axis2.war in Tomcat, if  the Sun JavaMail API
implementation gets placed ahead of Gernimo's implementation, we'll
not be able to process MIME Encoded messages. Thoughts?

FYI, I'm attaching a stacktrace below:
----------------------------------------------- Stack Trace
----------------------------------------------------- Invalid Content Type Field in
the Mime Message
        at org.apache.axis2.transport.TransportUtils.selectBuilderForMIME(
        at org.apache.axis2.transport.TransportUtils.createSOAPMessage(
        at org.apache.axis2.transport.TransportUtils.createSOAPMessage(
        at org.apache.axis2.saaj.SOAPPartImpl.<init>(
        at org.apache.axis2.saaj.SOAPMessageImpl.<init>(
        at org.apache.axis2.saaj.MessageFactoryImpl.createMessage(

caused by:
	at javax.mail.internet.ParameterList.<init>(
	at javax.mail.internet.ContentType.<init>(
-------------------------------------------- End of Stack Trace

The relevant Content-Type header valueis;
start-info=text/xml; charset=UTF-8

The above header is Parsed successfully if we use Geronimo's implementation.

Afkham Azeez

View raw message