Skip to content

Failed

com.sun.ts.tests.jacc.ejb.mr.Client.EjbNotAuthz_from_ejblitesecuredjsp (from authorization-tck)

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

Error Message

test result: Failed.

Stacktrace

test result: Failed.

Standard Output

#Test Results (version 2)
#Fri Mar 26 03:31:33 UTC 2021
#-----testdescription-----
$file=/home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tck/src/com/sun/ts/tests/jacc/ejb/mr/Client.java
$root=/home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tck/src
assertion_ids=EJB\:SPEC\:811  The method element uses the ejb-name, method-name, and method-params\n     elements to denote one or more methods of an enterprise bean s home, \n     component, and/or web service endpoint interfaces.  There are three legal \n     styles for composing the method element\:\n     Style 1\:  \n     \n             < method> \n                  < ejb-name> EJBNAME < /ejb-name> \n                  < method-name>* < /method-name> \n             < /method>\n             \n     This style is used for referring to all of the home, component, and web\n     service endpoint inter-face methods of a specified enterprise bean. \n\n     Style 2\:\n      \n             < method> \n                  < ejb-name> EJBNAME < /ejb-name> \n                  < method-name>METHOD < /method-name> \n             < /method> \n             \n     This style is used for referring to a specified method of the home,\n     component, or web service endpoint interface of the specified enterprise \n     bean.  If there are multiple methods with the same overloaded name, this\n     style refers to all of the overloaded methods. \n\n      Style 3\:\n       \n              < method> \n                  < ejb-name> EJBNAME < /ejb-name> \n                  < method-name> METHOD < /method-name> \n                  < method-params> \n                     < method-param> PARAMETER_1 < /method-param> \n                    ...  \n                     < method-param> PARAMETER_N < /method-param> \n                  < /method-params> \n              < /method>\n       \n      \n     This style is used to refer to a specified method within a set of methods \n     with an overloaded name.  The method must be defined in the specified\n     enterprise bean s home, component, or web service endpoint interface.  If \n     there are multiple methods with the same overloaded name, however, this\n     style refers to all of the overloaded methods.\nJACC\:SPEC\:103  A container must determine if the caller has been granted a permission by\nevaluating the permission in the context of an AccessControlContext, \nProtectionDomain, or Subject containing the principals of (only) the caller. If the\ncaller's identity has been asserted or vouched for by a trusted authority (other than \nthe caller), the principals of the authority must not be included in the principals of\nthe caller.A container must use one of the following techniques to determine if a \npermission has been granted to the caller.\n\nThe container calls AccessControlContext.checkPermission with \nthe permission as argument. The call to checkPermission must be made on\nan AccessControlContext that contains the principals of the caller. If \ncheckPermission throws an AccessControlException, the permission is not\ngranted to the caller. Otherwise the permission is granted. \n\nThe container calls AccessController.checkPermission with the \npermission as argument. The AccessControlContext associated with the thread\non which the call to checkPermission is made must contain the principals \nof the caller. If checkPermission throws an AccessControlException, the\npermission is not granted to the caller. Otherwise the permission is granted. \n\nThe container calls SecurityManager.checkPermission with the\npermission as argument. The AccessControlContext associated with the thread \non which the call to checkPermission is made must contain the principals\nof the caller. If checkPermission throws an AccessControlException, the \npermission is not granted to the caller. Otherwise the permission is granted.\n\nThe container calls Policy.implies with two arguments; the \npermission being checked and a ProtectionDomain constructed with the\nprincipals of the caller. The boolean result returned by Policy.implies \nindicates whether or not the permission has been granted to the caller.\n\nThe container calls \njava.security.Policy.getPermissions with an argument\nProtectionDomain that was constructed with the principals of the caller. The \ncontainer must call the implies method on the returned\nPermissionCollection using the permission being checked as argument. If the \nPermissionCollection implies the permission being tested, the permission has\nbeen granted to the caller. Otherwise it has not. This technique is supported but \nnot recommended.
classname=com.sun.ts.tests.jacc.ejb.mr.Client
direction=forward
finder=cts
id=EjbNotAuthz_from_ejblitesecuredjsp
keywords=all jacc javaee jacc_ejb EjbNotAuthz ejblitesecuredjsp_vehicle forward
service_eetest=yes
testName=EjbNotAuthz
testProps=\ user  password  authuser
test_directory=com/sun/ts/tests/jacc/ejb/mr

