Java Security Manager

22 views
Skip to first unread message

Andreas Ipp

unread,
Sep 18, 2013, 5:21:33 AM9/18/13
to open...@googlegroups.com
Does anyone know how to enable the Java Security Manager for unit tests?

It seems Jenkins uses the Java Security Manager, because TestCopy (which uses reflection) fails:

It does not fail if one executes the tests from the command line:
mvn test

This is bad, because the parallel test fails with the latest commit ( https://github.com/openpixi/openpixi/pull/67 ), but one can not see this in Jenkins, because the test already failed previously because of the security issue.

It would be great if someone can find out how to activate Security Manager from the command line (so that one can reproduce the problem locally) or how to deactivate Security Manager for the Jenkins Server (so that the test does not fail on the security issue).

Andreas Ipp

unread,
Sep 20, 2013, 10:29:58 AM9/20/13
to open...@googlegroups.com
It turns out the error were 2 additional final fields that the EMMA instrumentation framework adds on the Jenkins server.

I created a pull request which fixes this issue:
Reply all
Reply to author
Forward
0 new messages