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
Priority: Minor
Attachments: 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.