karishma-tirthani / odata4j

Automatically exported from code.google.com/p/odata4j
0 stars 0 forks source link

bad valueString as part of keyString #243

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Say one wants to consume the freely available data from the SAP NW Gateway 
demo system from http://scn.sap.com/docs/DOC-31221 (credentials for accessing 
the system are on that page). 
2. One writes a java application in that respect, but when trying to list the 
items of an entity from the NW Gateway system, an error is thrown, given the 
fact that one key field is of type date.

The error is the following:

java.lang.IllegalArgumentException: bad valueString 
[datetime'2012-09-26T00%3A00%3A00'] as part of keyString 
[AirLineID='AA',FlightConnectionID='0017',FlightDate=datetime'2012-09-26T00%3A00
%3A00']

The error shows up only when trying to list the FlightCollection (which has a 
date field among its keys). Metadata can be found here: 
http://gw.esworkplace.sap.com/sap/opu/odata/IWBEP/RMTSAMPLEFLIGHT_2/$metadata

What version of the product are you using? On what operating system?
odata4j 0.6.0 / Windows 7

Please have a look on it.

Original issue reported on code.google.com by rad...@gmail.com on 28 Feb 2013 at 1:40