Skip to content

Regression

com.sun.ts.tests.jstl.spec.sql.setdatasource.JSTLClient.negativeSetDataSourceScopeAttributeTest (from tags-tck)

Failing for the past 1 build (Since #67 )
Took 2 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:19:38 UTC 2020
#-----testdescription-----
$file=/home/jenkins/agent/workspace/jakartaee-tck_master/tags-tck/src/com/sun/ts/tests/jstl/spec/sql/setdatasource/JSTLClient.java
$root=/home/jenkins/agent/workspace/jakartaee-tck_master/tags-tck/src
assertion_ids=JSTL\:SPEC\:62  < sql\:setDataSource> exports a data source either as a\n\t\t\t\tscoped variable or as the data source configuration variable \n\t\t\t\t(javax.servlet.jsp.jstl.sql.dataSource).\nJSTL\:SPEC\:62.1  The 'dataSource' attribute specifies the data source.\nJSTL\:SPEC\:62.1.1  The 'dataSource' attribute must evaluate to type\n\t\t\t\t\t\t\t\tString or javax.sql.DataSource\nJSTL\:SPEC\:62.1.2  If 'dataSource' does not evaluate to one of the\n\t\t\t\t\t\t\t\tallowed types, an exception is thrown.\nJSTL\:SPEC\:62.1.3  If 'dataSource' is specified as a string, it can\n\t\t\t\t\t\t\t\teither be a relative path to a JNDI resource, or a JDBC \n\t\t\t\t\t\t\t\tparameters string as defined in Section 10.1.1\nJSTL\:SPEC\:62.1.4  If 'dataSource' is null, a JspException is thrown\nJSTL\:SPEC\:62.2  The 'driver' attribute specifies the driver class\n\t\t\t\t\t\tname.\nJSTL\:SPEC\:62.2.1  The result of the evaluated expression must be of\n\t\t\t\t\t\t\t\ttype String.\nJSTL\:SPEC\:62.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\:62.3  The 'url' attribute specifies the JDBC URL associated\n\t\t\t\t\t\twith the database.\nJSTL\:SPEC\:62.3.1  The result of the evaluated expression must be of\n\t\t\t\t\t\t\t\ttype String.\nJSTL\:SPEC\:62.3.2  If the evaluated expression is not of type String,\n\t\t\t\t\t\t\t\tan Exception is thrown.\nJSTL\:SPEC\:62.4  The 'user' attribute specifies the user on whose\n\t\t\t\t\t\tbehalf the connection to the database is being made.\nJSTL\:SPEC\:62.4.1  The result of the evaluated expression must be of\n\t\t\t\t\t\t\t\ttype String.\nJSTL\:SPEC\:62.4.2  If the evaluated expression is not of type String,\n\t\t\t\t\t\t\t\tan Exception is thrown.\nJSTL\:SPEC\:62.5  The 'password' attribute specifies the password of the\n\t\t\t\t\t\tuser on whose behalf the connection to the database is being made.\nJSTL\:SPEC\:62.5.1  The result of the evaluated expression must be of\n\t\t\t\t\t\t\t\ttype String.\nJSTL\:SPEC\:62.5.2  If the evaluated expression is not of type String,\n\t\t\t\t\t\t\t\tan Exception is thrown.\nJSTL\:SPEC\:62.6  The 'var' attribute specifies the name of the exported\n\t\t\t\t\t\tscoped variable for the data source specified.\nJSTL\:SPEC\:62.6.1  The result of the evaluated expression must be of\n\t\t\t\t\t\t\t\ttype String.\nJSTL\:SPEC\:62.6.2  If the evaluated expression is not of type String,\n\t\t\t\t\t\t\t\tan Exception is thrown.\nJSTL\:SPEC\:62.6.3  The type of the exported attribute must be of type\n\t\t\t\t\t\t\t\tjavax.sql.DataSource or String.\nJSTL\:SPEC\:62.6.4  If the 'var' attribute is specified, but empty, a\n\t\t\t\t\t\t\t\ttranslation time validation error will occur.\nJSTL\:SPEC\:62.6.5  If the 'var' attribute is not specified, the data\n\t\t\t\t\t\t\t\tsource is exported in the javax.servlet.jsp.jstl.sql.dataSource \n\t\t\t\t\t\t\t\tconfiguration variable.\nJSTL\:SPEC\:62.7  The 'scope' attribute specifies the scope in which to\n\t\t\t\t\t\texport 'var'/\nJSTL\:SPEC\:62.7.1  A value of 'page' will export 'var' to the page\n\t\t\t\t\t\t\t\tscope.\nJSTL\:SPEC\:62.7.2  A value of 'request' will export 'var' to the\n\t\t\t\t\t\t\t\trequest scope.\nJSTL\:SPEC\:62.7.3  A value of 'session' will export 'var' to the\n\t\t\t\t\t\t\t\tsession scope.\nJSTL\:SPEC\:62.7.4  A value of 'application' will export 'var' to the\n\t\t\t\t\t\t\t\tapplication scope.\nJSTL\:SPEC\:62.7.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\:62.8  If the 'driver' attribute is not set, then the context\n\t\t\t\t\t\tconfiguration parameter 'javax.servlet.jsp.jstl.sql.driver' will \n\t\t\t\t\t\tbe used.\nJSTL\:SPEC\:62.9  If the 'url' attribute is not set, then the context\n\t\t\t\t\t\tconfiguration parameter 'javax.servlet.jsp.jstl.sql.url' will be \n\t\t\t\t\t\tused.\nJSTL\:SPEC\:62.10  If the 'user' attribute is not set, then the context\n\t\t\t\t\t\tconfiguration parameter 'javax.servlet.jsp.jstl.sql.user' will be \n\t\t\t\t\t\tused.\nJSTL\:SPEC\:62.11  The user's password may only be specified by the\n\t\t\t\t\t\tcontext configuration parameter \n\t\t\t\t\t\t'javax.servlet.jsp.jstl.sql.password'.\nJSTL\:SPEC\:62.12  If an exception is caused by the action, it must be\n\t\t\t\t\t\tpropagated.\nJSTL\:SPEC\:62.13  The data source must be specified either via the\n\t\t\t\t\t\tdataSource attribute (as a DataSource object, JNDI relative path, \n\t\t\t\t\t\tor JDBC parameters string), or via the four JDBC parameters\n\t\t\t\t\t\tattributes.\nJSTL\:SPEC\:62.13.1  Either the dataSource or the url attribute must be\n\t\t\t\t\t\t\t\tpresent.
classname=com.sun.ts.tests.jstl.spec.sql.setdatasource.JSTLClient
direction=forward
finder=cts
id=negativeSetDataSourceScopeAttributeTest
keywords=all jstl javaee javaee_web_profile negativeSetDataSourceScopeAttributeTest novehicle forward
service_eetest=no
testName=negativeSetDataSourceScopeAttributeTest
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/setdatasource

#-----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
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/setdatasource/JSTLClient.java\#negativeSetDataSourceScopeAttributeTest
end=Tue Aug 18 13\:19\:38 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\:19\:36 UTC 2020
test=com/sun/ts/tests/jstl/spec/sql/setdatasource/JSTLClient.java\#negativeSetDataSourceScopeAttributeTest
timeoutSeconds=600
totalTime=1491
work=/home/jenkins/agent/workspace/jakartaee-tck_master/tags-tckwork/tags-tck/com/sun/ts/tests/jstl/spec/sql/setdatasource

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

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

08-18-2020 13:19:36:  TRACE: [HttpRequest] Added request header: jstl.db.driver: org.apache.derby.jdbc.ClientDriver

08-18-2020 13:19:36:  TRACE: [HttpRequest] Added request header: jstl.db.password: cts1

08-18-2020 13:19:36:  TRACE: [HttpRequest] Added request header: jstl.db.url: jdbc:derby://localhost:1527/derbyDB;create=true

08-18-2020 13:19:36:  TRACE: [BaseUrlClient] EXECUTING
08-18-2020 13:19:36:  ERROR: Root cause of Failure: Connection refused (Connection refused)
08-18-2020 13:19:36:  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.sql.setdatasource.JSTLClient.negativeSetDataSourceScopeAttributeTest(JSTLClient.java:375)
	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.sql.setdatasource.JSTLClient.run(JSTLClient.java:66)
	at com.sun.ts.tests.jstl.spec.sql.setdatasource.JSTLClient.main(JSTLClient.java:51)

08-18-2020 13:19:36:  ERROR: Test case throws exception: [BaseUrlClient] null failed! Check output for cause of failure.
08-18-2020 13:19:36:  ERROR: Exception at:  
08-18-2020 13:19:36:  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.sql.setdatasource.JSTLClient.negativeSetDataSourceScopeAttributeTest(JSTLClient.java:375)
	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.sql.setdatasource.JSTLClient.run(JSTLClient.java:66)
	at com.sun.ts.tests.jstl.spec.sql.setdatasource.JSTLClient.main(JSTLClient.java:51)
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:19:36:  [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.