Author |
Message
|
MQMD |
Posted: Wed May 09, 2007 5:59 am Post subject: PWFDateTimeFormatter |
|
|
Apprentice
Joined: 03 May 2007 Posts: 45
|
I am getting following exception.Any hints please.
(0x01000000):ParserException = (
(0x03000000):File = 'F:\build\S000_P\src\cpi\bsutils\pwffrmtr.cpp'
(0x03000000):Line = 484
(0x03000000):Function = 'PWFDateTimeFormatter::parse'
(0x03000000):Type = ''
(0x03000000):Name = ''
(0x03000000):Label = ''
(0x03000000):Catalog = 'BIPv600'
(0x03000000):Severity = 3
(0x03000000):Number = 5540
(0x03000000):Text = 'CPI Unable to parse datetime internally'
(0x01000000):Insert = (
(0x03000000):Type = 5
(0x03000000):Text = '2007-05-09Z'
)
(0x01000000):Insert = (
(0x03000000):Type = 5
(0x03000000):Text = 'yyyyMMdd'
)
(0x01000000):Insert = (
(0x03000000):Type = 2
(0x03000000):Text = '1'
)
changing yyyyMMdd to yyyy-MM-dd gives the same exception.
(0x01000000):ParserException = (
(0x03000000):File = 'F:\build\S000_P\src\cpi\bsutils\pwffrmtr.cpp'
(0x03000000):Line = 484
(0x03000000):Function = 'PWFDateTimeFormatter::parse'
(0x03000000):Type = ''
(0x03000000):Name = ''
(0x03000000):Label = ''
(0x03000000):Catalog = 'BIPv600'
(0x03000000):Severity = 3
(0x03000000):Number = 5540
(0x03000000):Text = 'CPI Unable to parse datetime internally'
(0x01000000):Insert = (
(0x03000000):Type = 5
(0x03000000):Text = '2007-05-09Z'
)
(0x01000000):Insert = (
(0x03000000):Type = 5
(0x03000000):Text = 'yyyy-MM-dd'
)
(0x01000000):Insert = (
(0x03000000):Type = 2
(0x03000000):Text = '1'
)
I have no clue from where Z ('2007-05-09Z') character is being added. |
|
Back to top |
|
 |
Vitor |
Posted: Wed May 09, 2007 6:05 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Z is the standard code for "Zulu", meaning that the time is GMT/UTC time.
Where are you getting the date from? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
MQMD |
Posted: Wed May 09, 2007 6:36 am Post subject: |
|
|
Apprentice
Joined: 03 May 2007 Posts: 45
|
Quote: |
Z is the standard code for "Zulu", meaning that the time is GMT/UTC time.
It's coming from WPS BPEL.
I know now it's coming from the SOAP message.How and where should i handle it.That's i should truncate Z at BPEL or at Broker level. |
|
|
Back to top |
|
 |
jefflowrey |
Posted: Wed May 09, 2007 6:38 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
It's not a complete date field the way it's been presented. It's either already being chopped up somewhere, or it's being built wrong. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
MQMD |
Posted: Wed May 09, 2007 6:50 am Post subject: |
|
|
Apprentice
Joined: 03 May 2007 Posts: 45
|
Here is the snippet of XSD generated from broker
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="18"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="APPDATE" type="xsd:date">
<xsd:annotation>
<xsd:appinfo source="http://www.wsadie.com/appinfo">
<initialValue kind="SPACE"/>
</xsd:appinfo>
This xsd is imported in WPS BPEL and is being used for message generation. The internal parsing of BPEL is generating the mentioned "Zulu". |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed May 09, 2007 7:00 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
What's the XML field look like in the generated document? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
MQMD |
Posted: Wed May 09, 2007 7:26 am Post subject: |
|
|
Apprentice
Joined: 03 May 2007 Posts: 45
|
<APPDATE>2007-05-09Z</APPDATE> |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed May 09, 2007 2:43 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Some additional characteristics which are optional in date parsing will cause date parsing to fail if the MessageSet being used has the Date parsing attribute set to strict date parsing.
Read up on the message set attributes for dates at message set level.
To conform to XML standards you should not use strict date parsing...
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
MQMD |
Posted: Wed May 09, 2007 11:41 pm Post subject: |
|
|
Apprentice
Joined: 03 May 2007 Posts: 45
|
Thanks the problem is solved |
|
Back to top |
|
 |
|