jsexton0 wrote: > > I just realized that I must be even more off base than I thought. My > attempt at the original tutorial loaded fine, but it's actually not > copying xml files from poller to sender. I'm unfortunately using Windows > for the moment, is there an slash direction or escape issue in the > directories? Thanks > > <beans xmlns:file="http://servicemix.apache.org/file/1.0" > xmlns:tut="urn:servicemix:tutorial"> > <file:sender service="tut:file" endpoint="sender" > directory="file:///c:/sender/"> > <property name="marshaler"> > <bean > class="org.apache.servicemix.components.util.BinaryFileMarshaler" /> > </property> > </file:sender> > <file:poller service="tut:file" endpoint="poller" > file="file:///c:/poller/" > targetService="tut:file" > targetEndpoint="sender"/> > </beans> >
On this, for some reason it was using directories on the servicemix drive instead of c:\, and it was working perfectly. So, moving on, I created a separate XMPP SU and tried to send the file to that. This comes close to working. It connects to the XMPP server (Openfire) OK, but does not join the chat room. No error messages logged. Then when I place a file in the polled directory, I get an interesting exception. I think I could really use some information on the layout XMPP xbean files need. I may have it wrong. Files: <beans xmlns:file="http://servicemix.apache.org/file/1.0" xmlns:tut="urn:servicemix:tutorial"> <file:sender service="tut:file" endpoint="sender" directory="file:/sender/"> <property name="marshaler"> <bean class="org.apache.servicemix.components.util.BinaryFileMarshaler" /> </property> </file:sender> <file:poller service="tut:file" endpoint="poller" file="file:/poller/" targetService="tut:file" targetEndpoint="xmpp"/> </beans> <beans xmlns:xmpp="http://servicemix.apache.org/xmpp/1.0" xmlns:tut="urn:servicemix:tutorial"> <xmpp:groupChatEndpoint service="tut:file" endpoint="xmpp" uri="xmpp://[EMAIL PROTECTED]" password="mypassword" room="[EMAIL PROTECTED]"/> </beans> Any info on the format of the XMPP xbean file for a chat room would be very appreciated! The above logs in OK, but does not join the room, no errors thrown. Is there a way to specify the room's password? Then when the poller picks up a file, I get this: 14:06:13,806 | ERROR | pool-flow.seda.servicemix-xmpp-thread-1 | XMPPComponent | ervicemix.common.BaseLifeCycle 48 | Error processing exchange InOnly[ id: ID:192.168.15.27-11a1799cf14-8:0 status: Done role: provider service: {urn:servicemix:tutorial}file endpoint: xmpp in: Unable to display: java.io.IOException: Stream closed ] java.lang.IllegalStateException: component is not owner at org.apache.servicemix.jbi.messaging.MessageExchangeImpl.setStatus(MessageExchangeImpl.java:251) at org.apache.servicemix.common.endpoints.SimpleEndpoint.done(SimpleEndpoint.java:77) at org.apache.servicemix.common.endpoints.ProviderEndpoint.process(ProviderEndpoint.java:101) at org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538) at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490) at org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46) at org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610) at org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170) 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) 14:06:13,837 | ERROR | pool-flow.seda.servicemix-xmpp-thread-1 | XMPPComponent | ervicemix.common.BaseLifeCycle 60 | Error setting exchange status to ERROR java.lang.IllegalStateException: component is not owner when trying to set error: java.lang.IllegalStateException: component is not owner at org.apache.servicemix.jbi.messaging.MessageExchangeImpl.setError(MessageExchangeImpl.java:264) at org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:57) at org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610) at org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170) 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) Caused by: java.lang.IllegalStateException: component is not owner at org.apache.servicemix.jbi.messaging.MessageExchangeImpl.setStatus(MessageExchangeImpl.java:251) at org.apache.servicemix.common.endpoints.SimpleEndpoint.done(SimpleEndpoint.java:77) at org.apache.servicemix.common.endpoints.ProviderEndpoint.process(ProviderEndpoint.java:101) at org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538) at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490) at org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46) ... 7 more One final think, it seems like I have to stop servicemix, go and delete the deployment, restart and redeploy. Shouldn't I be able to redeploy and re-init a SA without doing that? Thanks again. -- View this message in context: http://www.nabble.com/XMPP-tp17412424p17441108.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
