javax.ws.rs.WebApplicationException

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

Solutions on the web139

  • org.fcrepo.server.errors.GeneralException: XML was not well-formed. Reference is not allowed in prolog.
  • org.fcrepo.server.errors.GeneralException: XML was not well-formed. Reference is not allowed in prolog.
  • via GitHub by Morijarti
    , 8 months ago
    com.sun.jersey.api.MessageException: A message body writer for Java class java.lang.String, and Java type class java.lang.String, and MIME media type application/xml was not found
  • Stack trace

    • 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(BaseRestResource.java:168) at org.fcrepo.server.rest.DatastreamResource.addOrUpdateDatastream(DatastreamResource.java:583) at org.fcrepo.server.rest.DatastreamResource.modifyDatastream(DatastreamResource.java:315) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.