You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Peter Shen <pe...@powere2e.com> on 2010/10/27 13:08:32 UTC
FilePoller Concurrent
Hi ServiceMix users,
I'm a newbie, evaluating ServiceMix (3.3.1),
I developed a sample program,
which use a FilePoller to send EDI to JMS, and distribute it to a
FileSender and database.
The xbean looks like:
<file:poller service="esb:filePoller"
endpoint="filePoller"
targetService="esb:JMSProviderService"
targetEndpoint="topicWriter"
file="/home/xxx/EDI/C4/"
archive ="/home/xxx/EDI/archive/"
period="200" marshaler="#EDI2XMLMarshaler">
</file:poller>
Well, it runs very well, when I put one file in the source folder,
but when I put 20 or more files once, then I got lots of errors and only
very few files populated successfully.
The followings are the errors I got:
java.lang.NullPointerException
at com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:751)
at
com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:341)
at
org.apache.servicemix.soap.util.stax.StaxUtil.createReader(StaxUtil.java:76)
.................................
17:43:06,796 | ERROR | pool-flow.seda.servicemix-jms-thread-1 |
JmsComponent | emix.common.AsyncBaseLifeCycle 537 | Error
processing exchange InOnly[
..........................................................
17:43:06,796 | WARN | pool-flow.seda.servicemix-jms-thread-4 |
FileComponent | icemix.file.FilePollerEndpoint 430 | Message
in file /home/xxx/EDI/C4/PO_10A060002_1.txt could not be handled
successfully: null
java.lang.NullPointerException
at com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:751)
I searched the maillist and forum, it is a lock manager problem, isn't it?
or could you anyone give me some tips how I can solve it?
Thanks in advance.
Thanks and regards
Peter Shen