Going to the debug log level did not produce any additional output unfortunately. This isn't really a problem though since I would expect it to fail - it is supposed to be connected to a group chat but is still failing to join the chat room on startup, although it does log into the Openfire server. Maybe this failure to join the chat room isn't surprising either since I've guessed at some of the syntax.
In an additional note, "mvn jbi:projectDeploy" does not replace my sample. I have to shutdown servicemix, and go and delete the folder in data\smx\service-assemblies, restart, and then I can redeploy successfully with the maven command. Not sure where to go from here. I have used smack to add the XMPP connectivity to the application I want to connect to an ESB, via a chat room, so I am familiar with the smack api. Maybe I need to go to the Servicemix source code, or maybe the Servicemix modules for XMPP just aren't quite fully cooked and I need to learn to write deeper plug-ins for it to achieve my goal. The Servicemix project looks fantastic, by the way. I'd sure like this to work! Any advice? Thanks! Gert Vanthienen wrote: > > jsexton0, > > It's hard to tell from this log output what's going wrong. Could you > try setting the log level to DEBUG to see if this gives you more > information? I don't see anything in the code for specifying an > additional password when connect to a chat room -- feel free to raise > JIRA for this if you need this feature. > > Gert > > jsexton0 wrote: >> 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. >> > > > > ----- > --- > Gert Vanthienen > http://www.anova.be > -- View this message in context: http://www.nabble.com/XMPP-tp17412424p17496219.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
