Menu

#275 SocketException: Address family not supported by protocol family: connect

latest_beta_version
pending
nobody
None
1
2015-09-11
2015-01-02
Breno
No

Version: Mobile Atlas Creator (MOBAC) 1.9.16
Platform: Windows 8.1 (6.3) (windows)
Java VM: Java HotSpot(TM) 64-Bit Server VM (1.7.0_71-b14)
Max heap size: 910,50 MiB
CPU cores: 4

Thread: AWT-EventQueue-0

Error hierarchy:
SocketException: Address family not supported by protocol family: connect

java.net.SocketException: Address family not supported by protocol family: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at mobac.mapsources.loader.MapPackManager.downloadMD5SumList(MapPackManager.java:208)
at mobac.mapsources.loader.MapPackManager.updateMapPacks(MapPackManager.java:256)
at mobac.gui.settings.SettingsGUI$MapPacksOnlineUpdateAction.actionPerformed(SettingsGUI.java:913)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at mobac.utilities.GUIExceptionHandler$EventQueueProxy.dispatchEvent(GUIExceptionHandler.java:322)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.WaitDispatchSupport$2.run(Unknown Source)
at java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(Unknown Source)
at java.awt.Dialog.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at java.awt.Window.setVisible(Unknown Source)
at java.awt.Dialog.setVisible(Unknown Source)
at mobac.gui.settings.SettingsGUI.<init>(SettingsGUI.java:234)
at mobac.gui.settings.SettingsGUI.<init>(SettingsGUI.java:95)
at mobac.gui.settings.SettingsGUI$1.run(SettingsGUI.java:208)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at mobac.utilities.GUIExceptionHandler$EventQueueProxy.dispatchEvent(GUIExceptionHandler.java:322)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)</init></init></init>

Discussion

  • r_x

    r_x - 2015-01-02

    Please provide more information. Without any context when the error happened it is not possible to understand or fix the underlaying problem.

     
    • Breno

      Breno - 2015-01-02

      I uncompressed and tried to start the program and will not appear the map! Only an "x" in place of the map! I had never used this program was the first time!

       
  • r_x

    r_x - 2015-01-02
    • summary: Erro ao iniciar --> SocketException: Address family not supported by protocol family: connect
    • status: open --> pending
     
    • Breno

      Breno - 2015-01-02

      Just to point out my system is windows 8.1 64x!

       
  • r_x

    r_x - 2015-01-03

    This can happen if your system is configured to use IPv6 but your Internet connection does not support IPv6.

     
    • Breno

      Breno - 2015-01-06

      I'm suspecting that the "Mobile Atlas Creator" does not work on x64 systems!

       
  • Breno

    Breno - 2015-01-06

    I have a notbook on the same internet only q it is a windows 7 ultimate 32 bits and perfectly works MOBILE ATLAS CREATOR .... already in my descktop win 64x 8.1 no longer works!

     
  • r_x

    r_x - 2015-01-06

    MOBAC runs fine on x64. It is only Java that has problems with your system. You should disable IPv6 in Java and then everything will work as expected.

    Start MOBAC using command line to disable IPv6:

    javaw -Djava.net.preferIPv4Stack=true -jar Mobile_Atlas_Creator.jar

     
    • Breno

      Breno - 2015-01-06

      I issued the command and appeared an error message written:

      Error: Unable to access jarfile Mobile_Atlas_Creator.jar

       
  • r_x

    r_x - 2015-01-07

    Of course you have to execute this command from within the directory where you installed MOBAC into...

     
    • Breno

      Breno - 2015-01-08

      I issued the command in the directory and opened the the program, but he still does not present the maps!

       
  • r_x

    r_x - 2015-01-08

    If it is the same error the networking part of Java seems to be totally broken. May be try to deinstall everything related to Java and install Java version 8 instead.

     
  • Stas Agarkov

    Stas Agarkov - 2015-09-11

    Use code:
    System.setProperty("java.net.preferIPv4Stack", "true");
    It work for me.

     

Log in to post a comment.

MongoDB Logo MongoDB