ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » PWFDateTimeFormatter

Post new topic  Reply to topic
 PWFDateTimeFormatter « View previous topic :: View next topic » 
Author Message
MQMD
PostPosted: Wed May 09, 2007 5:59 am    Post subject: PWFDateTimeFormatter Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Wed May 09, 2007 6:05 am    Post subject: Reply with quote

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
View user's profile Send private message
MQMD
PostPosted: Wed May 09, 2007 6:36 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Wed May 09, 2007 6:38 am    Post subject: Reply with quote

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
View user's profile Send private message
MQMD
PostPosted: Wed May 09, 2007 6:50 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Wed May 09, 2007 7:00 am    Post subject: Reply with quote

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
View user's profile Send private message
MQMD
PostPosted: Wed May 09, 2007 7:26 am    Post subject: Reply with quote

Apprentice

Joined: 03 May 2007
Posts: 45

<APPDATE>2007-05-09Z</APPDATE>
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed May 09, 2007 2:43 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
MQMD
PostPosted: Wed May 09, 2007 11:41 pm    Post subject: Reply with quote

Apprentice

Joined: 03 May 2007
Posts: 45

Thanks the problem is solved
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » PWFDateTimeFormatter
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.