Bug 1100295 - [QE] (6.x) No org.jboss.as.testsuite.integration.secman test can run on IBMJDK 1.6 due to java.security.AccessControlException: Access denied (java.util.PropertyPermission os.name read) preventing container from starting
Summary: [QE] (6.x) No org.jboss.as.testsuite.integration.secman test can run on IBMJD...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Security, Testsuite
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ER6
: EAP 6.3.0
Assignee: Josef Cacek
QA Contact: Pavel Jelinek
Russell Dickenson
URL:
Whiteboard:
Depends On:
Blocks: 1099440
TreeView+ depends on / blocked
 
Reported: 2014-05-22 12:54 UTC by Josef Cacek
Modified: 2014-06-28 15:37 UTC (History)
3 users (show)

Fixed In Version:
Clone Of: 1099517
Environment:
IBMJDK 1.6
Last Closed: 2014-06-28 15:37:04 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Josef Cacek 2014-05-22 12:54:57 UTC
The 6.x branch excludes secman for all IBM JDKs. We should limit it to 1.6 version only.

+++ This bug was initially created as a clone of Bug #1099517 +++

+++ This bug was initially created as a clone of Bug #1096723 +++

See:
https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/EAP6/view/EAP-6.2.x-CP/view/EAP-6.2.x-CP-jobs/job/eap-62x-patched-as-testsuite-RHEL-matrix-IBMJDK6/25/jdk=ibm16,label_exp=RHEL6%26%26x86_64/testReport/org.jboss.as.testsuite.integration.secman/

especially: 
https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/EAP6/view/EAP-6.2.x-CP/view/EAP-6.2.x-CP-jobs/job/eap-62x-patched-as-testsuite-RHEL-matrix-IBMJDK6/25/jdk=ibm16,label_exp=RHEL6%26%26x86_64/testReport/org.jboss.as.testsuite.integration.secman/FilePermissionTestCase/org_jboss_as_testsuite_integration_secman_FilePermissionTestCase/

...
Caused by: org.jboss.msc.service.StartException in service jboss.as: Failed to start service
	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:906)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:929)
	at java.lang.Thread.run(Thread.java:761)
Caused by: java.security.AccessControlException: Access denied (java.util.PropertyPermission os.name read)
	at java.security.AccessController.throwACE(AccessController.java:100)
	at java.security.AccessController.checkPermission(AccessController.java:174)
	at java.lang.SecurityManager.checkPermission(SecurityManager.java:544)
	at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1297)
	at java.lang.System.getProperty(System.java:404)
	at java.lang.System.getProperty(System.java:388)
	at com.ibm.crypto.provider.IBMJCE.<init>(Unknown Source)
	at java.lang.J9VMInternals.newInstanceImpl(Native Method)
	at java.lang.Class.newInstance(Class.java:1549)
	at org.apache.harmony.security.fortress.Services$1.run(Services.java:1209)
	at org.apache.harmony.security.fortress.Services$1.run(Services.java:1206)
	at java.security.AccessController.doPrivileged(AccessController.java:273)
	at org.apache.harmony.security.fortress.Services.newInstance(Services.java:1206)
	at org.apache.harmony.security.fortress.Services.access$800(Services.java:60)
	at org.apache.harmony.security.fortress.Services$NormalServices.createProviderInstance(Services.java:360)
	at org.apache.harmony.security.fortress.Services$NormalServices.createDefaultProviderInstance(Services.java:317)
	at org.apache.harmony.security.fortress.Services$NormalServices.getService(Services.java:559)
	at org.apache.harmony.security.fortress.Services$NormalServices.access$2900(Services.java:165)
	at org.apache.harmony.security.fortress.Services.getService(Services.java:1138)
	at org.apache.harmony.security.fortress.Engine.getInstance(Engine.java:145)
	at java.security.MessageDigest.getInstance(MessageDigest.java:75)
	at org.jboss.as.repository.ContentRepository$Factory$ContentRepositoryImpl.<init>(ContentRepository.java:155)
	at org.jboss.as.repository.ContentRepository$Factory.addService(ContentRepository.java:119)
	at org.jboss.as.server.ApplicationServerService.start(ApplicationServerService.java:137)
	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
	... 3 more

--- Additional comment from Pavel Jelinek on 2014-05-20 16:03:49 CEST ---

Happens from EAP 6.2.3 CP. 
See: 
https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/EAP6/view/EAP-6.2.x-CP/view/EAP-6.2.x-CP-jobs/job/eap-62x-patched-as-testsuite-RHEL-matrix-IBMJDK6/28/jdk=ibm16,label_exp=RHEL5%26%26x86_64/testReport/org.jboss.as.testsuite.integration.secman/LocalEJBPropertyGrantPermissionReadTestCase/org_jboss_as_testsuite_integration_secman_LocalEJBPropertyGrantPermissionReadTestCase/

--- Additional comment from Pavel Jelinek on 2014-05-20 16:07:12 CEST ---

In 6.2.2 there weren't secman tests yet.

Comment 1 Josef Cacek 2014-05-22 13:02:26 UTC
PR sent: https://github.com/jbossas/jboss-eap/pull/1359

Comment 2 Pavel Jelinek 2014-06-13 11:18:29 UTC
org.jboss.as.testsuite.integration.secman tests are no longer run as part of EAP 6.x AS TS on IBMJDK 1.6


Note You need to log in before you can comment on or make changes to this bug.