You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Chris Custine (JIRA)" <ji...@apache.org> on 2009/06/12 06:11:35 UTC

[jira] Commented: (SMXCOMP-556) NullPointerException activating FTP endpoint when setting client pool host /port.

    [ https://issues.apache.org/activemq/browse/SMXCOMP-556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52218#action_52218 ] 

Chris Custine commented on SMXCOMP-556:
---------------------------------------

Fix was accidentally included in http://fisheye6.atlassian.com/changelog/servicemix?cs=783962#componentsZ002fbindingsZ002fservicemix-ftpZ002ftrunkZ002fsrcZ002fmainZ002fjavaZ002forgZ002fapacheZ002fservicemixZ002fftpZ002fFtpPollerEndpoint.java

> NullPointerException activating FTP endpoint when setting client pool host /port.
> ---------------------------------------------------------------------------------
>
>                 Key: SMXCOMP-556
>                 URL: https://issues.apache.org/activemq/browse/SMXCOMP-556
>             Project: ServiceMix Components
>          Issue Type: Bug
>          Components: servicemix-ftp
>            Reporter: Greg Lucas
>            Assignee: Chris Custine
>            Priority: Minor
>         Attachments: SMXCOMP-556.diff, TestClientPoolNoURI.java
>
>
> The FTP Poller and Sender endpoints allow the URI to be configured in one of two mutually exclusive ways:
>  - set the URI directly via setUri
>  - create an FtpClientPool; set the host and port on the pool; then set the pool on the endpoint
> When using the second approach the endpoint throws a NPE during activate():
>        at org.apache.servicemix.common.AsyncBaseLifeCycle.init(AsyncBaseLifeCycle.java:211)
>        at org.apache.servicemix.common.SyncLifeCycleWrapper.init(SyncLifeCycleWrapper.java:44)
>        at org.apache.servicemix.jbi.framework.ComponentMBeanImpl.init(ComponentMBeanImpl.java:201)
>        at org.apache.servicemix.jbi.container.JBIContainer.activateComponent(JBIContainer.java:1201)
>        at org.apache.servicemix.jbi.container.JBIContainer.activateComponent(JBIContainer.java:1163)
>        at org.apache.servicemix.jbi.container.JBIContainer.activateComponent(JBIContainer.java:1122)
>        at org.apache.servicemix.jbi.container.JBIContainer.activateComponent(JBIContainer.java:1110)
>        at org.apache.servicemix.ftp.FtpClientPoolTest.testClientPool(FtpClientPoolTest.java:39)
>           (some stuff ignored...)
> Caused by: java.lang.NullPointerException
>        at org.apache.servicemix.ftp.FtpPollerEndpoint.getLocationURI(FtpPollerEndpoint.java:482)
>        at org.apache.servicemix.common.endpoints.ConsumerEndpoint.activate(ConsumerEndpoint.java:60)
>        at org.apache.servicemix.common.DefaultServiceUnit.init(DefaultServiceUnit.java:54)
>        at org.apache.servicemix.common.DefaultComponent.doInit(DefaultComponent.java:348)
>        at org.apache.servicemix.common.AsyncBaseLifeCycle.init(AsyncBaseLifeCycle.java:203)
>        ... 26 more

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