java.net.SocketException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GitHub comment 41#248291652
    via GitHub by ghost
    ,
  • GitHub comment 41#248292090
    via GitHub by ghost
    ,
  • GitHub comment 41#248295575
    via GitHub by ghost
    ,
  • Spring Social Facebook error
    via Stack Overflow by Angelo Immediata
    ,
  • social
    via by Unknown author,
  • GitHub comment 317#219287659
    via GitHub by thasherwin
    ,
  • h4. Symptoms - Certain pages with macros do not render on time, the page times out - The following or similar stack trace appears in the logs: {code}2016-01-08 09:15:55,846 ERROR [ajp-nio-8009-exec-3] [adaptavist.analytics.common.GoogleAnalyticsService] sendDataToAnalytics Unable to send analytics data to google service! -- referer: http://base.url/path | url: /path | userName: admin | action: viewpage | page: 12345678 java.net.SocketException: Network is unreachable at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:117) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177) at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304) at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446) at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:882) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55) at com.adaptavist.analytics.common.GoogleAnalyticsService.sendDataToAnalytics(GoogleAnalyticsService.java:69) at com.adaptavist.analytics.common.GoogleAnalyticsService.sendDataToAnalytics(GoogleAnalyticsService.java:47) at com.adaptavist.analytics.macrosusage.AbstractAnalyticsLegacyMacro.execute(AbstractAnalyticsLegacyMacro.java:37) at com.adaptavist.confluence.contentformatting.ContentFormattingMacro.renderMacro(ContentFormattingMacro.java:49) at com.adaptavist.analytics.macrosusage.AbstractAnalyticsLegacyMacro.execute(AbstractAnalyticsLegacyMacro.java:32) at com.adaptavist.confluence.contentformatting.ContentFormattingMacro.renderMacro(ContentFormattingMacro.java:49) at com.adaptavist.analytics.macrosusage.AbstractAnalyticsLegacyMacro.execute(AbstractAnalyticsLegacyMacro.java:32) at com.adaptavist.confluence.contentformatting.ContentFormattingMacro.renderMacro(ContentFormattingMacro.java:49) at com.adaptavist.analytics.macrosusage.AbstractAnalyticsLegacyMacro.execute(AbstractAnalyticsLegacyMacro.java:32) at com.adaptavist.confluence.contentformatting.ContentFormattingMacro.renderMacro(ContentFormattingMacro.java:49) at com.adaptavist.analytics.macrosusage.AbstractAnalyticsLegacyMacro.execute(AbstractAnalyticsLegacyMacro.java:32) at com.adaptavist.confluence.contentformatting.ContentFormattingMacro.renderMacro(ContentFormattingMacro.java:49) at com.adaptavist.analytics.macrosusage.AbstractAnalyticsLegacyMacro.execute(AbstractAnalyticsLegacyMacro.java:32) at com.adaptavist.confluence.contentformatting.ContentFormattingMacro.renderMacro(ContentFormattingMacro.java:49) at com.adaptavist.analytics.macrosusage.AbstractAnalyticsLegacyMacro.execute(AbstractAnalyticsLegacyMacro.java:32) at com.adaptavist.confluence.contentformatting.ContentFormattingMacro.renderMacro(ContentFormattingMacro.java:49) at com.adaptavist.analytics.macrosusage.AbstractAnalyticsLegacyMacro.execute(AbstractAnalyticsLegacyMacro.java:32) at com.adaptavist.confluence.contentformatting.ContentFormattingMacro.renderMacro(ContentFormattingMacro.java:49) at com.adaptavist.analytics.macrosusage.AbstractAnalyticsLegacyMacro.execute(AbstractAnalyticsLegacyMacro.java:32) at com.adaptavist.confluence.contentformatting.ContentFormattingMacro.renderMacro(ContentFormattingMacro.java:49) at com.adaptavist.analytics.macrosusage.AbstractAnalyticsLegacyMacro.execute(AbstractAnalyticsLegacyMacro.java:32) at com.adaptavist.confluence.contentformatting.ContentFormattingMacro.renderMacro(ContentFormattingMacro.java:49) ... {code} h4. Environment - Adaptavist Content Formatting Macros version 4.2.13-4.2.15 is installed h4. Problem This is an issue with the mentioned third-party add-on. The problem is caused by the add-on gathering Google Analytics data and tries to send it. If this fails for any reason (network error for example), the macro rendering may take longer than the page rendering timeout. h4. Workaround Downgrade to any version of the plugin prior to 4.2.13. h4. Solution If you have an active support license with Adaptavist, you can track this issue with reference {{CONTENTF-251}}. Wait for the bug to be fixed and install the plugin version that contains it. *Update:* The issue was reportedly fixed in version 4.2.16 of the plugin.
    via by Peter Koczan,
  • GitHub comment 328#271073544
    via GitHub by Fraid
    ,
    • java.net.SocketException: Network is unreachable at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:74) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107) at com.graphaware.common.ping.GoogleAnalyticsStatsCollector.lambda$post$0(GoogleAnalyticsStatsCollector.java:93) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) 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

    mauritiusmauritius
    1 times, last one,
    r1chjamesr1chjames
    2 times, last one,
    Александр ПастуховАлександр Пастухов
    3 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    55 more bugmates