Skip to content

Failed

com.sun.ts.tests.jstl.compat.onedotzero.JSTLClient.positiveSetLocaleValueTest (from tags-tck)

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

Error Message

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

Stacktrace

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

Standard Output

#Test Results (version 2)
#Fri Mar 26 03:31:00 UTC 2021
#-----testdescription-----
$file=/home/jenkins/agent/workspace/jakartaee-tck_master/tags-tck/src/com/sun/ts/tests/jstl/compat/onedotzero/JSTLClient.java
$root=/home/jenkins/agent/workspace/jakartaee-tck_master/tags-tck/src
assertion_ids=JSTL\:SPEC\:27  Any I18N action that establishes a localization context\n\t\t\t\tis responsible for setting the response's locale of its page by \n\t\t\t\tcalling ServletResponse.setLocale() with the locale of the\n\t\t\t\tlocalization context.\nJSTL\:SPEC\:27.1  After an action has called\n\t\t\t\t\t\tServletResponse.setLocale(), it must call \n\t\t\t\t\t\tServletResponse.getCharacterEncoding() and store the result in the\n\t\t\t\t\t\t'javax.servlet.jsp.jstl.fmt.request.charset' session attribute.\nJSTL\:SPEC\:28  < fmt\:setLocale> stores the specified locale in the\n\t\t\t\tjavax.servlet.jsp.jstl.fmt.locale configuration variable.\nJSTL\:SPEC\:28.1  The 'value' attribute specifies a printable\n\t\t\t\t\t\trepresentation of a locale, which must contain a two-letter (lower \n\t\t\t\t\t\tcase) language code (as defined by ISO-639), and may contain a\n\t\t\t\t\t\ttwo-letter (upper-case) country code (as defined by ISO-3166). \n\t\t\t\t\t\tLanguage and country codes must be separated by a hyphen ('-') or\n\t\t\t\t\t\tan underscore ('_').\nJSTL\:SPEC\:28.1.1  The result of the evaluated expression must be of\n\t\t\t\t\t\t\t\ttype String or java.util.Locale.\nJSTL\:SPEC\:28.1.2  The locale specified by the attribute 'value' will\n\t\t\t\t\t\t\t\tbe assigned to the scoped attribute \n\t\t\t\t\t\t\t\t'javax.servlet.jsp.jstl.fmt.locale'.\nJSTL\:SPEC\:28.1.3  If the evaluated expression is not of type String or\n\t\t\t\t\t\t\t\tjava.util.Locale, an Exception is thrown.\nJSTL\:SPEC\:28.2  The 'variant' attribute specifies a Vendor- or\n\t\t\t\t\t\tbrowser-specified variant as defined in the javdocs of \n\t\t\t\t\t\tjava.util.Locale.\nJSTL\:SPEC\:28.2.1  The result of the evaluated expression must be of\n\t\t\t\t\t\t\t\ttype String.\nJSTL\:SPEC\:28.2.2  If the evaluated expression is not of type String,\n\t\t\t\t\t\t\t\tan Exception is thrown.\nJSTL\:SPEC\:28.3  The 'scope' attribute specifies the scope of the\n\t\t\t\t\t\tlocale.\nJSTL\:SPEC\:28.3.1  A value of 'page' will set the attribute\n\t\t\t\t\t\t\t\t'javax.servlet.jsp.jstl.fmt.locale' to the page scope.\nJSTL\:SPEC\:28.3.2  A value of 'request' will set attribute\n\t\t\t\t\t\t\t\t'javax.servlet.jsp.jstl.fmt.locale' to the request scope.\nJSTL\:SPEC\:28.3.3  A value of 'session' will set attribute\n\t\t\t\t\t\t\t\t'javax.servlet.jsp.jstl.fmt.locale' to the session scope.\nJSTL\:SPEC\:28.3.4  A value of 'application' will set attribute\n\t\t\t\t\t\t\t\t'javax.servlet.jsp.jstl.fmt.locale' to the page application.\nJSTL\:SPEC\:28.3.5  If the 'scope' attribute is provided an invalid\n\t\t\t\t\t\t\t\tvalue, a translation time validation error will occur.\nJSTL\:SPEC\:28.4  If the 'scope' attribute is not specified, the\n\t\t\t\t\t\t'javax.servlet.jsp.jstl.ftm.locale' attribute will be set to the \n\t\t\t\t\t\tpage scope.\nJSTL\:SPEC\:28.5  The 'value' attribute is required.\nJSTL\:SPEC\:28.6  If the 'value' attribute is null or empty, the runtime\n\t\t\t\t\t\tdefault locale is used.\nJSTL\:SPEC\:28.7  If the 'value' attribute is of type java.util.Locale,\n\t\t\t\t\t\t'variant' is ignored.\nJSTL\:SPEC\:28.8  It is invalid for the action to have a body.
classname=com.sun.ts.tests.jstl.compat.onedotzero.JSTLClient
direction=forward
finder=cts
id=positiveSetLocaleValueTest
keywords=all jstl javaee javaee_web_profile positiveSetLocaleValueTest novehicle forward
service_eetest=no
testName=positiveSetLocaleValueTest
testProps=\ webServerHost  webServerPort  ts_home  jstl.db.url  jstl.db.user  jstl.db.password  jstl.db.driver
test_directory=com/sun/ts/tests/jstl/compat/onedotzero

#-----environment-----
JAVA_HOME=/opt/jdk-11.0.7
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
jstl.db.driver=org.apache.derby.jdbc.ClientDriver
jstl.db.name=derbyDB
jstl.db.password=cts1
jstl.db.port=1527
jstl.db.server=localhost
jstl.db.url=jdbc\:derby\://${jstl.db.server}\:${jstl.db.port}/${jstl.db.name};create\=true
jstl.db.user=cts1
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/compat/onedotzero/JSTLClient.java\#positiveSetLocaleValueTest
end=Fri Mar 26 03\:31\:00 UTC 2021
environment=ts_unix
execStatus=Failed. Test case throws exception\: [BaseUrlClient] positiveSetLocaleValueTest failed\! Check output for cause of failure.
harnessLoaderMode=Classpath Loader
harnessVariety=Full Bundle
javatestOS=Linux 3.10.0-1062.el7.x86_64 (amd64)
javatestVersion=5.0
script=com.sun.ts.lib.harness.TSScript
sections=script_messages TestRun
start=Fri Mar 26 03\:30\:58 UTC 2021
test=com/sun/ts/tests/jstl/compat/onedotzero/JSTLClient.java\#positiveSetLocaleValueTest
timeoutSeconds=600
totalTime=1535
work=/home/jenkins/agent/workspace/jakartaee-tck_master/tags-tckwork/tags-tck/com/sun/ts/tests/jstl/compat/onedotzero

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

#section:TestRun
----------messages:(1/1897)----------
command: com.sun.ts.lib.harness.ExecTSTestCmd CLASSPATH=:/opt/jdk-11.0.7/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/jdk-11.0.7/bin/java com.sun.ts.tests.jstl.compat.onedotzero.JSTLClient -p /home/jenkins/agent/workspace/jakartaee-tck_master/tags-tck/bin/xml/../../tmp/tstest.jte -t positiveSetLocaleValueTest
----------log:(71/5468)*----------
************************************************************
* props file set to "/tmp/?-cts-props.txt"
************************************************************
03-26-2021 03:30:58:  TRACE: #######  Value of harness.socket.retry.count is "10"
03-26-2021 03:30:58:  TRACE: #######  Value of harness.log.port is "2000"
03-26-2021 03:30:58:  TRACE: #######  Actual bind value of harness.log.port is "2000"
03-26-2021 03:30:58:  TRACE: *** in EETest.run(argv,p)
03-26-2021 03:30:58:  TRACE: TESTCLASS=com.sun.ts.tests.jstl.compat.onedotzero.JSTLClient
03-26-2021 03:30:58:  TRACE: ** IN getRunMethod: testClass=com.sun.ts.tests.jstl.compat.onedotzero.JSTLClient
03-26-2021 03:30:58:  TRACE: ** IN getRunMethod: testname=positiveSetLocaleValueTest
03-26-2021 03:30:58:  TRACE: ** GOT RUN METHOD!
03-26-2021 03:30:58:  TRACE: **runmethod=positiveSetLocaleValueTest
03-26-2021 03:30:58:  TRACE: ABOUT TO GET SETUP METHOD!
03-26-2021 03:30:58:  TRACE: No setupMethod annotation present
03-26-2021 03:30:58:  TRACE: getSetupMethod - checking for testcase specific setup method:  positiveSetLocaleValueTest_setup
03-26-2021 03:30:58:  TRACE: getSetupMethod - checking for default class specific setup method
03-26-2021 03:30:58:  TRACE: GOT SETUP METHOD!
03-26-2021 03:30:58:  TRACE: No cleanupMethod annotation present
03-26-2021 03:30:58:  TRACE: getCleanupMethod - checking for testcase specific cleanup method:  positiveSetLocaleValueTest_cleanup
03-26-2021 03:30:58:  TRACE: getCleanupMethod - checking for default class specific cleanup method
03-26-2021 03:30:58:  TRACE: GOT CLEANUP METHOD!
03-26-2021 03:30:58:  TRACE: ABOUT TO INVOKE SETUP METHOD!
03-26-2021 03:30:58:  [BaseUrlClient] Test setup OK
03-26-2021 03:30:58:  TRACE: INVOKED SETUP METHOD!
03-26-2021 03:30:58:  TRACE: ABOUT TO INVOKE EETEST RUN METHOD!
03-26-2021 03:30:58:  TRACE: [HttpRequest] Added request header: jstl.db.user: cts1

03-26-2021 03:30:58:  TRACE: [HttpRequest] Added request header: jstl.db.driver: org.apache.derby.jdbc.ClientDriver

03-26-2021 03:30:58:  TRACE: [HttpRequest] Added request header: jstl.db.password: cts1

03-26-2021 03:30:58:  TRACE: [HttpRequest] Added request header: jstl.db.url: jdbc:derby://localhost:1527/derbyDB;create=true

03-26-2021 03:30:58:  TRACE: [BaseUrlClient] EXECUTING
03-26-2021 03:30:58:  [HttpRequest] Dispatching request: 'GET /jstl_1_0_compat_web/positiveSetLocaleValueTest.jsp HTTP/1.1' to target server at 'localhost:8080'
03-26-2021 03:30:58:  TRACE: ########## The real value set: false
03-26-2021 03:30:58:  TRACE: [WIRE] - >> "GET /jstl_1_0_compat_web/positiveSetLocaleValueTest.jsp HTTP/1.1[\\r][\\n]"
03-26-2021 03:30:58:  TRACE: [WIRE] - >> "jstl.db.user: cts1[\\r][\\n]"
03-26-2021 03:30:58:  TRACE: [WIRE] - >> "jstl.db.driver: org.apache.derby.jdbc.ClientDriver[\\r][\\n]"
03-26-2021 03:30:58:  TRACE: [WIRE] - >> "jstl.db.password: cts1[\\r][\\n]"
03-26-2021 03:30:58:  TRACE: [WIRE] - >> "jstl.db.url: jdbc:derby://localhost:1527/derbyDB;create=true[\\r][\\n]"
03-26-2021 03:30:58:  TRACE: [WIRE] - >> "User-Agent: Jakarta Commons-HttpClient/3.1[\\r][\\n]"
03-26-2021 03:30:58:  TRACE: [WIRE] - >> "Host: localhost:8080[\\r][\\n]"
03-26-2021 03:30:58:  TRACE: [WIRE] - >> "[\\r][\\n]"
03-26-2021 03:30:58:  TRACE: [WIRE] - << "HTTP/1.1 404 Not Found[\\r][\\n]"
03-26-2021 03:30:58:  TRACE: [WIRE] - << "HTTP/1.1 404 Not Found[\\r][\\n]"
03-26-2021 03:30:58:  TRACE: [WIRE] - << "Server: Eclipse GlassFish  6.1.0 [\\r][\\n]"
03-26-2021 03:30:58:  TRACE: [WIRE] - << "X-Powered-By: Servlet/5.0 JSP/3.0(Eclipse GlassFish  6.1.0  Java/Oracle Corporation/11)[\\r][\\n]"
03-26-2021 03:30:58:  TRACE: [WIRE] - << "Content-Language: [\\r][\\n]"
03-26-2021 03:30:58:  TRACE: [WIRE] - << "Content-Type: text/html[\\r][\\n]"
03-26-2021 03:30:58:  TRACE: [WIRE] - << "Content-Length: 1048[\\r][\\n]"
03-26-2021 03:30:58:  TRACE: [WIRE] - << "[\\r][\\n]"
03-26-2021 03:30:58:  ERROR: [WebValidatorBase] Unexpected 404 received from target server!  Request path: /jstl_1_0_compat_web/positiveSetLocaleValueTest.jsp
03-26-2021 03:30:58:  ERROR: Test case throws exception: [BaseUrlClient] positiveSetLocaleValueTest failed! Check output for cause of failure.
03-26-2021 03:30:58:  ERROR: Exception at:  
03-26-2021 03:30:58:  ERROR: com.sun.ts.tests.common.webclient.TestFailureException: Test FAILED!
	at com.sun.ts.tests.common.webclient.WebTestCase.execute(WebTestCase.java:180)
	at com.sun.ts.tests.common.webclient.BaseUrlClient.invoke(BaseUrlClient.java:455)
	at com.sun.ts.tests.jstl.compat.onedotzero.JSTLClient.positiveSetLocaleValueTest(JSTLClient.java:599)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	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.compat.onedotzero.JSTLClient.run(JSTLClient.java:65)
	at com.sun.ts.tests.jstl.compat.onedotzero.JSTLClient.main(JSTLClient.java:51)

03-26-2021 03:30:58:  [BaseUrlClient] Test cleanup OK
STATUS:Failed.Test case throws exception: [BaseUrlClient] positiveSetLocaleValueTest failed! Check output for cause of failure.
result: Failed. Test case throws exception: [BaseUrlClient] positiveSetLocaleValueTest failed! Check output for cause of failure.


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