Using:
      <!-- Poll for files -->
      <sm:activationSpec componentName="ftpPoller"
service="postman:ftpPoller"
                         destinationService="postman:fileWriter">
        <sm:component>
          <bean class="org.apache.servicemix.components.net.FTPPoller">
          <property name="clientPool">
           <bean id="ftpClientPool"
class="org.apache.servicemix.components.net.FTPClientPool"> 
            <property name="host" value="1.1.1.1"/>
            <property name="username" value="user"/>
            <property name="password" value="pwd"/>
           </bean>
          </property>
          <property name="marshaler">
           <bean
class="org.apache.servicemix.components.util.BinaryFileMarshaler"></bean>
          </property>
          <property name="path" value="ibs"/>
          <property name="period" value="1000"/>
          </bean>
        </sm:component>
      </sm:activationSpec> 

Getting:
ERROR - FTPPoller                      - Failed to process file: -rw-r--r--   
1 503      503            81 Mar 29 11:52 cs000016.file. Reason:
java.lang.NullPointerException
java.lang.NullPointerException
        at
org.apache.servicemix.components.net.FTPPoller.processFile(FTPPoller.java:162)
        at
org.apache.servicemix.components.net.FTPPoller.processFile(FTPPoller.java:139)
        at
org.apache.servicemix.components.net.FTPPoller$1.run(FTPPoller.java:123)
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
        at java.lang.Thread.run(Thread.java:595)
ERROR - FTPPoller                      - Failed to process file: -rw-r--r--   
1 503      503            81 Mar 29 11:52 cs000016.emm. Reason:
java.lang.NullPointerException

-- 
View this message in context: 
http://www.nabble.com/FTPPoller-error-tf3485909s12049.html#a9731735
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to