Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Lyo » DOORSOauthSample [DWA 9.5.2](Data Type Format Exception - attribute cannot be parsed as datatype date )
DOORSOauthSample [DWA 9.5.2] [message #1707987] Fri, 11 September 2015 09:08 Go to next message
Abhishek Kumar is currently offline Abhishek KumarFriend
Messages: 2
Registered: September 2015
Junior Member
Hello All,

I am using DoorsOauthSample to update a requirement in DOORS system(9.5.2). when i query for a requirement id and get the result back i get a date type format exception.

requirement = getResponse.getEntity(Requirement.class); throws an exception as described below.

com.hp.hpl.jena.datatypes.DatatypeFormatException: Lexical form '2010-04-06' is not a legal instance of Datatype
attribute#createdOn could not be parsed as datatype XMLSchema#dateTime
Lexical form '2010-04-06' is not a legal instance of Datatype

This means that the created date attribute value is not getting parsed properly. I am very new to the lyo packages can anyone help me out with this issue.

Re: DOORSOauthSample [DWA 9.5.2] [message #1708131 is a reply to message #1707987] Mon, 14 September 2015 07:11 Go to previous message
Carlos Gomez is currently offline Carlos GomezFriend
Messages: 63
Registered: October 2010
Hi Abhishek,

I had the same problem. There is a message that talks about that ( In the example, there is a line to handle the exception:

System.setProperty(AbstractOslcRdfXmlProvider.OSLC4J_STRICT_DATATYPES, "false");

Using this line, the datatype exception is handled as a warning only.

So, this line must be before:
requirement = getResponse.getEntity(Requirement.class);

And, that's all.

There is a temporal fix at

I hope this fixes your problem Wink

Previous Topic:MessageBodyReader implementation was not found for class ServiceProviderCatalog type
Next Topic:Query RTC repository for "metadata" such as project areas, work item types, and attributes
Goto Forum:

Current Time: Mon Jan 27 15:00:54 GMT 2020

Powered by FUDForum. Page generated in 0.01961 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top