Skip to content

Regression

com.sun.ts.tests.jstl.spec.fmt.i18n.resourcelookup.JSTLClient.positiveResourceBundleLookupTest (from tags-tck)

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

Error Message

test result: Failed. Test case throws exception: [BaseUrlClient] null failed! Check output for cause of failure.

Stacktrace

test result: Failed. Test case throws exception: [BaseUrlClient] null failed! Check output for cause of failure.

Standard Output

#Test Results (version 2)
#Tue Aug 18 13:17:43 UTC 2020
#-----testdescription-----
$file=/home/jenkins/agent/workspace/jakartaee-tck_master/tags-tck/src/com/sun/ts/tests/jstl/spec/fmt/i18n/resourcelookup/JSTLClient.java
$root=/home/jenkins/agent/workspace/jakartaee-tck_master/tags-tck/src
assertion_ids=JSTL\:SPEC\:26  Given a basename and an ordered set of preferred\n\t\t\t\tlocales, the resource bundle for an I18N localization context is \n\t\t\t\tdetermined according to a specified algorithm.\nJSTL\:SPEC\:26.1  Resource bundles are searched in the following order\:\n\t\t\t\t\t\t- basename + _ + language + _ + country + _ + variant \n\t\t\t\t\t\t- basename + _ + language + _ + country\n\t\t\t\t\t\t- basename + _ + language \n\t\t\t\t\t\t- basename\nJSTL\:SPEC\:26.2  The resource bundle determination algorithm is\n\t\t\t\t\t\tcomprised of two steps.\nJSTL\:SPEC\:26.2.1  Find a match within the ordered set of preferred\n\t\t\t\t\t\t\t\tlocales.\nJSTL\:SPEC\:26.2.1.1  A resource bundle look up is performed for each\n\t\t\t\t\t\t\t\t\t\tone of the preferred locales (processed in the order returned \n\t\t\t\t\t\t\t\t\t\tby ServletRequest.getLocales()) until a match is found.\nJSTL\:SPEC\:26.2.2  If the resource lookup fails for the preferred\n\t\t\t\t\t\t\t\tlocales, a resource bundle lookup is performed for the fallback \n\t\t\t\t\t\t\t\tlocale specified in the\n\t\t\t\t\t\t\t\tjavax.servlet.jsp.jstl.fmt.fallbackLocale scoped attribute or \n\t\t\t\t\t\t\t\tcontext configuration parameter.\nJSTL\:SPEC\:26.2.3  If no match is found is found following the\n\t\t\t\t\t\t\t\tspecified steps, an attempt is made to load the root resource \n\t\t\t\t\t\t\t\tbundle with the given basename.\nJSTL\:SPEC\:26.2.3.1  If such a resource bundle exists, it is used as\n\t\t\t\t\t\t\t\t\t\tthe resource bundle of an i18n localization context that does \n\t\t\t\t\t\t\t\t\t\tnot have any locale.\nJSTL\:SPEC\:26.2.3.2  Otherwise, the established i18n localization\n\t\t\t\t\t\t\t\t\t\tcontext contains neither a resource bundle nor a locale. It is \n\t\t\t\t\t\t\t\t\t\tthen up to the i18n action relying on this i18n localization\n\t\t\t\t\t\t\t\t\t\tcontext for the localization of its data to take a proper \n\t\t\t\t\t\t\t\t\t\tcorrective action.\nJSTL\:SPEC\:26.2.4  The alogrithm must give a higher priority to a\n\t\t\t\t\t\t\t\t'language' match over an 'exact' match that would have occurred \n\t\t\t\t\t\t\t\tfurther down the list of preferred locales.\nJSTL\:SPEC\:26.2.5  The algorithm must never consider the default locale\n\t\t\t\t\t\t\t\tassociated with the Java runtime of the container as this would \n\t\t\t\t\t\t\t\tresult in non-portable behavior.\nJSTL\:SPEC\:26.2.6  The behavior is implementation-specific if the set\n\t\t\t\t\t\t\t\tof available resource bundles changes during the execution of \n\t\t\t\t\t\t\t\tthe page.\nJSTL\:SPEC\:26.2.7  Implementations may cache whatever information they\n\t\t\t\t\t\t\t\tdeem necessary to improve performance of the algorithm presented \n\t\t\t\t\t\t\t\tin this section.\nJSTL\:SPEC\:29  The  < fmt\:bundle> action creates an i18n localization\n\t\t\t\tcontext to be used by its body content.\nJSTL\:SPEC\:29.1  The 'basename' attribute specifies the resource bundle\n\t\t\t\t\t\tbase name.\nJSTL\:SPEC\:29.1.3  The specific resource bundle that is loaded is\n\t\t\t\t\t\t\t\tdetermined according to the algorithm presented in Section \n\t\t\t\t\t\t\t\t8.3.2.
classname=com.sun.ts.tests.jstl.spec.fmt.i18n.resourcelookup.JSTLClient
direction=forward
finder=cts
id=positiveResourceBundleLookupTest
keywords=all jstl javaee javaee_web_profile positiveResourceBundleLookupTest novehicle forward
service_eetest=no
testName=positiveResourceBundleLookupTest
testProps=\ webServerHost  webServerPort  ts_home
test_directory=com/sun/ts/tests/jstl/spec/fmt/i18n/resourcelookup

#-----environment-----
JAVA_HOME=/opt/jdk1.8.0_191/jre
JAVA_OPTIONS=
LOCAL_CLASSES=/home/jenkins/agent/workspace/jakartaee-tck_master/tags-tck/bin/xml/../../lib/tsharness.jar\:/home/jenkins/agent/workspace/jakartaee-tck_master/tags-tck/bin/xml/../../lib/jstltck.jar\:/home/jenkins/agent/workspace/jakartaee-tck_master/tags-tck/bin/xml/../../lib/javatest.jar\:/home/jenkins/agent/workspace/jakartaee-tck_master/tags-tck/bin/xml/../../classes\:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.servlet.jsp.jstl.jar\:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.servlet.jsp.jstl-api.jar\:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.servlet-api.jar\:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.servlet.jsp.jar\:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.servlet.jsp-api.jar\:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.el.jar\:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.el-api.jar\:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/../javadb/lib/derbyclient.jar\:/home/jenkins/agent/workspace/jakartaee-tck_master/tags-tck/bin/xml/../../lib/commons-httpclient-3.1.jar\:/home/jenkins/agent/workspace/jakartaee-tck_master/tags-tck/bin/xml/../../lib/commons-codec-1.9.jar\:/home/jenkins/agent/workspace/jakartaee-tck_master/tags-tck/bin/xml/../../lib/commons-logging-1.1.3.jar\:/home/jenkins/agent/workspace/jakartaee-tck_master/tags-tck/bin/xml/../../lib/sigtest.jar
SYSTEMROOT=${env.SystemRoot}
TS_HOME=/home/jenkins/agent/workspace/jakartaee-tck_master/tags-tck/bin/xml/../..
command.testExecute=com.sun.ts.lib.harness.ExecTSTestCmd CLASSPATH\=${JAVA_HOME}/lib/rt.jar${pathsep}${LOCAL_CLASSES} HOME\="${user.home}" windir\=${windir} SYSTEMROOT\=${SYSTEMROOT} ${JAVA_HOME}/bin/java ${JAVA_OPTIONS} $testExecuteClass $testExecuteArgs
harness.executeMode=2
harness.log.delayseconds=1
harness.log.port=2000
harness.log.traceflag=true
harness.socket.retry.count=10
harness.temp.directory=${ts.home}/tmp
pathsep=\:
porting.ts.url.class.1=com.sun.ts.lib.implementation.sun.common.SunRIURL
ts.home=/home/jenkins/agent/workspace/jakartaee-tck_master/tags-tck/bin/xml/../..
ts_home=${TS_HOME}
user.home=?
webServerHost=localhost
webServerPort=8080
windir=${env.windir}

