Hi Ruwan,
FIX message is in XML format and the previous mail has reformat the message
content. I have attached the correct message.
Asanka A.
Asanka Abeysinghe
----------------------------------------
> Date: Mon, 23 Jun 2008 11:29:02 +0530
> From: [EMAIL PROTECTED]
> To: [email protected]; [EMAIL PROTECTED]
> Subject: Re: Synapse-1.2 Exception when using XSLT mediator
>
> Hi AsankaA,
>
> Your message (FIX) is not seem to be XML, or is this a formatting problem?
>
> XSLT can only deal with XML messages as the input.
>
> Thanks,
> Ruwan
>
> On Mon, Jun 23, 2008 at 9:45 AM, Asanka Abeysinghe
> wrote:
>
>>
>> Hi,
>> My requirement is to transform a SOAP message that stores FIX information
>> in the payload to another structure using a XSLT mediator. Original message
>> structure looks like following, which contains repeating groups, CDATA and
>> it got siblings for the first child element after the SOAP body.
>>
>>
>>
>>
>>
>> FIX.4.0
>> 136
>> 3
>> 8
>> EXEC
>> 20080618-08:41:56
>> SYNAPSE
>>
>>
>> 12.3
>> 0
>> 12.3
>> 100
>> 2
>> 100 GOOG
>>
>>
>> 041
>>
>>
>>
>>
>>
>> Configuration file and the xslt file used is attached. When the input
>> message comes, application throws the following exception before doing any
>> transformation.
>>
>> 2008-06-19 23:20:44,105 [127.0.1.1-asankaa-laptop] [fix-Worker-1] DEBUG
>> XSLTMediator Using byte array serialization for transformation
>> 2008-06-19 23:20:44,449 [127.0.1.1-asankaa-laptop] [fix-Worker-1] ERROR
>> XSLTMediator Unable to perform XSLT transformation using : xslt-key-req
>> against source XPath : s11:Body/child::*[position()=1] |
>> s12:Body/child::*[position()=1]
>> java.lang.NullPointerException
>> at java.lang.System.arraycopy(Native Method)
>> at
>> org.apache.xml.utils.FastStringBuffer.append(FastStringBuffer.java:663)
>> at
>> org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.characters(SAX2DTM.java:2082)
>> at
>> org.springframework.xml.stream.StaxStreamXmlReader.handleCharacters(StaxStreamXmlReader.java:121)
>> at
>> org.springframework.xml.stream.StaxStreamXmlReader.parseInternal(StaxStreamXmlReader.java:89)
>> at
>> org.springframework.xml.stream.AbstractStaxXmlReader.parse(AbstractStaxXmlReader.java:68)
>>
>> Appreciate your comments to solve this problem.
>> Asanka A .
>>
>>
>>
>>
>> _________________________________________________________________
>> Connect to the next generation of MSN Messenger
>>
>> http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline
>>
>
>
>
> --
> Ruwan Linton
> http://wso2.org - "Oxygenating the Web Services Platform"
> http://ruwansblog.blogspot.com/
_________________________________________________________________
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<message inSession="FIX.4.0:SYNAPSE->BANZAI" counter="1">
<header>
<field id="8"><![CDATA[FIX.4.0]]></field>
<field id="9"><![CDATA[104]]></field>
<field id="34"><![CDATA[2]]></field>
<field id="35"><![CDATA[D]]></field>
<field id="49"><![CDATA[BANZAI]]></field>
<field id="52"><![CDATA[20080616-12:13:14]]></field>
<field id="56"><![CDATA[SYNAPSE]]></field>
</header>
<body>
<field id="11"><![CDATA[1213618394140]]></field>
<field id="21"><![CDATA[1]]></field>
<field id="38"><![CDATA[100]]></field>
<field id="40"><![CDATA[1]]></field>
<field id="54"><![CDATA[1]]></field>
<field id="55"><![CDATA[SUNW]]></field>
<field id="59"><![CDATA[0]]></field>
</body>
<trailer>
<field id="10"><![CDATA[226]]></field>
</trailer>
</message>
</soapenv:Body>
</soapenv:Envelope>