Skip to content

Failed

com.sun.ts.tests.jstl.spec.sql.query.JSTLClient.negativeQueryDataSourceAttributeEmptyTest (from tags-tck)

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

Error Message

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

Stacktrace

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

Standard Output

#Test Results (version 2)
#Fri Mar 26 03:39:54 UTC 2021
#-----testdescription-----
$file=/home/jenkins/agent/workspace/jakartaee-tck_master/tags-tck/src/com/sun/ts/tests/jstl/spec/sql/query/JSTLClient.java
$root=/home/jenkins/agent/workspace/jakartaee-tck_master/tags-tck/src
assertion_ids=JSTL\:SPEC\:59  The  < sql\:query> action queries a database.\nJSTL\:SPEC\:59.1  The 'sql' attribute specifies the SQL query statement.\nJSTL\:SPEC\:59.1.1  The result of the evaluated expression must be of\n\t\t\t\t\t\t\t\ttype String.\nJSTL\:SPEC\:59.1.2  If the evaluated expression is not of type String,\n\t\t\t\t\t\t\t\tan Exception is thrown.\nJSTL\:SPEC\:59.2  The 'dataSource' attribute specifies the DataSource\n\t\t\t\t\t\tassociated with the database to query.\nJSTL\:SPEC\:59.2.1  The result of the evaluated expression can be of\n\t\t\t\t\t\t\t\ttype String.\nJSTL\:SPEC\:59.2.1.1  A String value passed to the 'dataSource'\n\t\t\t\t\t\t\t\t\t\tattribute represents a relative path to a JNDI resource or the \n\t\t\t\t\t\t\t\t\t\tparameters for the DriverManager class.\nJSTL\:SPEC\:59.2.2  The result of the evaluated expression can be of\n\t\t\t\t\t\t\t\ttype javax.sql.DataSource.\nJSTL\:SPEC\:59.2.3  If the evaluated expression is not of type String or\n\t\t\t\t\t\t\t\tjavax.sql.DataSource, an Exception is thrown.\nJSTL\:SPEC\:59.2.4  If 'dataSource' is null, a JspException is thrown.\nJSTL\:SPEC\:59.3  The 'maxRows' attribute specifies the maximum number\n\t\t\t\t\t\tof rows to be included in the query result.\nJSTL\:SPEC\:59.3.1  If 'maxRows' is not specified, no limit on the\n\t\t\t\t\t\t\t\tmaximum number of rows is enforced.\nJSTL\:SPEC\:59.3.2  The result of the evaluated expression must be of\n\t\t\t\t\t\t\t\ttype int.\nJSTL\:SPEC\:59.3.3  If the evaluated expression is not of type int, an\n\t\t\t\t\t\t\t\tException is thrown.\nJSTL\:SPEC\:59.3.4  The maximum number of rows to be included in the\n\t\t\t\t\t\t\t\tquery result may also be specified by the configuration setting \n\t\t\t\t\t\t\t\tjavax.servlet.jsp.jstl.sql.maxRows.\nJSTL\:SPEC\:59.3.4.1  Attribute maxRows has priority over the\n\t\t\t\t\t\t\t\t\t\tconfiguration setting.\nJSTL\:SPEC\:59.3.5  A value of -1for maxRows or the configuration\n\t\t\t\t\t\t\t\tsetting means that no limit is enforced on the maximum number of \n\t\t\t\t\t\t\t\trows.\nJSTL\:SPEC\:59.4  The 'startRow' attribute causes the 'Result' object\n\t\t\t\t\t\treturned to only include rows starting at the specified index.\nJSTL\:SPEC\:59.4.1  The index is '0' based, meaning the first row is at\n\t\t\t\t\t\t\t\tindex 0.\nJSTL\:SPEC\:59.4.2  The result of the evaluated expression must be of\n\t\t\t\t\t\t\t\ttype int.\nJSTL\:SPEC\:59.4.3  If the evaluated expression is not of type int, an\n\t\t\t\t\t\t\t\tException is thrown.\nJSTL\:SPEC\:59.5  The 'var' attibute specifies the name of the exported\n\t\t\t\t\t\tscoped variable for the query result.\nJSTL\:SPEC\:59.5.1  The type of the exported attribute must be\n\t\t\t\t\t\t\t\t'javax.servlet.jsp.jstl.sql.Result'.\nJSTL\:SPEC\:59.6  The 'scope' attribute specifies the scope in which to\n\t\t\t\t\t\texport 'var'.\nJSTL\:SPEC\:59.6.1  A value of 'page' will export 'var' to the page\n\t\t\t\t\t\t\t\tscope.\nJSTL\:SPEC\:59.6.2  A value of 'request' will export 'var' to the\n\t\t\t\t\t\t\t\trequest scope.\nJSTL\:SPEC\:59.6.3  A value of 'session' will export 'var' to the\n\t\t\t\t\t\t\t\tsession scope.\nJSTL\:SPEC\:59.6.4  A value of 'application' will export 'var' to the\n\t\t\t\t\t\t\t\tapplication scope.\nJSTL\:SPEC\:59.6.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\:59.7  If 'dataSource' is specified, this action must not be\n\t\t\t\t\t\tnested inside a  < sql\:transaction> action.\nJSTL\:SPEC\:59.8  If the query produces no results, and empty 'Result'\n\t\t\t\t\t\tobject (of size zero) is returned.\nJSTL\:SPEC\:59.9  The action must support the query to be executed as\n\t\t\t\t\t\tbody content.\nJSTL\:SPEC\:59.10  If the query contains parameter markers, the values\n\t\t\t\t\t\tfor the markers must be supplied as nested  < sql\:param> tags.\nJSTL\:SPEC\:59.11  If the query to be executed is specified as body\n\t\t\t\t\t\tcontent, and contains parameter markers, the nested  < sql\:param>\n\t\t\t\t\t\tactions must be placed after the query.\nJSTL\:SPEC\:59.12  A connection is obtained by the action using the\n\t\t\t\t\t\tfollowing algorithm\:\nJSTL\:SPEC\:59.12.1  If the 'dataSource' attribute is given, the\n\t\t\t\t\t\t\t\tConnection object is obtained through getConnection() on the \n\t\t\t\t\t\t\t\tspecified DataSource and release before the end of the tag.\nJSTL\:SPEC\:59.12.1.1  If 'dataSource' resolves to a String, it is\n\t\t\t\t\t\t\t\t\t\tinterpreted as a JNDI path to a DataSource resource.\nJSTL\:SPEC\:59.12.2  If the 'dataSource' attribute is missing, and this\n\t\t\t\t\t\t\t\taction is nested inside a  < sql\:transaction> tag, the\n\t\t\t\t\t\t\t\tConnection object is obtained from the parent \n\t\t\t\t\t\t\t\t < sql\:transaction> tag, which manages it and is responsible\n\t\t\t\t\t\t\t\tfor releasing it.\nJSTL\:SPEC\:59.12.3  If the 'dataSource' attribute is missing, and this\n\t\t\t\t\t\t\t\taction is not nested inside a  < sql\:transaction> tag, the\n\t\t\t\t\t\t\t\tDataSource from which to obtain the Connection is retrieved from \n\t\t\t\t\t\t\t\tthe 'javax.servlet.jsp.jstl.sql.dataSource scoped variable.\nJSTL\:SPEC\:59.12.3.1  The Connection object is obtained through\n\t\t\t\t\t\t\t\t\t\tgetConnection() on the specified DataSource and released \n\t\t\t\t\t\t\t\t\t\tbefore the tag completes.\nJSTL\:SPEC\:59.13  The 'var' attribute is required across all syntax\n\t\t\t\t\t\tvariations.\nJSTL\:SPEC\:59.14  If 'scope' is not specified, 'var' will be exported to\n\t\t\t\t\t\tthe page scope.\nJSTL\:SPEC\:59.15  If an exception is caused by the body content, it must\n\t\t\t\t\t\tbe propagated.\nJSTL\:SPEC\:59.16  Any exception caused by the action itself, must be\n\t\t\t\t\t\tpropagated.\nJSTL\:SPEC\:59.17  If an exception occurs during the execution of this\n\t\t\t\t\t\taction, it must be caught and rethrown as a JspException. The \n\t\t\t\t\t\tmessage of the rethrown JspException must include the SQL\n\t\t\t\t\t\tstatement, and the caught exception must be provided as the root \n\t\t\t\t\t\tcause.
classname=com.sun.ts.tests.jstl.spec.sql.query.JSTLClient
direction=forward
finder=cts
id=negativeQueryDataSourceAttributeEmptyTest
keywords=all jstl javaee javaee_web_profile negativeQueryDataSourceAttributeEmptyTest novehicle forward
service_eetest=no
testName=negativeQueryDataSourceAttributeEmptyTest
testProps=\ webServerHost  webServerPort  ts_home  jstl.db.url  jstl.db.user  jstl.db.password  jstl.db.driver
test_directory=com/sun/ts/tests/jstl/spec/sql/query