#-----testresult-----
description=file\:/home/jenkins/agent/workspace/jakartaee-tck_master/tags-tck/src/com/sun/ts/tests/jstl/spec/fmt/i18n/resourcelookup/JSTLClient.java\#positiveResourceBundleLookupTest
end=Tue Aug 18 13\:17\:43 UTC 2020
environment=ts_unix
execStatus=Failed. Test case throws exception\: [BaseUrlClient] 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 13\:17\:42 UTC 2020
test=com/sun/ts/tests/jstl/spec/fmt/i18n/resourcelookup/JSTLClient.java\#positiveResourceBundleLookupTest
timeoutSeconds=600
totalTime=1501
work=/home/jenkins/agent/workspace/jakartaee-tck_master/tags-tckwork/tags-tck/com/sun/ts/tests/jstl/spec/fmt/i18n/resourcelookup

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

#section:TestRun
----------messages:(1/1926)----------
command: com.sun.ts.lib.harness.ExecTSTestCmd CLASSPATH=:/opt/jdk1.8.0_191/jre/lib/rt.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/tags-tck/bin/xml/../../lib/tsharness.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/tags-tck/bin/xml/../../lib/jstltck.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/tags-tck/bin/xml/../../lib/javatest.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/tags-tck/bin/xml/../../classes:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.servlet.jsp.jstl.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.servlet.jsp.jstl-api.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.servlet-api.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.servlet.jsp.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.servlet.jsp-api.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.el.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.el-api.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/../javadb/lib/derbyclient.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/tags-tck/bin/xml/../../lib/commons-httpclient-3.1.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/tags-tck/bin/xml/../../lib/commons-codec-1.9.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/tags-tck/bin/xml/../../lib/commons-logging-1.1.3.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/tags-tck/bin/xml/../../lib/sigtest.jar HOME=? windir= SYSTEMROOT= /opt/jdk1.8.0_191/jre/bin/java com.sun.ts.tests.jstl.spec.fmt.i18n.resourcelookup.JSTLClient -p /home/jenkins/agent/workspace/jakartaee-tck_master/tags-tck/bin/xml/../../tmp/tstest.jte -t positiveResourceBundleLookupTest
----------log:(92/6832)----------
************************************************************
* props file set to "/tmp/?-cts-props.txt"
************************************************************
08-18-2020 13:17:42:  TRACE: #######  Value of harness.socket.retry.count is "10"
08-18-2020 13:17:42:  TRACE: #######  Value of harness.log.port is "2000"
08-18-2020 13:17:42:  TRACE: #######  Actual bind value of harness.log.port is "2000"
08-18-2020 13:17:42:  TRACE: *** in EETest.run(argv,p)
08-18-2020 13:17:42:  TRACE: TESTCLASS=com.sun.ts.tests.jstl.spec.fmt.i18n.resourcelookup.JSTLClient
08-18-2020 13:17:42:  TRACE: ** IN getRunMethod: testClass=com.sun.ts.tests.jstl.spec.fmt.i18n.resourcelookup.JSTLClient
08-18-2020 13:17:42:  TRACE: ** IN getRunMethod: testname=positiveResourceBundleLookupTest
08-18-2020 13:17:42:  TRACE: ** GOT RUN METHOD!
08-18-2020 13:17:42:  TRACE: **runmethod=positiveResourceBundleLookupTest
08-18-2020 13:17:42:  TRACE: ABOUT TO GET SETUP METHOD!
08-18-2020 13:17:42:  TRACE: No setupMethod annotation present
08-18-2020 13:17:42:  TRACE: getSetupMethod - checking for testcase specific setup method:  positiveResourceBundleLookupTest_setup
08-18-2020 13:17:42:  TRACE: getSetupMethod - checking for default class specific setup method
08-18-2020 13:17:42:  TRACE: GOT SETUP METHOD!
08-18-2020 13:17:42:  TRACE: No cleanupMethod annotation present
08-18-2020 13:17:42:  TRACE: getCleanupMethod - checking for testcase specific cleanup method:  positiveResourceBundleLookupTest_cleanup
08-18-2020 13:17:42:  TRACE: getCleanupMethod - checking for default class specific cleanup method
08-18-2020 13:17:42:  TRACE: GOT CLEANUP METHOD!
08-18-2020 13:17:42:  TRACE: ABOUT TO INVOKE SETUP METHOD!
08-18-2020 13:17:42:  [BaseUrlClient] Test setup OK
08-18-2020 13:17:42:  TRACE: INVOKED SETUP METHOD!
08-18-2020 13:17:42:  TRACE: ABOUT TO INVOKE EETEST RUN METHOD!
08-18-2020 13:17:42:  TRACE: [WebTestCase] addHeader utility method called: message: en_GB message
08-18-2020 13:17:42:  TRACE: [WebTestCase] Adding test header: message, en_GB message
08-18-2020 13:17:42:  TRACE: [HttpRequest] Added request header: Accept-Language: en-GB, fr-CA

