on 08-30-2007 3:39 AM
Hi Experts,
I am tranfering data from JMS queue to BW using JMS and XI adapters respectively. The xml message that is coming from the JMS Queue has got a leading space. Therefore, in our PROD system one message threw a null pointer exception in the mapping program and blocked the queue. Everyday there are more messages coming and waiting in the queue to be processed.
Now, I can not delete the message that is throwing the error cause the subsequent messages has the leading space as well and they will throw the same error.
I also can not afford loosing data.
Anybody has any idea how to relosve this.
Award points for any clue.
Thank you.
Hi
Is XI receiving XML message or plain message(doing plain to xml at adapter level) from JMS queue?
Thanks
Sai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Kumar,
Thanx for that. But my problem is different. I have a leading space one in one element but at the start of XML.
For example the following XML will work fine
<?xml version="1.0" encoding="ISO-8859-1" ?>
<GDE xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="gde_V1_0.xsd">
<Ti tid="141.288261580" es="\WCWA.$WPEB:367499245" />
<Cols>
<Col n="COMPANY_CODE" t="string">W</Col>
<Col n="WORKS_ORDER_NUM" t="string">JA1271233</Col>
</Cols>
</GDE>
but the following will not work.
<b>LEADING SPACE</b><?xml version="1.0" encoding="ISO-8859-1" ?>
<GDE xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="gde_V1_0.xsd">
<Ti tid="141.288261580" es="\WCWA.$WPEB:367499245" />
<Cols>
<Col n="COMPANY_CODE" t="string">W</Col>
<Col n="WORKS_ORDER_NUM" t="string">JA1271233</Col>
</Cols>
</GDE>
How can I trancate the leading space in the whole XML ?
Thank you.
I am not sure how you are getting leading spaces at the start of the xml document.
Is the source data already in the xml format with this space added or this space is being by the sender channel any idea
Regarding how to remove the leading spaces
you can use a simple java mapping to read the input stream and remove the leading space from the start of the xml document and then pass the output of this mapping to your normal msg/other mapping program in the same sequence.
basically XI allows you to call multiple mapping programs in a sequence provided the output structure of one is same as the input structure to the other.
Cheer's
Regarding the msg's already in the queue they can be handeled only by a mapping change as the incorrect XML is already been sent to integration server. if you make any changes in the JMS sender or the source system to remove this space it will not have any bearing on the already present incorrect msgs in the IS. these chnages will only impact the new msg's that will be processed by the sender channel.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.