#-----environment-----
JAVA_HOME=/opt/jdk-11.0.7
SYSTEMROOT=${env.SystemRoot}
TS_HOME=/home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tck/bin/xml/../..
authuser=javajoe
bin.dir=/home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tck/bin/xml/../../bin
command.testExecute=com.sun.ts.lib.harness.ExecTSTestCmd CLASSPATH\=${ts.harness.classpath}\:${JAVA_HOME}/../lib/tools.jar DISPLAY\=${ts.display} HOME\="${user.home}" windir\=${windir} SYSTEMROOT\=${SYSTEMROOT} ${JAVA_HOME}/bin/java -Dcts.tmp\=$harness.temp.directory -Dlog.file.location\=${log.file.location} -Djava.security.policy\=${bin.dir}/harness.policy -Dcom.sun.aas.installRoot\=${jacc.home} -Djava.protocol.handler.pkgs\=javax.net.ssl -Djavax.net.ssl.keyStore\=${bin.dir}/certificates/clientcert.jks -Djavax.net.ssl.keyStorePassword\=changeit -Djavax.net.ssl.trustStore\=${jacc.home}/domains/domain1/config/cacerts.jks -Ddeliverable.class\=${deliverable.class} $testExecuteClass $testExecuteArgs
database.classes=${jdbc.lib.class.path}/derbyclient.jar
deliverable.class=com.sun.ts.lib.deliverable.jacc.JACCDeliverable
harness.executeMode=0
harness.log.delayseconds=1
harness.log.port=2000
harness.log.traceflag=true
harness.socket.retry.count=10
harness.temp.directory=${ts.home}/tmp
jacc.classes=${ri.lib}/jakarta.authorization-api.jar\:${ri.lib}/jakarta.security.auth.message-api.jar\:${ri.lib}/common-util.jar\:${ri.lib}/container-common.jar\:${ri.lib}/jakarta.annotation-api.jar\:${ri.lib}/jakarta.resource-api.jar\:${ri.lib}/jmxremote_optional-repackaged.jar\:${ri.lib}/ldapbp-repackaged.jar\:${ri.lib}/security.jar\:${ri.lib}/web-core.jar\:${ri.lib}/web-glue.jar\:${ri.lib}/websecurity.jar\:${ri.lib}/jakarta.servlet-api.jar\:${ri.lib}/jakarta.ejb-api.jar\:${ri.lib}/jakarta.persistence.jar\:${ri.lib}/jakarta.transaction-api.jar\:${ri.lib}/jakarta.jms-api.jar\:${ri.lib}/jakarta.servlet.jsp-api.jar
jacc.home=/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish
jacc.host=localhost
javaee.level=full
jdbc.lib.class.path=${jacc.home}/javadb/lib
lib.dir=${ts.home}/lib
log.file.location=${jacc.home}/domains/domain1/logs
password=j2ee
porting.ts.url.class.1=com.sun.ts.lib.implementation.sun.common.SunRIURL
ri.lib=${jacc.home}/modules
ts.display=\:0.0
ts.harness.classpath=${lib.dir}/tsharness.jar\:${lib.dir}/sigtest.jar\:${lib.dir}/commons-logging-1.1.3.jar\:${lib.dir}/commons-httpclient-3.1.jar\:${ts.run.classpath}\:${lib.dir}/javatest.jar\:${ant.home}/lib/ant.jar
ts.home=/home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tck/bin/xml/../..
ts.run.classpath=${ts.home}/classes\:${database.classes}\:${jacc.classes}
user=j2ee
user.home=?
webServerHost=${jacc.host}
webServerPort=8080
windir=${env.windir}

