Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6931566

NetworkInterface is not working when interface name is more than 15 characters long

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 7
    • 6u18
    • core-libs
    • b102
    • sparc
    • solaris_10
    • Verified

        FULL PRODUCT VERSION :
        java version "1.6.0_18-ea"
        Java(TM) SE Runtime Environment (build 1.6.0_18-ea-b05)
        Java HotSpot(TM) Server VM (build 16.0-b12, mixed mode)


        ADDITIONAL OS VERSION INFORMATION :
        SunOS 5.10 Generic_138888-06 sun4v sparc SUNW,Sun-Blade-T6320

        A DESCRIPTION OF THE PROBLEM :
        We are trying to use jdk1.6.0_18 with Weblogic 11gR1 (10.3.2).

        The environment requires configuring a Virtual IP through Veritas Cluster into one of the Solaris 10 local zones.
        As soon as the Virtual IP is plumbed in, the Weblogic server fails to come up and the following error is shown.

        <BEA-000386> <Server subsystem failed. Reason: java.lang.AssertionError: An error occurred while retrieving the n
        etwork addresses for this machine. The most likely cause is an error in the network configuration of this machine.
        java.lang.AssertionError: An error occurred while retrieving the network addresses for this machine. The most likely cause is
        an error in the network configuration of this machine.
        at weblogic.server.channels.AddressUtils$AddressMaker.getAllAddresses(AddressUtils.java:89)
        at weblogic.server.channels.AddressUtils$AddressMaker.<clinit>(AddressUtils.java:47)
        at weblogic.server.channels.AddressUtils.getLocalHost(AddressUtils.java:117)
        at weblogic.cluster.ClusterHelper.getMachineName(ClusterHelper.java:44)
        at weblogic.cluster.ClusterService.startService(ClusterService.java:102)
        at weblogic.server.ServiceActivator.start(ServiceActivator.java:98)
        at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
        at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)

        Caused By: java.net.SocketException: No such device or address
        at java.net.NetworkInterface.getAll(Native Method)
        at java.net.NetworkInterface.getNetworkInterfaces(NetworkInterface.java:282)
        at weblogic.server.channels.AddressUtils$AddressMaker.getAllAddresses(AddressUtils.java:57)
        at weblogic.server.channels.AddressUtils$AddressMaker.<clinit>(AddressUtils.java:47)
        at weblogic.server.channels.AddressUtils.getLocalHost(AddressUtils.java:117)
        at weblogic.cluster.ClusterHelper.getMachineName(ClusterHelper.java:44)
        at weblogic.cluster.ClusterService.startService(ClusterService.java:102)
        at weblogic.server.ServiceActivator.start(ServiceActivator.java:98)
        at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
        at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)

        The issue has been found to be with one of the core jdk methods...

        public static void main(String args[]) throws Exception {
        Enumeration niEnum = NetworkInterface.getNetworkInterfaces();


        This method fails whenever there is a Virtual IP plumbed into the Solaris container with jdk1.6
        The server is able to start without any exception on the container IP as soon as the VIP is unplumbed.

        So getNetworkInterfaces is not able to report back Virtual IP addresses on the local zones.


        REPRODUCIBILITY :
        This bug can be reproduced always.

              chegar Chris Hegarty
              ndcosta Nelson Dcosta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: