You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@synapse.apache.org by Daniel Mc Iver <da...@lagan.com> on 2008/07/28 23:53:35 UTC

Transform Problem s11:Body/child::*[position()=1] | s12:Body/child::*[position()=1]

Hi,

I'm trying to use the following to transform a message picked up from JMS:

<definitions xmlns="http://ws.apache.org/ns/synapse">

               <localEntry key="xslt-key-req" src="file:repository/conf/sample/resources/transform/add_note.xslt"/>

               <sequence name="updatecase_proxy">
                              <property action="set" name="OUT_ONLY" value="true"/>
                              <log level="full"/>
                              <header name="Action" value="urn:FWTCaseUpdate"/>
                              <log level="full"/>
                              <xslt key="xslt-key-req"/> <!--source="/soapenv:Envelope/soapenv:Body/ns1:CaseDetails"/-->
                              <log level="full"/>
                              <send>
                                             <endpoint>
                                                            <address uri="http://localhost:8080/lagan/services/FL" format="soap11"/>
                                             </endpoint>
                              </send>
               </sequence>

               <sequence name="out">
                              <log level="full"/>
                              <send/>
               </sequence>

               <proxy name="lagan_out" transports="jms">
                              <target inSequence="updatecase_proxy" outSequence="out"/>
               </proxy>
</definitions>

This is the add_note.xslt style sheet:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
               xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
               xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
               xmlns:ns1="http://www.lagan.com/wsdl/FLTypes"
               exclude-result-prefixes="fn">
<xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/>

<xsl:template match="/">
  <xsl:apply-templates select="//ns1:CaseDetails" />
</xsl:template>

<xsl:template match="ns1:CaseDetails">

               <flt:FWTCaseUpdate xmlns:flt="http://www.lagan.com/wsdl/FLTypes">
                              <flt:CaseReference><xsl:value-of select="ns1:CaseID"/></flt:CaseReference>
                              <NewNote>test note</NewNote>
               </flt:FWTCaseUpdate>

</xsl:template>
</xsl:stylesheet>

Here is the output from the log mediator above the transform (showing the payload) and the error message when I do the transform:

2008-07-28 16:42:47,343 [169.254.201.19-na-bpm-1] [JMSWorker-1]  INFO LogMediator To: , WSAction: urn:FWTCaseUpdate, SOAPAction: urn:FWTCaseUpdate, MessageID: ID:na-bpm-1-1530-1217268218406-0:0:12:1:1, Direction: request, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:CaseDetails xmlns:ns1="http://www.lagan.com/caseextender"><ns1:CaseID>101000001658</ns1:CaseID><ns1:Classification><ns1:Subject>Test Subject</ns1:Subject><ns1:SubjectId>101000000</ns1:SubjectId><ns1:Reason>Test Reason</ns1:Reason><ns1:ReasonId>101000000</ns1:ReasonId><ns1:Type>Test Type</ns1:Type><ns1:TypeId>101000000</ns1:TypeId></ns1:Classification><ns1:Title>Test Title</ns1:Title><ns1:ProcessDefinition><ns1:ProcessDefinitionID>101010006</ns1:ProcessDefinitionID><ns1:ProcessDefinitionName>Test PD</ns1:ProcessDefinitionName></ns1:ProcessDefinition><ns1:Object><ns1:ObjectRelationship>CaseTarget</ns1:ObjectRelationship><ns1:Type>None</ns1:Type></ns1:Object><ns1:Object><ns1:ObjectRelationship>InitiatedEnquiry</ns1:ObjectRelationship><ns1:InteractionChannel>Face2Face</ns1:InteractionChannel><ns1:Type>None</ns1:Type></ns1:Object><ns1:Description /><ns1:Queue>Integration Test</ns1:Queue><ns1:QueueId>101000004</ns1:QueueId><ns1:OpenedDate>2008-07-28T16:42:42</ns1:OpenedDate><ns1:Fields /><ns1:Status>Open</ns1:Status><ns1:ExternalCaseRef>101000001658</ns1:ExternalCaseRef><ns1:ChangeAuthority UserID="dan" UserName="" /><ns1:RequestID>bc2ced84-5ce5-11dd-8f9e-b5cfa6cc8429</ns1:RequestID><ns1:LastModifiedBy>dan</ns1:LastModifiedBy></ns1:CaseDetails></soapenv:Body></soapenv:Envelope>
2008-07-28 16:42:47,343 [169.254.201.19-na-bpm-1] [JMSWorker-1] DEBUG LogMediator End : Log mediator
2008-07-28 16:42:47,343 [169.254.201.19-na-bpm-1] [JMSWorker-1] DEBUG XSLTMediator Start : XSLT mediator
2008-07-28 16:42:47,343 [169.254.201.19-na-bpm-1] [JMSWorker-1] DEBUG XSLTMediator Using byte array serialization for transformation
2008-07-28 16:42:47,906 [169.254.201.19-na-bpm-1] [JMSWorker-1] DEBUG XSLTMediator Transformation completed - processing result
2008-07-28 16:42:47,906 [169.254.201.19-na-bpm-1] [JMSWorker-1] DEBUG XSLTMediator output method: xml; encoding: UTF-8
2008-07-28 16:42:47,906 [169.254.201.19-na-bpm-1] [JMSWorker-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]
org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
 at [row,col {unknown-source}]: [2,0]
               at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:249)
               at org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDocumentImpl.java:132)
               at org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:411)
               at org.apache.synapse.mediators.transform.XSLTMediator.performXSLT(XSLTMediator.java:368)
               at org.apache.synapse.mediators.transform.XSLTMediator.mediate(XSLTMediator.java:177)
               at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:58)
               at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:125)
               at org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:149)
               at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
               at org.apache.axis2.transport.jms.JMSMessageReceiver$Worker.run(JMSMessageReceiver.java:252)
               at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
               at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
               at java.lang.Thread.run(Unknown Source)
Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
 at [row,col {unknown-source}]: [2,0]
               at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:661)
               at com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2134)
               at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2040)
               at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
               at org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:506)
               at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:161)
               ... 12 more

Any ideas on what I'm doing wrong?

Thanks,

Daniel McIver


________________________________
The information in this message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this message by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, or distribution of the message, or any action or omission taken by you in reliance on it, is prohibited and may be unlawful. Please immediately contact the sender if you have received this message in error.

The views and opinions expressed in this email may not reflect the views and opinions of any member of Lagan Technologies Limited, or any of its subsidiaries.

Lagan Technologies Limited is a company registered in Northern Ireland with registration number NI 28773. The registered office of Lagan Technologies Limited is 209 Airport Road West, Belfast, Co. Antrim, BT3 9EZ.


RE: Transform Problem s11:Body/child::*[position()=1] | s12:Body/child::*[position()=1]

Posted by Daniel Mc Iver <da...@lagan.com>.
Hi Evanthika,

I removed the node from the stylesheet but still got the same error.

Thanks,

Dan

________________________________________
From: Evanthika Amarasiri [evanthika@wso2.com]
Sent: Monday, July 28, 2008 10:32 PM
To: user@synapse.apache.org
Subject: Re: Transform Problem s11:Body/child::*[position()=1] | s12:Body/child::*[position()=1]

Daniel,

Can you please remove the tag <NewNote>test note</NewNote> and run your
scenario once more and see whether you get the same error?

Thanks,
Evanthika


