Announcement Announcement Module
Collapse
No announcement yet.
help with inbound channel adapter Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • help with inbound channel adapter

    Hi,

    I'm not able to figure out the problem with this xml I'm getting this error below.

    <core:inbound-channel-adapter id="inboundAdapter" expression="new java.io.File("/path").listFiles()" >
    <intoller id="poller" fixed-delay="90000">
    </intoller>
    </core:inbound-channel-adapter>

    nested exception is org.xml.sax.SAXParseException; lineNumber: 32; columnNumber: 83; Element type "core:inbound-channel-adapter" must be followed by either attribute specifications, ">" or "/>".
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadBeanDefinitions(XmlBeanDefinitio n

    Please help.
    thanks

  • #2
    Your SpEL expression in 'expression' attribute where you mentioned 'path' should be single quotes (not double like you have)
    Code:
    expression="new java.io.File('/path').listFiles()"
    Basically you have a broken XML and SAX parser complains

    Comment

    Working...
    X