I can't see a problem with the marshaler here.

Have you got:

        <dependency>
            <groupId>org.apache.geronimo.javamail</groupId>
            <artifactId>geronimo-javamail_1.4_provider</artifactId>
            <version>1.6</version>
        </dependency>

in your pom.xml ?

Regards
Lars



2009/1/12 Crimor <[email protected]>:
>
> Hi,
>
> I create a mail service only for sending emails. I need to add my own
> Marshaler to handle the incoming message. But it seems that the service
> isn't use my marshaler. I configurate the xbean as followed:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <beans
>  xmlns:mail="http://servicemix.apache.org/mail/1.0";
>  xmlns:ic="http://xxx.xxx.net/ic/v1/";>
>
>
>  <bean
>
> class="net.xxx.xxx.common.util.spring.StagePropertiesPlaceholderConfigurer"/>
>
>  <mail:sender service="ic:mailSenderService"
>             endpoint="senderEndpoint"
>             sender="[email protected]"
>             receiver="[email protected]"
>             connection="${xxx.components.mail.service.smtpServer}"
>             debugMode="true">
>
>       <property name="marshaler">
>         <bean class="net.xxx.xxx.components.ic.CustomMailMarshaler" >
>             <property name="jbiWrapper" ref="jbiWrapper"/>
>             <property name="icFactory" ref="icFactory"/>
>         </bean>
>       </property>
>  </mail:sender>
>
>  <bean id="jbiWrapper" class="net.xxx.xxx.support.jbi.JbiWrapper"/>
>
>  <bean id="icFactory"
> class="net.xxx.xxx.components.ic.domain.ObjectFactory"/>
>
> </beans>
>
>
> I got the following error:
>
> ERROR - MailComponent                  - Error sending mail...
> javax.mail.NoSuchProviderException: No provider for ssl
>        at javax.mail.Session.getProvider(Session.java:455)
>        at javax.mail.Session.getTransport(Session.java:650)
>        at javax.mail.Session.getTransport(Session.java:631)
>        at
> org.apache.servicemix.mail.MailSenderEndpoint.processInOnly(MailSenderEndpoint.java:105)
>        at
> org.apache.servicemix.common.endpoints.ProviderEndpoint.process(ProviderEndpoint.java:102)
>        at
> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:596)
>        at
> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:550)
>        at
> org.apache.servicemix.common.AsyncBaseLifeCycle.onMessageExchange(AsyncBaseLifeCycle.java:506)
>        at
> org.apache.servicemix.common.SyncLifeCycleWrapper.onMessageExchange(SyncLifeCycleWrapper.java:60)
>        at
> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:620)
>        at
> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
>        at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:168)
>        at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>        at java.lang.Thread.run(Thread.java:619)
> ERROR - MailComponent                  - Error processing exchange InOnly[
>  id: ID:172.30.30.167-11eca1935b4-6:16
>  status: Active
>  role: provider
>  service: {http://xxx.xxx.net/ic/v1/}mailSenderService
>  endpoint: senderEndpoint
>  in: <?xml version="1.0"
> encoding="UTF-8"?><emailAddress>[email protected]</emailAddress><emailHeader>Test
> message</emailHeader><emailMess
> age>Das geht ja mal</emailMessage>
>
>
> I know that the message isn't the right one because this message should be
> handled in the CustomMailMarshaler but as it seems this marshaler isn't
> used.
>
> Any hint?
>
> Greetings
> Crimor
>
>
> --
> View this message in context: 
> http://www.nabble.com/Mail-Service-Sender-Endpoint-seems-not-to-use-my-CustomMarshaler-tp21412135p21412135.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>



-- 
http://lhein.blogspot.com

Reply via email to