|ralp...@hitec.lu||Nov 8, 2007 5:02 am|
|Chad Gallemore||Nov 8, 2007 6:48 am|
|James Lorenzen||Nov 8, 2007 7:02 am|
|Brian O'Neill||Nov 8, 2007 7:16 am|
|James Lorenzen||Nov 8, 2007 7:33 am|
|Chad Gallemore||Nov 8, 2007 7:58 am|
|ralp...@hitec.lu||Nov 9, 2007 1:16 am|
|Chad Gallemore||Nov 9, 2007 7:23 am|
|Chad Gallemore||Nov 9, 2007 10:42 am|
|Subject:||Problem with xmppbc examples|
|Date:||Nov 8, 2007 5:02:39 am|
I tried to get your xmppbc examples to work and am running into problems, so I'm wondering if anyone of you can help.
I got the most recent version of the OpenESB-Bundle (Build 20071026) for testing and have set up Openfire and Spark accordingly. Building and deployment of the Inbound example also seems to work fine, and I do see the xmpp user displayed as online in Spark. However, an error occurs as soon as I try to actually send a message to the xmpp user. The error message displayed in NetBeans (in the GlassFish log) is as follows:
[...] Attempting to remove handler for key Uif4N-35-bob@localhost/spark Setting Delivery Channel on the Consumer Exchange Handler XMPP Consumer processing message[xmpp@localhost : bob@localhost/spark : Uif4N-35 : test message] [Fatal Error] :1:1: Content is not allowed in prolog. XMPP Consumer sending message to jbi service Pattern for exchange Id 49464383041587-19453-134138196716940044 is http://www.w3.org/2004/08/wsdl/in-only Failed to process In Only Message M Ex 49464383041587-19453-134138196716940044 java.lang.RuntimeException: Unable to parse WSDL 1.1 wrapper at com.sun.jbi.engine.bpel.core.bpel.engine.impl.JBIMessageImpl.constructJB IMessage(JBIMessageImpl.java:323) at com.sun.jbi.engine.bpel.core.bpel.engine.impl.JBIMessageImpl.<init>(JBIM essageImpl.java:208) at com.sun.jbi.engine.bpel.EngineHelper.createWSMessage(EngineHelper.java:4 99) at com.sun.jbi.engine.bpel.BPELSEInOutThread.processRequest(BPELSEInOutThre ad.java:525) at com.sun.jbi.engine.bpel.BPELSEInOutThread.processMsgEx(BPELSEInOutThread .java:291) at com.sun.jbi.engine.bpel.BPELSEInOutThread.run(BPELSEInOutThread.java:160 ) Caused by: com.sun.jbi.nms.wsdl11wrapper.WrapperProcessingException: The normalized message contains less parts than are defined in the WSDL message definition at com.sun.jbi.nms.wsdl11wrapper.impl.WrapperParserImpl.parse(WrapperParser Impl.java:142) at com.sun.jbi.engine.bpel.core.bpel.engine.impl.JBIMessageImpl.constructJB IMessage(JBIMessageImpl.java:295) ... 5 more Setting MessageEx id 49464383041587-19453-134138196716940044 with error: Unable to parse WSDL 1.1 wrapper
The sent message ("test message") obviously reaches it's destination, but is then failed to be parsed as intented, as it seems. The first error message (Content is not allowed in prolog) seems to point to a format error in an XML file, but I don't really know where to look. The output file (C:\temp\xmpp2.log) does also not exist afterwards, by the way.
FYI, I didn't change anything in the project files I got from https://xmpp-bc.dev.java.net/downloads/demos/XMPP_Inbound_Demo.zip, except for setting the domain to localhost in the inboundXmppWsdl file.
Any help would be appreciated.
Cheers, Ralph Weires
PS: I also don't receive a message in Spark when using the Outbound example, but first things first...
CONFIDENTIALITY: This e-mail and any attachments are confidential and may also
be privileged. If you are not the designated recipient, please notify the sender immediately by
reply e-mail and destroy all copies (digital and paper). Any unauthorized disclosure, distribution, copying, storage or use of the
information contained in this e-mail or any attachments is strictly prohibited
and may be unlawful.