Daniel Mc Iver wrote:
> Hi,
>
> I'm trying to use the following to transform a message picked up from JMS:
>
> <definitions xmlns="http://ws.apache.org/ns/synapse">
>
>                <localEntry key="xslt-key-req" src="file:repository/conf/sample/resources/transform/add_note.xslt"/>
>
>                <sequence name="updatecase_proxy">
>                               <property action="set" name="OUT_ONLY" value="true"/>
>                               <log level="full"/>
>                               <header name="Action" value="urn:FWTCaseUpdate"/>
>                               <log level="full"/>
>                               <xslt key="xslt-key-req"/> <!--source="/soapenv:Envelope/soapenv:Body/ns1:CaseDetails"/-->
>                               <log level="full"/>
>                               <send>
>                                              <endpoint>
>                                                             <address uri="http://localhost:8080/lagan/services/FL" format="soap11"/>
>                                              </endpoint>
>                               </send>
>                </sequence>
>
>                <sequence name="out">
>                               <log level="full"/>
>                               <send/>
>                </sequence>
>
>                <proxy name="lagan_out" transports="jms">
>                               <target inSequence="updatecase_proxy" outSequence="out"/>
>                </proxy>
> </definitions>
>
> This is the add_note.xslt style sheet:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet version="2.0"
>                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>                xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
>                xmlns:ns1="http://www.lagan.com/wsdl/FLTypes"
>                exclude-result-prefixes="fn">
> <xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/>
>
> <xsl:template match="/">
>   <xsl:apply-templates select="//ns1:CaseDetails" />
> </xsl:template>
>
> <xsl:template match="ns1:CaseDetails">
>
>                <flt:FWTCaseUpdate xmlns:flt="http://www.lagan.com/wsdl/FLTypes">
>                               <flt:CaseReference><xsl:value-of select="ns1:CaseID"/></flt:CaseReference>
>                               <NewNote>test note</NewNote>
>                </flt:FWTCaseUpdate>
>
> </xsl:template>
> </xsl:stylesheet>
>
> Here is the output from the log mediator above the transform (showing the payload) and the error message when I do the transform:
>
> 2008-07-28 16:42:47,343 [169.254.201.19-na-bpm-1] [JMSWorker-1]  INFO LogMediator To: , WSAction: urn:FWTCaseUpdate, SOAPAction: urn:FWTCaseUpdate, MessageID: ID:na-bpm-1-1530-1217268218406-0:0:12:1:1, Direction: request, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:CaseDetails xmlns:ns1="http://www.lagan.com/caseextender"><ns1:CaseID>101000001658</ns1:CaseID><ns1:Classification><ns1:Subject>Test Subject</ns1:Subject><ns1:SubjectId>101000000</ns1:SubjectId><ns1:Reason>Test Reason</ns1:Reason><ns1:ReasonId>101000000</ns1:ReasonId><ns1:Type>Test Type</ns1:Type><ns1:TypeId>101000000</ns1:TypeId></ns1:Classification><ns1:Title>Test Title</ns1:Title><ns1:ProcessDefinition><ns1:ProcessDefinitionID>101010006</ns1:ProcessDefinitionID><ns1:ProcessDefinitionName>Test PD</ns1:ProcessDefinitionName></ns1:ProcessDefinition><ns1:Object><ns1:ObjectRelationship>CaseTarget</ns1:ObjectRelationship><ns1:Type>None</ns1:Type></ns1:Object><ns1:Object><ns1:ObjectRelationship>InitiatedEnquiry</ns1:ObjectRelationship><ns1:InteractionChannel>Face2Face</ns1:InteractionChannel><ns1:Type>None</ns1:Type></ns1:Object><ns1:Description /><ns1:Queue>Integration Test</ns1:Queue><ns1:QueueId>101000004</ns1:QueueId><ns1:OpenedDate>2008-07-28T16:42:42</ns1:OpenedDate><ns1:Fields /><ns1:Status>Open</ns1:Status><ns1:ExternalCaseRef>101000001658</ns1:ExternalCaseRef><ns1:ChangeAuthority UserID="dan" UserName="" /><ns1:RequestID>bc2ced84-5ce5-11dd-8f9e-b5cfa6cc8429</ns1:RequestID><ns1:LastModifiedBy>dan</ns1:LastModifiedBy></ns1:CaseDetails></soapenv:Body></soapenv:Envelope>
> 2008-07-28 16:42:47,343 [169.254.201.19-na-bpm-1] [JMSWorker-1] DEBUG LogMediator End : Log mediator
> 2008-07-28 16:42:47,343 [169.254.201.19-na-bpm-1] [JMSWorker-1] DEBUG XSLTMediator Start : XSLT mediator
> 2008-07-28 16:42:47,343 [169.254.201.19-na-bpm-1] [JMSWorker-1] DEBUG XSLTMediator Using byte array serialization for transformation
> 2008-07-28 16:42:47,906 [169.254.201.19-na-bpm-1] [JMSWorker-1] DEBUG XSLTMediator Transformation completed - processing result
> 2008-07-28 16:42:47,906 [169.254.201.19-na-bpm-1] [JMSWorker-1] DEBUG XSLTMediator output method: xml; encoding: UTF-8
> 2008-07-28 16:42:47,906 [169.254.201.19-na-bpm-1] [JMSWorker-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]
> org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
>  at [row,col {unknown-source}]: [2,0]
>                at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:249)
>                at org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDocumentImpl.java:132)
>                at org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:411)
>                at org.apache.synapse.mediators.transform.XSLTMediator.performXSLT(XSLTMediator.java:368)
>                at org.apache.synapse.mediators.transform.XSLTMediator.mediate(XSLTMediator.java:177)
>                at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:58)
>                at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:125)
>                at org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:149)
>                at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
>                at org.apache.axis2.transport.jms.JMSMessageReceiver$Worker.run(JMSMessageReceiver.java:252)
>                at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
>                at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
>                at java.lang.Thread.run(Unknown Source)
> Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
>  at [row,col {unknown-source}]: [2,0]
>                at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:661)
>                at com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2134)
>                at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2040)
>                at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
>                at org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:506)
>                at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:161)
>                ... 12 more
>
> Any ideas on what I'm doing wrong?
>
> Thanks,
>
> Daniel McIver
>
>
> ________________________________
> The information in this message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this message by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, or distribution of the message, or any action or omission taken by you in reliance on it, is prohibited and may be unlawful. Please immediately contact the sender if you have received this message in error.
>
> The views and opinions expressed in this email may not reflect the views and opinions of any member of Lagan Technologies Limited, or any of its subsidiaries.
>
> Lagan Technologies Limited is a company registered in Northern Ireland with registration number NI 28773. The registered office of Lagan Technologies Limited is 209 Airport Road West, Belfast, Co. Antrim, BT3 9EZ.
>
>
>

The information in this message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this message by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, or distribution of the message, or any action or omission taken by you in reliance on it, is prohibited and may be unlawful. Please immediately contact the sender if you have received this message in error.

The views and opinions expressed in this email may not reflect the views and opinions of any member of Lagan Technologies Limited, or any of its subsidiaries.

Lagan Technologies Limited is a company registered in Northern Ireland with registration number NI 28773. The registered office of Lagan Technologies Limited is 209 Airport Road West, Belfast, Co. Antrim, BT3 9EZ.


Re: Transform Problem s11:Body/child::*[position()=1] | s12:Body/child::*[position()=1]

Posted by Evanthika Amarasiri <ev...@wso2.com>.
Daniel,

Can you please remove the tag <NewNote>test note</NewNote> and run your 
scenario once more and see whether you get the same error?

Thanks,
Evanthika


Daniel Mc Iver wrote:
> Hi,
>
> I'm trying to use the following to transform a message picked up from JMS:
>
> <definitions xmlns="http://ws.apache.org/ns/synapse">
>
>                <localEntry key="xslt-key-req" src="file:repository/conf/sample/resources/transform/add_note.xslt"/>
>
>                <sequence name="updatecase_proxy">
>                               <property action="set" name="OUT_ONLY" value="true"/>
>                               <log level="full"/>
>                               <header name="Action" value="urn:FWTCaseUpdate"/>
>                               <log level="full"/>
>                               <xslt key="xslt-key-req"/> <!--source="/soapenv:Envelope/soapenv:Body/ns1:CaseDetails"/-->
>                               <log level="full"/>
>                               <send>
>                                              <endpoint>
>                                                             <address uri="http://localhost:8080/lagan/services/FL" format="soap11"/>
>                                              </endpoint>
>                               </send>
>                </sequence>
>
>                <sequence name="out">
>                               <log level="full"/>
>                               <send/>
>                </sequence>
>
>                <proxy name="lagan_out" transports="jms">
>                               <target inSequence="updatecase_proxy" outSequence="out"/>
>                </proxy>
> </definitions>
>
> This is the add_note.xslt style sheet:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet version="2.0"
>                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>                xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
>                xmlns:ns1="http://www.lagan.com/wsdl/FLTypes"
>                exclude-result-prefixes="fn">
> <xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/>
>
> <xsl:template match="/">
>   <xsl:apply-templates select="//ns1:CaseDetails" />
> </xsl:template>
>
> <xsl:template match="ns1:CaseDetails">
>
>                <flt:FWTCaseUpdate xmlns:flt="http://www.lagan.com/wsdl/FLTypes">
>                               <flt:CaseReference><xsl:value-of select="ns1:CaseID"/></flt:CaseReference>
>                               <NewNote>test note</NewNote>
>                </flt:FWTCaseUpdate>
>
> </xsl:template>
> </xsl:stylesheet>
>
> Here is the output from the log mediator above the transform (showing the payload) and the error message when I do the transform:
>
> 2008-07-28 16:42:47,343 [169.254.201.19-na-bpm-1] [JMSWorker-1]  INFO LogMediator To: , WSAction: urn:FWTCaseUpdate, SOAPAction: urn:FWTCaseUpdate, MessageID: ID:na-bpm-1-1530-1217268218406-0:0:12:1:1, Direction: request, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:CaseDetails xmlns:ns1="http://www.lagan.com/caseextender"><ns1:CaseID>101000001658</ns1:CaseID><ns1:Classification><ns1:Subject>Test Subject</ns1:Subject><ns1:SubjectId>101000000</ns1:SubjectId><ns1:Reason>Test Reason</ns1:Reason><ns1:ReasonId>101000000</ns1:ReasonId><ns1:Type>Test Type</ns1:Type><ns1:TypeId>101000000</ns1:TypeId></ns1:Classification><ns1:Title>Test Title</ns1:Title><ns1:ProcessDefinition><ns1:ProcessDefinitionID>101010006</ns1:ProcessDefinitionID><ns1:ProcessDefinitionName>Test PD</ns1:ProcessDefinitionName></ns1:ProcessDefinition><ns1:Object><ns1:ObjectRelationship>CaseTarget</ns1:ObjectRelationship><ns1:Type>None</ns1:Type></ns1:Object><ns1:Object><ns1:ObjectRelationship>InitiatedEnquiry</ns1:ObjectRelationship><ns1:InteractionChannel>Face2Face</ns1:InteractionChannel><ns1:Type>None</ns1:Type></ns1:Object><ns1:Description /><ns1:Queue>Integration Test</ns1:Queue><ns1:QueueId>101000004</ns1:QueueId><ns1:OpenedDate>2008-07-28T16:42:42</ns1:OpenedDate><ns1:Fields /><ns1:Status>Open</ns1:Status><ns1:ExternalCaseRef>101000001658</ns1:ExternalCaseRef><ns1:ChangeAuthority UserID="dan" UserName="" /><ns1:RequestID>bc2ced84-5ce5-11dd-8f9e-b5cfa6cc8429</ns1:RequestID><ns1:LastModifiedBy>dan</ns1:LastModifiedBy></ns1:CaseDetails></soapenv:Body></soapenv:Envelope>
> 2008-07-28 16:42:47,343 [169.254.201.19-na-bpm-1] [JMSWorker-1] DEBUG LogMediator End : Log mediator
> 2008-07-28 16:42:47,343 [169.254.201.19-na-bpm-1] [JMSWorker-1] DEBUG XSLTMediator Start : XSLT mediator
> 2008-07-28 16:42:47,343 [169.254.201.19-na-bpm-1] [JMSWorker-1] DEBUG XSLTMediator Using byte array serialization for transformation
> 2008-07-28 16:42:47,906 [169.254.201.19-na-bpm-1] [JMSWorker-1] DEBUG XSLTMediator Transformation completed - processing result
> 2008-07-28 16:42:47,906 [169.254.201.19-na-bpm-1] [JMSWorker-1] DEBUG XSLTMediator output method: xml; encoding: UTF-8
> 2008-07-28 16:42:47,906 [169.254.201.19-na-bpm-1] [JMSWorker-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]
> org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
>  at [row,col {unknown-source}]: [2,0]
>                at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:249)
>                at org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDocumentImpl.java:132)
>                at org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:411)
>                at org.apache.synapse.mediators.transform.XSLTMediator.performXSLT(XSLTMediator.java:368)
>                at org.apache.synapse.mediators.transform.XSLTMediator.mediate(XSLTMediator.java:177)
>                at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:58)
>                at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:125)
>                at org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:149)
>                at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
>                at org.apache.axis2.transport.jms.JMSMessageReceiver$Worker.run(JMSMessageReceiver.java:252)
>                at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
>                at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
>                at java.lang.Thread.run(Unknown Source)
> Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
>  at [row,col {unknown-source}]: [2,0]
>                at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:661)
>                at com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2134)
>                at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2040)
>                at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
>                at org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:506)
>                at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:161)
>                ... 12 more
>
> Any ideas on what I'm doing wrong?
>
> Thanks,
>
> Daniel McIver
>
>
> ________________________________
> The information in this message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this message by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, or distribution of the message, or any action or omission taken by you in reliance on it, is prohibited and may be unlawful. Please immediately contact the sender if you have received this message in error.
>
> The views and opinions expressed in this email may not reflect the views and opinions of any member of Lagan Technologies Limited, or any of its subsidiaries.
>
> Lagan Technologies Limited is a company registered in Northern Ireland with registration number NI 28773. The registered office of Lagan Technologies Limited is 209 Airport Road West, Belfast, Co. Antrim, BT3 9EZ.
>
>
>   



