Sylvester,

as stated at the wiki page, this property needs servicemix-mail-2008.02
or later to work. So currently you need to
build the component from trunk to use this property.

Regards
Lars



Sylvester schrieb:
> Hi,
>
> I am invoking an email sender endpoint from an email poller. As per
> the servicemix email page I do:
>
> <mail:sender service="test2:myMailService2" endpoint="senderEndpoint"
>        sender="[email protected]" receiver="[email protected]"
>        connection="imaps://[email protected]?password=blah"
>        ignoreMessageProperties="#ignoreProps" />
>
>    <util:list id="ignoreProps">
>        <value>org.apache.servicemix.mail.to</value>
>        <value>org.apache.servicemix.mail.cc</value>
>        <value>org.apache.servicemix.mail.bcc</value>
>        <value>org.apache.servicemix.mail.from</value>
>        <value>org.apache.servicemix.mail.replyto</value>
>    </util:list>
>
> Deployment in smx3.3 fails and I get:
>
>
>        <component-name>servicemix-mail</component-name>
>        <component-task-result-details>
>                <task-result-details>
>                        <task-id>deploy</task-id>
>                        <task-result>FAILED</task-result>
>                        <message-type>ERROR</message-type>
>                        <task-status-msg>
> <msg-loc-info>
> <loc-token/>
> <loc-message>Could not deploy xbean service unit</loc-message>
> </msg-loc-info>
> </task-status-msg>
>                        <exception-info>
>                                <nesting-level>1</nesting-level>
>                                <msg-loc-info>
>                                        <loc-token/>
>                                        <loc-message>Error creating
> bean with na
> me 'org.apache.servicemix.mail.MailSenderEndpoint#0' defined in file
> [C:\apache-
> servicemix-3.3\data\smx\service-assemblies\ServiceAssembly\version_8\sus\service
>
> mix-mail\EmailBC-sender\xbean.xml]: Initialization of bean failed;
> nested except
> ion is org.springframework.beans.InvalidPropertyException: Invalid
> property 'ign
> oreMessageProperties' of bean class
> [org.apache.servicemix.mail.MailSenderEndpoi
> nt]: No property 'ignoreMessageProperties' found</loc-message>
>                                       
> <stack-trace><![CDATA[org.springframewor
> k.beans.factory.BeanCreationException: Error creating bean with name
> 'org.apache
> .servicemix.mail.MailSenderEndpoint#0' defined in file
> [C:\apache-servicemix-3.3
> \data\smx\service-assemblies\ServiceAssembly\version_8\sus\servicemix-mail\Email
>
> BC-sender\xbean.xml]: Initialization of bean failed; nested exception
> is org.spr
> ingframework.beans.InvalidPropertyException: Invalid property
> 'ignoreMessageProp
> erties' of bean class [org.apache.servicemix.mail.MailSenderEndpoint]:
> No proper
> ty 'ignoreMessageProperties' found
>        at
> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
>        at
> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> Factory$1.run(AbstractAutowireCapableBeanFactory.java:409)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at
> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> Factory.createBean(AbstractAutowireCapableBeanFactory.java:380)
>        at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
> ject(AbstractBeanFactory.java:264)
>        at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
> y.getSingleton(DefaultSingletonBeanRegistry.java:221)
>        at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
> an(AbstractBeanFactory.java:261)
>        at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> (AbstractBeanFactory.java:185)
>        at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> (AbstractBeanFactory.java:164)
>        at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.
> preInstantiateSingletons(DefaultListableBeanFactory.java:429)
>        at
> org.springframework.context.support.AbstractApplicationContext.finish
> BeanFactoryInitialization(AbstractApplicationContext.java:729)
>        at
> org.springframework.context.support.AbstractApplicationContext.refres
> h(AbstractApplicationContext.java:381)
>        at
> org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(Abstr
> actXBeanDeployer.java:86)
>        at
> org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServ
> iceUnitManager.java:88)
>        at
> org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServic
> eUnitManager.java:69)
>        at
> org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAs
> sembly(DeploymentService.java:508)
>        at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServi
> ceAssembly(AutoDeploymentService.java:353)
>        at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchi
> ve(AutoDeploymentService.java:256)
>        at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDire
> ctory(AutoDeploymentService.java:667)
>        at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(
> AutoDeploymentService.java:62)
>        at
> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoD
> eploymentService.java:631)
>        at java.util.TimerThread.mainLoop(Timer.java:512)
>        at java.util.TimerThread.run(Timer.java:462)
> Caused by: org.springframework.beans.InvalidPropertyException: Invalid
> property
> 'ignoreMessageProperties' of bean class
> [org.apache.servicemix.mail.MailSenderEn
> dpoint]: No property 'ignoreMessageProperties' found
>        at
> org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrap
> perImpl.java:382)
>        at
> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> Factory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1288)
>        at
> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1249)
>        at
> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> Factory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
>        at
> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
>        ... 22 more
> ]]></stack-trace>
>                                </msg-loc-info>
>                        </exception-info>
>                </task-result-details>
>        </component-task-result-details>
> </component-task-result>
> </jbi-task-result>
> </jbi-task>
>
>        at
> org.apache.servicemix.jbi.framework.ManagementSupport.failure(Managem
> entSupport.java:125)
>        at
> org.apache.servicemix.jbi.framework.ManagementSupport.failure(Managem
> entSupport.java:111)
>        at
> org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAs
> sembly(DeploymentService.java:543)
>        at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServi
> ceAssembly(AutoDeploymentService.java:353)
>        ... 6 more
>
> What could be the problem here?
>
> The poller and sender are in their own BCs.
>
> Sylvester
>
>
>

Reply via email to