08-18-2020 13:17:42:  TRACE: [BaseUrlClient] EXECUTING
08-18-2020 13:17:42:  ERROR: Root cause of Failure: Connection refused (Connection refused)
08-18-2020 13:17:42:  ERROR: 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 java.net.Socket.connect(Socket.java:538)
	at java.net.Socket.<init>(Socket.java:434)
	at java.net.Socket.<init>(Socket.java:286)
	at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
	at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
	at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
	at com.sun.ts.tests.common.webclient.http.HttpRequest.execute(HttpRequest.java:409)
	at com.sun.ts.tests.common.webclient.WebTestCase.execute(WebTestCase.java:171)
	at com.sun.ts.tests.common.webclient.BaseUrlClient.invoke(BaseUrlClient.java:455)
	at com.sun.ts.tests.jstl.spec.fmt.i18n.resourcelookup.JSTLClient.positiveResourceBundleLookupTest(JSTLClient.java:83)
	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.EETest.getPropsReady(EETest.java:486)
	at com.sun.ts.lib.harness.EETest.run(EETest.java:337)
	at com.sun.ts.tests.jstl.spec.fmt.i18n.resourcelookup.JSTLClient.run(JSTLClient.java:64)
	at com.sun.ts.tests.jstl.spec.fmt.i18n.resourcelookup.JSTLClient.main(JSTLClient.java:50)

08-18-2020 13:17:42:  ERROR: Test case throws exception: [BaseUrlClient] null failed! Check output for cause of failure.
08-18-2020 13:17:42:  ERROR: Exception at:  
08-18-2020 13:17:42:  ERROR: com.sun.ts.tests.common.webclient.TestFailureException: [FATAL] Unexpected failure during test execution.Connection refused (Connection refused)
	at com.sun.ts.tests.common.webclient.WebTestCase.execute(WebTestCase.java:175)
	at com.sun.ts.tests.common.webclient.BaseUrlClient.invoke(BaseUrlClient.java:455)
	at com.sun.ts.tests.jstl.spec.fmt.i18n.resourcelookup.JSTLClient.positiveResourceBundleLookupTest(JSTLClient.java:83)
	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.EETest.getPropsReady(EETest.java:486)
	at com.sun.ts.lib.harness.EETest.run(EETest.java:337)
	at com.sun.ts.tests.jstl.spec.fmt.i18n.resourcelookup.JSTLClient.run(JSTLClient.java:64)
	at com.sun.ts.tests.jstl.spec.fmt.i18n.resourcelookup.JSTLClient.main(JSTLClient.java:50)
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 java.net.Socket.connect(Socket.java:538)
	at java.net.Socket.<init>(Socket.java:434)
	at java.net.Socket.<init>(Socket.java:286)
	at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
	at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
	at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
	at com.sun.ts.tests.common.webclient.http.HttpRequest.execute(HttpRequest.java:409)
	at com.sun.ts.tests.common.webclient.WebTestCase.execute(WebTestCase.java:171)
	... 11 more

08-18-2020 13:17:42:  [BaseUrlClient] Test cleanup OK
STATUS:Failed.Test case throws exception: [BaseUrlClient] null failed! Check output for cause of failure.
result: Failed. Test case throws exception: [BaseUrlClient] null failed! Check output for cause of failure.


test result: Failed. Test case throws exception: [BaseUrlClient] null failed! Check output for cause of failure.