cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefano Bertini (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-4621) CXF breaks Javax.mail
Date Wed, 07 Nov 2012 21:10:12 GMT
Stefano Bertini created CXF-4621:
------------------------------------

             Summary: CXF breaks Javax.mail 
                 Key: CXF-4621
                 URL: https://issues.apache.org/jira/browse/CXF-4621
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.2
            Reporter: Stefano Bertini


I am writing a software that reads and sends email using java.mail library.

As soon as I added a dependency on CXF 2.2.3, something causes a bug in java.mail libraries.

I tried using a small java mail sample program (this one: http://www.rgagnon.com/javadetails/java-receive-email-using-imap.html)
and connected it to my gmail account.

If I remove the dependency on CXF, everything works correctly.
Including CXF causes this error:

Exception in thread "main" java.lang.NullPointerException
	at javax.mail.internet.ParameterList.set(ParameterList.java:165)
	at com.sun.mail.imap.protocol.BODYSTRUCTURE.parseParameters(BODYSTRUCTURE.java:404)
	at com.sun.mail.imap.protocol.BODYSTRUCTURE.<init>(BODYSTRUCTURE.java:224)
	at com.sun.mail.imap.protocol.BODYSTRUCTURE.<init>(BODYSTRUCTURE.java:109)
	at com.sun.mail.imap.protocol.FetchResponse.parse(FetchResponse.java:158)
	at com.sun.mail.imap.protocol.FetchResponse.<init>(FetchResponse.java:67)
	at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:136)
	at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:270)
	at com.sun.mail.iap.Protocol.command(Protocol.java:313)
	at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:1529)
	at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:1521)
	at com.sun.mail.imap.protocol.IMAPProtocol.fetchBodyStructure(IMAPProtocol.java:1221)
	at com.sun.mail.imap.IMAPMessage.loadBODYSTRUCTURE(IMAPMessage.java:1307)
	at com.sun.mail.imap.IMAPMessage.getDataHandler(IMAPMessage.java:623)
	at javax.mail.internet.MimeMessage.getContent(MimeMessage.java:927)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message