Hi,
Well I tried adding the geronimo dependency and it didn't work. Anyway, now maven compiles and it, and it gets deployed properly in smx. The poller works fine. The sender is giving me some trouble. This is a poller sender bridge.

My xBean looks like:

<mail:sender service="test2:myMailService3"
       endpoint="senderEndpoint123" sender="[email protected]"
       receiver="[email protected]"
       connection="smtps://[email protected]:PORT_NO?password=blah"
customTrustManagers="org.apache.servicemix.mail.security.DummyTrustManager"
       debugMode="true">
       <property name="marshaler">
           <bean class="com.MyMailMarshaler" />
</property>
       </mail:sender>

MyMailMarshaler just has a sysout and then calls the default marshaler.

The error is:

DEBUG: JavaMail version 1.4
DEBUG: java.io.FileNotFoundException: C:\Program Files\Java\jdk1.5.0_14\jre\lib\
javamail.providers (The system cannot find the file specified)
DEBUG: !anyLoaded
DEBUG: not loading resource: /META-INF/javamail.providers
DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
DEBUG: Tables of loaded providers
DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax .mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsyste ms, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com .sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLSt ore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsyst ems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.su n.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=jav ax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc],
com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP
3Store,Sun Microsystems, Inc]}
DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com. sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STOR E,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Prov ider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems , Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.S
MTPTransport,Sun Microsystems, Inc]}
DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
DEBUG: !anyLoaded
DEBUG: not loading resource: /META-INF/javamail.address.map
DEBUG: java.io.FileNotFoundException: C:\Program Files\Java\jdk1.5.0_14\jre\lib\
javamail.address.map (The system cannot find the file specified)
DEBUG: setDebug: JavaMail version 1.4
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.
smtp.SMTPSSLTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host "smtp.BLAH.com", port 465, isSSL true
220 mx.BLAH.com ESMTP m28sm39846542poh.25
DEBUG SMTP: connected to host "smtp.BLAH.com", port: [PORT_NO]

EHLO BLAH
250-BLAH at your service, [IP ADDRESS]
250-SIZE 35651584
250-8BITMIME
250-AUTH LOGIN PLAIN
250 ENHANCEDSTATUSCODES
DEBUG SMTP: Found extension "SIZE", arg "35651584"
DEBUG SMTP: Found extension "8BITMIME", arg ""
DEBUG SMTP: Found extension "AUTH", arg "LOGIN PLAIN"
DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
DEBUG SMTP: Attempt to authenticate
AUTH LOGIN
[BLAH]
235 2.7.0 Accepted

convertJBIToMail invoked

ERROR - MailComponent                  - Error sending mail...
javax.mail.MessagingException: Unparseable date: "Fri, 09 Jan 2009 10:45:07 +070
0";
 nested exception is:
java.text.ParseException: Unparseable date: "Fri, 09 Jan 2009 10:45:07 +
0700"
at org.apache.servicemix.mail.marshaler.DefaultMailMarshaler.convertJBIT
oMail(DefaultMailMarshaler.java:93)
       at com.MyMailMarshaler.convertJBIToMail(MyMailMarshaler.java:32)
at org.apache.servicemix.mail.MailSenderEndpoint.processInOnly(MailSende
rEndpoint.java:116)

I do nothing to the date, and I don't know the sender should have a problem with it when the poller works fine with the same date. What could be the problem?

Reply via email to