Failed
com.sun.ts.tests.jaxrs.ee.rs.core.response.JAXRSClient.getStringHeadersUsingHeaderDelegateTest_from_standalone (from restful-ws-tck)
Error Message
test result: Failed. Test case throws exception: [JAXRSCommonClient] null failed! Check output for cause of failure.
Stacktrace
test result: Failed. Test case throws exception: [JAXRSCommonClient] null failed! Check output for cause of failure.
Standard Output
#Test Results (version 2) #Tue Aug 18 07:42:01 UTC 2020 #-----testdescription----- $file=/home/jenkins/agent/workspace/jakartaee-tck_master/restful-ws-tck/src/com/sun/ts/tests/jaxrs/ee/rs/core/response/JAXRSClient.java $root=/home/jenkins/agent/workspace/jakartaee-tck_master/restful-ws-tck/src assertion_ids=JAXRS\:JAVADOC\:859 Get view of the response headers and their string values. The underlying header data may be subsequently modified by the JAX-RS runtime on the server side. Changes in the underlying header data are reflected in this view. classname=com.sun.ts.tests.jaxrs.ee.rs.core.response.JAXRSClient direction=forward finder=cts id=getStringHeadersUsingHeaderDelegateTest_from_standalone keywords=all jaxrs javaee getStringHeadersUsingHeaderDelegateTest standalone_vehicle forward service_eetest=yes testName=getStringHeadersUsingHeaderDelegateTest testProps=\ webServerHost webServerPort ts_home test_directory=com/sun/ts/tests/jaxrs/ee/rs/core/response #-----environment----- JAVA_HOME=/opt/jdk1.8.0_191/jre SYSTEMROOT=${env.SystemRoot} TS_HOME=/home/jenkins/agent/workspace/jakartaee-tck_master/restful-ws-tck/bin/xml/../.. command.testExecute=com.sun.ts.lib.harness.ExecTSTestCmd CLASSPATH\=${ts.harness.classpath}\:${ts.home}/classes\:${JAVA_HOME}/../lib/tools.jar\:${ts.home}/lib/commons-httpclient-3.1.jar\:${ts.home}/lib/commons-logging-1.1.3.jar\:${ts.home}/lib/commons-codec-1.9.jar\:${ts.home}/lib/sigtest.jar\:${jaxrs.classes}\:${jaxrs_impl.classes} DISPLAY\=${ts.display} HOME\="${user.home}" windir\=${windir} SYSTEMROOT\=${SYSTEMROOT} PATH\="${javaee.home}/nativelib" ${JAVA_HOME}/bin/java -Dcts.tmp\=$harness.temp.directory -Djava.endorsed.dirs\=${s1as.java.endorsed.dirs} -Ddeliverable.class\=${deliverable.class} $testExecuteClass $testExecuteArgs deliverable.class=com.sun.ts.lib.deliverable.tck.TCKDeliverable harness.executeMode=0 harness.log.delayseconds=1 harness.log.port=2000 harness.log.traceflag=false harness.socket.retry.count=10 harness.temp.directory=${ts.home}/tmp javaee.home=${web.home} jaxrs.classes=${web.home}/modules/jakarta.ws.rs-api.jar jaxrs_impl.classes=${web.home}/modules/jakarta.json.jar\:${web.home}/modules/jakarta.json.bind-api.jar\:${web.home}/modules/jakarta.json.jar\:${web.home}/modules/jsonp-jaxrs.jar\:${web.home}/modules/jersey-client.jar\:${web.home}/modules/jersey-common.jar\:${web.home}/modules/jersey-server.jar\:${web.home}/modules/jersey-container-servlet.jar\:${web.home}/modules/jersey-container-servlet-core.jar\:${web.home}/modules/jersey-media-jaxb.jar\:${web.home}/modules/jersey-media-sse.jar\:${web.home}/modules/jersey-hk2.jar\:${web.home}/modules/osgi-resource-locator.jar\:${web.home}/modules/jakarta.inject-api.jar\:${web.home}/modules/guava.jar\:${web.home}/modules/hk2-api.jar\:${web.home}/modules/hk2-locator.jar\:${web.home}/modules/hk2-utils.jar\:${web.home}/modules/javassist.jar\:${web.home}/modules/cglib.jar\:${web.home}/modules/jakarta.annotation-api.jar\:${web.home}/modules/jakarta.xml.bind-api.jar\:${web.home}/modules/jakarta.activation.jar pathsep=\: porting.ts.url.class.1=com.sun.ts.lib.implementation.sun.common.SunRIURL ts.display=\:0.0 ts.harness.classpath=${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/javatest.jar${pathsep}${ant.home}/lib/ant.jar${pathsep}${ts.home}/lib/jaxrstck.jar${pathsep}${ts.home}/lib/jaxb-xjc.jar ts.home=/home/jenkins/agent/workspace/jakartaee-tck_master/restful-ws-tck/bin/xml/../.. ts_home=${TS_HOME} user.home=? web.home=/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish webServerHost=localhost webServerPort=8080 windir=${env.windir} #-----testresult----- description=file\:/home/jenkins/agent/workspace/jakartaee-tck_master/restful-ws-tck/src/com/sun/ts/tests/jaxrs/ee/rs/core/response/JAXRSClient.java\#getStringHeadersUsingHeaderDelegateTest_from_standalone end=Tue Aug 18 07\:42\:01 UTC 2020 environment=ts_unix execStatus=Failed. Test case throws exception\: [JAXRSCommonClient] null failed\! Check output for cause of failure. harnessLoaderMode=Classpath Loader harnessVariety=Full Bundle javatestOS=Linux 3.10.0-1062.12.1.el7.x86_64 (amd64) javatestVersion=5.0 script=com.sun.ts.lib.harness.TSScript sections=script_messages TestRun start=Tue Aug 18 07\:41\:59 UTC 2020 test=com/sun/ts/tests/jaxrs/ee/rs/core/response/JAXRSClient.java\#getStringHeadersUsingHeaderDelegateTest_from_standalone timeoutSeconds=600 totalTime=2021 work=/home/jenkins/agent/workspace/jakartaee-tck_master/restful-ws-tckwork/restful-ws-tck/com/sun/ts/tests/jaxrs/ee/rs/core/response #section:script_messages ----------messages:(0/0)---------- #section:TestRun ----------messages:(1/3949)---------- command: com.sun.ts.lib.harness.ExecTSTestCmd CLASSPATH=:/home/jenkins/agent/workspace/jakartaee-tck_master/restful-ws-tck/bin/xml/../../lib/tsharness.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/restful-ws-tck/bin/xml/../../lib/javatest.jar:/lib/ant.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/restful-ws-tck/bin/xml/../../lib/jaxrstck.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/restful-ws-tck/bin/xml/../../lib/jaxb-xjc.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/restful-ws-tck/bin/xml/../../classes:/opt/jdk1.8.0_191/jre/../lib/tools.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/restful-ws-tck/bin/xml/../../lib/commons-httpclient-3.1.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/restful-ws-tck/bin/xml/../../lib/commons-logging-1.1.3.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/restful-ws-tck/bin/xml/../../lib/commons-codec-1.9.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/restful-ws-tck/bin/xml/../../lib/sigtest.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.ws.rs-api.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.json.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.json.bind-api.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.json.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jsonp-jaxrs.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jersey-client.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jersey-common.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jersey-server.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jersey-container-servlet.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jersey-container-servlet-core.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jersey-media-jaxb.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jersey-media-sse.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jersey-hk2.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/osgi-resource-locator.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.inject-api.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/guava.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/hk2-api.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/hk2-locator.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/hk2-utils.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/javassist.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/cglib.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.annotation-api.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.xml.bind-api.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.activation.jar DISPLAY=:0.0 HOME=? windir= SYSTEMROOT= PATH=/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/nativelib /opt/jdk1.8.0_191/jre/bin/java -Dcts.tmp=/home/jenkins/agent/workspace/jakartaee-tck_master/restful-ws-tck/bin/xml/../../tmp -Djava.endorsed.dirs= -Ddeliverable.class=com.sun.ts.lib.deliverable.tck.TCKDeliverable com.sun.ts.tests.common.vehicle.VehicleClient -p /home/jenkins/agent/workspace/jakartaee-tck_master/restful-ws-tck/bin/xml/../../tmp/tstest.jte -t getStringHeadersUsingHeaderDelegateTest -vehicle standalone ----------log:(131/9742)---------- ************************************************************ * props file set to "/tmp/?-cts-props.txt" ************************************************************ 08-18-2020 07:42:00: [JAXRSCommonClient] Test setup OK 08-18-2020 07:42:00: [Request] Dispatching request: 'GET http://localhost:8080/jaxrs_ee_core_response_web/resource/setstringbeanruntime' to target server at 'localhost:8080' 08-18-2020 07:42:00: ############################### 08-18-2020 07:42:00: TRACE: [WIRE] - >> GET http://localhost:8080/jaxrs_ee_core_response_web/resource/setstringbeanruntime 08-18-2020 07:42:00: TRACE: [WIRE] - >> Accept:text/plain 08-18-2020 07:42:00: ERROR: Root cause of Failure: java.net.ConnectException: Connection refused (Connection refused) 08-18-2020 07:42:00: ERROR: jakarta.ws.rs.ProcessingException: java.net.ConnectException: Connection refused (Connection refused) at org.glassfish.jersey.client.internal.HttpUrlConnector.apply(HttpUrlConnector.java:261) at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:297) at org.glassfish.jersey.client.JerseyInvocation.lambda$invoke$0(JerseyInvocation.java:619) at org.glassfish.jersey.client.JerseyInvocation.call(JerseyInvocation.java:654) at org.glassfish.jersey.client.JerseyInvocation.lambda$runInScope$3(JerseyInvocation.java:648) at org.glassfish.jersey.internal.Errors.process(Errors.java:292) at org.glassfish.jersey.internal.Errors.process(Errors.java:274) at org.glassfish.jersey.internal.Errors.process(Errors.java:205) at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:390) at org.glassfish.jersey.client.JerseyInvocation.runInScope(JerseyInvocation.java:648) at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:618) at com.sun.ts.tests.jaxrs.common.client.JaxrsWebTestCase.invoke(JaxrsWebTestCase.java:350) at com.sun.ts.tests.jaxrs.common.client.JaxrsWebTestCase.execute(JaxrsWebTestCase.java:201) at com.sun.ts.tests.jaxrs.common.client.JaxrsCommonClient.invoke(JaxrsCommonClient.java:210) at com.sun.ts.tests.jaxrs.ee.rs.core.response.JAXRSClient.invokeGet(JAXRSClient.java:1588) at com.sun.ts.tests.jaxrs.ee.rs.core.response.JAXRSClient.getStringHeadersUsingHeaderDelegateTest(JAXRSClient.java:873) 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.ts.lib.harness.EETest.run(EETest.java:596) at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:115) at com.sun.ts.tests.common.vehicle.EmptyVehicleRunner.run(EmptyVehicleRunner.java:40) at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:105) at com.sun.ts.lib.harness.EETest.getPropsReady(EETest.java:486) at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:209) at com.sun.ts.lib.harness.EETest.run(EETest.java:285) at com.sun.ts.tests.common.vehicle.VehicleClient.main(VehicleClient.java:38) Caused by: java.net.ConnectException: Connection refused (Connection refused) at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at sun.net.NetworkClient.doConnect(NetworkClient.java:175) at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) at sun.net.www.http.HttpClient.New(HttpClient.java:339) at sun.net.www.http.HttpClient.New(HttpClient.java:357) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1220) at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1156) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1050) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:984) at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1564) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480) at org.glassfish.jersey.client.internal.HttpUrlConnector._apply(HttpUrlConnector.java:371) at org.glassfish.jersey.client.internal.HttpUrlConnector.apply(HttpUrlConnector.java:259) ... 27 more 08-18-2020 07:42:00: ERROR: Test case throws exception: [JAXRSCommonClient] null failed! Check output for cause of failure. 08-18-2020 07:42:00: ERROR: Exception at: 08-18-2020 07:42:00: ERROR: com.sun.ts.tests.common.webclient.TestFailureException: [FATAL] Unexpected failure during test execution. Client client = ClientFactory.newClient(); WebTarget target = client.target("http://localhost:8080/jaxrs_ee_core_response_web/resource/setstringbeanruntime"); Invocation.Builder builder; builder = target.request("text/plain"); builder.header("Accept","text/plain"); Invocation i; i=builder.build("GET"); i.invoke(); java.net.ConnectException: Connection refused (Connection refused) at com.sun.ts.tests.jaxrs.common.client.JaxrsWebTestCase.execute(JaxrsWebTestCase.java:214) at com.sun.ts.tests.jaxrs.common.client.JaxrsCommonClient.invoke(JaxrsCommonClient.java:210) at com.sun.ts.tests.jaxrs.ee.rs.core.response.JAXRSClient.invokeGet(JAXRSClient.java:1588) at com.sun.ts.tests.jaxrs.ee.rs.core.response.JAXRSClient.getStringHeadersUsingHeaderDelegateTest(JAXRSClient.java:873) 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.ts.lib.harness.EETest.run(EETest.java:596) at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:115) at com.sun.ts.tests.common.vehicle.EmptyVehicleRunner.run(EmptyVehicleRunner.java:40) at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:105) at com.sun.ts.lib.harness.EETest.getPropsReady(EETest.java:486) at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:209) at com.sun.ts.lib.harness.EETest.run(EETest.java:285) at com.sun.ts.tests.common.vehicle.VehicleClient.main(VehicleClient.java:38) Caused by: jakarta.ws.rs.ProcessingException: java.net.ConnectException: Connection refused (Connection refused) at org.glassfish.jersey.client.internal.HttpUrlConnector.apply(HttpUrlConnector.java:261) at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:297) at org.glassfish.jersey.client.JerseyInvocation.lambda$invoke$0(JerseyInvocation.java:619) at org.glassfish.jersey.client.JerseyInvocation.call(JerseyInvocation.java:654) at org.glassfish.jersey.client.JerseyInvocation.lambda$runInScope$3(JerseyInvocation.java:648) at org.glassfish.jersey.internal.Errors.process(Errors.java:292) at org.glassfish.jersey.internal.Errors.process(Errors.java:274) at org.glassfish.jersey.internal.Errors.process(Errors.java:205) at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:390) at org.glassfish.jersey.client.JerseyInvocation.runInScope(JerseyInvocation.java:648) at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:618) at com.sun.ts.tests.jaxrs.common.client.JaxrsWebTestCase.invoke(JaxrsWebTestCase.java:350) at com.sun.ts.tests.jaxrs.common.client.JaxrsWebTestCase.execute(JaxrsWebTestCase.java:201) ... 15 more Caused by: java.net.ConnectException: Connection refused (Connection refused) at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at sun.net.NetworkClient.doConnect(NetworkClient.java:175) at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) at sun.net.www.http.HttpClient.New(HttpClient.java:339) at sun.net.www.http.HttpClient.New(HttpClient.java:357) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1220) at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1156) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1050) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:984) at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1564) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480) at org.glassfish.jersey.client.internal.HttpUrlConnector._apply(HttpUrlConnector.java:371) at org.glassfish.jersey.client.internal.HttpUrlConnector.apply(HttpUrlConnector.java:259) ... 27 more 08-18-2020 07:42:00: [JAXRSCommonClient] Test cleanup OK STATUS:Failed.Test case throws exception: [JAXRSCommonClient] null failed! Check output for cause of failure. result: Failed. Test case throws exception: [JAXRSCommonClient] null failed! Check output for cause of failure. test result: Failed. Test case throws exception: [JAXRSCommonClient] null failed! Check output for cause of failure.