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.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by srinathgit
, 11 months ago
org.apache.http.NoHttpResponseException: The target server failed to respond
via GitHub by sammefford
, 2 years ago
org.apache.http.NoHttpResponseException: The target server failed to respond
via GitHub by srinathgit
, 10 months ago
com.marklogic.client.MarkLogicIOException: javax.xml.stream.XMLStreamException: Trying to write an attribute when there is no open start element.
via GitHub by srinathgit
, 11 months ago
org.apache.http.NoHttpResponseException: The target server failed to respond
via Stack Overflow by user1692342
, 1 year ago
org.apache.http.NoHttpResponseException: The target server failed to respond
via Google Groups by Unknown author, 1 year ago
org.apache.http.conn.HttpHostConnectException: Connection to http://localhost refused
javax.xml.stream.XMLStreamException: Trying to write an attribute when there is no open start element.
at com.ctc.wstx.sw.BaseStreamWriter.throwOutputError(BaseStreamWriter.java:1564)
at com.ctc.wstx.sw.RepairingNsStreamWriter.writeAttribute(RepairingNsStreamWriter.java:124)
at com.marklogic.client.io.DocumentMetadataHandle$ValueSerializer.process(DocumentMetadataHandle.java:900)
at com.marklogic.client.impl.ValueConverter.convertFromJava(ValueConverter.java:270)
at com.marklogic.client.impl.ValueConverter.convertFromJava(ValueConverter.java:87)
at com.marklogic.client.io.DocumentMetadataHandle.sendPropertiesImpl(DocumentMetadataHandle.java:873)
at com.marklogic.client.io.DocumentMetadataHandle.sendMetadataImpl(DocumentMetadataHandle.java:776)
at com.marklogic.client.io.DocumentMetadataHandle.write(DocumentMetadataHandle.java:559)
at com.marklogic.client.impl.StreamingOutputImpl.write(StreamingOutputImpl.java:48)
at com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:71)
at com.sun.jersey.multipart.impl.MultiPartWriter.writeTo(MultiPartWriter.java:218)
at org.apache.http.impl.entity.EntitySerializer.serialize(EntitySerializer.java:120)
at org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:255)
at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:633)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:454)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
at com.marklogic.client.impl.DigestChallengeFilter.handle(DigestChallengeFilter.java:34)
at com.sun.jersey.api.client.filter.HTTPDigestAuthFilter.handle(HTTPDigestAuthFilter.java:493)
at com.sun.jersey.api.client.Client.handle(Client.java:648)
at com.sun.jersey.api.client.WebResource.handle(WebResource.java:680)
at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
at com.marklogic.client.impl.JerseyServices.doPost(JerseyServices.java:3940)
at com.marklogic.client.impl.JerseyServices.postResource(JerseyServices.java:3227)
at com.marklogic.client.impl.JerseyServices.postBulkDocuments(JerseyServices.java:3345)
at com.marklogic.client.impl.DocumentManagerImpl.write(DocumentManagerImpl.java:619)
at com.marklogic.client.impl.GenericDocumentImpl.write(GenericDocumentImpl.java:1)
at com.marklogic.client.impl.DocumentManagerImpl.write(DocumentManagerImpl.java:611)
at com.marklogic.client.impl.GenericDocumentImpl.write(GenericDocumentImpl.java:1)
at com.marklogic.client.datamovement.impl.WriteBatcherImpl$BatchWriter.run(WriteBatcherImpl.java:1032)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Once, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.