java.net.SocketException: Network is unreachable

Atlassian JIRA | Peter Koczan | 11 months ago
  1. 0

    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.

    Atlassian JIRA | 11 months ago | Peter Koczan
    java.net.SocketException: Network is unreachable
  2. 0

    social

    solveseek.com | 1 year ago
    org.springframework.web.client.ResourceAccessException: I/O error on POST request for "https://graph.facebook.com/oauth/access_token":Network is unreachable; nested exception is java.net.SocketException: Network is unreachable
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    GitHub comment 41#248291652

    GitHub | 2 months ago | ghost
    java.net.SocketException: Network is unreachable
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. java.net.SocketException

    Network is unreachable

    at java.net.PlainSocketImpl.socketConnect()
  2. Java RT
    Socket.connect
    1. java.net.PlainSocketImpl.socketConnect(Native Method)
    2. java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    3. java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    4. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    5. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    6. java.net.Socket.connect(Socket.java:589)
    6 frames
  3. Apache HttpClient
    CloseableHttpClient.execute
    1. org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:117)
    2. org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177)
    3. org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304)
    4. org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611)
    5. org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446)
    6. org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:882)
    7. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
    8. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
    9. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
    9 frames
  4. com.adaptavist.analytics
    AbstractAnalyticsLegacyMacro.execute
    1. com.adaptavist.analytics.common.GoogleAnalyticsService.sendDataToAnalytics(GoogleAnalyticsService.java:69)
    2. com.adaptavist.analytics.common.GoogleAnalyticsService.sendDataToAnalytics(GoogleAnalyticsService.java:47)
    3. com.adaptavist.analytics.macrosusage.AbstractAnalyticsLegacyMacro.execute(AbstractAnalyticsLegacyMacro.java:37)
    3 frames
  5. com.adaptavist.confluence
    ContentFormattingMacro.renderMacro
    1. com.adaptavist.confluence.contentformatting.ContentFormattingMacro.renderMacro(ContentFormattingMacro.java:49)
    1 frame
  6. com.adaptavist.analytics
    AbstractAnalyticsLegacyMacro.execute
    1. com.adaptavist.analytics.macrosusage.AbstractAnalyticsLegacyMacro.execute(AbstractAnalyticsLegacyMacro.java:32)
    1 frame
  7. com.adaptavist.confluence
    ContentFormattingMacro.renderMacro
    1. com.adaptavist.confluence.contentformatting.ContentFormattingMacro.renderMacro(ContentFormattingMacro.java:49)
    1 frame
  8. com.adaptavist.analytics
    AbstractAnalyticsLegacyMacro.execute
    1. com.adaptavist.analytics.macrosusage.AbstractAnalyticsLegacyMacro.execute(AbstractAnalyticsLegacyMacro.java:32)
    1 frame
  9. com.adaptavist.confluence
    ContentFormattingMacro.renderMacro
    1. com.adaptavist.confluence.contentformatting.ContentFormattingMacro.renderMacro(ContentFormattingMacro.java:49)
    1 frame
  10. com.adaptavist.analytics
    AbstractAnalyticsLegacyMacro.execute
    1. com.adaptavist.analytics.macrosusage.AbstractAnalyticsLegacyMacro.execute(AbstractAnalyticsLegacyMacro.java:32)
    1 frame
  11. com.adaptavist.confluence
    ContentFormattingMacro.renderMacro
    1. com.adaptavist.confluence.contentformatting.ContentFormattingMacro.renderMacro(ContentFormattingMacro.java:49)
    1 frame
  12. com.adaptavist.analytics
    AbstractAnalyticsLegacyMacro.execute
    1. com.adaptavist.analytics.macrosusage.AbstractAnalyticsLegacyMacro.execute(AbstractAnalyticsLegacyMacro.java:32)
    1 frame
  13. com.adaptavist.confluence
    ContentFormattingMacro.renderMacro
    1. com.adaptavist.confluence.contentformatting.ContentFormattingMacro.renderMacro(ContentFormattingMacro.java:49)
    1 frame
  14. com.adaptavist.analytics
    AbstractAnalyticsLegacyMacro.execute
    1. com.adaptavist.analytics.macrosusage.AbstractAnalyticsLegacyMacro.execute(AbstractAnalyticsLegacyMacro.java:32)
    1 frame
  15. com.adaptavist.confluence
    ContentFormattingMacro.renderMacro
    1. com.adaptavist.confluence.contentformatting.ContentFormattingMacro.renderMacro(ContentFormattingMacro.java:49)
    1 frame
  16. com.adaptavist.analytics
    AbstractAnalyticsLegacyMacro.execute
    1. com.adaptavist.analytics.macrosusage.AbstractAnalyticsLegacyMacro.execute(AbstractAnalyticsLegacyMacro.java:32)
    1 frame
  17. com.adaptavist.confluence
    ContentFormattingMacro.renderMacro
    1. com.adaptavist.confluence.contentformatting.ContentFormattingMacro.renderMacro(ContentFormattingMacro.java:49)
    1 frame
  18. com.adaptavist.analytics
    AbstractAnalyticsLegacyMacro.execute
    1. com.adaptavist.analytics.macrosusage.AbstractAnalyticsLegacyMacro.execute(AbstractAnalyticsLegacyMacro.java:32)
    1 frame
  19. com.adaptavist.confluence
    ContentFormattingMacro.renderMacro
    1. com.adaptavist.confluence.contentformatting.ContentFormattingMacro.renderMacro(ContentFormattingMacro.java:49)
    1 frame
  20. com.adaptavist.analytics
    AbstractAnalyticsLegacyMacro.execute
    1. com.adaptavist.analytics.macrosusage.AbstractAnalyticsLegacyMacro.execute(AbstractAnalyticsLegacyMacro.java:32)
    1 frame
  21. com.adaptavist.confluence
    ContentFormattingMacro.renderMacro
    1. com.adaptavist.confluence.contentformatting.ContentFormattingMacro.renderMacro(ContentFormattingMacro.java:49)
    1 frame
  22. com.adaptavist.analytics
    AbstractAnalyticsLegacyMacro.execute
    1. com.adaptavist.analytics.macrosusage.AbstractAnalyticsLegacyMacro.execute(AbstractAnalyticsLegacyMacro.java:32)
    1 frame
  23. com.adaptavist.confluence
    ContentFormattingMacro.renderMacro
    1. com.adaptavist.confluence.contentformatting.ContentFormattingMacro.renderMacro(ContentFormattingMacro.java:49)
    1 frame