on 08-20-2015 1:52 PM
Hi,
Trying to create a cart entries for anonymous User using the following URI **https://localhost:9002/rest/v2/apparel-uk/users/anonymous/carts/6ac9e701-4dfc-485d-93bd-67b9c017c944...
Getting the following error.
{ "errors" : [ { "message" : "Cant unmarshall input to class: de.hybris.platform.commercewebservicescommons.dto.order.OrderEntryWsDTO; nested exception is javax.xml.bind.UnmarshalException\n - with linked exception:\n[Exception [EeLink-25004] (Ee Persistence Services - 2.5.0.v20130507-3faac2b): org.ee.persistence.exceptions.XMLMarshalException\r\nException Description: An error occurred unmarshalling the document\r\nInternal Exception: NoViableAltException(-1@[])]", "type" : "HttpMessageNotReadableError" } ] }
Please help on this.
Thanks.
Solved this issue.
This exception is throwing due to provding the header [content-type ----application/json or application/xml] in OCC request. which is not expected .
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I had the same problem and resolved it by formatting the Json content body. It failed due to whitespaces between the keys and values. I used the following website to format the Json: https://jsonformatter.curiousconcept.com/#.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How are you accessing this URI from JAVA code or RESTclient?.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.