Reputation: 1002
Working on restful webservices. Getting the following error while invoking rest ful service but Integration test is working for same request.
Error: SEVERE: Jul 15, 2012 8:59:10 AM org.apache.cxf.jaxrs.utils.JAXRSUtils readFromMessageBody SEVERE: Error deserializing input stream into target class UserActivity, content type : / Jul 15, 2012 8:59:10 AM org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper toResponse WARNING: WebApplicationException has been caught : No content to map to Object due to end of input
and the JsonInput is : {"pageURL":"https://google.com,"activityType":"LOGIN","userGUID":"105"}
and if I try same input with test client it is working... any idea what's going on here, am i missing any library?
Any suggestions would be more appreciated.
Upvotes: 0
Views: 2046
Reputation: 1002
Got it resolved..
I was Not passing proper request value to Jersey client.
Thanks
Upvotes: 0
Reputation: 4879
You are missing quote after google.com URL thus the JSON is not well-formed.
Should be:
{"pageURL":"https://google.com","activityType":"LOGIN","userGUID":"105"}
You can always validate your JSON with free tools like:
Upvotes: 2