JDK-8046435 : Two java/net/MulticastSocket regression tests fail on some solaris sparc hosts
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 7u71,7u80
  • Priority: P4
  • Status: Resolved
  • Resolution: Duplicate
  • OS: solaris
  • CPU: sparc_64
  • Submitted: 2014-06-10
  • Updated: 2014-06-10
  • Resolved: 2014-06-10
Related Reports
Duplicate :  
Description
Testsuite name: Regression

Tests names:
java/net/MulticastSocket/SetLoopbackMode.java
java/net/MulticastSocket/Test.java

JDK tested: 7u71 and 7u80 nightly builds:
/net/scanas411.us.oracle.com/export/java-re/build/re3/nightlyws/jdk7u-cpu/b01_2014-05-30-1001_1165/ws-b01_2014-05-30-1001_1165/build
/net/scanas411.us.oracle.com/export/java-re/build/re3/nightlyws/jdk7u-dev/b01_2014-06-04-1201_1184/ws-b01_2014-06-04-1201_1184/build

It is a host-specific issue, see comments for details.

LOG:

java/net/MulticastSocket/SetLoopbackMode.java

java.net.SocketException: Cannot assign requested address
	at java.net.PlainDatagramSocketImpl.join(Native Method)
	at java.net.AbstractPlainDatagramSocketImpl.join(AbstractPlainDatagramSocketImpl.java:178)
	at java.net.MulticastSocket.joinGroup(MulticastSocket.java:319)
	at SetLoopbackMode.main(SetLoopbackMode.java:106)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:759)
	at java.lang.Thread.run(Thread.java:745)

java/net/MulticastSocket/Test.java

java.net.SocketException: Cannot assign requested address
	at java.net.PlainDatagramSocketImpl.join(Native Method)
	at java.net.AbstractPlainDatagramSocketImpl.join(AbstractPlainDatagramSocketImpl.java:178)
	at java.net.MulticastSocket.joinGroup(MulticastSocket.java:319)
	at Test.doTest(Test.java:60)
	at Test.allTests(Test.java:167)
	at Test.main(Test.java:187)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:759)
	at java.lang.Thread.run(Thread.java:745)
java.lang.Exception: Test failed - see log file for details
	at Test.main(Test.java:199)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:759)
	at java.lang.Thread.run(Thread.java:745)
Comments
RULE java/net/MulticastSocket/SetLoopbackMode.java Exception java.net.SocketException: Cannot assign requested address RULE java/net/MulticastSocket/Test.java Exception java.lang.Exception: Test failed - see log file for details RULE java/net/MulticastSocket/Test.java Exception java.net.SocketException: Cannot assign requested address
10-06-2014

Can you determine whether this is a dup of https://bugs.openjdk.java.net/browse/JDK-7094551 ? Did this test ever pass on this host? It may be worth running the multicast test utility on the host from http://docs.oracle.com/cd/E11035_01/wls100/cluster/multicast_configuration.html too.
10-06-2014