The source file is corrupted :(

gnodet wrote:
> 
> The sources of the javamail implementation are available at
> http://repo.mergere.com/maven2/javax/mail/mail/1.4/mail-1.4-sources.jar
> 
> You may want to see at
>  javax.mail.internet.ContentType.<init>(ContentType.java:83)
> what could produce the error.
> 
> On 10/20/06, mart <[EMAIL PROTECTED]> wrote:
>>
>> Ok you may help me :) thanks
>>
>> I use James mail server, and Sun standard mail lib. It works when not
>> using
>> the BinaryFileMarshaler (and transfering text file).
>>
>> First here is my mail configuration: I had to add the text property to
>> avoid
>> a NullPointerException on this element.
>>
>>             <!-- ####################### MailServer
>> ########################
>> -->
>>     <sm:activationSpec componentName="MailServer"
>> service="foo:MailServer">
>>           <sm:component>
>>            <bean
>> class="org.apache.servicemix.components.email.MimeMailSender">
>>                          <property name="marshaler">
>>                  <bean
>> class="org.apache.servicemix.components.email.MimeMailMarshaler">
>>                                       <property name="from">
>>                           <bean
>> class="org.apache.servicemix.expression.ConstantExpression">
>>                              <constructor-arg value="[EMAIL PROTECTED]" />
>>                           </bean>
>>                                          </property>
>>                                       <property name="to">
>>                           <bean
>> class="org.apache.servicemix.expression.ConstantExpression">
>>                              <constructor-arg value="[EMAIL PROTECTED]" />
>>                           </bean>
>>                                          </property>
>>                                       <property name="subject">
>>                           <bean
>> class="org.apache.servicemix.expression.ConstantExpression">
>>                              <constructor-arg value="ServiceMix Message"
>> />
>>                           </bean>
>>                                          </property>
>>                                                                              
>> <property name="text">
>>                           <bean
>> class="org.apache.servicemix.expression.ConstantExpression">
>>                              <constructor-arg value="ServiceMix Message"
>> />
>>                           </bean>
>>                                          </property>
>>                                   </bean>
>>                         </property>
>>                          <property name="sender">
>>                  <bean
>> class="org.springframework.mail.javamail.JavaMailSenderImpl">
>>                                       <property name="host" 
>> value="localhost" />
>>                                       <property name="port"  value="25"
>> />
>>                                   </bean>
>>                         </property>
>>        </bean>
>>       </sm:component>
>>     </sm:activationSpec>
>>
>>
>> The binary comes from FTP (using VFS, the FTP BC seems buggy):
>>
>>     <sm:activationSpec componentName="myFTPServerother"
>> service="foo:myFTPServerother"
>>           destinationService="foo:MailServer">
>>           <sm:component>
>>        <bean  class="org.apache.servicemix.components.vfs.FilePoller">
>>          <property name="workManager">
>>            <bean class="org.jencks.factory.WorkManagerFactoryBean">
>>                                       <property name="threadPoolSize" 
>> value="30" />
>>                              </bean>
>>                            </property>
>>                            <property name="marshaler">
>>                             <bean
>> class="org.apache.servicemix.components.util.BinaryFileMarshaler" >
>>           </bean>
>>          </property>
>>          <property name="path" value="ftp://actes:[EMAIL PROTECTED]/"/>
>>          <property name="period" value="10000"/>
>>            </bean>
>>       </sm:component>
>>     </sm:activationSpec>
>>
>>
>> And finally the full error, DEBUG Level:
>>
>> DEBUG - DeliveryChannelImpl            - SendSync
>> ID:w10210-4882-1161337803208-2
>> 1:5 in DeliveryChannel{myFTPServerother}
>> DEBUG - DeliveryChannelImpl            - Sent: RobustInOnly[
>>   id: ID:w10210-4882-1161337803208-21:5
>>   status: Active
>>   role: consumer
>>   service: {http://servicemix.org/cheese}MailServer
>>   in: null
>> ]
>> DEBUG - DefaultBroker                  - Routing exchange RobustInOnly[
>>   id: ID:w10210-4882-1161337803208-21:5
>>   status: Active
>>   role: provider
>>   service: {http://servicemix.org/cheese}MailServer
>>   endpoint: MailServer
>>   in: null
>> ] to:
>> ServiceEndpoint[service={http://servicemix.org/cheese}MailServer,endpoint=
>> MailServer]
>> DEBUG - DefaultBroker                  - Routing exchange RobustInOnly[
>>   id: ID:w10210-4882-1161337803208-21:5
>>   status: Active
>>   role: provider
>>   service: {http://servicemix.org/cheese}MailServer
>>   endpoint: MailServer
>>   in: null
>> ] to:
>> ServiceEndpoint[service={http://servicemix.org/cheese}MailServer,endpoint=
>> MailServer]
>> DEBUG - SedaFlow                       - Called Flow send
>> DEBUG - SedaQueue                      -
>> org.apache.servicemix.jbi.nmr.flow.seda
>> [EMAIL PROTECTED] dequeued exchange: RobustInOnly[
>>   id: ID:w10210-4882-1161337803208-21:5
>>   status: Active
>>   role: provider
>>   service: {http://servicemix.org/cheese}MailServer
>>   endpoint: MailServer
>>   in: null
>> ]
>> DEBUG - DeliveryChannelImpl            - Processing inbound exchange:
>> RobustInOn
>> ly[
>>   id: ID:w10210-4882-1161337803208-21:5
>>   status: Active
>>   role: provider
>>   service: {http://servicemix.org/cheese}MailServer
>>   endpoint: MailServer
>>   in: null
>> ]
>> DEBUG - DeliveryChannelImpl            - Waiting for exchange
>> ID:w10210-4882-116
>> 1337803208-21:5 (10e284f) to be answered in
>> DeliveryChannel{myFTPServerother} fr
>> om sendSync
>> DEBUG - DeliveryChannelImpl            - Received: RobustInOnly[
>>   id: ID:w10210-4882-1161337803208-21:5
>>   status: Active
>>   role: provider
>>   service: {http://servicemix.org/cheese}MailServer
>>   endpoint: MailServer
>>   in: null
>> ]
>> DEBUG - OutBinding                     - Exchange failed
>> org.springframework.mail.MailSendException: Could not send mails: null
>> org.springframework.mail.MailSendException: Could not send mails: null
>> javax.mail.internet.ParseException
>>         at javax.mail.internet.ContentType.<init>(ContentType.java:83)
>>         at
>> javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1249
>> )
>>         at
>> javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1001
>> )
>>         at
>> javax.mail.internet.MimeMultipart.updateHeaders(MimeMultipart.java:33
>> 3)
>>         at
>> javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1255
>> )
>>         at
>> javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2012)
>>         at
>> javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1980)
>>         at
>> org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailS
>> enderImpl.java:381)
>>         at
>> org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSen
>> derImpl.java:326)
>>         at
>> org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSen
>> derImpl.java:341)
>>         at
>> org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSen
>> derImpl.java:330)
>>         at
>> org.apache.servicemix.components.email.MimeMailSender.process(MimeMai
>> lSender.java:73)
>>         at
>> org.apache.servicemix.components.util.OutBinding.onMessageExchange(Ou
>> tBinding.java:49)
>>         at
>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBoun
>> d(DeliveryChannelImpl.java:624)
>>         at
>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlo
>> w.java:169)
>>         at
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.j
>> ava:177)
>>         at
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.jav
>> a:227)
>>         at
>> org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.ja
>> va:291)
>>         at
>> EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown So
>> urce)
>>
>> Thank you!
>>
>>
>> gnodet wrote:
>> >
>> > I have succesfully transfered binary attachments using mail.
>> > Could you paste the full exception ?
>> >
>> > On 10/20/06, mart <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Hello
>> >>
>> >> I wanted to know how well the mail component is supposed to handle JBI
>> >> message that would have been created with the BinaryFileMarshaler?
>> >>
>> >> Looking at the code I see it is supposed to get the attachments of JBI
>> >> mesage (binary) and put it as email attachment, but I have a "Cannot
>> send
>> >> Message: null" error in this situation.
>> >>
>> >> Thanks for any info
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Mail-component-and-binary-tf2478268.html#a6911556
>> >> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>> > --
>> > Cheers,
>> > Guillaume Nodet
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Mail-component-and-binary-tf2478268.html#a6913324
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> Cheers,
> Guillaume Nodet
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Mail-component-and-binary-tf2478268.html#a6914695
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to