#-----testresult-----
description=file\:/home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tck/src/com/sun/ts/tests/jacc/ejb/mr/Client.java\#EjbNotAuthz_from_ejblitesecuredjsp
end=Fri Mar 26 03\:31\:33 UTC 2021
environment=ts_unix
execStatus=Failed.
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\:31\:32 UTC 2021
test=com/sun/ts/tests/jacc/ejb/mr/Client.java\#EjbNotAuthz_from_ejblitesecuredjsp
timeoutSeconds=600
totalTime=1606
work=/home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tckwork/authorization-tck/com/sun/ts/tests/jacc/ejb/mr

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

#section:TestRun
----------messages:(1/3786)----------
command: com.sun.ts.lib.harness.ExecTSTestCmd CLASSPATH=:/home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tck/bin/xml/../../lib/tsharness.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tck/bin/xml/../../lib/sigtest.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tck/bin/xml/../../lib/commons-logging-1.1.3.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tck/bin/xml/../../lib/commons-httpclient-3.1.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tck/bin/xml/../../classes:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/javadb/lib/derbyclient.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.authorization-api.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.security.auth.message-api.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/common-util.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/container-common.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.resource-api.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jmxremote_optional-repackaged.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/ldapbp-repackaged.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/security.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/web-core.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/web-glue.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/websecurity.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.ejb-api.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.persistence.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.transaction-api.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.jms-api.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/modules/jakarta.servlet.jsp-api.jar:/home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tck/bin/xml/../../lib/javatest.jar:/lib/ant.jar:/opt/jdk-11.0.7/../lib/tools.jar DISPLAY=:0.0 HOME=? windir= SYSTEMROOT= /opt/jdk-11.0.7/bin/java -Dcts.tmp=/home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tck/bin/xml/../../tmp -Dlog.file.location=/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/domains/domain1/logs -Djava.security.policy=/home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tck/bin/xml/../../bin/harness.policy -Dcom.sun.aas.installRoot=/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish -Djava.protocol.handler.pkgs=javax.net.ssl -Djavax.net.ssl.keyStore=/home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tck/bin/xml/../../bin/certificates/clientcert.jks -Djavax.net.ssl.keyStorePassword=changeit -Djavax.net.ssl.trustStore=/home/jenkins/agent/workspace/jakartaee-tck_master/glassfish6/glassfish/domains/domain1/config/cacerts.jks -Ddeliverable.class=com.sun.ts.lib.deliverable.jacc.JACCDeliverable com.sun.ts.tests.common.vehicle.VehicleClient -p /home/jenkins/agent/workspace/jakartaee-tck_master/authorization-tck/bin/xml/../../tmp/tstest.jte -t EjbNotAuthz -vehicle ejblitesecuredjsp
----------log:(23/1761)----------
************************************************************
* props file set to "/tmp/?-cts-props.txt"
************************************************************
03-26-2021 03:31:32:  TRACE: #######  Value of harness.socket.retry.count is "10"
03-26-2021 03:31:32:  TRACE: #######  Value of harness.log.port is "2000"
03-26-2021 03:31:32:  TRACE: #######  Actual bind value of harness.log.port is "2000"
03-26-2021 03:31:32:  TRACE: in ServiceEETest.run() method
03-26-2021 03:31:32:  TRACE: Vehicle to be used for this test is:  ejblitesecuredjsp
Mar 26, 2021 3:31:32 AM com.sun.ts.tests.common.vehicle.ejbliteshare.EJBLiteSecuredWebVehicleRunner run
INFO: Connecting http://localhost:8080/jacc_ejb_mr_ejblitesecuredjsp_vehicle_web/ejblitesecuredjsp_vehicle.jsp?testName=EjbNotAuthz
Failed to connect to the test webapp.java.io.FileNotFoundException: http://localhost:8080/jacc_ejb_mr_ejblitesecuredjsp_vehicle_web/ejblitesecuredjsp_vehicle.jsp?testName=EjbNotAuthz
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1915)
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1515)
	at com.sun.ts.lib.util.TestUtil.getResponse(TestUtil.java:874)
	at com.sun.ts.tests.common.vehicle.ejbliteshare.EJBLiteSecuredWebVehicleRunner.run(EJBLiteSecuredWebVehicleRunner.java:77)
	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)

03-26-2021 03:31:33:  TRACE: SLEPT FOR:  1000
STATUS:Failed.
result: Failed.


test result: Failed.