Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System-Rules Security Manager feature with gradle #33

Open
erkinun opened this issue Sep 14, 2015 · 2 comments
Open

System-Rules Security Manager feature with gradle #33

erkinun opened this issue Sep 14, 2015 · 2 comments

Comments

@erkinun
Copy link

erkinun commented Sep 14, 2015

Hi,

When I try to use System-Rules' security manager property, gradle just hangs when trying to run the tests. The issue might be related to the gradle bug: https://issues.gradle.org/browse/GRADLE-2170 , but nevertheless is there any workaround for this problem?

example test:

public class UtilTest {

    private final BuildSecurityManager manager = new BuildSecurityManager();

    @Rule
    public final ProvideSecurityManager provideSecurityManager = new ProvideSecurityManager(manager);

I then run gradle clean test

The result:

FAILURE: Build failed with an exception.

* What went wrong:
Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)

* Try:
Run with --info or --debug option to get more log output.

* Exception is:
org.gradle.launcher.daemon.client.DaemonDisappearedException: Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)
    at org.gradle.launcher.daemon.client.DaemonClient.handleDaemonDisappearance(DaemonClient.java:211)
    at org.gradle.launcher.daemon.client.DaemonClient.monitorBuild(DaemonClient.java:187)
    at org.gradle.launcher.daemon.client.DaemonClient.executeBuild(DaemonClient.java:151)
    at org.gradle.launcher.daemon.client.DaemonClient.execute(DaemonClient.java:120)
    at org.gradle.launcher.daemon.client.DaemonClient.execute(DaemonClient.java:78)
    at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)
    at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:170)
    at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)
    at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)
    at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
    at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
    at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)
    at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
    at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
    at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
    at org.gradle.launcher.Main.doAction(Main.java:33)
    at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
    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:497)
    at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)
    at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)
    at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
@stefanbirkner
Copy link
Owner

@erkinun
Copy link
Author

erkinun commented Sep 15, 2015

I asked that question today unfortunately : )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants