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

    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