com.sun.jersey.api.client.ClientHandlerException: com.marklogic.client.MarkLogicIOException: javax.xml.stream.XMLStreamException: Trying to write an attribute when there is no open start element.

GitHub | srinathgit | 3 months 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.
  1. 0

    Loading document fails when used with a MetaData object with property set

    GitHub | 3 months ago | srinathgit
    com.sun.jersey.api.client.ClientHandlerException: com.marklogic.client.MarkLogicIOException: javax.xml.stream.XMLStreamException: Trying to write an attribute when there is no open start element.
  2. 0

    NoHttpResponseException when under stress

    GitHub | 2 years ago | sammefford
    com.sun.jersey.api.client.ClientHandlerException: org.apache.http.NoHttpResponseException: The target server failed to respond
  3. 0

    Incorrect behavior of HostAvailabilityListener when host is shutdown

    GitHub | 6 months ago | srinathgit
    com.sun.jersey.api.client.ClientHandlerException: org.apache.http.NoHttpResponseException: The target server failed to respond
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.xml.stream.XMLStreamException

      Trying to write an attribute when there is no open start element.

      at com.ctc.wstx.sw.BaseStreamWriter.throwOutputError()
    2. Woodstox
      RepairingNsStreamWriter.writeAttribute
      1. com.ctc.wstx.sw.BaseStreamWriter.throwOutputError(BaseStreamWriter.java:1564)
      2. com.ctc.wstx.sw.RepairingNsStreamWriter.writeAttribute(RepairingNsStreamWriter.java:124)
      2 frames
    3. com.marklogic.client
      StreamingOutputImpl.write
      1. com.marklogic.client.io.DocumentMetadataHandle$ValueSerializer.process(DocumentMetadataHandle.java:900)
      2. com.marklogic.client.impl.ValueConverter.convertFromJava(ValueConverter.java:270)
      3. com.marklogic.client.impl.ValueConverter.convertFromJava(ValueConverter.java:87)
      4. com.marklogic.client.io.DocumentMetadataHandle.sendPropertiesImpl(DocumentMetadataHandle.java:873)
      5. com.marklogic.client.io.DocumentMetadataHandle.sendMetadataImpl(DocumentMetadataHandle.java:776)
      6. com.marklogic.client.io.DocumentMetadataHandle.write(DocumentMetadataHandle.java:559)
      7. com.marklogic.client.impl.StreamingOutputImpl.write(StreamingOutputImpl.java:48)
      7 frames
    4. jersey-core
      StreamingOutputProvider.writeTo
      1. com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:71)
      2. com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:57)
      2 frames
    5. jersey-multipart
      MultiPartWriter.writeTo
      1. com.sun.jersey.multipart.impl.MultiPartWriter.writeTo(MultiPartWriter.java:218)
      2. com.sun.jersey.multipart.impl.MultiPartWriter.writeTo(MultiPartWriter.java:71)
      2 frames
    6. jersey-client
      RequestWriter$RequestEntityWriterImpl.writeRequestEntity
      1. com.sun.jersey.api.client.RequestWriter$RequestEntityWriterImpl.writeRequestEntity(RequestWriter.java:231)
      1 frame
    7. Jersey Apache HTTP Client 4.x
      ApacheHttpClient4Handler$2.writeTo
      1. com.sun.jersey.client.apache4.ApacheHttpClient4Handler$2.writeTo(ApacheHttpClient4Handler.java:262)
      1 frame
    8. Apache Http
      HttpEntityWrapper.writeTo
      1. org.apache.http.entity.HttpEntityWrapper.writeTo(HttpEntityWrapper.java:96)
      1 frame
    9. Apache HttpClient
      EntityEnclosingRequestWrapper$EntityWrapper.writeTo
      1. org.apache.http.impl.client.EntityEnclosingRequestWrapper$EntityWrapper.writeTo(EntityEnclosingRequestWrapper.java:108)
      1 frame
    10. Apache Http
      AbstractHttpClientConnection.sendRequestEntity
      1. org.apache.http.impl.entity.EntitySerializer.serialize(EntitySerializer.java:120)
      2. org.apache.http.impl.AbstractHttpClientConnection.sendRequestEntity(AbstractHttpClientConnection.java:263)
      2 frames
    11. Apache HttpClient
      AbstractClientConnAdapter.sendRequestEntity
      1. org.apache.http.impl.conn.AbstractClientConnAdapter.sendRequestEntity(AbstractClientConnAdapter.java:227)
      1 frame
    12. Apache Http
      HttpRequestExecutor.execute
      1. org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:255)
      2. org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123)
      2 frames
    13. Apache HttpClient
      AbstractHttpClient.execute
      1. org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:633)
      2. org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:454)
      3. org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
      4. org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:776)
      4 frames
    14. Jersey Apache HTTP Client 4.x
      ApacheHttpClient4Handler.handle
      1. com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:170)
      1 frame
    15. com.marklogic.client
      DigestChallengeFilter.handle
      1. com.marklogic.client.impl.DigestChallengeFilter.handle(DigestChallengeFilter.java:34)
      1 frame
    16. jersey-client
      WebResource$Builder.post
      1. com.sun.jersey.api.client.filter.HTTPDigestAuthFilter.handle(HTTPDigestAuthFilter.java:493)
      2. com.sun.jersey.api.client.Client.handle(Client.java:648)
      3. com.sun.jersey.api.client.WebResource.handle(WebResource.java:680)
      4. com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
      5. com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:568)
      5 frames
    17. com.marklogic.client
      WriteBatcherImpl$BatchWriter.run
      1. com.marklogic.client.impl.JerseyServices.doPost(JerseyServices.java:3940)
      2. com.marklogic.client.impl.JerseyServices.postResource(JerseyServices.java:3227)
      3. com.marklogic.client.impl.JerseyServices.postBulkDocuments(JerseyServices.java:3345)
      4. com.marklogic.client.impl.DocumentManagerImpl.write(DocumentManagerImpl.java:619)
      5. com.marklogic.client.impl.GenericDocumentImpl.write(GenericDocumentImpl.java:1)
      6. com.marklogic.client.impl.DocumentManagerImpl.write(DocumentManagerImpl.java:611)
      7. com.marklogic.client.impl.GenericDocumentImpl.write(GenericDocumentImpl.java:1)
      8. com.marklogic.client.datamovement.impl.WriteBatcherImpl$BatchWriter.run(WriteBatcherImpl.java:1032)
      8 frames
    18. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      5. java.lang.Thread.run(Thread.java:745)
      5 frames