java.net.SocketException

google.com | 3 months ago
  1. 0

    NetworkInterface.getNetworkInterfaces() not work on JDK 1.7 OS X?

    Stack Overflow | 4 years ago | DANG Fan
    java.net.SocketException: Can't assign requested address
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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.lang.NumberFormatException

      Invalid int: " 4"

      at java.lang.Integer.invalidInt()
    2. Java RT
      NetworkInterface.getNetworkInterfaces
      1. java.lang.Integer.invalidInt(Integer.java:138)
      2. java.lang.Integer.parse(Integer.java:375)
      3. java.lang.Integer.parseInt(Integer.java:366)
      4. java.lang.Short.parseShort(Short.java:213)
      5. java.net.NetworkInterface.collectIpv6Addresses(NetworkInterface.java:146)
      6. java.net.NetworkInterface.getByName(NetworkInterface.java:117)
      7. java.net.NetworkInterface.getNetworkInterfacesList(NetworkInterface.java:270)
      8. java.net.NetworkInterface.getNetworkInterfaces(NetworkInterface.java:262)
      8 frames
    3. com.entertailion.android
      WebServerService$BroadcastHandler.handleMessage
      1. com.entertailion.android.remote.utils.Utils.getLocalIpAddress(Utils.java:980)
      2. com.entertailion.android.remote.WebServerService$BroadcastHandler.handleMessage(WebServerService.java:227)
      2 frames
    4. Android Platform
      ActivityThread.main
      1. android.os.Handler.dispatchMessage(Handler.java:99)
      2. android.os.Looper.loop(Looper.java:154)
      3. android.app.ActivityThread.main(ActivityThread.java:4977)
      3 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:511)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
      2 frames
    7. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame