Java error when attempting to export space to HTML
Asked by Kevin Gamin:

When I attempt to export one of our spaces, I get the following message after only a few seconds:  

There was an error in the export. Please check your log files. :java.lang.NullPointerException  

Here is the full log entry:  

12-Oct-2018 12:47:00.955 INFO \[synchronyProxyFilter-274\] org.apache.coyote.AbstractProcessor.setErrorState An error occurred in processing while on a non-container thread. The connection will be closed immediately  
java.io.IOException: An established connection was aborted by the software in your host machine  
at sun.nio.ch.SocketDispatcher.write0(Native Method)  
at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:51)  
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)  
at sun.nio.ch.IOUtil.write(IOUtil.java:65)  
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)  
at org.apache.tomcat.util.net.NioChannel.write(NioChannel.java:124)  
at org.apache.tomcat.util.net.NioBlockingSelector.write(NioBlockingSelector.java:101)  
at org.apache.tomcat.util.net.NioSelectorPool.write(NioSelectorPool.java:172)  
at org.apache.coyote.http11.InternalNioOutputBuffer.writeToSocket(InternalNioOutputBuffer.java:140)  
at org.apache.coyote.http11.InternalNioOutputBuffer.addToBB(InternalNioOutputBuffer.java:198)  
at org.apache.coyote.http11.InternalNioOutputBuffer.access$000(InternalNioOutputBuffer.java:42)  
at org.apache.coyote.http11.InternalNioOutputBuffer$SocketOutputBuffer.doWrite(InternalNioOutputBuffer.java:321)  
at org.apache.coyote.http11.filters.IdentityOutputFilter.doWrite(IdentityOutputFilter.java:84)  
at org.apache.coyote.http11.AbstractOutputBuffer.doWrite(AbstractOutputBuffer.java:256)  
at org.apache.coyote.Response.doWrite(Response.java:491)  
at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:391)  
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:344)  
at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:421)  
at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:409)  
at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:97)  
at org.eclipse.jetty.proxy.ProxyServlet.onResponseContent(ProxyServlet.java:139)  
at org.eclipse.jetty.proxy.ProxyServlet$ProxyResponseListener.onContent(ProxyServlet.java:221)  
at org.eclipse.jetty.client.ResponseNotifier.notifyContent(ResponseNotifier.java:124)  
at org.eclipse.jetty.client.ResponseNotifier.access$100(ResponseNotifier.java:35)  
at org.eclipse.jetty.client.ResponseNotifier$ContentCallback.process(ResponseNotifier.java:272)  
at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:241)  
at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:224)  
at org.eclipse.jetty.client.ResponseNotifier.notifyContent(ResponseNotifier.java:117)  
at org.eclipse.jetty.client.HttpReceiver.responseContent(HttpReceiver.java:327)  
at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.content(HttpReceiverOverHTTP.java:258)  
at org.eclipse.jetty.http.HttpParser.parseContent(HttpParser.java:1512)  
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:1335)  
at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.parse(HttpReceiverOverHTTP.java:159)  
at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.process(HttpReceiverOverHTTP.java:120)  
at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.receive(HttpReceiverOverHTTP.java:70)  
at org.eclipse.jetty.client.http.HttpChannelOverHTTP.receive(HttpChannelOverHTTP.java:90)  
at org.eclipse.jetty.client.http.HttpConnectionOverHTTP.onFillable(HttpConnectionOverHTTP.java:115)  
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283)  
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110)  
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)  
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)  
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)  
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)  
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)  
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)  
at java.lang.Thread.run(Thread.java:745)


Answers:
author: Shannon S
body: Kevin,

Can you tell us what version of Confluence you're using?

It seems like your server might be terminating the connection so you can also use [Crashes and Performance Issues Troubleshooting](https://confluence.atlassian.com/jirakb/crashes-and-performance-issues-troubleshooting-203394749.html) in order to dive deeper into your issue.

Regards,

Shannon

comments: author: Kevin Gamin
body: Shannon,

We have Confluence 6.20.

I am looking at the troubleshooting guide. I do note that the guide is for JIRA, but I assume Confluence runs on that or has similar troubleshooting steps.

Kevin


author: Kevin Gamin
body: Shannon,

I've gotten around the issue by doing a custom export and skipping any pages which were set up as subfolders with no actual documentation. You can close this thread.

Kevin


author: Shannon S
body: Hi Kevin,

The article is for Jira but it mentions troubleshooting JAVA/JDK which could have helped if that's what is crashing.

At any rate, glad you were able to work around it by skipping the problematic pages.

Regards,

Shannon


Tags: confluence-server

server