[Red Hat JIRA] (WFCORE-5222) HTTPSManagementInterfacePKCS12TestCase fails on IBM 1.8 JDK
by Fabio Burzigotti (Jira)
Fabio Burzigotti created WFCORE-5222:
----------------------------------------
Summary: HTTPSManagementInterfacePKCS12TestCase fails on IBM 1.8 JDK
Key: WFCORE-5222
URL: https://issues.redhat.com/browse/WFCORE-5222
Project: WildFly Core
Issue Type: Bug
Components: Test Suite
Affects Versions: 13.0.0.Beta1
Reporter: Fabio Burzigotti
Assignee: Ricardo Martin Camarero
Fix For: 13.0.0.Beta2, 13.0.0.Final
Tests org.wildfly.core.test.standalone.mgmt.HTTPSManagementInterfacePKCS12TestCase and HTTPSManagementInterfaceTestCase fail when -Delytron is set.
{code:java}
org.wildfly.core.test.standalone.mgmt.HTTPSManagementInterfacePKCS12TestCase Time elapsed: 0.003 s <<< ERROR!org.wildfly.core.test.standalone.mgmt.HTTPSManagementInterfacePKCS12TestCase Time elapsed: 0.003 s <<< ERROR!java.lang.RuntimeException:
{ "WFLYCTL0412: Required services that are not installed:" => ["org.wildfly.core.management.security.realm.ManagementRealm"], "WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.remoting.server.management is missing [org.wildfly.core.management.security.realm.ManagementRealm]"]}
at org.jboss.as.test.integration.security.common.CoreUtils.applyUpdate(CoreUtils.java:271) at org.wildfly.core.test.standalone.mgmt.HTTPSManagementInterfaceTestCase.serverSetup(HTTPSManagementInterfaceTestCase.java:346) at org.wildfly.core.test.standalone.mgmt.HTTPSManagementInterfaceTestCase.startAndSetupContainer(HTTPSManagementInterfaceTestCase.java:125) at org.wildfly.core.test.standalone.mgmt.HTTPSManagementInterfacePKCS12TestCase.startAndSetupContainer(HTTPSManagementInterfacePKCS12TestCase.java:41) 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 org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.wildfly.core.testrunner.WildflyTestRunner.run(WildflyTestRunner.java:109) at org.junit.runners.Suite.runChild(Suite.java:128) at org.junit.runners.Suite.runChild(Suite.java:27) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:383) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344) at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417) [ERROR] org.wildfly.core.test.standalone.mgmt.HTTPSManagementInterfacePKCS12TestCase Time elapsed: 0.004 s <<< ERROR!java.io.IOException: java.net.ConnectException: WFLYPRT0053: Could not connect to remoting://127.0.0.1:9999. The connection failed at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:149) at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:80) at org.jboss.as.test.integration.security.common.CoreUtils.applyUpdate(CoreUtils.java:263) at org.wildfly.core.test.standalone.mgmt.HTTPSManagementInterfaceTestCase.resetHttpInterfaceConfiguration(HTTPSManagementInterfaceTestCase.java:398) at org.wildfly.core.test.standalone.mgmt.HTTPSManagementInterfaceTestCase.stopContainer(HTTPSManagementInterfaceTestCase.java:241) 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 org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.wildfly.core.testrunner.WildflyTestRunner.run(WildflyTestRunner.java:109) at org.junit.runners.Suite.runChild(Suite.java:128) at org.junit.runners.Suite.runChild(Suite.java:27) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:383) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344) at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)Caused by: java.net.ConnectException: WFLYPRT0053: Could not connect to remoting://127.0.0.1:9999. The connection failed at org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:129) at org.jboss.as.protocol.ProtocolConnectionManager$EstablishingConnection.connect(ProtocolConnectionManager.java:259) at org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:70) at org.jboss.as.protocol.mgmt.ManagementClientChannelStrategy$Establishing.getChannel(ManagementClientChannelStrategy.java:167) at org.jboss.as.controller.client.impl.RemotingModelControllerClient.getOrCreateChannel(RemotingModelControllerClient.java:132) at org.jboss.as.controller.client.impl.RemotingModelControllerClient$2.getChannel(RemotingModelControllerClient.java:85) at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:135) at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:110) at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeRequest(AbstractModelControllerClient.java:263) at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:168) at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:147) ... 32 moreCaused by: java.net.ConnectException: Connection refused at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) at org.xnio.nio.WorkerThread$ConnectHandle.handleReady(WorkerThread.java:327) at org.xnio.nio.WorkerThread.run(WorkerThread.java:591) at ...asynchronous invocation...(Unknown Source) at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:599) at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:561) at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:549) at org.jboss.as.protocol.ProtocolConnectionUtils.connect(ProtocolConnectionUtils.java:209) at org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:121) ... 42 more
{code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[Red Hat JIRA] (WFCORE-5221) SNICombinedWithALPNTestCase fails with Oracle JDK 1.8 on RHEL
by Fabio Burzigotti (Jira)
[ https://issues.redhat.com/browse/WFCORE-5221?page=com.atlassian.jira.plug... ]
Fabio Burzigotti updated WFCORE-5221:
-------------------------------------
Steps to Reproduce:
* download last candidate for XP 2 (CR1)
* set Oracle 1.8 JDK
* {{cd testsuite/standalone}}
* {{mvn clean test -Dtest=SNICombinedWithALPNTestCase}}
> SNICombinedWithALPNTestCase fails with Oracle JDK 1.8 on RHEL
> -------------------------------------------------------------
>
> Key: WFCORE-5221
> URL: https://issues.redhat.com/browse/WFCORE-5221
> Project: WildFly Core
> Issue Type: Bug
> Components: Security, Test Suite
> Reporter: Fabio Burzigotti
> Assignee: Darran Lofthouse
> Priority: Major
>
> Cloning https://issues.redhat.com/browse/WFCORE-4196 here since it seems that the issue is affecting the server when it's run on Oracle 1.8 JDK.
> The test is failing with the following stack trace:
> {code:java}
> ...
> 16:50:21 [INFO] Running org.jboss.as.test.integration.security.ssl.sni.SNICombinedWithALPNTestCase
> 16:50:22 [ERROR] Tests run: 2, Failures: 1, Errors: 1, Skipped: 0, Time elapsed: 1.191 s <<< FAILURE! - in org.jboss.as.test.integration.security.ssl.sni.SNICombinedWithALPNTestCase
> 16:50:22 [ERROR] testHttpsViaIp(org.jboss.as.test.integration.security.ssl.sni.SNICombinedWithALPNTestCase) Time elapsed: 0.62 s <<< FAILURE!
> 16:50:22 org.junit.ComparisonFailure: expected:<Response sent:HTTP/[2.0]> but was:<Response sent:HTTP/[1.1]>
> 16:50:22 at org.junit.Assert.assertEquals(Assert.java:115)
> 16:50:22 at org.junit.Assert.assertEquals(Assert.java:144)
> 16:50:22 at org.jboss.as.test.integration.security.ssl.sni.SNICombinedWithALPNTestCase.performSimpleTest(SNICombinedWithALPNTestCase.java:273)
> 16:50:22 at org.jboss.as.test.integration.security.ssl.sni.SNICombinedWithALPNTestCase.testHttpsViaIp(SNICombinedWithALPNTestCase.java:232)
> ... {code}
>
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[Red Hat JIRA] (WFCORE-5221) SNICombinedWithALPNTestCase fails with Oracle JDK 1.8 on RHEL
by Fabio Burzigotti (Jira)
[ https://issues.redhat.com/browse/WFCORE-5221?page=com.atlassian.jira.plug... ]
Fabio Burzigotti updated WFCORE-5221:
-------------------------------------
Description:
Cloning https://issues.redhat.com/browse/WFCORE-4196 here since it seems that the issue is affecting the server when it's run on Oracle 1.8 JDK.
The test is failing with the following stack trace:
{code:java}
...
16:50:21 [INFO] Running org.jboss.as.test.integration.security.ssl.sni.SNICombinedWithALPNTestCase
16:50:22 [ERROR] Tests run: 2, Failures: 1, Errors: 1, Skipped: 0, Time elapsed: 1.191 s <<< FAILURE! - in org.jboss.as.test.integration.security.ssl.sni.SNICombinedWithALPNTestCase
16:50:22 [ERROR] testHttpsViaIp(org.jboss.as.test.integration.security.ssl.sni.SNICombinedWithALPNTestCase) Time elapsed: 0.62 s <<< FAILURE!
16:50:22 org.junit.ComparisonFailure: expected:<Response sent:HTTP/[2.0]> but was:<Response sent:HTTP/[1.1]>
16:50:22 at org.junit.Assert.assertEquals(Assert.java:115)
16:50:22 at org.junit.Assert.assertEquals(Assert.java:144)
16:50:22 at org.jboss.as.test.integration.security.ssl.sni.SNICombinedWithALPNTestCase.performSimpleTest(SNICombinedWithALPNTestCase.java:273)
16:50:22 at org.jboss.as.test.integration.security.ssl.sni.SNICombinedWithALPNTestCase.testHttpsViaIp(SNICombinedWithALPNTestCase.java:232)
... {code}
was:
SNICombinedWithALPNTestCase added with WFCORE-3873 does not conform with IBM JDK key algorithm name. This needs to be fixed.
Also as IBM JDK 8 and lower does not contain ALPN implementation and neither the ALPN-hack work there (it works only with Oracle JDK and Open JDK as it depends on JDK internals) we would have to provide ALPN in such situation somehow. We can either use Jetty ALPN implementation or wildfly-openssl using OpenSSL libraries. Both variants would bring unwanted difficulties with running this testsuite in our environment.
Let's skip these tests for IBM JDK less than version 9. With newer IBM JDK version, there will probably be ALPN already part of JDK, so we can execute it then.
> SNICombinedWithALPNTestCase fails with Oracle JDK 1.8 on RHEL
> -------------------------------------------------------------
>
> Key: WFCORE-5221
> URL: https://issues.redhat.com/browse/WFCORE-5221
> Project: WildFly Core
> Issue Type: Bug
> Components: Security, Test Suite
> Reporter: Fabio Burzigotti
> Priority: Major
>
> Cloning https://issues.redhat.com/browse/WFCORE-4196 here since it seems that the issue is affecting the server when it's run on Oracle 1.8 JDK.
> The test is failing with the following stack trace:
> {code:java}
> ...
> 16:50:21 [INFO] Running org.jboss.as.test.integration.security.ssl.sni.SNICombinedWithALPNTestCase
> 16:50:22 [ERROR] Tests run: 2, Failures: 1, Errors: 1, Skipped: 0, Time elapsed: 1.191 s <<< FAILURE! - in org.jboss.as.test.integration.security.ssl.sni.SNICombinedWithALPNTestCase
> 16:50:22 [ERROR] testHttpsViaIp(org.jboss.as.test.integration.security.ssl.sni.SNICombinedWithALPNTestCase) Time elapsed: 0.62 s <<< FAILURE!
> 16:50:22 org.junit.ComparisonFailure: expected:<Response sent:HTTP/[2.0]> but was:<Response sent:HTTP/[1.1]>
> 16:50:22 at org.junit.Assert.assertEquals(Assert.java:115)
> 16:50:22 at org.junit.Assert.assertEquals(Assert.java:144)
> 16:50:22 at org.jboss.as.test.integration.security.ssl.sni.SNICombinedWithALPNTestCase.performSimpleTest(SNICombinedWithALPNTestCase.java:273)
> 16:50:22 at org.jboss.as.test.integration.security.ssl.sni.SNICombinedWithALPNTestCase.testHttpsViaIp(SNICombinedWithALPNTestCase.java:232)
> ... {code}
>
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[Red Hat JIRA] (WFCORE-5221) SNICombinedWithALPNTestCase fails with Oracle JDK 1.8 on RHEL
by Fabio Burzigotti (Jira)
[ https://issues.redhat.com/browse/WFCORE-5221?page=com.atlassian.jira.plug... ]
Fabio Burzigotti updated WFCORE-5221:
-------------------------------------
Git Pull Request: (was: https://github.com/wildfly/wildfly-core/pull/3582)
> SNICombinedWithALPNTestCase fails with Oracle JDK 1.8 on RHEL
> -------------------------------------------------------------
>
> Key: WFCORE-5221
> URL: https://issues.redhat.com/browse/WFCORE-5221
> Project: WildFly Core
> Issue Type: Bug
> Components: Security, Test Suite
> Reporter: Fabio Burzigotti
> Priority: Major
>
> Cloning https://issues.redhat.com/browse/WFCORE-4196 here since it seems that the issue is affecting the server when it's run on Oracle 1.8 JDK.
> The test is failing with the following stack trace:
> {code:java}
> ...
> 16:50:21 [INFO] Running org.jboss.as.test.integration.security.ssl.sni.SNICombinedWithALPNTestCase
> 16:50:22 [ERROR] Tests run: 2, Failures: 1, Errors: 1, Skipped: 0, Time elapsed: 1.191 s <<< FAILURE! - in org.jboss.as.test.integration.security.ssl.sni.SNICombinedWithALPNTestCase
> 16:50:22 [ERROR] testHttpsViaIp(org.jboss.as.test.integration.security.ssl.sni.SNICombinedWithALPNTestCase) Time elapsed: 0.62 s <<< FAILURE!
> 16:50:22 org.junit.ComparisonFailure: expected:<Response sent:HTTP/[2.0]> but was:<Response sent:HTTP/[1.1]>
> 16:50:22 at org.junit.Assert.assertEquals(Assert.java:115)
> 16:50:22 at org.junit.Assert.assertEquals(Assert.java:144)
> 16:50:22 at org.jboss.as.test.integration.security.ssl.sni.SNICombinedWithALPNTestCase.performSimpleTest(SNICombinedWithALPNTestCase.java:273)
> 16:50:22 at org.jboss.as.test.integration.security.ssl.sni.SNICombinedWithALPNTestCase.testHttpsViaIp(SNICombinedWithALPNTestCase.java:232)
> ... {code}
>
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[Red Hat JIRA] (WFCORE-5221) SNICombinedWithALPNTestCase fails with Oracle JDK 1.8 on RHEL
by Fabio Burzigotti (Jira)
[ https://issues.redhat.com/browse/WFCORE-5221?page=com.atlassian.jira.plug... ]
Fabio Burzigotti reassigned WFCORE-5221:
----------------------------------------
Assignee: Darran Lofthouse
> SNICombinedWithALPNTestCase fails with Oracle JDK 1.8 on RHEL
> -------------------------------------------------------------
>
> Key: WFCORE-5221
> URL: https://issues.redhat.com/browse/WFCORE-5221
> Project: WildFly Core
> Issue Type: Bug
> Components: Security, Test Suite
> Reporter: Fabio Burzigotti
> Assignee: Darran Lofthouse
> Priority: Major
>
> Cloning https://issues.redhat.com/browse/WFCORE-4196 here since it seems that the issue is affecting the server when it's run on Oracle 1.8 JDK.
> The test is failing with the following stack trace:
> {code:java}
> ...
> 16:50:21 [INFO] Running org.jboss.as.test.integration.security.ssl.sni.SNICombinedWithALPNTestCase
> 16:50:22 [ERROR] Tests run: 2, Failures: 1, Errors: 1, Skipped: 0, Time elapsed: 1.191 s <<< FAILURE! - in org.jboss.as.test.integration.security.ssl.sni.SNICombinedWithALPNTestCase
> 16:50:22 [ERROR] testHttpsViaIp(org.jboss.as.test.integration.security.ssl.sni.SNICombinedWithALPNTestCase) Time elapsed: 0.62 s <<< FAILURE!
> 16:50:22 org.junit.ComparisonFailure: expected:<Response sent:HTTP/[2.0]> but was:<Response sent:HTTP/[1.1]>
> 16:50:22 at org.junit.Assert.assertEquals(Assert.java:115)
> 16:50:22 at org.junit.Assert.assertEquals(Assert.java:144)
> 16:50:22 at org.jboss.as.test.integration.security.ssl.sni.SNICombinedWithALPNTestCase.performSimpleTest(SNICombinedWithALPNTestCase.java:273)
> 16:50:22 at org.jboss.as.test.integration.security.ssl.sni.SNICombinedWithALPNTestCase.testHttpsViaIp(SNICombinedWithALPNTestCase.java:232)
> ... {code}
>
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months