Following test cases are failing on IBM environments as there are some invalid certificate for this particular environment.
- org.kie.server.client.KieServicesClientTest.testGetServerInfoWithClientCertificate
- org.kie.server.client.KieServicesClientTest.testGetServerInfoWithUnauthorizedClientCertificate
Below some of the stack trace:
Error Message java.lang.RuntimeException: Unable to create SSLSocketFactory Stacktrace java.lang.RuntimeException: java.lang.RuntimeException: Unable to create SSLSocketFactory at org.kie.server.client.impl.KieServicesClientImpl.init(KieServicesClientImpl.java:127) at org.kie.server.client.impl.KieServicesClientImpl.<init>(KieServicesClientImpl.java:77) at org.kie.server.client.KieServicesFactory.newKieServicesClient(KieServicesFactory.java:101) at org.kie.server.client.KieServicesClientTest.testGetServerInfoWithClientCertificate(KieServicesClientTest.java:88) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55) at java.lang.reflect.Method.invoke(Method.java:508) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at com.github.tomakehurst.wiremock.junit.WireMockRule$1.evaluate(WireMockRule.java:67) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) Caused by: java.lang.RuntimeException: Unable to create SSLSocketFactory at org.kie.server.common.rest.KieServerHttpRequest.createConnection(KieServerHttpRequest.java:891) at org.kie.server.common.rest.KieServerHttpRequest.initializeConnection(KieServerHttpRequest.java:915) at org.kie.server.common.rest.KieServerHttpRequest.responseCode(KieServerHttpRequest.java:1360) at org.kie.server.common.rest.KieServerHttpRequest.get(KieServerHttpRequest.java:714) at org.kie.server.client.impl.AbstractKieServicesClientImpl$1.doOperation(AbstractKieServicesClientImpl.java:182) at org.kie.server.client.impl.AbstractKieServicesClientImpl.invoke(AbstractKieServicesClientImpl.java:863) at org.kie.server.client.impl.AbstractKieServicesClientImpl.makeHttpGetRequestAndCreateServiceResponse(AbstractKieServicesClientImpl.java:179) at org.kie.server.client.impl.KieServicesClientImpl.getServerInfo(KieServicesClientImpl.java:166) at org.kie.server.client.impl.KieServicesClientImpl.getCapabilitiesFromServer(KieServicesClientImpl.java:139) at org.kie.server.client.impl.KieServicesClientImpl.init(KieServicesClientImpl.java:90) ... 32 more Caused by: java.io.IOException: Invalid keystore format at com.ibm.crypto.provider.JavaKeyStore.engineLoad(Unknown Source) at java.security.KeyStore.load(KeyStore.java:1456) at org.kie.server.common.rest.KieServerHttpRequest.createConnection(KieServerHttpRequest.java:876) ... 41 more Standard Output 05:46:49.139 [main] WARN o.k.s.c.i.AbstractKieServicesClientImpl - Marking endpoint 'https://localhost:45361' as failed due to com.ibm.jsse2.util.j: PKIX path building failed: com.ibm.security.cert.IBMCertPathBuilderException: unable to find valid certification path to requested target 05:46:49.140 [main] WARN o.k.s.c.i.AbstractKieServicesClientImpl - Cannot invoke request - 'No available endpoints found' 05:46:49.143 [-1897335613@qtp--1664565800-2] ERROR WireMock - EXCEPTION javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown at com.ibm.jsse2.g.a(g.java:28) at com.ibm.jsse2.g.a(g.java:48) at com.ibm.jsse2.bb.a(bb.java:33) at com.ibm.jsse2.g$c.consume(g$c.java:29) at com.ibm.jsse2.bb.a(bb.java:71) at com.ibm.jsse2.a0.a(a0.java:43) at com.ibm.jsse2.bj.b(bj.java:8) at com.ibm.jsse2.bj.f(bj.java:81) at com.ibm.jsse2.bj.a(bj.java:55) at com.ibm.jsse2.bj.startHandshake(bj.java:20) at org.mortbay.jetty.security.SslSocketConnector$SslConnection.run(SslSocketConnector.java:708) at com.github.tomakehurst.wiremock.jetty6.DelayableSslSocketConnector$1.run(DelayableSslSocketConnector.java:52) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) 05:46:49.280 [main] INFO o.k.s.a.m.MarshallerFactory - Marshaller extensions init