java.net.MalformedURLException: no protocol: { "complexBeans" : { "first" : { "name" : "cbName1", "surName" : "cbSurName1", "weight" : "50.5" }, "second" : { "name" : "cbName2", "surName" : "cbSurName2", "weight" : "10.5" } } } at org.eclipse.persistence.exceptions.XMLMarshalException.unmarshalException(XMLMarshalException.java:120)

Stack Overflow | Daniel Dudarev | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    JAXB mapping Map with complex object to JSON

    Stack Overflow | 7 months ago | Daniel Dudarev
    java.net.MalformedURLException: no protocol: { "complexBeans" : { "first" : { "name" : "cbName1", "surName" : "cbSurName1", "weight" : "50.5" }, "second" : { "name" : "cbName2", "surName" : "cbSurName2", "weight" : "10.5" } } } at org.eclipse.persistence.exceptions.XMLMarshalException.unmarshalException(XMLMarshalException.java:120)

    Root Cause Analysis

    1. java.net.MalformedURLException

      no protocol: { "complexBeans" : { "first" : { "name" : "cbName1", "surName" : "cbSurName1", "weight" : "50.5" }, "second" : { "name" : "cbName2", "surName" : "cbSurName2", "weight" : "10.5" } } } at org.eclipse.persistence.exceptions.XMLMarshalException.unmarshalException(XMLMarshalException.java:120)

      at org.eclipse.persistence.internal.oxm.record.json.JsonStructureReader.parse()
    2. EclipseLink (non-OSGi)
      XMLUnmarshaller.unmarshal
      1. org.eclipse.persistence.internal.oxm.record.json.JsonStructureReader.parse(JsonStructureReader.java:156)
      2. org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:863)
      3. org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:710)
      4. org.eclipse.persistence.internal.oxm.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:643)
      4 frames
    3. EclipseLink
      JAXBUnmarshaller.unmarshal
      1. org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal(JAXBUnmarshaller.java:339)
      1 frame