camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "KaterynaDanyliuk (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CAMEL-5684) possible null pointer exception for FTP endpoint
Date Tue, 09 Oct 2012 10:44:03 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-5684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13472263#comment-13472263
] 

KaterynaDanyliuk edited comment on CAMEL-5684 at 10/9/12 10:42 AM:
-------------------------------------------------------------------

We run Camel on Tomcat/Windows7.
FTP is on Ubuntu.
The name of remote file just has to start with the name of directory (so both "input" and
"input.txt" gave NPE).
                
      was (Author: tyuha):
    We run Camel on Tomcat/Windows7
FTP is on Ubuntu.
The name of remote file just has to start with the name of directory (so both "input" and
"input.txt" gave NPE).
                  
> possible null pointer exception for FTP endpoint
> ------------------------------------------------
>
>                 Key: CAMEL-5684
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5684
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.10.1
>            Reporter: KaterynaDanyliuk
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.9.4, 2.11.0, 2.10.2
>
>
> If for source endpoint you specify directory name without trailing slash and place there
file, which name starts like the directory name, you'll get null pointer exception.
> ftp://[username@]hostname[:port]/directoryname[?options]
> For example:
> <endpoint id="ftpSource" uri="ftp://192.168.0.81:21/input?fileName= ...
> File with name "input" will give exception, file with name "bla" will be processed normally.
> This will work fine:
> <endpoint id="ftpSource" uri="ftp://192.168.0.81:21/input/?fileName= ...
> Part of stack trace:
> java.lang.NullPointerException
> ...
> org.apache.camel.impl.BridgeExceptionHandlerToErrorHandler.handleException(BridgeExceptionHandlerToErrorHandler.java:53)
> org.apache.camel.impl.DefaultConsumer.handleException(DefaultConsumer.java:112)
> org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:303)
> org.apache.camel.component.file.remote.RemoteFileConsumer.processExchange(RemoteFileConsumer.java:94)
> org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:189)
> org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:155)
> org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:139)
> ...
> Thanks.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message