javax.ws.rs.WebApplicationException: org.fcrepo.server.errors.GeneralException: XML was not well-formed. Reference is not allowed in prolog.

Sakai JIRA | Jonathan M. Lane | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.

    Root Cause Analysis

    1. javax.ws.rs.WebApplicationException

      org.fcrepo.server.errors.GeneralException: XML was not well-formed. Reference is not allowed in prolog.

      at org.fcrepo.server.rest.BaseRestResource.handleException()
    2. org.fcrepo.server
      DatastreamResource.modifyDatastream
      1. org.fcrepo.server.rest.BaseRestResource.handleException(BaseRestResource.java:168)
      2. org.fcrepo.server.rest.DatastreamResource.addOrUpdateDatastream(DatastreamResource.java:583)
      3. org.fcrepo.server.rest.DatastreamResource.modifyDatastream(DatastreamResource.java:315)
      3 frames
    3. Java RT
      NativeMethodAccessorImpl.invoke0
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      1 frame