Hi All
I am new to Spring Integration and am trying to a simple mail Transformer to work so as I can expand the soltuion at a later date. I am receiving an error Bean Definition cannot be null and Namespace issue but I have searched through Google and attempted to debug and cannot see the reason for the issue.
I am using all default namespaces in the integration xml file. Please can you review the xml I have below and advise me on why this exception is being thrown inside STS ?
Please see xml config below:
Thanks,Code:<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:int="http://www.springframework.org/schema/integration" xmlns:int-mail="http://www.springframework.org/schema/integration/mail" xmlns:util="http://www.springframework.org/schema/util" xsi:schemaLocation="http://www.springframework.org/schema/integration/mail http://www.springframework.org/schema/integration/mail/spring-integration-mail.xsd http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"> <int-mail:inbound-channel-adapter id="customAdapter" store-uri="imaps://[emailaddress]%40gmail.com:[password]@imap.gmail.com/INBOX" java-mail-properties="javaMailProperties" channel="receiveChannel" should-delete-messages="true" should-mark-messages-as-read="true" auto-startup="true"> <int:poller max-messages-per-poll="1" fixed-rate="5000" /> </int-mail:inbound-channel-adapter> <util:properties id="javaMailProperties"> <prop key="mail.imap.socketFactory.class">javax.net.ssl.SSLSocketFactory</prop> <prop key="mail.imap.socketFactory.fallback">false</prop> <prop key="mail.store.protocol">imaps</prop> <prop key="mail.debug">true</prop> </util:properties> <int:transformer id="testTransformer" ref="mailTransformerBean" input-channel="receiveChannel" method="transform"/> <!-- output-channel="outChannel" --> <bean id="mailTransformerBean" class="com.appengine.email.transformer.MailTransformer" /> </beans>
Michael


Reply With Quote
oller line complaining about no bean definition and namespace issues but I am using the standard namespaces and cannot see any examples online using a poller with a bean definition inside.
