[ 
https://issues.apache.org/jira/browse/TOMEE-3219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jean-Louis Monteiro reassigned TOMEE-3219:
------------------------------------------

    Assignee: Jean-Louis Monteiro

> servlet.ee.spec.security.permissiondd ValidateMissingPermFailsInLib
> -------------------------------------------------------------------
>
>                 Key: TOMEE-3219
>                 URL: https://issues.apache.org/jira/browse/TOMEE-3219
>             Project: TomEE
>          Issue Type: Sub-task
>            Reporter: David Blevins
>            Assignee: Jean-Louis Monteiro
>            Priority: Major
>
> Follow setup instructions in TOMEE-3140.  Then run:
> {code}
> ./runtests --ee91 -c -j --web tomee-plume 
> com.sun.ts.tests.servlet.ee.spec.security.permissiondd.Client#ValidateMissingPermFailsInLib
> {code}
> At the time this issue was filed, the test failed with the following in 
> {{target/logs/javatest.log}}
> {code}
> 04-11-2021 21:02:09:  TRACE: ** GOT RUN METHOD!
> 04-11-2021 21:02:09:  TRACE: **runmethod=ValidateMissingPermFailsInLib
> 04-11-2021 21:02:09:  TRACE: ABOUT TO GET SETUP METHOD!
> 04-11-2021 21:02:09:  TRACE: No setupMethod annotation present
> 04-11-2021 21:02:09:  TRACE: getSetupMethod - checking for testcase specific 
> setup method:  ValidateMissingPermFailsInLib_setup
> 04-11-2021 21:02:09:  TRACE: getSetupMethod - checking for default class 
> specific setup method
> 04-11-2021 21:02:09:  TRACE: GOT SETUP METHOD!
> 04-11-2021 21:02:09:  TRACE: No cleanupMethod annotation present
> 04-11-2021 21:02:09:  TRACE: getCleanupMethod - checking for testcase 
> specific cleanup method:  ValidateMissingPermFailsInLib_cleanup
> 04-11-2021 21:02:09:  TRACE: getCleanupMethod - checking for default class 
> specific cleanup method
> 04-11-2021 21:02:09:  TRACE: GOT CLEANUP METHOD!
> 04-11-2021 21:02:09:  TRACE: ABOUT TO INVOKE SETUP METHOD!
> 04-11-2021 21:02:09:  setup(): appContextHostname = Catalina/localhost
> 04-11-2021 21:02:09:  setup(): servletAppContext = null
> 04-11-2021 21:02:09:  TRACE: INVOKED SETUP METHOD!
> 04-11-2021 21:02:09:  TRACE: ABOUT TO INVOKE EETEST RUN METHOD!
> 04-11-2021 21:02:09:  sContext = 
> /servlet_ee_spec_securitypermissiondd/TestServlet?method.under.test=ValidateMissingPermFailsInLib
> 04-11-2021 21:02:09:  passing to servlet:  testMethod = 
> ValidateMissingPermFailsInLib
> 04-11-2021 21:02:09:  authData : j2ee:j2ee
> 04-11-2021 21:02:09:  encoded authData : ajJlZTpqMmVl
> 04-11-2021 21:02:09:  called HttpURLConnection.connect() for url: 
> http://localhost:55256/servlet_ee_spec_securitypermissiondd/TestServlet?method.under.test=ValidateMissingPermFailsInLib
> in TestServlet.doPost()
> in TestServlet.doTests()
> ERROR:  Security Manager is NOT enabled and must be for these tests.  If you 
> have passed these tests while running with Security Manager enabled, you can 
> use keywords to bypass the running of these tests when Security Manager is 
> disabled.
> 04-11-2021 21:02:09:  Got response string of: null
> 04-11-2021 21:02:09:  ERROR:  Security Manager is NOT enabled and must be for 
> these tests.  If you have passed these tests while running with Security 
> Manager enabled, you can use keywords to bypass the running of these tests 
> when Security Manager is disabled.
> 04-11-2021 21:02:09:  ValidateMissingPermFailsInLib : str = null
> ERROR:  Security Manager is NOT enabled and must be for these tests.  If you 
> have passed these tests while running with Security Manager enabled, you can 
> use keywords to bypass the running of these tests when Security Manager is 
> disabled.
> 04-11-2021 21:02:09:  ERROR: ValidateMissingPermFailsInLib : FAILED
> 04-11-2021 21:02:09:  ERROR: Test case throws exception: 
> ValidateMissingPermFailsInLib : FAILED
> 04-11-2021 21:02:09:  ERROR: Exception at:  
> 04-11-2021 21:02:09:  ERROR: com.sun.ts.lib.harness.EETest$Fault: 
> ValidateMissingPermFailsInLib : FAILED
>       at 
> com.sun.ts.tests.servlet.ee.spec.security.permissiondd.Client.ValidateMissingPermFailsInLib(Client.java:301)
>       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.ServiceEETest.run(ServiceEETest.java:115)
>       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.servlet.ee.spec.security.permissiondd.Client.main(Client.java:69)
> 04-11-2021 21:02:10:  TRACE: SLEPT FOR:  1000
> 04-11-2021 21:02:10:  TRACE: in custom vehicle so call on EETest.
> 04-11-2021 21:02:10:  TRACE: *** in EETest.run(argv,p)
> 04-11-2021 21:02:10:  TRACE: 
> TESTCLASS=com.sun.ts.tests.servlet.ee.spec.security.permissiondd.Client
> 04-11-2021 21:02:10:  TRACE: ** IN getRunMethod: 
> testClass=com.sun.ts.tests.servlet.ee.spec.security.permissiondd.Client
> 04-11-2021 21:02:10:  TRACE: ** IN getRunMethod: 
> testname=ValidateMissingPermFailsInLib
> 04-11-2021 21:02:10:  TRACE: ** GOT RUN METHOD!
> 04-11-2021 21:02:10:  TRACE: **runmethod=ValidateMissingPermFailsInLib
> 04-11-2021 21:02:10:  TRACE: ABOUT TO GET SETUP METHOD!
> 04-11-2021 21:02:10:  TRACE: No setupMethod annotation present
> 04-11-2021 21:02:10:  TRACE: getSetupMethod - checking for testcase specific 
> setup method:  ValidateMissingPermFailsInLib_setup
> 04-11-2021 21:02:10:  TRACE: getSetupMethod - checking for default class 
> specific setup method
> 04-11-2021 21:02:10:  TRACE: GOT SETUP METHOD!
> 04-11-2021 21:02:10:  TRACE: No cleanupMethod annotation present
> 04-11-2021 21:02:10:  TRACE: getCleanupMethod - checking for testcase 
> specific cleanup method:  ValidateMissingPermFailsInLib_cleanup
> 04-11-2021 21:02:10:  TRACE: getCleanupMethod - checking for default class 
> specific cleanup method
> 04-11-2021 21:02:10:  TRACE: GOT CLEANUP METHOD!
> 04-11-2021 21:02:10:  TRACE: ABOUT TO INVOKE SETUP METHOD!
> 04-11-2021 21:02:10:  setup(): appContextHostname = Catalina/localhost
> 04-11-2021 21:02:10:  setup(): servletAppContext = null
> 04-11-2021 21:02:10:  TRACE: INVOKED SETUP METHOD!
> 04-11-2021 21:02:10:  TRACE: ABOUT TO INVOKE EETEST RUN METHOD!
> 04-11-2021 21:02:10:  sContext = 
> /servlet_ee_spec_securitypermissiondd/TestServlet?method.under.test=ValidateMissingPermFailsInLib
> 04-11-2021 21:02:10:  passing to servlet:  testMethod = 
> ValidateMissingPermFailsInLib
> 04-11-2021 21:02:10:  authData : j2ee:j2ee
> 04-11-2021 21:02:10:  encoded authData : ajJlZTpqMmVl
> 04-11-2021 21:02:10:  called HttpURLConnection.connect() for url: 
> http://localhost:55256/servlet_ee_spec_securitypermissiondd/TestServlet?method.under.test=ValidateMissingPermFailsInLib
> in TestServlet.doPost()
> in TestServlet.doTests()
> ERROR:  Security Manager is NOT enabled and must be for these tests.  If you 
> have passed these tests while running with Security Manager enabled, you can 
> use keywords to bypass the running of these tests when Security Manager is 
> disabled.
> 04-11-2021 21:02:10:  Got response string of: null
> 04-11-2021 21:02:10:  ERROR:  Security Manager is NOT enabled and must be for 
> these tests.  If you have passed these tests while running with Security 
> Manager enabled, you can use keywords to bypass the running of these tests 
> when Security Manager is disabled.
> 04-11-2021 21:02:10:  ValidateMissingPermFailsInLib : str = null
> ERROR:  Security Manager is NOT enabled and must be for these tests.  If you 
> have passed these tests while running with Security Manager enabled, you can 
> use keywords to bypass the running of these tests when Security Manager is 
> disabled.
> 04-11-2021 21:02:10:  ERROR: ValidateMissingPermFailsInLib : FAILED
> 04-11-2021 21:02:10:  ERROR: Test case throws exception: 
> ValidateMissingPermFailsInLib : FAILED
> 04-11-2021 21:02:10:  ERROR: Exception at:  
> 04-11-2021 21:02:10:  ERROR: com.sun.ts.lib.harness.EETest$Fault: 
> ValidateMissingPermFailsInLib : FAILED
>       at 
> com.sun.ts.tests.servlet.ee.spec.security.permissiondd.Client.ValidateMissingPermFailsInLib(Client.java:301)
>       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.ServiceEETest.run(ServiceEETest.java:115)
>       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.servlet.ee.spec.security.permissiondd.Client.main(Client.java:69)
> 04-11-2021 21:02:11:  TRACE: SLEPT FOR:  1000
> STATUS:Failed.Test case throws exception: ValidateMissingPermFailsInLib : 
> FAILED
> Failed. Test case throws exception: ValidateMissingPermFailsInLib : FAILED
> ********************************************************************************
> Finished Test:  
> FAILED........com/sun/ts/tests/servlet/ee/spec/security/permissiondd/Client.java#ValidateMissingPermFailsInLib
> {code}
> For tips on debugging/fixing tests, see 
> https://github.com/apache/tomee-tck/blob/master/DEBUGGING.adoc
> *If you have any thoughts about what the test is expecting/testing, please 
> add them to the comments.*



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to