#-----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/spec/sql/query/JSTLClient.java\#negativeQueryDataSourceAttributeEmptyTest
end=Fri Mar 26 03\:39\:54 UTC 2021
environment=ts_unix
execStatus=Failed. Test case throws exception\: [BaseUrlClient] negativeQueryDataSourceAttributeEmptyTest 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\:39\:53 UTC 2021
test=com/sun/ts/tests/jstl/spec/sql/query/JSTLClient.java\#negativeQueryDataSourceAttributeEmptyTest
timeoutSeconds=600
totalTime=1509
work=/home/jenkins/agent/workspace/jakartaee-tck_master/tags-tckwork/tags-tck/com/sun/ts/tests/jstl/spec/sql/query

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

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

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

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

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

03-26-2021 03:39:53:  TRACE: [BaseUrlClient] EXECUTING
03-26-2021 03:39:53:  [HttpRequest] Dispatching request: 'GET /jstl_sql_query_web/negativeQueryDataSourceAttributeEmptyTest.jsp HTTP/1.1' to target server at 'localhost:8080'
03-26-2021 03:39:53:  TRACE: ########## The real value set: false
03-26-2021 03:39:53:  TRACE: [WIRE] - >> "GET /jstl_sql_query_web/negativeQueryDataSourceAttributeEmptyTest.jsp HTTP/1.1[\\r][\\n]"
03-26-2021 03:39:53:  TRACE: [WIRE] - >> "jstl.db.user: cts1[\\r][\\n]"
03-26-2021 03:39:53:  TRACE: [WIRE] - >> "jstl.db.driver: org.apache.derby.jdbc.ClientDriver[\\r][\\n]"
03-26-2021 03:39:53:  TRACE: [WIRE] - >> "jstl.db.password: cts1[\\r][\\n]"
03-26-2021 03:39:53:  TRACE: [WIRE] - >> "jstl.db.url: jdbc:derby://localhost:1527/derbyDB;create=true[\\r][\\n]"
03-26-2021 03:39:53:  TRACE: [WIRE] - >> "User-Agent: Jakarta Commons-HttpClient/3.1[\\r][\\n]"
03-26-2021 03:39:53:  TRACE: [WIRE] - >> "Host: localhost:8080[\\r][\\n]"
03-26-2021 03:39:53:  TRACE: [WIRE] - >> "[\\r][\\n]"
03-26-2021 03:39:53:  TRACE: [WIRE] - << "HTTP/1.1 404 Not Found[\\r][\\n]"
03-26-2021 03:39:53:  TRACE: [WIRE] - << "HTTP/1.1 404 Not Found[\\r][\\n]"
03-26-2021 03:39:53:  TRACE: [WIRE] - << "Server: Eclipse GlassFish  6.1.0 [\\r][\\n]"
03-26-2021 03:39:53:  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:39:53:  TRACE: [WIRE] - << "Content-Language: [\\r][\\n]"
03-26-2021 03:39:53:  TRACE: [WIRE] - << "Content-Type: text/html[\\r][\\n]"
03-26-2021 03:39:53:  TRACE: [WIRE] - << "Content-Length: 1048[\\r][\\n]"
03-26-2021 03:39:53:  TRACE: [WIRE] - << "[\\r][\\n]"
03-26-2021 03:39:53:  ERROR: [WebValidatorBase] Unexpected 404 received from target server!  Request path: /jstl_sql_query_web/negativeQueryDataSourceAttributeEmptyTest.jsp
03-26-2021 03:39:53:  ERROR: Test case throws exception: [BaseUrlClient] negativeQueryDataSourceAttributeEmptyTest failed! Check output for cause of failure.
03-26-2021 03:39:53:  ERROR: Exception at:  
03-26-2021 03:39:53:  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.spec.sql.query.JSTLClient.negativeQueryDataSourceAttributeEmptyTest(JSTLClient.java:421)
	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.spec.sql.query.JSTLClient.run(JSTLClient.java:66)
	at com.sun.ts.tests.jstl.spec.sql.query.JSTLClient.main(JSTLClient.java:51)

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


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