[ https://issues.apache.org/jira/browse/CXF-4621?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp resolved CXF-4621. ------------------------------ Resolution: Not A Problem Fix Version/s: (was: NeedMoreInfo) Invalid Resolving for a few reasons: 1) 2.2 is ancient. Asked if it's still an issue with newer versions of CXF and no response. 2) Whatever "mail" jar we ship can easily be replaced with any other version. 3) If it is a bug in the mail jar we ship, the issue would need to be logged with geronimo. > 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 > Fix For: Invalid > > > 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) > I temporary fixed the problem excluding the dependency on > geronimo-javamail_1.4_spec -- 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