You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Vemund Østgaard (JIRA)" <ji...@apache.org> on 2008/04/28 15:34:58 UTC

[jira] Created: (DERBY-3647) EMMA is unable to write coverage information from network server when it is started in a separate process with default security policy

EMMA is unable to write coverage information from network server when it is started in a separate process with default security policy
--------------------------------------------------------------------------------------------------------------------------------------

                 Key: DERBY-3647
                 URL: https://issues.apache.org/jira/browse/DERBY-3647
             Project: Derby
          Issue Type: Test
          Components: Test
            Reporter: Vemund Østgaard


This report is based on discussion from DERBY-3445.

EMMA is unable to write coverage information from network server when it is started in a separate process with default security policy.

Exceptions are typically like this:
    [junit] java.security.AccessControlException: Access denied (java.io.FilePermission coverage.ec read)
    [junit] at java.security.AccessController.checkPermission(AccessController.java:104)
    [junit] at java.lang.SecurityManager.checkPermission(SecurityManager.java:547)
    [junit] at java.lang.SecurityManager.checkRead(SecurityManager.java:886)
    [junit] at java.io.File.exists(File.java:726)
    [junit] at com.vladium.emma.data.DataFactory.persist(DataFactory.java:525)
    [junit] at com.vladium.emma.data.DataFactory.persist(DataFactory.java:86)
    [junit] at com.vladium.emma.rt.RTCoverageDataPersister.dumpCoverageData(RTCoverageDataPersister.java:54)
    [junit] at com.vladium.emma.rt.RTExitHook.run(RTExitHook.java:32)
    [junit] at java.lang.Thread.run(Thread.java:801)
    [junit] Exception in thread "EMMA shutdown handler thread" java.lang.RuntimeException: EMMA failed to dump coverage data: java.security.AccessControlException: Access denied (java.io.FilePermission coverage.ec read)
    [junit] at com.vladium.emma.rt.RTCoverageDataPersister.dumpCoverageData(RTCoverageDataPersister.java:71)
    [junit] at com.vladium.emma.rt.RTExitHook.run(RTExitHook.java:32)
    [junit] at java.lang.Thread.run(Thread.java:801)

The discussion in DERBY-3445 suggests a couple of solutions to be able to expand on the default security policy so that the network server JVM will allow EMMA to write the coverage data and thus improve the accuracy of the coverage measurements.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DERBY-3647) EMMA is unable to write coverage information from network server when it is started in a separate process with default security policy

Posted by "Dag H. Wanvik (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-3647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dag H. Wanvik updated DERBY-3647:
---------------------------------

    Issue Type: Bug  (was: Test)

> EMMA is unable to write coverage information from network server when it is started in a separate process with default security policy
> --------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3647
>                 URL: https://issues.apache.org/jira/browse/DERBY-3647
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>            Reporter: Vemund Østgaard
>
> This report is based on discussion from DERBY-3445.
> EMMA is unable to write coverage information from network server when it is started in a separate process with default security policy.
> Exceptions are typically like this:
>     [junit] java.security.AccessControlException: Access denied (java.io.FilePermission coverage.ec read)
>     [junit] at java.security.AccessController.checkPermission(AccessController.java:104)
>     [junit] at java.lang.SecurityManager.checkPermission(SecurityManager.java:547)
>     [junit] at java.lang.SecurityManager.checkRead(SecurityManager.java:886)
>     [junit] at java.io.File.exists(File.java:726)
>     [junit] at com.vladium.emma.data.DataFactory.persist(DataFactory.java:525)
>     [junit] at com.vladium.emma.data.DataFactory.persist(DataFactory.java:86)
>     [junit] at com.vladium.emma.rt.RTCoverageDataPersister.dumpCoverageData(RTCoverageDataPersister.java:54)
>     [junit] at com.vladium.emma.rt.RTExitHook.run(RTExitHook.java:32)
>     [junit] at java.lang.Thread.run(Thread.java:801)
>     [junit] Exception in thread "EMMA shutdown handler thread" java.lang.RuntimeException: EMMA failed to dump coverage data: java.security.AccessControlException: Access denied (java.io.FilePermission coverage.ec read)
>     [junit] at com.vladium.emma.rt.RTCoverageDataPersister.dumpCoverageData(RTCoverageDataPersister.java:71)
>     [junit] at com.vladium.emma.rt.RTExitHook.run(RTExitHook.java:32)
>     [junit] at java.lang.Thread.run(Thread.java:801)
> The discussion in DERBY-3445 suggests a couple of solutions to be able to expand on the default security policy so that the network server JVM will allow EMMA to write the coverage data and thus improve the accuracy of the coverage measurements.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.