Unexpected character ('-' (code 45)) in numeric value
Options
Hello,
I'm trying to make POST API call using custom REST client code. On execution I'm getting the 400 status code and following error message
{"status":400,"code":"E_INPUT_MESSAGE_NOT_READABLE","message":"The input message is not readable.","details":"Error in parsing the JSON into object class: class com.rest.model.ApplicationSearch;Unexpected character ('-' (code 45)) in numeric value: expected digit (0-9) to follow minus sign, for valid numeric value\n at [Source: org.apache.catalina.connector.CoyoteInputStream@4feed296; line: 1, column: 3]"}
Following is my JSON string
String json="{\"properties\" : {\"document_type\": \"LoanApplication\"}}";
This is no "-" in the JSON string. Only "_" is there.
Can anyone tell me what needs to be done to resolve this error.
Thanks.
Tagged:
0
Comments
-
The sample request payload you posted here did not show a relation to the error cause. It might be better if you could dump the request / response messages together with the logs.
- Set DEBUG logging level in dctm-rest.war\WEB-INF\classes\log4j.properties
log4j.logger.com.emc.documentum.rest.log=DEBUG
- Set message logging enabled in dctm-rest.war\WEB-INF\classes\rest-api-runtime.properties
rest.message.logging.enabled=
true
0 - Set DEBUG logging level in dctm-rest.war\WEB-INF\classes\log4j.properties
-
I am getting the same error. Please let me know how you resolved the same
Vinod Krishna
Architect, Consulting Services
OpenText0
Categories
- All Categories
- 108 Developer Announcements
- 49 Articles
- 100 General Questions
- 122 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 120 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management