ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » An invalid XML character (Unicode: 0x1f) was found in the pr

Post new topic  Reply to topic
 An invalid XML character (Unicode: 0x1f) was found in the pr « View previous topic :: View next topic » 
Author Message
sankritya
PostPosted: Thu Sep 02, 2010 8:24 am    Post subject: An invalid XML character (Unicode: 0x1f) was found in the pr Reply with quote

Centurion

Joined: 14 Feb 2008
Posts: 100

Hi All,


I am using Broker and Toolkit V 6.1.0.7 for creating a Web Service. Message flow is like
SoapInput->compute1->SoapRequest->compute2->Reply.

I am getting the following error while running the flow

Insert
Type:INTEGER:5
Text:CHARACTER:POST / HTTP/1.1

RecoverableException
File:CHARACTER:F:\build\S610_P\src\WebServices\WSLibrary\ImbSOAPRequestNode.cpp
Line:INTEGER:1220
Function:CHARACTER:ImbSOAPRequestNode::requestData
Type:CHARACTER:
Name:CHARACTER:
Label:CHARACTER:
Catalog:CHARACTER:BIPv610
Severity:INTEGER:3
Number:INTEGER:3701
Text:CHARACTER:Error Making SOAP JNI Call: Axis2Requester_processResponseMessageSync
Insert
Type:INTEGER:5
Text:CHARACTER:Axis2Requester_processResponseMessageSync
Insert
Type:INTEGER:5
Text:CHARACTER:org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException: An invalid XML character (Unicode: 0x1f) was found in the prolog of the document.
Insert
Type:INTEGER:5
Text:CHARACTER:Frame : 0 org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException: An invalid XML character (Unicode: 0x1f) was found in the prolog of the document.
@: org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:249)
@: org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:156)
@: org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSOAPModelBuilder.java:105)
@: com.ibm.broker.axis2.SoapUtilities.createSOAPMessage(SoapUtilities.java:2113)
@: com.ibm.broker.axis2.SoapUtilities.createSOAPMessage(SoapUtilities.java:1831)
@: com.ibm.broker.axis2.Axis2Requester.processResponseMessageSync(Axis2Requester.java:1054)
@: com.ibm.broker.plugin.MbOutputTerminal._propagate(Native Method)
@: com.ibm.broker.plugin.MbOutputTerminal.propagate(MbOutputTerminal.java:103)
@: com.ibm.broker.soap.SoapExtractNode.evaluate(SoapExtractNode.java:178)
@: com.ibm.broker.plugin.MbNode.evaluate(MbNode.java:1476)
Frame : 1 javax.xml.stream.XMLStreamException: An invalid XML character (Unicode: 0x1f) was found in the prolog of the document.
@: com.ibm.xml.xlxp.api.stax.msg.StAXMessageProvider.throwXMLStreamException(StAXMessageProvider.java:6
@: com.ibm.xml.xlxp.api.stax.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:535)
@: com.ibm.xml.xlxp.api.stax.XMLInputFactoryImpl$XMLStreamReaderProxy.next(XMLInputFactoryImpl.java:173)
@: org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:506)
@: org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:161)
@: org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:156)
@: org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSOAPModelBuilder.java:105)
@: com.ibm.broker.axis2.SoapUtilities.createSOAPMessage(SoapUtilities.java:2113)
@: com.ibm.broker.axis2.SoapUtilities.createSOAPMessage(SoapUtilities.java:1831)
@: com.ibm.broker.axis2.Axis2Requester.processResponseMessageSync(Axis2Requester.java:1054)
@: com.ibm.broker.plugin.MbOutputTerminal._propagate(Native Method)
@: com.ibm.broker.plugin.MbOutputTerminal.propagate(MbOutputTerminal.java:103)
@: com.ibm.broker.soap.SoapExtractNode.evaluate(SoapExtractNode.java:178)
@: com.ibm.broker.plugin.MbNode.evaluate(MbNode.java:1476)


and Message comes out from the Fault Terminal of the SoapRequest node.
Strangely the same flow works in the Broker version of 6.1.0.4. I captured the message going to the SOAP Request node in a Queue. But it had nothing abnormal. Then I commented the copy message header from the compute1. It is working fine now even in 6.1.0.7.

Is it happening because the Properties and http Input header of the SOAP Input are not getting changed according to WSDL defined in SOAP Request node. So if no message headers come from compute1 then SOAP Request node creates the default headers but when it receives the headers it is not replacing them properly?
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Sep 02, 2010 8:32 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

The error is being thrown trying to process the response.

You need to take a network level trace between the request node and the service being invoked and see if the service you're calling is returning a bad response.
Back to top
View user's profile Send private message
sankritya
PostPosted: Thu Sep 02, 2010 8:38 am    Post subject: Reply with quote

Centurion

Joined: 14 Feb 2008
Posts: 100

For that do I need to use the net sniffers? We are not allowed to install a sniffer javascript:emoticon('')

How is this related to copy message headers?
Back to top
View user's profile Send private message
Amitha
PostPosted: Thu Sep 02, 2010 8:45 am    Post subject: Reply with quote

Voyager

Joined: 20 Nov 2009
Posts: 80
Location: Newyork

You can use TCP Monitor available on on Eclipse. Run the TCP Monitor on a port and route the SoapRequest to TCP Monitor port and see the message exchanged.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » An invalid XML character (Unicode: 0x1f) was found in the pr
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.