Announcement Announcement Module
Collapse
No announcement yet.
Poller Exception being thrown Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Poller Exception being thrown

    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:

    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>
    Thanks,
    Michael

  • #2
    Hello

    1. Tell, please, what SI version are you using?
    2. Show the StackTrace, please, too

    Take care,
    Artem

    Comment


    • #3
      And about IMAP read this one too: http://forum.springsource.org/showthread.php?109321

      Comment


      • #4
        Hi Cleric

        Thanks for getting back to me on this. I am using version 2.1 of Spring Integration. Can I ask do you get the same error as I get when you are compiling the integration xml file ? It shows an error on the intoller 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.

        Unfortunately I am not at my computer at the moment but will post the stack trace when I get back to it.

        Thanks for your help with this

        Thanks,
        Michael

        Comment

        Working...
        X