Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java/net/MulticastSocket/SetGetNetworkInterfaceTest.java throws java.net.SocketException: Cannot assign requested address #1048

Closed
sophia-guo opened this issue Apr 1, 2019 · 3 comments
Labels
java8 JBS issue need to report to JBS or reopen the issue in JBS
Projects
Milestone

Comments

@sophia-guo
Copy link
Contributor

https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_hs_openjdktest_x86-64_linux/368/testReport/junit/java_net_MulticastSocket_SetGetNetworkInterfaceTest/java/SetGetNetworkInterfaceTest/

Standard Error

java.net.SocketException: Cannot assign requested address (Error setting socket option)
	at java.net.PlainDatagramSocketImpl.socketSetOption0(Native Method)
	at java.net.PlainDatagramSocketImpl.socketSetOption(PlainDatagramSocketImpl.java:74)
	at java.net.AbstractPlainDatagramSocketImpl.setOption(AbstractPlainDatagramSocketImpl.java:309)
	at java.net.MulticastSocket.setNetworkInterface(MulticastSocket.java:554)
	at SetGetNetworkInterfaceTest.main(SetGetNetworkInterfaceTest.java:54)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
	at java.lang.Thread.run(Thread.java:748)
java.lang.RuntimeException: Test Fail
	at SetGetNetworkInterfaceTest.main(SetGetNetworkInterfaceTest.java:71)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
	at java.lang.Thread.run(Thread.java:748)

JavaTest Message: Test threw exception: java.lang.RuntimeException

JBS as resolved: https://bugs.openjdk.java.net/browse/JDK-8027903

@sophia-guo sophia-guo added java8 JBS issue need to report to JBS or reopen the issue in JBS labels Apr 1, 2019
@karianna karianna added this to TODO in aqa-tests via automation Apr 1, 2019
@adam-thorpe
Copy link
Contributor

Test seems to be passing now so this can be closed

@karianna karianna added this to the December 2019 milestone Jan 21, 2020
@karianna karianna moved this from TODO to Done in aqa-tests Jan 21, 2020
@M-Davies
Copy link
Contributor

Failing again with the same error https://ci.adoptopenjdk.net/view/Test_openjdk/job/Test_openjdk8_j9_sanity.openjdk_x86-64_linux_xl/155/

java.net.SocketException: Cannot assign requested address (Error setting socket option)
	at java.net.PlainDatagramSocketImpl.socketSetOption(PlainDatagramSocketImpl.java:74)
	at java.net.AbstractPlainDatagramSocketImpl.setOption(AbstractPlainDatagramSocketImpl.java:309)
	at java.net.MulticastSocket.setNetworkInterface(MulticastSocket.java:554)
	at SetGetNetworkInterfaceTest.main(SetGetNetworkInterfaceTest.java:54)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
	at java.lang.Thread.run(Thread.java:821)

Kicked off a grinder to determine failure rate https://ci.adoptopenjdk.net/view/Test_grinder/job/Grinder/2641/console

@M-Davies
Copy link
Contributor

M-Davies commented Mar 30, 2020

Grinder passed 10/10 iterations. Rerunning with a higher count https://ci.adoptopenjdk.net/view/Test_grinder/job/Grinder/2643/

EDIT: Grinder passed. Seems to be very intermittent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
java8 JBS issue need to report to JBS or reopen the issue in JBS
Projects
No open projects
aqa-tests
  
Done
Development

No branches or pull requests

4 participants