commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikolaj Izdebski (JIRA)" <>
Subject [jira] [Created] (LOGGING-156) SecurityAllowedTestCase is failing
Date Thu, 23 Jan 2014 14:54:42 GMT
Mikolaj Izdebski created LOGGING-156:

             Summary: SecurityAllowedTestCase is failing
                 Key: LOGGING-156
             Project: Commons Logging
          Issue Type: Bug
    Affects Versions: 2.0
         Environment: Maven 3.1.1, OpenJDK 1.7 (IcedTea 2.4.4), Linux
            Reporter: Mikolaj Izdebski

{{SecurityAllowedTestCase}} fails randomly, which could indicate either a bug in the test
case or in the implementation.

On some random condition the call to {{"testing");}} in the test case results in
 security exceptions, which are recorded by {{MockSecurityManager}} causing the test case
to fail.  Adding a call to {{Thread.sleep}} just before or just after the call to {{}}
helps with reproducing the problem.

The path leading to SecurityException being thrown is:
java.lang.SecurityException: Untrusted code [testcase] found
	at java.lang.SecurityManager.checkPackageAccess(
	at sun.misc.Launcher$AppClassLoader.loadClass(
	at java.lang.ClassLoader.loadClass(
	at java.util.ResourceBundle$RBClassLoader.loadClass(
	at java.util.ResourceBundle$Control.newBundle(
	at java.util.ResourceBundle.loadBundle(
	at java.util.ResourceBundle.findBundle(
	at java.util.ResourceBundle.getBundleImpl(
	at java.util.ResourceBundle.getBundle(
	at java.util.logging.Level.getLocalizedLevelName(
	at java.util.logging.SimpleFormatter.format(
	at java.util.logging.StreamHandler.publish(
	at java.util.logging.ConsoleHandler.publish(
	at java.util.logging.Logger.log(
	at java.util.logging.Logger.doLog(
	at java.util.logging.Logger.logp(
	at org.apache.commons.logging.impl.Jdk14Logger.log(

This message was sent by Atlassian JIRA

View raw message