|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
DFDL ParserException with unbounded triplet fields. |
« View previous topic :: View next topic » |
Author |
Message
|
Cogito-Ergo-Sum |
Posted: Sat Nov 24, 2012 12:23 pm Post subject: DFDL ParserException with unbounded triplet fields. |
|
|
 Master
Joined: 07 Feb 2006 Posts: 293 Location: Bengaluru, India
|
I have a CSV format with three fields separated by comma which are "constant". Then, a set of three fields (also separated by commas amongst themselves) - which I refer to as triplet - appear a minimum of one time and maximum unbounded times. When I put in a sample message for testing in the parser, it parses successfully. But, when I pass the same message into a message flow that uses this model, it fails with ParserException message. The message flow has a MQInput node which has parser set as BLOB. Its output is routed to a ResetContentDescriptor node where this DFDL message model is used.
WMB 8.0.0.0 on RHEL5.
Input message:
Code: |
Me,2012-11-25,01:35:00,key1,type1,value1,key2,type2,value2,key3,type3,value3
|
Parser error in user trace:
Code: |
2012-11-24 15:13:38.600084 104 ParserException BIP5807E: The DFDL parser signalled that a processing error occurred. The message from the DFDL p
arser is: 'CTDP3062E: An unexpected non-postfix separator ',' occurs in a postfix position at offset '40' in 'sequence' group contained within element '
senderMultipleFields', xpath: '/ArbitraryTriplets[1]/arbitraryTriplets[1]/senderMultipleFields[1]'.'
Processing errors occurred during the parsing a DFDL message.
|
DFDL message model:
Code: |
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:csv="http://www.ibm.com/dfdl/CommaSeparatedFormat"
xmlns:dfdl="http://www.ogf.org/dfdl/dfdl-1.0/" xmlns:ibmDfdlExtn="http://www.ibm.com/dfdl/extensions"
xmlns:ibmSchExtn="http://www.ibm.com/schema/extensions" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:import namespace="http://www.ibm.com/dfdl/CommaSeparatedFormat"
schemaLocation="../IBMdefined/CommaSeparatedFormat.xsd" />
<xsd:complexType name="senderMultiple">
<xsd:sequence>
<xsd:annotation>
<xsd:appinfo source="http://www.ogf.org/dfdl/">
<dfdl:sequence />
</xsd:appinfo>
</xsd:annotation>
<xsd:element name="keyWord" type="xsd:string" />
<xsd:element name="keyType" type="xsd:string" />
<xsd:element dfdl:textTrimKind="none" name="keyValue"
type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
<xsd:annotation>
<xsd:appinfo source="http://www.ogf.org/dfdl/">
<dfdl:format documentFinalTerminatorCanBeMissing="yes"
encoding="{$dfdl:encoding}" escapeSchemeRef="csv:CSVEscapeScheme"
ref="csv:CommaSeparatedFormat" />
</xsd:appinfo>
</xsd:annotation>
<xsd:element ibmSchExtn:docRoot="true" name="ArbitraryTriplets">
<xsd:complexType>
<xsd:sequence dfdl:separator="">
<xsd:element dfdl:terminator="%CR;%LF;%WSP*;" maxOccurs="1"
name="arbitraryTriplets">
<xsd:complexType>
<xsd:sequence dfdl:separatorPolicy="suppressedAtEndLax">
<xsd:element ibmDfdlExtn:sampleValue="value1" name="senderName"
type="xsd:string" />
<xsd:element ibmDfdlExtn:sampleValue="2001-01-01"
name="senderDate" type="xsd:date" />
<xsd:element dfdl:calendarPattern="HH:mm:ss"
dfdl:calendarPatternKind="explicit" ibmDfdlExtn:sampleValue="12:00:00"
name="senderTime" type="xsd:time" />
<xsd:element dfdl:terminator="" maxOccurs="unbounded"
name="senderMultipleFields" type="senderMultiple" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
|
Offset 40 is at the comma after value1.
I noticed that the error message CTDP3062E occurs for DFDL parser with WMB 8.0 for empty delimited strings as discussed here and here. So, perhaps, the resolution is not applicable to this case. _________________ ALL opinions are welcome.
-----------------------------
Debugging tip:When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
---Sherlock Holmes |
|
Back to top |
|
 |
