You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by speed <su...@gmail.com> on 2006/07/17 20:30:46 UTC

Please Help: FilePoller->StaticRecipientList throws NullPointer exceptio

Hi All,

I am using, 3.0-M2-incubating with Java 1.4 on Windows XP.

When FilePoller is configured to work with "static-recipient-list" it throws
series of "nullPointerException".  Although, everything works well, but the
log file contains lots of error messages.

Can someone please explain what's happening here and how to get rid of these
annoying error messages.

Here is servicemix.xml snippet:

<sm:activationSpec componentName="filePoller" service="foo:filePoller"
destinationService="foo:recipients">
		  		<sm:component>
			        <bean class="org.apache.servicemix.components.vfs.FilePoller"> 
			        <property name="workManager" ref="workManager"/> 
			        <property name="deleteFile" value="false"/>
        			<property name="path"
value="ftp://userid:password@ftp.myhost.com/test/incoming/vendor/"/>
			        <property name="period" value="86400000"/>
			        <property name="marshaler" ref="marshaler"/> 
			        </bean>
		        </sm:component> 
	      	</sm:activationSpec>

      		<sm:activationSpec> 
        		<sm:component> 
          			<eip:component> 
            			<eip:endpoints> 
	                        <eip:static-recipient-list service="foo:recipients"
endpoint="endpoint"> 
	                          <eip:recipients>
	                          	<eip:exchange-target service="foo:fileWriter" /> 
<!-- archive -->
	                          	<eip:exchange-target
service="foo:xmltransformer" /> <!-- decrypt and transform to XML -->
	                          </eip:recipients> 
	                        </eip:static-recipient-list> 
			        	</eip:endpoints> 
			    	</eip:component> 
				</sm:component> 
			</sm:activationSpec>

Error message:

20:08:26,056 | DEBUG | Thread-11  | DeliveryChannelImpl      |
.messaging.DeliveryChannelImpl  343 | Sent: null 
20:08:26,056 | DEBUG | Thread-11  | MessageExchangeImpl      |
.messaging.MessageExchangeImpl  742 | Error caught in toString 
java.lang.NullPointerException 
        at
org.apache.servicemix.jbi.jaxp.StringSource.getInputStream(StringSource.java:56) 
        at
org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMSourceFromStream(SourceTransformer.java:221) 
        at
org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMSource(SourceTransformer.java:138) 
        at
org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMNode(SourceTransformer.java:280) 
        at
org.apache.servicemix.jbi.messaging.MessageExchangeImpl.toString(MessageExchangeImpl.java:695) 
        at java.lang.String.valueOf(String.java:2131) 
        at java.lang.StringBuffer.append(StringBuffer.java:370) 
        at
org.apache.servicemix.jbi.nmr.DefaultBroker.resolveAddress(DefaultBroker.java:390) 
        at
org.apache.servicemix.jbi.nmr.DefaultBroker.sendExchangePacket(DefaultBroker.java:286) 
        at
org.apache.servicemix.jbi.container.JBIContainer.sendExchange(JBIContainer.java:713) 
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.doSend(DeliveryChannelImpl.java:374) 
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.send(DeliveryChannelImpl.java:410) 
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.sendConsumerExchange(AsyncBaseLifeCycle.java:447) 
        at org.apache.servicemix.eip.EIPEndpoint.send(EIPEndpoint.java:202) 
        at
org.apache.servicemix.eip.patterns.StaticRecipientList.processAsync(StaticRecipientList.java:155) 
        at
org.apache.servicemix.eip.EIPEndpoint.process(EIPEndpoint.java:238) 
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:397) 
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:42) 
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:622) 
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:168) 
        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:226) 
        at
org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:291) 
        at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source) 
        at java.lang.Thread.run(Thread.java:534) 
 
Thank You.

Sundeep
-- 
View this message in context: http://www.nabble.com/Please-Help%3A-FilePoller-%3EStaticRecipientList-throws-NullPointer-exceptio-tf1956379.html#a5365997
Sent from the ServiceMix - User forum at Nabble.com.