RE: Transform Problem s11:Body/child::*[position()=1] | s12:Body/child::*[position()=1]

Posted by Daniel Mc Iver <da...@lagan.com>.
Thanks a million Scott - that seems to have done the the trick.

Daniel McIver

________________________________________
From: Scott Hoggarth [scott.hoggarth@concur.com]
Sent: Monday, July 28, 2008 10:26 PM
To: user@synapse.apache.org
Subject: Re: Transform Problem s11:Body/child::*[position()=1] | s12:Body/child::*[position()=1]

I think the namespace in your XSLT is incorrect (though that's not what I
think the error is indicating).  Try this xslt; note I only changed ns1.

Scott Hoggarth

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
xmlns:ns1="http://www.lagan.com/caseextender" version="2.0"
exclude-result-prefixes="fn">
    <xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/>
    <xsl:template match="/">
        <xsl:apply-templates select="//ns1:CaseDetails"/>
    </xsl:template>
    <xsl:template match="ns1:CaseDetails">
        <flt:FWTCaseUpdate xmlns:flt="http://www.lagan.com/wsdl/FLTypes">
            <flt:CaseReference>
                <xsl:value-of select="ns1:CaseID"/>
            </flt:CaseReference>
            <NewNote>test note</NewNote>
        </flt:FWTCaseUpdate>
    </xsl:template>
</xsl:stylesheet>



On 7/28/08 4:53 PM, "Daniel Mc Iver" <da...@lagan.com> wrote:

