[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[lyo-dev] Exception Running DoorsOAuthSample

In Step 12, when getEntity it called, a com.hp.hpl.jena.datatypes.DatatypeFormatException is thrown:



SEVERE: javax.ws.rs.WebApplicationException: com.hp.hpl.jena.datatypes.DatatypeFormatException: Lexical form '2015-04-04' is not a legal instance of Datatype[http://www.w3.org/2001/XMLSchema#dateTime-> class com.hp.hpl.jena.datatypes.xsd.XSDDateTime] Lexical form '2015-04-04' is not a legal instance of Datatype[http://www.w3.org/2001/XMLSchema#dateTime-> class com.hp.hpl.jena.datatypes.xsd.XSDDateTime] during parse -org.apache.xerces.impl.dv.InvalidDatatypeValueException: cvc-datatype-valid.1.2.1: '2015-04-04' is not a valid value for 'dateTime'.
org.apache.wink.client.ClientRuntimeException: javax.ws.rs.WebApplicationException: com.hp.hpl.jena.datatypes.DatatypeFormatException: Lexical form '2015-04-04' is not a legal instance of Datatype[http://www.w3.org/2001/XMLSchema#dateTime-> class com.hp.hpl.jena.datatypes.xsd.XSDDateTime] Lexical form '2015-04-04' is not a legal instance of Datatype[http://www.w3.org/2001/XMLSchema#dateTime-> class com.hp.hpl.jena.datatypes.xsd.XSDDateTime] during parse -org.apache.xerces.impl.dv.InvalidDatatypeValueException: cvc-datatype-valid.1.2.1: '2015-04-04' is not a valid value for 'dateTime'.
        at org.apache.wink.client.internal.handlers.ClientResponseImpl.readEntity(ClientResponseImpl.java:129)
        at org.apache.wink.client.internal.handlers.ClientResponseImpl.getEntity(ClientResponseImpl.java:65)
        at org.apache.wink.client.internal.handlers.ClientResponseImpl.getEntity(ClientResponseImpl.java:52)
        at org.eclipse.lyo.client.oslc.samples.DoorsOauthSample.main(DoorsOauthSample.java:261)
Caused by: javax.ws.rs.WebApplicationException: com.hp.hpl.jena.datatypes.DatatypeFormatException: Lexical form '2015-04-04' is not a legal instance of Datatype[http://www.w3.org/2001/XMLSchema#dateTime-> class com.hp.hpl.jena.datatypes.xsd.XSDDateTime] Lexical form '2015-04-04' is not a legal instance of Datatype[http://www.w3.org/2001/XMLSchema#dateTime-> class com.hp.hpl.jena.datatypes.xsd.XSDDateTime] during parse -org.apache.xerces.impl.dv.InvalidDatatypeValueException: cvc-datatype-valid.1.2.1: '2015-04-04' is not a valid value for 'dateTime'.
        at org.eclipse.lyo.oslc4j.provider.jena.AbstractOslcRdfXmlProvider.readFrom(AbstractOslcRdfXmlProvider.java:350)
        at org.eclipse.lyo.oslc4j.provider.jena.OslcRdfXmlProvider.readFrom(OslcRdfXmlProvider.java:270)
        at org.apache.wink.client.internal.handlers.ClientResponseImpl.readEntity(ClientResponseImpl.java:126)
        ... 3 more
Caused by: com.hp.hpl.jena.datatypes.DatatypeFormatException: Lexical form '2015-04-04' is not a legal instance of Datatype[http://www.w3.org/2001/XMLSchema#dateTime-> class com.hp.hpl.jena.datatypes.xsd.XSDDateTime] Lexical form '2015-04-04' is not a legal instance of Datatype[http://www.w3.org/2001/XMLSchema#dateTime-> class com.hp.hpl.jena.datatypes.xsd.XSDDateTime] during parse -org.apache.xerces.impl.dv.InvalidDatatypeValueException: cvc-datatype-valid.1.2.1: '2015-04-04' is not a valid value for 'dateTime'.
        at com.hp.hpl.jena.graph.impl.LiteralLabelImpl.getValue(LiteralLabelImpl.java:326)
        at com.hp.hpl.jena.graph.Node_Literal.getLiteralValue(Node_Literal.java:40)
        at com.hp.hpl.jena.rdf.model.impl.LiteralImpl.getValue(LiteralImpl.java:101)
        at org.eclipse.lyo.oslc4j.provider.jena.JenaModelHelper.handleExtendedPropertyValue(JenaModelHelper.java:1074)
        at org.eclipse.lyo.oslc4j.provider.jena.JenaModelHelper.fromResource(JenaModelHelper.java:582)
        at org.eclipse.lyo.oslc4j.provider.jena.JenaModelHelper.createObjectResultList(JenaModelHelper.java:455)
        at org.eclipse.lyo.oslc4j.provider.jena.JenaModelHelper.fromJenaModel(JenaModelHelper.java:393)
        at org.eclipse.lyo.oslc4j.provider.jena.AbstractOslcRdfXmlProvider.readFrom(AbstractOslcRdfXmlProvider.java:345)
        ... 5 more


Regards,

Daniel Chirillo
Rational Lab Services
1-720-395-0914 (voice)
1-646-349-1956 (fax)
chirillo@xxxxxxxxxx