You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Noseda Anne (JIRA)" <ji...@apache.org> on 2007/10/05 11:10:23 UTC

[jira] Created: (SM-1093) NPE - FTP Sender Endpoint

NPE - FTP Sender Endpoint
-------------------------

                 Key: SM-1093
                 URL: https://issues.apache.org/activemq/browse/SM-1093
             Project: ServiceMix
          Issue Type: Bug
          Components: servicemix-ftp
    Affects Versions: 3.1.1
         Environment: Windows XP / Servicemix 3.1.1
            Reporter: Noseda Anne


FTP Sender Endpoint config :

 <ftp:sender service="cosu:FtpService"
            endpoint="FtpEndpoint"
            overwrite="true"
            uri="ftp://root:etnic_admin@sinternet29c.cfwb.be/usr/ftp/cosu" />

Error Log :

ERROR - FtpComponent                   - Error processing exchange InOnly[
  id: ID:192.168.80.76-1156f58bd83-2:1
  status: Active
  role: provider
  service: {http://www.etnic.be/janus/test/cosu}FtpService
  endpoint: FtpEndpoint
  in: <?xml version="1.0" encoding="UTF-8"?><ftpResult>0123456789;1;MED
9876543210;1;ING
</ftpResult>
]
java.lang.NullPointerException
        at org.apache.servicemix.ftp.FtpSenderEndpoint.processInOnly(FtpSenderEndpoint.java:176)
        at org.apache.servicemix.common.endpoints.ProviderEndpoint.process(ProviderEndpoint.java:100)
        at org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:489)
        at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:441)
        at org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
        at org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:595)
        at org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:174)
        at org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:176)
        at org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
        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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SM-1093) NPE - FTP Sender Endpoint

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40285 ] 

Guillaume Nodet commented on SM-1093:
-------------------------------------

I suppose there is a problem connecting to the ftp server, so that an exception is thrown, but there is this nPE in the finally block which hide the exception :-(

> NPE - FTP Sender Endpoint
> -------------------------
>
>                 Key: SM-1093
>                 URL: https://issues.apache.org/activemq/browse/SM-1093
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-ftp
>    Affects Versions: 3.1.1
>         Environment: Windows XP / Servicemix 3.1.1
>            Reporter: Noseda Anne
>
> FTP Sender Endpoint config :
>  <ftp:sender service="cosu:FtpService"
>             endpoint="FtpEndpoint"
>             overwrite="true"
>             uri="ftp://root:etnic_admin@sinternet29c.cfwb.be/usr/ftp/cosu" />
> Error Log :
> ERROR - FtpComponent                   - Error processing exchange InOnly[
>   id: ID:192.168.80.76-1156f58bd83-2:1
>   status: Active
>   role: provider
>   service: {http://www.etnic.be/janus/test/cosu}FtpService
>   endpoint: FtpEndpoint
>   in: <?xml version="1.0" encoding="UTF-8"?><ftpResult>0123456789;1;MED
> 9876543210;1;ING
> </ftpResult>
> ]
> java.lang.NullPointerException
>         at org.apache.servicemix.ftp.FtpSenderEndpoint.processInOnly(FtpSenderEndpoint.java:176)
>         at org.apache.servicemix.common.endpoints.ProviderEndpoint.process(ProviderEndpoint.java:100)
>         at org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:489)
>         at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:441)
>         at org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>         at org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:595)
>         at org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:174)
>         at org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:176)
>         at org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>         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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SM-1093) NPE - FTP Sender Endpoint

Posted by "Gert Vanthienen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1093?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gert Vanthienen resolved SM-1093.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 3.1.3

Right you are, missed that one...  

It was already fixed in 3.2 while adding the rename-after-upload feature.  Here is the fix for the 3.1.3 branch: http://svn.apache.org/viewvc?view=rev&revision=582204

> NPE - FTP Sender Endpoint
> -------------------------
>
>                 Key: SM-1093
>                 URL: https://issues.apache.org/activemq/browse/SM-1093
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-ftp
>    Affects Versions: 3.1.1
>         Environment: Windows XP / Servicemix 3.1.1
>            Reporter: Noseda Anne
>             Fix For: 3.1.3
>
>
> FTP Sender Endpoint config :
>  <ftp:sender service="cosu:FtpService"
>             endpoint="FtpEndpoint"
>             overwrite="true"
>             uri="ftp://root:etnic_admin@sinternet29c.cfwb.be/usr/ftp/cosu" />
> Error Log :
> ERROR - FtpComponent                   - Error processing exchange InOnly[
>   id: ID:192.168.80.76-1156f58bd83-2:1
>   status: Active
>   role: provider
>   service: {http://www.etnic.be/janus/test/cosu}FtpService
>   endpoint: FtpEndpoint
>   in: <?xml version="1.0" encoding="UTF-8"?><ftpResult>0123456789;1;MED
> 9876543210;1;ING
> </ftpResult>
> ]
> java.lang.NullPointerException
>         at org.apache.servicemix.ftp.FtpSenderEndpoint.processInOnly(FtpSenderEndpoint.java:176)
>         at org.apache.servicemix.common.endpoints.ProviderEndpoint.process(ProviderEndpoint.java:100)
>         at org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:489)
>         at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:441)
>         at org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>         at org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:595)
>         at org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:174)
>         at org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:176)
>         at org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>         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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SM-1093) NPE - FTP Sender Endpoint

Posted by "Gert Vanthienen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40283 ] 

Gert Vanthienen commented on SM-1093:
-------------------------------------

That would be on the line that says:
{code}
            client.completePendingCommand();
{code}

Unsure how the client object can be null on that line... Is there any additional information in the logs before that?  Can you try setting the logging level to DEBUG for org.apache.servicemix.ftp, so we can figure out what exactly has been done by the sender endpoint?

> NPE - FTP Sender Endpoint
> -------------------------
>
>                 Key: SM-1093
>                 URL: https://issues.apache.org/activemq/browse/SM-1093
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-ftp
>    Affects Versions: 3.1.1
>         Environment: Windows XP / Servicemix 3.1.1
>            Reporter: Noseda Anne
>
> FTP Sender Endpoint config :
>  <ftp:sender service="cosu:FtpService"
>             endpoint="FtpEndpoint"
>             overwrite="true"
>             uri="ftp://root:etnic_admin@sinternet29c.cfwb.be/usr/ftp/cosu" />
> Error Log :
> ERROR - FtpComponent                   - Error processing exchange InOnly[
>   id: ID:192.168.80.76-1156f58bd83-2:1
>   status: Active
>   role: provider
>   service: {http://www.etnic.be/janus/test/cosu}FtpService
>   endpoint: FtpEndpoint
>   in: <?xml version="1.0" encoding="UTF-8"?><ftpResult>0123456789;1;MED
> 9876543210;1;ING
> </ftpResult>
> ]
> java.lang.NullPointerException
>         at org.apache.servicemix.ftp.FtpSenderEndpoint.processInOnly(FtpSenderEndpoint.java:176)
>         at org.apache.servicemix.common.endpoints.ProviderEndpoint.process(ProviderEndpoint.java:100)
>         at org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:489)
>         at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:441)
>         at org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>         at org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:595)
>         at org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:174)
>         at org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:176)
>         at org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>         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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.