L.S.,

It looks like you have run into https://issues.apache.org/activemq/browse/SM-1456. We should get that issue fixed ASAP, but in the meanwhile you can work around this issue by removing the <sm:statistics statsInterval="10" dumpStats="true" /> line from conf/servicemix.xml (or commenting the line) to disable the StatisticsService that is throwing this exception.

Regards,

Gert

asilchenko wrote:
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
]


Reply via email to