I have created a service-assembly example from the tutorial (at
http://servicemix.apache.org/25-beginner-deploying-the-service-assembly.html).
My service-assembly example deploys/runs fine when there is no file to copy
from "sender" directory to "poller". When there is a file, the
service-assembly example is throwing a NullPointerException. Has anyone
seeing same/similar problem? This happens when test file gets copied from
"sender" directory to "poller". Please see details attached. Thank you.
INFO  - ServiceAssemblyLifeCycle       - Starting service assembly:
tutorial-sa
INFO  - ServiceUnitLifeCycle           - Initializing service unit:
tutorial-file-su
INFO  - ServiceUnitLifeCycle           - Starting service unit:
tutorial-file-su
WARN  - DeliveryChannelImpl            - Error calling listener: null
java.lang.NullPointerException
        at
org.apache.servicemix.jbi.monitoring.StatisticsService.onExchangeAccepted(StatisticsService.java:307)
        at
org.apache.servicemix.jbi.monitoring.StatisticsService$3.exchangeAccepted(StatisticsService.java:186)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:608)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)
[Fatal Error] :-1:-1: Premature end of file.
ERROR - FileComponent                  - Error processing exchange InOnly[
  id: ID:155.34.142.122-11d2655c21a-16:0
  status: Active
  role: provider
  service: {urn:servicemix:tutorial}file
  endpoint: sender
  in: Unable to display: java.io.IOException: Stream closed
]

-- 
View this message in context: 
http://www.nabble.com/Problem-testing-service-assembly-example-from-tutorial-tp20120288p20120288.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to