Skip to content

Instantly share code, notes, and snippets.

@rintcius
Created November 15, 2018 19:55
Show Gist options
  • Save rintcius/d95f7f726cbf38fb20de953e1b99d055 to your computer and use it in GitHub Desktop.
Save rintcius/d95f7f726cbf38fb20de953e1b99d055 to your computer and use it in GitHub Desktop.
Unexpected error: java.io.IOException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
Message: Content is not allowed in prolog.
com.fasterxml.jackson.dataformat.xml.util.StaxUtil.throwXmlAsIOException(StaxUtil.java:24)
com.fasterxml.jackson.dataformat.xml.XmlFactory._createParser(XmlFactory.java:561)
com.fasterxml.jackson.dataformat.xml.XmlFactory.createParser(XmlFactory.java:433)
com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2896)
com.microsoft.rest.v2.serializer.JacksonAdapter.deserialize(JacksonAdapter.java:126)
com.microsoft.rest.v2.protocol.HttpResponseDecoder.deserializeBody(HttpResponseDecoder.java:139)
com.microsoft.rest.v2.protocol.HttpResponseDecoder.access$100(HttpResponseDecoder.java:42)
com.microsoft.rest.v2.protocol.HttpResponseDecoder$2.apply(HttpResponseDecoder.java:119)
com.microsoft.rest.v2.protocol.HttpResponseDecoder$2.apply(HttpResponseDecoder.java:115)
io.reactivex.internal.operators.single.SingleMap$MapSingleObserver.onSuccess(SingleMap.java:57)
io.reactivex.internal.operators.single.SingleMap$MapSingleObserver.onSuccess(SingleMap.java:64)
io.reactivex.internal.operators.single.SingleCache.onSuccess(SingleCache.java:134)
io.reactivex.internal.operators.single.SingleMap$MapSingleObserver.onSuccess(SingleMap.java:64)
io.reactivex.internal.operators.flowable.FlowableCollectSingle$CollectSubscriber.onComplete(FlowableCollectSingle.java:119)
com.microsoft.rest.v2.http.NettyClient$ResponseContentFlowable.emitContent(NettyClient.java:762)
com.microsoft.rest.v2.http.NettyClient$ResponseContentFlowable.drain(NettyClient.java:722)
com.microsoft.rest.v2.http.NettyClient$ResponseContentFlowable.onReceivedContent(NettyClient.java:645)
com.microsoft.rest.v2.http.NettyClient$HttpClientInboundHandler.channelRead(NettyClient.java:870)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:438)
io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310)
io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:284)
io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:253)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1407)
io.netty.handler.ssl.SslHandler.decodeJdkCompatible(SslHandler.java:1177)
io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1221)
io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)
io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428)
io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1434)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:965)
io.netty.channel.kqueue.AbstractKQueueStreamChannel$KQueueStreamUnsafe.readReady(AbstractKQueueStreamChannel.java:551)
io.netty.channel.kqueue.AbstractKQueueChannel$AbstractKQueueUnsafe.readReady(AbstractKQueueChannel.java:396)
io.netty.channel.kqueue.KQueueEventLoop.processReady(KQueueEventLoop.java:195)
io.netty.channel.kqueue.KQueueEventLoop.run(KQueueEventLoop.java:269)
io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884)
io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
java.lang.Thread.run(Thread.java:748)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment