Unexpected character ('-' (code 45)) in numeric value
Shailendra_Ch
Member
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
- 122 Developer Announcements
- 53 Articles
- 151 General Questions
- 146 Thrust Services
- 56 OpenText Hackathon
- 35 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 917 Cloud Fax and Notifications
- 83 Digital Asset Management
- 9.4K Documentum
- 31 eDOCS
- 178 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 9 XM Fax
- Follow Categories