Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-4476

jbossws-cxf (5.1.x) - WSSecurityPolicyExamples23xTestCase HTTPS tests are failing when run along with others

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • jbossws-cxf-5.1.9.Final
    • jbossws-cxf
    • None

      In the jbossws-cxf-5.1.x branch, the HTTPS tests are failing when run along wth others:

        WSSecurityPolicyExamples23xTestCase.test2312:152 » WebService org.apache.cxf.s...
        WSSecurityPolicyExamples23xTestCase.test2313:170 » WebService org.apache.cxf.s...
        WSSecurityPolicyExamples23xTestCase.test2322:275 » WebService org.apache.cxf.s...
        WSSecurityPolicyExamples23xTestCase.test2323:294 » WebService org.apache.cxf.s...
      

      with the following stack trace:

      test2312(org.jboss.test.ws.jaxws.samples.wsse.policy.oasis.WSSecurityPolicyExamples23xTestCase)  Time elapsed: 0.327 sec  <<< ERROR!
      javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.
              at sun.security.util.HostnameChecker.matchDNS(HostnameChecker.java:253)
              at sun.security.util.HostnameChecker.match(HostnameChecker.java:106)
              at sun.security.ssl.X509TrustManagerImpl.checkIdentity(X509TrustManagerImpl.java:463)
              at sun.security.ssl.X509TrustManagerImpl.checkIdentity(X509TrustManagerImpl.java:437)
              at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:230)
              at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:129)
              at sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts(CertificateMessage.java:638)
              at sun.security.ssl.CertificateMessage$T12CertificateConsumer.onCertificate(CertificateMessage.java:473)
              at sun.security.ssl.CertificateMessage$T12CertificateConsumer.consume(CertificateMessage.java:369)
              at sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:377)
              at sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:444)
              at sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:422)
              at sun.security.ssl.TransportContext.dispatch(TransportContext.java:182)
              at sun.security.ssl.SSLTransport.decode(SSLTransport.java:152)
              at sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1401)
              at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1309)
              at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:440)
              at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:567)
              at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:197)
              at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1589)
              at sun.net.www.protocol.http.HttpURLConnection.access$200(HttpURLConnection.java:94)
              at sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1509)
              at sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1507)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.security.AccessController.doPrivilegedWithCombiner(AccessController.java:784)
              at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1506)
              at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:268)
              at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
              at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
              at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
              at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
              at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
              at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
              at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
              at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(WSDLReaderImpl.java:2188)
              at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2390)
              at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2422)
              at org.apache.cxf.wsdl11.WSDLManagerImpl$4.run(WSDLManagerImpl.java:295)
              at org.apache.cxf.wsdl11.WSDLManagerImpl$4.run(WSDLManagerImpl.java:292)
              at java.security.AccessController.doPrivileged(Native Method)
              at org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:292)
              at org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:180)
              at org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:85)
              at org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:217)
              at org.apache.cxf.jaxws.ServiceImpl.initialize(ServiceImpl.java:160)
              at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:129)
              at org.jboss.wsf.stack.cxf.client.ProviderImpl$JBossWSServiceImpl.<init>(ProviderImpl.java:574)
              at org.jboss.wsf.stack.cxf.client.ProviderImpl.createServiceDelegate(ProviderImpl.java:258)
              at javax.xml.ws.Service.<init>(Service.java:77)
              at javax.xml.ws.Service.create(Service.java:707)
              at org.jboss.test.ws.jaxws.samples.wsse.policy.oasis.WSSecurityPolicyExamples23xTestCase.test2312(WSSecurityPolicyExamples23xTestCase.java:152)
      
      

      which comes out of {{ sun.security.util.HostnameChecker.matchDNS(HostnameChecker.java:253)}}

      The same batch of tests is passing when executed alone.

      Based on the initial investigation findings, the failure disappears also when test2311 alone is disabled.
      This is not a critical or blocker for releasing new micro versions in the 5.1.x stream, but we should understand why the failures don't pop up on main, and/or when they started to pop up on the jbossws-cxf-5.1.x branch, e.g.: by going back by tags and execute them, or by comparing the execution when the main branch is used.

              fburzigo@redhat.com Fabio Burzigotti
              fburzigo@redhat.com Fabio Burzigotti
              Giorgos Samios
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: