cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Cant unmarshall input to class while calling the cart entries URI?

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

Am also facing the samekind of issue.Please let me know if you find the solution.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

cjmjansen
Explorer
0 Kudos

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/#.

Former Member
0 Kudos

How are you accessing this URI from JAVA code or RESTclient?.

Former Member
0 Kudos

RESTclient