> Hi,
>
> I'm trying to use the following to transform a message picked up from JMS:
>
> <definitions xmlns="http://ws.apache.org/ns/synapse">
>
>                <localEntry key="xslt-key-req"
> src="file:repository/conf/sample/resources/transform/add_note.xslt"/>
>
>                <sequence name="updatecase_proxy">
>                               <property action="set" name="OUT_ONLY"
> value="true"/>
>                               <log level="full"/>
>                               <header name="Action"
> value="urn:FWTCaseUpdate"/>
>                               <log level="full"/>
>                               <xslt key="xslt-key-req"/>
> <!--source="/soapenv:Envelope/soapenv:Body/ns1:CaseDetails"/-->
>                               <log level="full"/>
>                               <send>
>                                              <endpoint>
>                                                             <address
> uri="http://localhost:8080/lagan/services/FL" format="soap11"/>
>                                              </endpoint>
>                               </send>
>                </sequence>
>
>                <sequence name="out">
>                               <log level="full"/>
>                               <send/>
>                </sequence>
>
>                <proxy name="lagan_out" transports="jms">
>                               <target inSequence="updatecase_proxy"
> outSequence="out"/>
>                </proxy>
> </definitions>
>
> This is the add_note.xslt style sheet:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet version="2.0"
>                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>                xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
>                xmlns:ns1="http://www.lagan.com/wsdl/FLTypes"
>                exclude-result-prefixes="fn">
> <xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/>
>
> <xsl:template match="/">
>   <xsl:apply-templates select="//ns1:CaseDetails" />
> </xsl:template>
>
> <xsl:template match="ns1:CaseDetails">
>
>                <flt:FWTCaseUpdate
> xmlns:flt="http://www.lagan.com/wsdl/FLTypes">
>                               <flt:CaseReference><xsl:value-of
> select="ns1:CaseID"/></flt:CaseReference>
>                               <NewNote>test note</NewNote>
>                </flt:FWTCaseUpdate>
>
> </xsl:template>
> </xsl:stylesheet>
>
> Here is the output from the log mediator above the transform (showing the
> payload) and the error message when I do the transform:
>
> 2008-07-28 16:42:47,343 [169.254.201.19-na-bpm-1] [JMSWorker-1]  INFO
> LogMediator To: , WSAction: urn:FWTCaseUpdate, SOAPAction: urn:FWTCaseUpdate,
> MessageID: ID:na-bpm-1-1530-1217268218406-0:0:12:1:1, Direction: request,
> Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:C
> aseDetails
> xmlns:ns1="http://www.lagan.com/caseextender"><ns1:CaseID>101000001658</ns1:Ca
> seID><ns1:Classification><ns1:Subject>Test
> Subject</ns1:Subject><ns1:SubjectId>101000000</ns1:SubjectId><ns1:Reason>Test
> Reason</ns1:Reason><ns1:ReasonId>101000000</ns1:ReasonId><ns1:Type>Test
> Type</ns1:Type><ns1:TypeId>101000000</ns1:TypeId></ns1:Classification><ns1:Tit
> le>Test
> Title</ns1:Title><ns1:ProcessDefinition><ns1:ProcessDefinitionID>101010006</ns
> 1:ProcessDefinitionID><ns1:ProcessDefinitionName>Test
> PD</ns1:ProcessDefinitionName></ns1:ProcessDefinition><ns1:Object><ns1:ObjectR
> elationship>CaseTarget</ns1:ObjectRelationship><ns1:Type>None</ns1:Type></ns1:
> Object><ns1:Object><ns1:ObjectRelationship>InitiatedEnquiry</ns1:ObjectRelatio
> nship><ns1:InteractionChannel>Face2Face</ns1:InteractionChannel><ns1:Type>None
> </ns1:Type></ns1:Object><ns1:Description /><ns1:Queue>Integration
> Test</ns1:Queue><ns1:QueueId>101000004</ns1:QueueId><ns1:OpenedDate>2008-07-28
> T16:42:42</ns1:OpenedDate><ns1:Fields
> /><ns1:Status>Open</ns1:Status><ns1:ExternalCaseRef>101000001658</ns1:External
> CaseRef><ns1:ChangeAuthority UserID="dan" UserName=""
> /><ns1:RequestID>bc2ced84-5ce5-11dd-8f9e-b5cfa6cc8429</ns1:RequestID><ns1:Last
> ModifiedBy>dan</ns1:LastModifiedBy></ns1:CaseDetails></soapenv:Body></soapenv:
> Envelope>
> 2008-07-28 16:42:47,343 [169.254.201.19-na-bpm-1] [JMSWorker-1] DEBUG
> LogMediator End : Log mediator
> 2008-07-28 16:42:47,343 [169.254.201.19-na-bpm-1] [JMSWorker-1] DEBUG
> XSLTMediator Start : XSLT mediator
> 2008-07-28 16:42:47,343 [169.254.201.19-na-bpm-1] [JMSWorker-1] DEBUG
> XSLTMediator Using byte array serialization for transformation
> 2008-07-28 16:42:47,906 [169.254.201.19-na-bpm-1] [JMSWorker-1] DEBUG
> XSLTMediator Transformation completed - processing result
> 2008-07-28 16:42:47,906 [169.254.201.19-na-bpm-1] [JMSWorker-1] DEBUG
> XSLTMediator output method: xml; encoding: UTF-8
> 2008-07-28 16:42:47,906 [169.254.201.19-na-bpm-1] [JMSWorker-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]
> org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxEOFException: Unexpected
> EOF in prolog
>  at [row,col {unknown-source}]: [2,0]
>                at
> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:249)
>                at
> org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDocumentIm
> pl.java:132)
>                at
> org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilde
> r.java:411)
>                at
> org.apache.synapse.mediators.transform.XSLTMediator.performXSLT(XSLTMediator.j
> ava:368)
>                at
> org.apache.synapse.mediators.transform.XSLTMediator.mediate(XSLTMediator.java:
> 177)
>                at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator
> .java:58)
>                at
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.ja
> va:125)
>                at
> org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyService
> MessageReceiver.java:149)
>                at
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
>                at
> org.apache.axis2.transport.jms.JMSMessageReceiver$Worker.run(JMSMessageReceive
> r.java:252)
>                at
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTa
> sk(ThreadPoolExecutor.java:665)
>                at
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(T
> hreadPoolExecutor.java:690)
>                at java.lang.Thread.run(Unknown Source)
> Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
>  at [row,col {unknown-source}]: [2,0]
>                at
> com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:661)
>                at
> com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2134)
>                at
> com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2040)
>                at
> com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
>                at
> org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:5
> 06)
>                at
> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:161)
>                ... 12 more
>
> Any ideas on what I'm doing wrong?
>
> Thanks,
>
> Daniel McIver
>
>
> ________________________________
> The information in this message is confidential and may be legally privileged.
> It is intended solely for the addressee. Access to this message by anyone else
> is unauthorised. If you are not the intended recipient, any disclosure,
> copying, or distribution of the message, or any action or omission taken by
> you in reliance on it, is prohibited and may be unlawful. Please immediately
> contact the sender if you have received this message in error.
>
> The views and opinions expressed in this email may not reflect the views and
> opinions of any member of Lagan Technologies Limited, or any of its
> subsidiaries.
>
> Lagan Technologies Limited is a company registered in Northern Ireland with
> registration number NI 28773. The registered office of Lagan Technologies
> Limited is 209 Airport Road West, Belfast, Co. Antrim, BT3 9EZ.
>

The information in this message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this message by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, or distribution of the message, or any action or omission taken by you in reliance on it, is prohibited and may be unlawful. Please immediately contact the sender if you have received this message in error.

The views and opinions expressed in this email may not reflect the views and opinions of any member of Lagan Technologies Limited, or any of its subsidiaries.

Lagan Technologies Limited is a company registered in Northern Ireland with registration number NI 28773. The registered office of Lagan Technologies Limited is 209 Airport Road West, Belfast, Co. Antrim, BT3 9EZ.


Re: Transform Problem s11:Body/child::*[position()=1] | s12:Body/child::*[position()=1]

Posted by Scott Hoggarth <sc...@concur.com>.
I think the namespace in your XSLT is incorrect (though that's not what I
think the error is indicating).  Try this xslt; note I only changed ns1.

Scott Hoggarth

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
xmlns:ns1="http://www.lagan.com/caseextender" version="2.0"
exclude-result-prefixes="fn">
    <xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/>
    <xsl:template match="/">
        <xsl:apply-templates select="//ns1:CaseDetails"/>
    </xsl:template>
    <xsl:template match="ns1:CaseDetails">
        <flt:FWTCaseUpdate xmlns:flt="http://www.lagan.com/wsdl/FLTypes">
            <flt:CaseReference>
                <xsl:value-of select="ns1:CaseID"/>
            </flt:CaseReference>
            <NewNote>test note</NewNote>
        </flt:FWTCaseUpdate>
    </xsl:template>
</xsl:stylesheet>



On 7/28/08 4:53 PM, "Daniel Mc Iver" <da...@lagan.com> wrote:

> Hi,
> 
> I'm trying to use the following to transform a message picked up from JMS:
> 
> <definitions xmlns="http://ws.apache.org/ns/synapse">
> 
>                <localEntry key="xslt-key-req"
> src="file:repository/conf/sample/resources/transform/add_note.xslt"/>
> 
>                <sequence name="updatecase_proxy">
>                               <property action="set" name="OUT_ONLY"
> value="true"/>
>                               <log level="full"/>
>                               <header name="Action"
> value="urn:FWTCaseUpdate"/>
>                               <log level="full"/>
>                               <xslt key="xslt-key-req"/>
> <!--source="/soapenv:Envelope/soapenv:Body/ns1:CaseDetails"/-->
>                               <log level="full"/>
>                               <send>
>                                              <endpoint>
>                                                             <address
> uri="http://localhost:8080/lagan/services/FL" format="soap11"/>
>                                              </endpoint>
>                               </send>
>                </sequence>
> 
>                <sequence name="out">
>                               <log level="full"/>
>                               <send/>
>                </sequence>
> 
>                <proxy name="lagan_out" transports="jms">
>                               <target inSequence="updatecase_proxy"
> outSequence="out"/>
>                </proxy>
> </definitions>
> 
> This is the add_note.xslt style sheet:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet version="2.0"
>                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>                xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
>                xmlns:ns1="http://www.lagan.com/wsdl/FLTypes"
>                exclude-result-prefixes="fn">
> <xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/>
> 
> <xsl:template match="/">
>   <xsl:apply-templates select="//ns1:CaseDetails" />
> </xsl:template>
> 
> <xsl:template match="ns1:CaseDetails">
> 
>                <flt:FWTCaseUpdate
> xmlns:flt="http://www.lagan.com/wsdl/FLTypes">
>                               <flt:CaseReference><xsl:value-of
> select="ns1:CaseID"/></flt:CaseReference>
>                               <NewNote>test note</NewNote>
>                </flt:FWTCaseUpdate>
> 
> </xsl:template>
> </xsl:stylesheet>
> 
> Here is the output from the log mediator above the transform (showing the
> payload) and the error message when I do the transform:
> 
> 2008-07-28 16:42:47,343 [169.254.201.19-na-bpm-1] [JMSWorker-1]  INFO
> LogMediator To: , WSAction: urn:FWTCaseUpdate, SOAPAction: urn:FWTCaseUpdate,
> MessageID: ID:na-bpm-1-1530-1217268218406-0:0:12:1:1, Direction: request,
> Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:C
> aseDetails 
> xmlns:ns1="http://www.lagan.com/caseextender"><ns1:CaseID>101000001658</ns1:Ca
> seID><ns1:Classification><ns1:Subject>Test
> Subject</ns1:Subject><ns1:SubjectId>101000000</ns1:SubjectId><ns1:Reason>Test
> Reason</ns1:Reason><ns1:ReasonId>101000000</ns1:ReasonId><ns1:Type>Test
> Type</ns1:Type><ns1:TypeId>101000000</ns1:TypeId></ns1:Classification><ns1:Tit
> le>Test 
> Title</ns1:Title><ns1:ProcessDefinition><ns1:ProcessDefinitionID>101010006</ns
> 1:ProcessDefinitionID><ns1:ProcessDefinitionName>Test
> PD</ns1:ProcessDefinitionName></ns1:ProcessDefinition><ns1:Object><ns1:ObjectR
> elationship>CaseTarget</ns1:ObjectRelationship><ns1:Type>None</ns1:Type></ns1:
> Object><ns1:Object><ns1:ObjectRelationship>InitiatedEnquiry</ns1:ObjectRelatio
> nship><ns1:InteractionChannel>Face2Face</ns1:InteractionChannel><ns1:Type>None
> </ns1:Type></ns1:Object><ns1:Description /><ns1:Queue>Integration
> Test</ns1:Queue><ns1:QueueId>101000004</ns1:QueueId><ns1:OpenedDate>2008-07-28
> T16:42:42</ns1:OpenedDate><ns1:Fields
> /><ns1:Status>Open</ns1:Status><ns1:ExternalCaseRef>101000001658</ns1:External
> CaseRef><ns1:ChangeAuthority UserID="dan" UserName=""
> /><ns1:RequestID>bc2ced84-5ce5-11dd-8f9e-b5cfa6cc8429</ns1:RequestID><ns1:Last
> ModifiedBy>dan</ns1:LastModifiedBy></ns1:CaseDetails></soapenv:Body></soapenv:
> Envelope>
> 2008-07-28 16:42:47,343 [169.254.201.19-na-bpm-1] [JMSWorker-1] DEBUG
> LogMediator End : Log mediator
> 2008-07-28 16:42:47,343 [169.254.201.19-na-bpm-1] [JMSWorker-1] DEBUG
> XSLTMediator Start : XSLT mediator
> 2008-07-28 16:42:47,343 [169.254.201.19-na-bpm-1] [JMSWorker-1] DEBUG
> XSLTMediator Using byte array serialization for transformation
> 2008-07-28 16:42:47,906 [169.254.201.19-na-bpm-1] [JMSWorker-1] DEBUG
> XSLTMediator Transformation completed - processing result
> 2008-07-28 16:42:47,906 [169.254.201.19-na-bpm-1] [JMSWorker-1] DEBUG
> XSLTMediator output method: xml; encoding: UTF-8
> 2008-07-28 16:42:47,906 [169.254.201.19-na-bpm-1] [JMSWorker-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]
> org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxEOFException: Unexpected
> EOF in prolog
>  at [row,col {unknown-source}]: [2,0]
>                at
> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:249)
>                at
> org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDocumentIm
> pl.java:132)
>                at
> org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilde
> r.java:411)
>                at
> org.apache.synapse.mediators.transform.XSLTMediator.performXSLT(XSLTMediator.j
> ava:368)
>                at
> org.apache.synapse.mediators.transform.XSLTMediator.mediate(XSLTMediator.java:
> 177)
>                at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator
> .java:58)
>                at
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.ja
> va:125)
>                at
> org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyService
> MessageReceiver.java:149)
>                at
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
>                at
> org.apache.axis2.transport.jms.JMSMessageReceiver$Worker.run(JMSMessageReceive
> r.java:252)
>                at
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTa
> sk(ThreadPoolExecutor.java:665)
>                at
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(T
> hreadPoolExecutor.java:690)
>                at java.lang.Thread.run(Unknown Source)
> Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
>  at [row,col {unknown-source}]: [2,0]
>                at
> com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:661)
>                at
> com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2134)
>                at
> com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2040)
>                at
> com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
>                at
> org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:5
> 06)
>                at
> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:161)
>                ... 12 more
> 
> Any ideas on what I'm doing wrong?
> 
> Thanks,
> 
> Daniel McIver
> 
> 
> ________________________________
> The information in this message is confidential and may be legally privileged.
> It is intended solely for the addressee. Access to this message by anyone else
> is unauthorised. If you are not the intended recipient, any disclosure,
> copying, or distribution of the message, or any action or omission taken by
> you in reliance on it, is prohibited and may be unlawful. Please immediately
> contact the sender if you have received this message in error.
> 
> The views and opinions expressed in this email may not reflect the views and
> opinions of any member of Lagan Technologies Limited, or any of its
> subsidiaries.
> 
> Lagan Technologies Limited is a company registered in Northern Ireland with
> registration number NI 28773. The registered office of Lagan Technologies
> Limited is 209 Airport Road West, Belfast, Co. Antrim, BT3 9EZ.
>