Skip to content

Failed

com.sun.ts.tests.jaxrs.ee.rs.container.responsecontext.JAXRSClient.setEntityTest_from_standalone (from restful-ws-tck)

Failing for the past 1 build (Since #81 )
Took 2 sec.

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 Sep 15 10:57:37 UTC 2020
#-----testdescription-----
$file=/home/jenkins/agent/workspace/jakartaee-tck_master/restful-ws-tck/src/com/sun/ts/tests/jaxrs/ee/rs/container/responsecontext/JAXRSClient.java
$root=/home/jenkins/agent/workspace/jakartaee-tck_master/restful-ws-tck/src
assertion_ids=JAXRS\:JAVADOC\:703  Set a new message entity, including the attached annotations and the media type. It is the callers responsibility to wrap the actual entity with javax.ws.rs.core.GenericEntity if preservation of its generic type is required.\nJAXRS\:JAVADOC\:707  Filter method called after a response has been provided for a request (either by a ContainerRequestFilter request filter or by a matched resource method. Filters in the filter chain are ordered according to their jakarta.annotation.Priority class-level annotation value.\nJAXRS\:JAVADOC\:708  if an I/O exception occurs.
classname=com.sun.ts.tests.jaxrs.ee.rs.container.responsecontext.JAXRSClient
direction=forward
finder=cts
id=setEntityTest_from_standalone
keywords=all jaxrs javaee setEntityTest standalone_vehicle forward
service_eetest=yes
testName=setEntityTest
testProps=\ webServerHost  webServerPort  ts_home
test_directory=com/sun/ts/tests/jaxrs/ee/rs/container/responsecontext

#-----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/container/responsecontext/JAXRSClient.java\#setEntityTest_from_standalone
end=Tue Sep 15 10\:57\:37 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 Sep 15 10\:57\:35 UTC 2020
test=com/sun/ts/tests/jaxrs/ee/rs/container/responsecontext/JAXRSClient.java\#setEntityTest_from_standalone
timeoutSeconds=600
totalTime=1984
work=/home/jenkins/agent/workspace/jakartaee-tck_master/restful-ws-tckwork/restful-ws-tck/com/sun/ts/tests/jaxrs/ee/rs/container/responsecontext

#section:script_messages
----------messages:(0/0)----------

#section:TestRun
----------messages:(1/3923)----------
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 setEntityTest -vehicle standalone
----------log:(130/9737)----------
************************************************************
* props file set to "/tmp/?-cts-props.txt"
************************************************************
09-15-2020 10:57:35:  [JAXRSCommonClient] Test setup OK
09-15-2020 10:57:35:  [Request] Dispatching request: 'GET http://localhost:8080/jaxrs_ee_rs_container_responsecontext_web/resource/setentity' to target server at 'localhost:8080'
09-15-2020 10:57:35:  ###############################
09-15-2020 10:57:36:  TRACE: [WIRE] - >> GET http://localhost:8080/jaxrs_ee_rs_container_responsecontext_web/resource/setentity
09-15-2020 10:57:36:  TRACE: [WIRE] - >> Accept:*/*
09-15-2020 10:57:36:  ERROR: Root cause of Failure: java.net.ConnectException: Connection refused (Connection refused)
09-15-2020 10:57:36:  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.container.responsecontext.JAXRSClient.invokeRequestAndCheckResponse(JAXRSClient.java:1056)
	at com.sun.ts.tests.jaxrs.ee.rs.container.responsecontext.JAXRSClient.setEntityTest(JAXRSClient.java:982)
	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

09-15-2020 10:57:36:  ERROR: Test case throws exception: [JAXRSCommonClient] null failed! Check output for cause of failure.
09-15-2020 10:57:36:  ERROR: Exception at:  
09-15-2020 10:57:36:  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_rs_container_responsecontext_web/resource/setentity");
Invocation.Builder builder;
builder = target.request("*/*");
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.container.responsecontext.JAXRSClient.invokeRequestAndCheckResponse(JAXRSClient.java:1056)
	at com.sun.ts.tests.jaxrs.ee.rs.container.responsecontext.JAXRSClient.setEntityTest(JAXRSClient.java:982)
	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

09-15-2020 10:57:36:  [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.