]
Ondra Chaloupka updated JBTM-3026:
----------------------------------
Git Pull Request:
LRA tests cause issues when being built on machines/jdk preferring
IPv6
-----------------------------------------------------------------------
Key: JBTM-3026
URL:
https://issues.jboss.org/browse/JBTM-3026
Project: JBoss Transaction Manager
Issue Type: Bug
Components: LRA
Affects Versions: 5.8.2.Final
Reporter: Ondra Chaloupka
Assignee: Ondra Chaloupka
There is issue of running LRA tests which use
{{org.honton.chas:process-exec-maven-plugin}} to start wildfly swarm container because
Arquillian plugin is capable to start only one swarm container. That way the coordinator
is started in {{pre-integration-test}} phase with that plugin. There is an issue when
system prefers IPv6 then the port is not capable to be bound.
see {{rts/lra/lra-test/target//failsafe-reports/lra-coordinator-swarm-startup.log}}
{code}
[0m[0m2018-05-23 12:07:28,018 INFO [org.xnio.nio] (MSC service thread 1-8) XNIO NIO
Implementation Version 3.4.3.Final
[0m[0m2018-05-23 12:07:28,062 INFO [org.wildfly.extension.undertow] (MSC service thread
1-5) WFLYUT0012: Started server default-server.
[0m[31m2018-05-23 12:07:28,099 ERROR [org.jboss.msc.service.fail] (MSC service thread
1-4) MSC000001: Failed to start service jboss.undertow.listener.default:
org.jboss.msc.service.StartException in service jboss.undertow.listener.default:
WFLYUT0082: Could not start 'default' listener.
at org.wildfly.extension.undertow.ListenerService.start(ListenerService.java:153)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.SocketException: Protocol family unavailable
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:433)
at sun.nio.ch.Net.bind(Net.java:425)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at org.xnio.nio.NioXnioWorker.createTcpConnectionServer(NioXnioWorker.java:171)
at org.xnio.XnioWorker.createStreamConnectionServer(XnioWorker.java:245)
at
org.wildfly.extension.undertow.HttpListenerService.startListening(HttpListenerService.java:126)
at org.wildfly.extension.undertow.ListenerService.start(ListenerService.java:142)
... 5 more
[0m[31m2018-05-23 12:07:28,126 ERROR [org.jboss.as.controller.management-operation]
(Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
("subsystem" => "undertow"),
("server" => "default-server"),
("http-listener" => "default")
]) - failure description: {
"WFLYCTL0080: Failed services" =>
{"jboss.undertow.listener.default" =>
"org.jboss.msc.service.StartException in service jboss.undertow.listener.default:
WFLYUT0082: Could not start 'default' listener.
Caused by: java.net.SocketException: Protocol family unavailable"},
"WFLYCTL0412: Required services that are not installed:" =>
["jboss.undertow.listener.default"],
"WFLYCTL0180: Services with missing/unavailable dependencies" =>
undefined
}
[0m[0m2018-05-23 12:07:28,145 INFO [org.jboss.as.controller] (Controller Boot Thread)
WFLYCTL0183: Service status report
WFLYCTL0186: Services which failed to start: service
jboss.undertow.listener.default: org.jboss.msc.service.StartException in service
jboss.undertow.listener.default: WFLYUT0082: Could not start 'default' listener.
[0m[31m2018-05-23 12:07:28,180 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026:
WildFly Swarm 2017.8.1 (WildFly Core 2.2.1.Final) started (with errors) in 916ms - Started
85 of 96 services (1 services failed or missing dependencies, 18 services are lazy,
passive or on-demand)
[0m[31m2018-05-23 12:07:28,190 ERROR [stderr] (main)
java.lang.reflect.InvocationTargetException
[0m[31m2018-05-23 12:07:28,190 ERROR [stderr] (main) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[0m[31m2018-05-23 12:07:28,190 ERROR [stderr] (main) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[0m[31m2018-05-23 12:07:28,190 ERROR [stderr] (main) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[0m[31m2018-05-23 12:07:28,190 ERROR [stderr] (main) at
java.lang.reflect.Method.invoke(Method.java:498)
[0m[31m2018-05-23 12:07:28,190 ERROR [stderr] (main) at
org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:39)
[0m[31m2018-05-23 12:07:28,190 ERROR [stderr] (main) at
org.wildfly.swarm.bootstrap.Main.run(Main.java:133)
[0m[31m2018-05-23 12:07:28,190 ERROR [stderr] (main) at
org.wildfly.swarm.bootstrap.Main.main(Main.java:86)
[0m[31m2018-05-23 12:07:28,191 ERROR [stderr] (main) Caused by:
java.lang.RuntimeException: org.jboss.msc.service.StartException in service
jboss.undertow.listener.default: WFLYUT0082: Could not start 'default' listener.
[0m[31m2018-05-23 12:07:28,191 ERROR [stderr] (main) at
org.wildfly.swarm.spi.api.ClassLoading.withTCCL(ClassLoading.java:45)
[0m[31m2018-05-23 12:07:28,191 ERROR [stderr] (main) at
org.wildfly.swarm.container.runtime.ServerBootstrapImpl.bootstrap(ServerBootstrapImpl.java:114)
[0m[31m2018-05-23 12:07:28,191 ERROR [stderr] (main) at
org.wildfly.swarm.Swarm.start(Swarm.java:372)
[0m[31m2018-05-23 12:07:28,191 ERROR [stderr] (main) at
org.wildfly.swarm.Swarm.main(Swarm.java:628)
[0m[31m2018-05-23 12:07:28,191 ERROR [stderr] (main) ... 7 more
[0m[31m2018-05-23 12:07:28,191 ERROR [stderr] (main) Caused by:
org.jboss.msc.service.StartException in service jboss.undertow.listener.default:
WFLYUT0082: Could not start 'default' listener.
[0m[31m2018-05-23 12:07:28,191 ERROR [stderr] (main) at
org.wildfly.extension.undertow.ListenerService.start(ListenerService.java:153)
[0m[31m2018-05-23 12:07:28,191 ERROR [stderr] (main) at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
[0m[31m2018-05-23 12:07:28,191 ERROR [stderr] (main) at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
[0m[31m2018-05-23 12:07:28,192 ERROR [stderr] (main) at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[0m[31m2018-05-23 12:07:28,192 ERROR [stderr] (main) at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[0m[31m2018-05-23 12:07:28,192 ERROR [stderr] (main) at
java.lang.Thread.run(Thread.java:748)
[0m[31m2018-05-23 12:07:28,192 ERROR [stderr] (main) Caused by: java.net.SocketException:
Protocol family unavailable
[0m[31m2018-05-23 12:07:28,192 ERROR [stderr] (main) at sun.nio.ch.Net.bind0(Native
Method)
[0m[31m2018-05-23 12:07:28,192 ERROR [stderr] (main) at
sun.nio.ch.Net.bind(Net.java:433)
[0m[31m2018-05-23 12:07:28,192 ERROR [stderr] (main) at
sun.nio.ch.Net.bind(Net.java:425)
[0m[31m2018-05-23 12:07:28,192 ERROR [stderr] (main) at
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
[0m[31m2018-05-23 12:07:28,192 ERROR [stderr] (main) at
sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
[0m[31m2018-05-23 12:07:28,192 ERROR [stderr] (main) at
org.xnio.nio.NioXnioWorker.createTcpConnectionServer(NioXnioWorker.java:171)
[0m[31m2018-05-23 12:07:28,192 ERROR [stderr] (main) at
org.xnio.XnioWorker.createStreamConnectionServer(XnioWorker.java:245)
[0m[31m2018-05-23 12:07:28,192 ERROR [stderr] (main) at
org.wildfly.extension.undertow.HttpListenerService.startListening(HttpListenerService.java:126)
[0m[31m2018-05-23 12:07:28,193 ERROR [stderr] (main) at
org.wildfly.extension.undertow.ListenerService.start(ListenerService.java:142)
[0m[31m2018-05-23 12:07:28,193 ERROR [stderr] (main) ... 5 more
[0m[31m2018-05-23 12:07:28,193 ERROR [stderr] (main) Exception in thread "main"
java.lang.reflect.InvocationTargetException
[0m[31m2018-05-23 12:07:28,193 ERROR [stderr] (main) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[0m[31m2018-05-23 12:07:28,193 ERROR [stderr] (main) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[0m[31m2018-05-23 12:07:28,193 ERROR [stderr] (main) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[0m[31m2018-05-23 12:07:28,193 ERROR [stderr] (main) at
java.lang.reflect.Method.invoke(Method.java:498)
[0m[31m2018-05-23 12:07:28,193 ERROR [stderr] (main) at
org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:39)
[0m[31m2018-05-23 12:07:28,193 ERROR [stderr] (main) at
org.wildfly.swarm.bootstrap.Main.run(Main.java:133)
[0m[31m2018-05-23 12:07:28,193 ERROR [stderr] (main) at
org.wildfly.swarm.bootstrap.Main.main(Main.java:86)
[0m[31m2018-05-23 12:07:28,193 ERROR [stderr] (main) Caused by:
java.lang.RuntimeException: org.jboss.msc.service.StartException in service
jboss.undertow.listener.default: WFLYUT0082: Could not start 'default' listener.
[0m[31m2018-05-23 12:07:28,194 ERROR [stderr] (main) at
org.wildfly.swarm.spi.api.ClassLoading.withTCCL(ClassLoading.java:45)
[0m[31m2018-05-23 12:07:28,194 ERROR [stderr] (main) at
org.wildfly.swarm.container.runtime.ServerBootstrapImpl.bootstrap(ServerBootstrapImpl.java:114)
[0m[31m2018-05-23 12:07:28,194 ERROR [stderr] (main) at
org.wildfly.swarm.Swarm.start(Swarm.java:372)
[0m[31m2018-05-23 12:07:28,194 ERROR [stderr] (main) at
org.wildfly.swarm.Swarm.main(Swarm.java:628)
[0m[31m2018-05-23 12:07:28,194 ERROR [stderr] (main) ... 7 more
[0m[31m2018-05-23 12:07:28,194 ERROR [stderr] (main) Caused by:
org.jboss.msc.service.StartException in service jboss.undertow.listener.default:
WFLYUT0082: Could not start 'default' listener.
[0m[31m2018-05-23 12:07:28,194 ERROR [stderr] (main) at
org.wildfly.extension.undertow.ListenerService.start(ListenerService.java:153)
[0m[31m2018-05-23 12:07:28,194 ERROR [stderr] (main) at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
[0m[31m2018-05-23 12:07:28,194 ERROR [stderr] (main) at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
[0m[31m2018-05-23 12:07:28,194 ERROR [stderr] (main) at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[0m[31m2018-05-23 12:07:28,195 ERROR [stderr] (main) at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[0m[31m2018-05-23 12:07:28,195 ERROR [stderr] (main) at
java.lang.Thread.run(Thread.java:748)
[0m[31m2018-05-23 12:07:28,195 ERROR [stderr] (main) Caused by: java.net.SocketException:
Protocol family unavailable
[0m[31m2018-05-23 12:07:28,195 ERROR [stderr] (main) at sun.nio.ch.Net.bind0(Native
Method)
[0m[31m2018-05-23 12:07:28,195 ERROR [stderr] (main) at
sun.nio.ch.Net.bind(Net.java:433)
[0m[31m2018-05-23 12:07:28,195 ERROR [stderr] (main) at
sun.nio.ch.Net.bind(Net.java:425)
[0m[31m2018-05-23 12:07:28,195 ERROR [stderr] (main) at
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
[0m[31m2018-05-23 12:07:28,195 ERROR [stderr] (main) at
sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
[0m[31m2018-05-23 12:07:28,195 ERROR [stderr] (main) at
org.xnio.nio.NioXnioWorker.createTcpConnectionServer(NioXnioWorker.java:171)
[0m[31m2018-05-23 12:07:28,195 ERROR [stderr] (main) at
org.xnio.XnioWorker.createStreamConnectionServer(XnioWorker.java:245)
[0m[31m2018-05-23 12:07:28,195 ERROR [stderr] (main) at
org.wildfly.extension.undertow.HttpListenerService.startListening(HttpListenerService.java:126)
[0m[31m2018-05-23 12:07:28,196 ERROR [stderr] (main) at
org.wildfly.extension.undertow.ListenerService.start(ListenerService.java:142)
[0m[31m2018-05-23 12:07:28,196 ERROR [stderr] (main) ... 5 more
[0m[0m2018-05-23 12:07:55,607 INFO [org.wildfly.swarm] (Thread-3) WFSWARM0027: Shutdown
requested
[0m[0m2018-05-23 12:07:55,608 INFO [org.jboss.as.server] (Thread-4) WFLYSRV0220: Server
shutdown has been requested via an OS signal
[0m[0m2018-05-23 12:07:55,612 INFO [org.wildfly.extension.undertow] (MSC service thread
1-3) WFLYUT0004: Undertow 1.4.11.Final stopping
[0m[0m2018-05-23 12:07:55,621 INFO [org.jboss.as] (MSC service thread 1-7) WFLYSRV0050:
WildFly Swarm 2017.8.1 (WildFly Core 2.2.1.Final) stopped in 9ms
{code}