mqjeff |
Posted: Sun Nov 25, 2012 7:53 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
When I test parse this in v8.0.0.1, it works fine.
Code: |
********************* DFDL Parser Setup Starting *********************
Schema = /testLib5/CES.xsd
**********************************************************************
********************* DFDL Parser Starting *********************
Data = /testLib5/data1.txt
Message = ArbitraryTriplets (/testLib5/CES.xsd)
****************************************************************
Nov 25, 2012 10:52:17 AM info: Offset: 0. Parsing will start from root element 'ArbitraryTriplets'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/schemaElement::ArbitraryTriplets), 76]
Nov 25, 2012 10:52:17 AM info: Offset: 0. Starting to process element 'ArbitraryTriplets'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/schemaElement::ArbitraryTriplets), 67]
Nov 25, 2012 10:52:17 AM info: Offset: 0. Starting to process element 'arbitraryTriplets'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/schemaElement::ArbitraryTriplets/type::0/model::sequence/schemaElement::arbitraryTriplets), 67]
Nov 25, 2012 10:52:17 AM info: Offset: 0. Starting to process element 'senderName'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/schemaElement::ArbitraryTriplets/type::0/model::sequence/schemaElement::arbitraryTriplets/type::0/model::sequence/schemaElement::senderName), 60]
Nov 25, 2012 10:52:17 AM info: Offset: 0. Found delimited value: 'Me' for element 'senderName'. The delimiter was ','.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/schemaElement::ArbitraryTriplets/type::0/model::sequence/schemaElement::arbitraryTriplets/type::0/model::sequence/schemaElement::senderName), 96]
Nov 25, 2012 10:52:17 AM info: Offset: 2. Finished processing element 'senderName'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/schemaElement::ArbitraryTriplets/type::0/model::sequence/schemaElement::arbitraryTriplets/type::0/model::sequence/schemaElement::senderName), 60]
Nov 25, 2012 10:52:17 AM info: Offset: 2. Found separator ',' owned by the 'sequence' group contained within element 'arbitraryTriplets'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/schemaElement::ArbitraryTriplets/type::0/model::sequence/schemaElement::arbitraryTriplets/type::0/model::sequence), 114]
Nov 25, 2012 10:52:17 AM info: Offset: 3. Starting to process element 'senderDate'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/schemaElement::ArbitraryTriplets/type::0/model::sequence/schemaElement::arbitraryTriplets/type::0/model::sequence/schemaElement::senderDate), 60]
Nov 25, 2012 10:52:17 AM info: Offset: 3. Found delimited value: '2012-11-25' for element 'senderDate'. The delimiter was ','.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/schemaElement::ArbitraryTriplets/type::0/model::sequence/schemaElement::arbitraryTriplets/type::0/model::sequence/schemaElement::senderDate), 104]
Nov 25, 2012 10:52:18 AM info: Offset: 13. The simple content region of element 'senderDate' was converted to logical value '2012-11-25 00:00:00 GMT'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/schemaElement::ArbitraryTriplets/type::0/model::sequence/schemaElement::arbitraryTriplets/type::0/model::sequence/schemaElement::senderDate), 130]
Nov 25, 2012 10:52:18 AM info: Offset: 13. Finished processing element 'senderDate'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/schemaElement::ArbitraryTriplets/type::0/model::sequence/schemaElement::arbitraryTriplets/type::0/model::sequence/schemaElement::senderDate), 61]
Nov 25, 2012 10:52:18 AM info: Offset: 13. Found separator ',' owned by the 'sequence' group contained within element 'arbitraryTriplets'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/schemaElement::ArbitraryTriplets/type::0/model::sequence/schemaElement::arbitraryTriplets/type::0/model::sequence), 115]
Nov 25, 2012 10:52:18 AM info: Offset: 14. Starting to process element 'senderTime'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/schemaElement::ArbitraryTriplets/type::0/model::sequence/schemaElement::arbitraryTriplets/type::0/model::sequence/schemaElement::senderTime), 61]
Nov 25, 2012 10:52:18 AM info: Offset: 14. Found delimited value: '01:35:00' for element 'senderTime'. The delimiter was ','.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/schemaElement::ArbitraryTriplets/type::0/model::sequence/schemaElement::arbitraryTriplets/type::0/model::sequence/schemaElement::senderTime), 103]
Nov 25, 2012 10:52:18 AM info: Offset: 22. The simple content region of element 'senderTime' was converted to logical value '1970-01-01 01:35:00 GMT'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/schemaElement::ArbitraryTriplets/type::0/model::sequence/schemaElement::arbitraryTriplets/type::0/model::sequence/schemaElement::senderTime), 130]
Nov 25, 2012 10:52:18 AM info: Offset: 22. Finished processing element 'senderTime'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/schemaElement::ArbitraryTriplets/type::0/model::sequence/schemaElement::arbitraryTriplets/type::0/model::sequence/schemaElement::senderTime), 61]
Nov 25, 2012 10:52:18 AM info: Offset: 22. Found separator ',' owned by the 'sequence' group contained within element 'arbitraryTriplets'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/schemaElement::ArbitraryTriplets/type::0/model::sequence/schemaElement::arbitraryTriplets/type::0/model::sequence), 115]
Nov 25, 2012 10:52:18 AM info: Offset: 23. Up to '-1' occurrences of element 'senderMultipleFields' will be expected because occursCountKind='implicit' and maxOccurs='-1'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/schemaElement::ArbitraryTriplets/type::0/model::sequence/schemaElement::arbitraryTriplets/type::0/model::sequence/schemaElement::senderMultipleFields), 148]
Nov 25, 2012 10:52:18 AM info: Offset: 23. Starting to process element 'senderMultipleFields'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/schemaElement::ArbitraryTriplets/type::0/model::sequence/schemaElement::arbitraryTriplets/type::0/model::sequence/schemaElement::senderMultipleFields), 71]
Nov 25, 2012 10:52:18 AM info: Offset: 23. Starting to process element 'keyWord'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/type::senderMultiple/model::sequence/schemaElement::keyWord), 58]
Nov 25, 2012 10:52:18 AM info: Offset: 23. Found delimited value: 'key1' for element 'keyWord'. The delimiter was ','.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/type::senderMultiple/model::sequence/schemaElement::keyWord), 96]
Nov 25, 2012 10:52:18 AM info: Offset: 27. Finished processing element 'keyWord'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/type::senderMultiple/model::sequence/schemaElement::keyWord), 58]
Nov 25, 2012 10:52:18 AM info: Offset: 27. Found separator ',' owned by the 'sequence' group contained within element 'senderMultipleFields'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/type::senderMultiple/model::sequence), 118]
Nov 25, 2012 10:52:18 AM info: Offset: 28. Starting to process element 'keyType'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/type::senderMultiple/model::sequence/schemaElement::keyType), 58]
Nov 25, 2012 10:52:18 AM info: Offset: 28. Found delimited value: 'type1' for element 'keyType'. The delimiter was ','.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/type::senderMultiple/model::sequence/schemaElement::keyType), 97]
Nov 25, 2012 10:52:18 AM info: Offset: 33. Finished processing element 'keyType'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/type::senderMultiple/model::sequence/schemaElement::keyType), 58]
Nov 25, 2012 10:52:18 AM info: Offset: 33. Found separator ',' owned by the 'sequence' group contained within element 'senderMultipleFields'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/type::senderMultiple/model::sequence), 118]
Nov 25, 2012 10:52:18 AM info: Offset: 34. Starting to process element 'keyValue'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/type::senderMultiple/model::sequence/schemaElement::keyValue), 59]
Nov 25, 2012 10:52:18 AM info: Offset: 34. Found delimited value: 'value1' for element 'keyValue'. The delimiter was ','.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/type::senderMultiple/model::sequence/schemaElement::keyValue), 99]
Nov 25, 2012 10:52:18 AM info: Offset: 40. Finished processing element 'keyValue'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/type::senderMultiple/model::sequence/schemaElement::keyValue), 59]
Nov 25, 2012 10:52:18 AM info: Offset: 40. Finished processing element 'senderMultipleFields'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/schemaElement::ArbitraryTriplets/type::0/model::sequence/schemaElement::arbitraryTriplets/type::0/model::sequence/schemaElement::senderMultipleFields), 71]
Nov 25, 2012 10:52:18 AM info: Offset: 40. Found separator ',' owned by the 'sequence' group contained within element 'arbitraryTriplets'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/schemaElement::ArbitraryTriplets/type::0/model::sequence/schemaElement::arbitraryTriplets/type::0/model::sequence), 115]
Nov 25, 2012 10:52:18 AM info: Offset: 41. Optional element 'senderMultipleFields' encountered. The DFDL parser will return to this position if the element is not present in the data stream.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/schemaElement::ArbitraryTriplets/type::0/model::sequence/schemaElement::arbitraryTriplets/type::0/model::sequence/schemaElement::senderMultipleFields), 167]
Nov 25, 2012 10:52:18 AM info: Offset: 41. Starting to process element 'senderMultipleFields'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/schemaElement::ArbitraryTriplets/type::0/model::sequence/schemaElement::arbitraryTriplets/type::0/model::sequence/schemaElement::senderMultipleFields), 71]
Nov 25, 2012 10:52:18 AM info: Offset: 41. Starting to process element 'keyWord'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/type::senderMultiple/model::sequence/schemaElement::keyWord), 58]
Nov 25, 2012 10:52:18 AM info: Offset: 41. Found delimited value: 'key2' for element 'keyWord'. The delimiter was ','.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/type::senderMultiple/model::sequence/schemaElement::keyWord), 96]
Nov 25, 2012 10:52:18 AM info: Offset: 45. Finished processing element 'keyWord'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/type::senderMultiple/model::sequence/schemaElement::keyWord), 58]
Nov 25, 2012 10:52:18 AM info: Offset: 45. Found separator ',' owned by the 'sequence' group contained within element 'senderMultipleFields'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/type::senderMultiple/model::sequence), 118]
Nov 25, 2012 10:52:18 AM info: Offset: 46. Starting to process element 'keyType'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/type::senderMultiple/model::sequence/schemaElement::keyType), 58]
Nov 25, 2012 10:52:18 AM info: Offset: 46. Found delimited value: 'type2' for element 'keyType'. The delimiter was ','.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/type::senderMultiple/model::sequence/schemaElement::keyType), 97]
Nov 25, 2012 10:52:18 AM info: Offset: 51. Finished processing element 'keyType'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/type::senderMultiple/model::sequence/schemaElement::keyType), 58]
Nov 25, 2012 10:52:18 AM info: Offset: 51. Found separator ',' owned by the 'sequence' group contained within element 'senderMultipleFields'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/type::senderMultiple/model::sequence), 118]
Nov 25, 2012 10:52:18 AM info: Offset: 52. Starting to process element 'keyValue'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/type::senderMultiple/model::sequence/schemaElement::keyValue), 59]
Nov 25, 2012 10:52:18 AM info: Offset: 52. Found delimited value: 'value2' for element 'keyValue'. The delimiter was ','.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/type::senderMultiple/model::sequence/schemaElement::keyValue), 99]
Nov 25, 2012 10:52:18 AM info: Offset: 58. Finished processing element 'keyValue'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/type::senderMultiple/model::sequence/schemaElement::keyValue), 59]
Nov 25, 2012 10:52:18 AM info: Offset: 58. Finished processing element 'senderMultipleFields'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/schemaElement::ArbitraryTriplets/type::0/model::sequence/schemaElement::arbitraryTriplets/type::0/model::sequence/schemaElement::senderMultipleFields), 71]
Nov 25, 2012 10:52:18 AM info: Offset: 58. Found separator ',' owned by the 'sequence' group contained within element 'arbitraryTriplets'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/schemaElement::ArbitraryTriplets/type::0/model::sequence/schemaElement::arbitraryTriplets/type::0/model::sequence), 115]
Nov 25, 2012 10:52:18 AM info: Offset: 59. Optional element 'senderMultipleFields' encountered. The DFDL parser will return to this position if the element is not present in the data stream.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/schemaElement::ArbitraryTriplets/type::0/model::sequence/schemaElement::arbitraryTriplets/type::0/model::sequence/schemaElement::senderMultipleFields), 167]
Nov 25, 2012 10:52:18 AM info: Offset: 59. Starting to process element 'senderMultipleFields'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/schemaElement::ArbitraryTriplets/type::0/model::sequence/schemaElement::arbitraryTriplets/type::0/model::sequence/schemaElement::senderMultipleFields), 71]
Nov 25, 2012 10:52:18 AM info: Offset: 59. Starting to process element 'keyWord'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/type::senderMultiple/model::sequence/schemaElement::keyWord), 58]
Nov 25, 2012 10:52:18 AM info: Offset: 59. Found delimited value: 'key3' for element 'keyWord'. The delimiter was ','.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/type::senderMultiple/model::sequence/schemaElement::keyWord), 96]
Nov 25, 2012 10:52:18 AM info: Offset: 63. Finished processing element 'keyWord'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/type::senderMultiple/model::sequence/schemaElement::keyWord), 58]
Nov 25, 2012 10:52:18 AM info: Offset: 63. Found separator ',' owned by the 'sequence' group contained within element 'senderMultipleFields'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/type::senderMultiple/model::sequence), 118]
Nov 25, 2012 10:52:18 AM info: Offset: 64. Starting to process element 'keyType'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/type::senderMultiple/model::sequence/schemaElement::keyType), 58]
Nov 25, 2012 10:52:18 AM info: Offset: 64. Found delimited value: 'type3' for element 'keyType'. The delimiter was ','.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/type::senderMultiple/model::sequence/schemaElement::keyType), 97]
Nov 25, 2012 10:52:18 AM info: Offset: 69. Finished processing element 'keyType'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/type::senderMultiple/model::sequence/schemaElement::keyType), 58]
Nov 25, 2012 10:52:18 AM info: Offset: 69. Found separator ',' owned by the 'sequence' group contained within element 'senderMultipleFields'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/type::senderMultiple/model::sequence), 118]
Nov 25, 2012 10:52:18 AM info: Offset: 70. Starting to process element 'keyValue'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/type::senderMultiple/model::sequence/schemaElement::keyValue), 59]
Nov 25, 2012 10:52:18 AM info: Offset: 70. Found delimited value: 'value3' for element 'keyValue'. The delimiter was 'End of data stream'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/type::senderMultiple/model::sequence/schemaElement::keyValue), 116]
Nov 25, 2012 10:52:18 AM info: Offset: 76. Finished processing element 'keyValue'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/type::senderMultiple/model::sequence/schemaElement::keyValue), 59]
Nov 25, 2012 10:52:18 AM info: Offset: 76. Finished processing element 'senderMultipleFields'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/schemaElement::ArbitraryTriplets/type::0/model::sequence/schemaElement::arbitraryTriplets/type::0/model::sequence/schemaElement::senderMultipleFields), 71]
Nov 25, 2012 10:52:18 AM info: Offset: 76. Did not find terminator for 'arbitraryTriplets'. Expected terminator list is '%CR;%LF;%WSP*;'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/schemaElement::ArbitraryTriplets/type::0/model::sequence/schemaElement::arbitraryTriplets), 115]
Nov 25, 2012 10:52:18 AM info: Offset: 76. Finished processing element 'arbitraryTriplets'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/schemaElement::ArbitraryTriplets/type::0/model::sequence/schemaElement::arbitraryTriplets), 68]
Nov 25, 2012 10:52:18 AM info: Offset: 76. Finished processing element 'ArbitraryTriplets'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/schemaElement::ArbitraryTriplets), 68]
Nov 25, 2012 10:52:18 AM info: Offset: 0. Parsing will start from root element 'ArbitraryTriplets'.
[dfdl = /testLib5/CES.xsd, scd = #xscd(/schemaElement::ArbitraryTriplets), 76]
|
|
|
Back to top |
|
 |
Cogito-Ergo-Sum |
Posted: Sun Nov 25, 2012 11:12 am Post subject: |
|
|
 Master
Joined: 07 Feb 2006 Posts: 293 Location: Bengaluru, India
|
Is that trace from the DFDL parser in the ToolKit ? The parser in ToolKit works for me too. It fails in run time. _________________ ALL opinions are welcome.
-----------------------------
Debugging tip:When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
---Sherlock Holmes |
|
Back to top |
|
 |
mqjeff |
Posted: Sun Nov 25, 2012 11:13 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Cogito-Ergo-Sum wrote: |
Is that trace from the DFDL parser in the ToolKit ? The parser in ToolKit works for me too. It fails in run time. |
Oh, quite interesting!
Yes, from Toolkit.
Suggest you compare the Toolkit trace with a user trace of the failure in runtime. |
|
Back to top |
|
 |
Cogito-Ergo-Sum |
Posted: Mon Nov 26, 2012 2:43 am Post subject: |
|
|
 Master
Joined: 07 Feb 2006 Posts: 293 Location: Bengaluru, India
|
mqjeff wrote: |
Suggest you compare the Toolkit trace with a user trace of the failure in runtime. |
Done. The ToolKit trace is no different from what you have shown above. The portion of trace that describes the error is shown in my first post above. _________________ ALL opinions are welcome.
-----------------------------
Debugging tip:When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
---Sherlock Holmes |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Nov 26, 2012 6:44 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Cogito-Ergo-Sum wrote: |
mqjeff wrote: |
Suggest you compare the Toolkit trace with a user trace of the failure in runtime. |
Done. The ToolKit trace is no different from what you have shown above. The portion of trace that describes the error is shown in my first post above. |
Does that mean that the parts of the user trace *before* the error are *exactly* the same as the toolkit trace ? That the only place it changes it's mind and acts differently is *exactly* that point? |
|
Back to top |
|
 |
kimbert |
Posted: Mon Nov 26, 2012 7:23 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
I think this a known problem - please open a PMR to get a fix. |
|
Back to top |
|
 |
Cogito-Ergo-Sum |
Posted: Mon Nov 26, 2012 7:58 am Post subject: |
|
|
 Master
Joined: 07 Feb 2006 Posts: 293 Location: Bengaluru, India
|
kimbert wrote: |
I think this a known problem - please open a PMR to get a fix. |
Thanks ! On it now. _________________ ALL opinions are welcome.
-----------------------------
Debugging tip:When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
---Sherlock Holmes |
|
Back to top |
|
 |
terminator_xyz |
Posted: Tue Sep 30, 2014 11:06 am Post subject: any outcome from PMR? |
|
|
Novice
Joined: 29 Jul 2014 Posts: 15
|
Hi,
I am using IB 9 and still getting the same error. What was the resolution provided by IBM? |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Sep 30, 2014 1:32 pm Post subject: Re: any outcome from PMR? |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
terminator_xyz wrote: |
Hi,
I am using IB 9 and still getting the same error. What was the resolution provided by IBM? |
What version of IIB9 are you using? 9.0.0.2?  _________________ MQ & Broker admin
Last edited by fjb_saper on Wed Oct 01, 2014 10:54 am; edited 1 time in total |
|
Back to top |
|
 |
terminator_xyz |
Posted: Wed Oct 01, 2014 7:57 am Post subject: |
|
|
Novice
Joined: 29 Jul 2014 Posts: 15
|
Hi,
My bad, it was working fine in Version: 9.0.0.2 tool kit. The incoming file had LF, but in the xsd, i mentioned as CR LF
Hence it was failing with above mentioned error. |
|
Back to top |
|
 |
emiddleware |
Posted: Tue Dec 09, 2014 3:34 am Post subject: An unexpected non-postfix separator |
|
|
Centurion
Joined: 03 Apr 2006 Posts: 120
|
Hi,
I am also facing the same issue for parsing csv to xml file.
Environment - Windows 7, MQ 7.1 , WMB v 8.0000
This is my xsd file content is as follows .
Code: |
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:csv="http://www.ibm.com/dfdl/CommaSeparatedFormat"
xmlns:dfdl="http://www.ogf.org/dfdl/dfdl-1.0/"
xmlns:ibmDfdlExtn="http://www.ibm.com/dfdl/extensions"
xmlns:ibmSchExtn="http://www.ibm.com/schema/extensions"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:import namespace="http://www.ibm.com/dfdl/CommaSeparatedFormat" schemaLocation="IBMdefined/CommaSeparatedFormat.xsd"/>
<xsd:annotation>
<xsd:appinfo source="http://www.ogf.org/dfdl/">
<dfdl:format documentFinalTerminatorCanBeMissing="yes" encoding="{$dfdl:encoding}" escapeSchemeRef="csv:CSVEscapeScheme" ref="csv:CommaSeparatedFormat"/>
</xsd:appinfo>
</xsd:annotation>
<xsd:element ibmSchExtn:docRoot="true" name="CSVMSG">
<xsd:complexType>
<xsd:sequence dfdl:separator="%CR;%LF;" maxOccurs="1">
<xsd:element maxOccurs="unbounded" name="customer">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="LastName" type="xsd:string"/>
<xsd:element name="FirstName" type="xsd:string"/>
<xsd:element name="Phone" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
|
As Kimbert mentioned in one of the posts , I went to Show all -> Data Formats -> (Right side properties) - > set the value of Document Final terminator String to Yes
Then to, I am getting a parsing error in the DFDL - Tool kit. Although I am able to see the xml data, but getting the parsing error as
Dec 9, 2014 4:49:36 PM fatal: CTDP3062E: An unexpected non-postfix separator '
' occurs in a postfix position at offset '50' in 'sequence' group contained within element 'CSVMSG', xpath: '/CSVMSG[1]'.
I viewed the following posts, http://www.mqseries.net/phpBB2/viewtopic.php?t=64555&sid=e8f122e8c39d684b9b7901fc9f278f54
http://www.mqseries.net/phpBB2/viewtopic.php?t=64661
http://www-01.ibm.com/support/knowledgecenter/SSKM8N_8.0.0/com.ibm.etools.mft.samples.csv.doc/doc/exploring_csv_sample.htm
http://www.mqseries.net/phpBB2/viewtopic.php?t=67190
http://www.mqseries.net/phpBB2/viewtopic.php?p=382455&sid=6753914d0664924f7a8fdaaa14419d41.
I made the modifications as mentioned above, still I am getting the non-postfix separator error .. How to resolve this ?
 _________________ Best Regards,
E-MiddleWare |
|
Back to top |
|
 |
smdavies99 |
Posted: Tue Dec 09, 2014 3:42 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
you could check the Release notes for 9.0.0.2 and find the APAR that fixed the original problem on IIB 9. Then go to the V8 release notes and look for the same fix description.
If it is there then upgrade to that Fix Pack
If it isn't then upgrade to the latest V8 FP and THEN raise a PMR. you could quote this thread in your description. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|