findBugs gives "java.security.AccessControlException: access denied" by switching from 1.0-milestone-9 to 1.0-rc-1 and running on jenkins


(commerce) #1

My gradle script worked fine with 1.0-milestone-9 on jenkins 1.447 with latest gradle plugin. I switched to 1.0-rc-1 and the gradle scipt gives “java.security.AccessControlException: access denied”. It builds fine on my desktop launched from shell :compileJava :compileGroovy UP-TO-DATE :processResources :classes :jar :assemble :findbugsMainCould not stop org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl@3c0007. java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)

at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)

at java.security.AccessController.checkPermission(AccessController.java:427)

at java.util.concurrent.ThreadPoolExecutor.shutdown(ThreadPoolExecutor.java:894)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.requestStop(DefaultExecutorFactory.java:77)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.stop(DefaultExecutorFactory.java:85)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.stop(DefaultExecutorFactory.java:81)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.remote.internal.AsyncConnectionAdapter.stop(AsyncConnectionAdapter.java:66)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.remote.internal.MessageHub.stop(MessageHub.java:192)

at org.gradle.messaging.remote.internal.DefaultMultiChannelConnection.stop(DefaultMultiChannelConnection.java:63)

at org.gradle.messaging.remote.internal.DefaultObjectConnection.stop(DefaultObjectConnection.java:64)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.remote.internal.DefaultMessagingClient.stop(DefaultMessagingClient.java:47)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.remote.internal.MessagingServices.close(MessagingServices.java:114)

at org.gradle.messaging.remote.internal.MessagingServices.stop(MessagingServices.java:100)

at org.gradle.process.internal.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:84)

at org.gradle.process.internal.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:35)

at org.gradle.process.internal.child.ImplementationClassLoaderWorker.execute(ImplementationClassLoaderWorker.java:80)

at org.gradle.process.internal.child.ImplementationClassLoaderWorker.execute(ImplementationClassLoaderWorker.java:36)

at org.gradle.process.internal.child.IsolatedApplicationClassLoaderWorker.call(IsolatedApplicationClassLoaderWorker.java:48)

at org.gradle.process.internal.child.IsolatedApplicationClassLoaderWorker.call(IsolatedApplicationClassLoaderWorker.java:30)

at org.gradle.process.internal.launcher.GradleWorkerMain.run(GradleWorkerMain.java:30)

at org.gradle.process.internal.launcher.GradleWorkerMain.main(GradleWorkerMain.java:35) Could not stop org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl@1113622. java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)

at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)

at java.security.AccessController.checkPermission(AccessController.java:427)

at java.util.concurrent.ThreadPoolExecutor.shutdown(ThreadPoolExecutor.java:894)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.requestStop(DefaultExecutorFactory.java:77)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.stop(DefaultExecutorFactory.java:85)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.stop(DefaultExecutorFactory.java:81)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.remote.internal.AsyncConnectionAdapter.stop(AsyncConnectionAdapter.java:66)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.remote.internal.MessageHub.stop(MessageHub.java:192)

at org.gradle.messaging.remote.internal.DefaultMultiChannelConnection.stop(DefaultMultiChannelConnection.java:63)

at org.gradle.messaging.remote.internal.DefaultObjectConnection.stop(DefaultObjectConnection.java:64)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.remote.internal.DefaultMessagingClient.stop(DefaultMessagingClient.java:47)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.remote.internal.MessagingServices.close(MessagingServices.java:114)

at org.gradle.messaging.remote.internal.MessagingServices.stop(MessagingServices.java:100)

at org.gradle.process.internal.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:84)

at org.gradle.process.internal.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:35)

at org.gradle.process.internal.child.ImplementationClassLoaderWorker.execute(ImplementationClassLoaderWorker.java:80)

at org.gradle.process.internal.child.ImplementationClassLoaderWorker.execute(ImplementationClassLoaderWorker.java:36)

at org.gradle.process.internal.child.IsolatedApplicationClassLoaderWorker.call(IsolatedApplicationClassLoaderWorker.java:48)

at org.gradle.process.internal.child.IsolatedApplicationClassLoaderWorker.call(IsolatedApplicationClassLoaderWorker.java:30)

at org.gradle.process.internal.launcher.GradleWorkerMain.run(GradleWorkerMain.java:30)

at org.gradle.process.internal.launcher.GradleWorkerMain.main(GradleWorkerMain.java:35) Could not stop org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl@195042b. java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)

at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)

at java.security.AccessController.checkPermission(AccessController.java:427)

at java.util.concurrent.ThreadPoolExecutor.shutdown(ThreadPoolExecutor.java:894)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.requestStop(DefaultExecutorFactory.java:77)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.stop(DefaultExecutorFactory.java:85)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.stop(DefaultExecutorFactory.java:81)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.remote.internal.MessageHub.stop(MessageHub.java:192)

at org.gradle.messaging.remote.internal.DefaultMultiChannelConnection.stop(DefaultMultiChannelConnection.java:63)

at org.gradle.messaging.remote.internal.DefaultObjectConnection.stop(DefaultObjectConnection.java:64)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.remote.internal.DefaultMessagingClient.stop(DefaultMessagingClient.java:47)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.remote.internal.MessagingServices.close(MessagingServices.java:114)

at org.gradle.messaging.remote.internal.MessagingServices.stop(MessagingServices.java:100)

at org.gradle.process.internal.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:84)

at org.gradle.process.internal.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:35)

at org.gradle.process.internal.child.ImplementationClassLoaderWorker.execute(ImplementationClassLoaderWorker.java:80)

at org.gradle.process.internal.child.ImplementationClassLoaderWorker.execute(ImplementationClassLoaderWorker.java:36)

at org.gradle.process.internal.child.IsolatedApplicationClassLoaderWorker.call(IsolatedApplicationClassLoaderWorker.java:48)

at org.gradle.process.internal.child.IsolatedApplicationClassLoaderWorker.call(IsolatedApplicationClassLoaderWorker.java:30)

at org.gradle.process.internal.launcher.GradleWorkerMain.run(GradleWorkerMain.java:30)

at org.gradle.process.internal.launcher.GradleWorkerMain.main(GradleWorkerMain.java:35) Could not stop org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl@44c8ca. java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)

at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)

at java.security.AccessController.checkPermission(AccessController.java:427)

at java.util.concurrent.ThreadPoolExecutor.shutdown(ThreadPoolExecutor.java:894)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.requestStop(DefaultExecutorFactory.java:77)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.stop(DefaultExecutorFactory.java:85)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.stop(DefaultExecutorFactory.java:81)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.remote.internal.MessageHub.stop(MessageHub.java:192)

at org.gradle.messaging.remote.internal.DefaultMultiChannelConnection.stop(DefaultMultiChannelConnection.java:63)

at org.gradle.messaging.remote.internal.DefaultObjectConnection.stop(DefaultObjectConnection.java:64)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.remote.internal.DefaultMessagingClient.stop(DefaultMessagingClient.java:47)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.remote.internal.MessagingServices.close(MessagingServices.java:114)

at org.gradle.messaging.remote.internal.MessagingServices.stop(MessagingServices.java:100)

at org.gradle.process.internal.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:84)

at org.gradle.process.internal.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:35)

at org.gradle.process.internal.child.ImplementationClassLoaderWorker.execute(ImplementationClassLoaderWorker.java:80)

at org.gradle.process.internal.child.ImplementationClassLoaderWorker.execute(ImplementationClassLoaderWorker.java:36)

at org.gradle.process.internal.child.IsolatedApplicationClassLoaderWorker.call(IsolatedApplicationClassLoaderWorker.java:48)

at org.gradle.process.internal.child.IsolatedApplicationClassLoaderWorker.call(IsolatedApplicationClassLoaderWorker.java:30)

at org.gradle.process.internal.launcher.GradleWorkerMain.run(GradleWorkerMain.java:30)

at org.gradle.process.internal.launcher.GradleWorkerMain.main(GradleWorkerMain.java:35) Could not stop org.gradle.internal.CompositeStoppable@1da7205. java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)

at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)

at java.security.AccessController.checkPermission(AccessController.java:427)

at java.util.concurrent.ThreadPoolExecutor.shutdown(ThreadPoolExecutor.java:894)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.requestStop(DefaultExecutorFactory.java:77)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.stop(DefaultExecutorFactory.java:85)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.stop(DefaultExecutorFactory.java:81)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.remote.internal.MessageHub.stop(MessageHub.java:192)

at org.gradle.messaging.remote.internal.DefaultMultiChannelConnection.stop(DefaultMultiChannelConnection.java:63)

at org.gradle.messaging.remote.internal.DefaultObjectConnection.stop(DefaultObjectConnection.java:64)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.remote.internal.DefaultMessagingClient.stop(DefaultMessagingClient.java:47)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.remote.internal.MessagingServices.close(MessagingServices.java:114)

at org.gradle.messaging.remote.internal.MessagingServices.stop(MessagingServices.java:100)

at org.gradle.process.internal.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:84)

at org.gradle.process.internal.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:35)

at org.gradle.process.internal.child.ImplementationClassLoaderWorker.execute(ImplementationClassLoaderWorker.java:80)

at org.gradle.process.internal.child.ImplementationClassLoaderWorker.execute(ImplementationClassLoaderWorker.java:36)

at org.gradle.process.internal.child.IsolatedApplicationClassLoaderWorker.call(IsolatedApplicationClassLoaderWorker.java:48)

at org.gradle.process.internal.child.IsolatedApplicationClassLoaderWorker.call(IsolatedApplicationClassLoaderWorker.java:30)

at org.gradle.process.internal.launcher.GradleWorkerMain.run(GradleWorkerMain.java:30)

at org.gradle.process.internal.launcher.GradleWorkerMain.main(GradleWorkerMain.java:35) Could not stop org.gradle.messaging.remote.internal.DefaultMessagingClient@73c5fc. java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)

at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)

at java.security.AccessController.checkPermission(AccessController.java:427)

at java.util.concurrent.ThreadPoolExecutor.shutdown(ThreadPoolExecutor.java:894)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.requestStop(DefaultExecutorFactory.java:77)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.stop(DefaultExecutorFactory.java:85)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.stop(DefaultExecutorFactory.java:81)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.remote.internal.AsyncConnectionAdapter.stop(AsyncConnectionAdapter.java:66)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.remote.internal.MessageHub.stop(MessageHub.java:192)

at org.gradle.messaging.remote.internal.DefaultMultiChannelConnection.stop(DefaultMultiChannelConnection.java:63)

at org.gradle.messaging.remote.internal.DefaultObjectConnection.stop(DefaultObjectConnection.java:64)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.remote.internal.DefaultMessagingClient.stop(DefaultMessagingClient.java:47)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.remote.internal.MessagingServices.close(MessagingServices.java:114)

at org.gradle.messaging.remote.internal.MessagingServices.stop(MessagingServices.java:100)

at org.gradle.process.internal.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:84)

at org.gradle.process.internal.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:35)

at org.gradle.process.internal.child.ImplementationClassLoaderWorker.execute(ImplementationClassLoaderWorker.java:80)

at org.gradle.process.internal.child.ImplementationClassLoaderWorker.execute(ImplementationClassLoaderWorker.java:36)

at org.gradle.process.internal.child.IsolatedApplicationClassLoaderWorker.call(IsolatedApplicationClassLoaderWorker.java:48)

at org.gradle.process.internal.child.IsolatedApplicationClassLoaderWorker.call(IsolatedApplicationClassLoaderWorker.java:30)

at org.gradle.process.internal.launcher.GradleWorkerMain.run(GradleWorkerMain.java:30)

at org.gradle.process.internal.launcher.GradleWorkerMain.main(GradleWorkerMain.java:35) Could not stop org.gradle.messaging.remote.internal.DefaultMultiChannelConnector@cb4ca7. java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)

at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)

at java.security.AccessController.checkPermission(AccessController.java:427)

at java.util.concurrent.ThreadPoolExecutor.shutdown(ThreadPoolExecutor.java:894)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.requestStop(DefaultExecutorFactory.java:77)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.stop(DefaultExecutorFactory.java:85)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.stop(DefaultExecutorFactory.java:81)

at org.gradle.messaging.remote.internal.DefaultMultiChannelConnector.stop(DefaultMultiChannelConnector.java:48)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.remote.internal.MessagingServices.close(MessagingServices.java:114)

at org.gradle.messaging.remote.internal.MessagingServices.stop(MessagingServices.java:100)

at org.gradle.process.internal.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:84)

at org.gradle.process.internal.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:35)

at org.gradle.process.internal.child.ImplementationClassLoaderWorker.execute(ImplementationClassLoaderWorker.java:80)

at org.gradle.process.internal.child.ImplementationClassLoaderWorker.execute(ImplementationClassLoaderWorker.java:36)

at org.gradle.process.internal.child.IsolatedApplicationClassLoaderWorker.call(IsolatedApplicationClassLoaderWorker.java:48)

at org.gradle.process.internal.child.IsolatedApplicationClassLoaderWorker.call(IsolatedApplicationClassLoaderWorker.java:30)

at org.gradle.process.internal.launcher.GradleWorkerMain.run(GradleWorkerMain.java:30)

at org.gradle.process.internal.launcher.GradleWorkerMain.main(GradleWorkerMain.java:35) Could not stop org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl@1159996. java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)

at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)

at java.security.AccessController.checkPermission(AccessController.java:427)

at java.util.concurrent.ThreadPoolExecutor.shutdown(ThreadPoolExecutor.java:894)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.requestStop(DefaultExecutorFactory.java:77)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.stop(DefaultExecutorFactory.java:85)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.stop(DefaultExecutorFactory.java:81)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.concurrent.DefaultExecutorFactory.stop(DefaultExecutorFactory.java:35)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.remote.internal.MessagingServices.close(MessagingServices.java:114)

at org.gradle.messaging.remote.internal.MessagingServices.stop(MessagingServices.java:100)

at org.gradle.process.internal.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:84)

at org.gradle.process.internal.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:35)

at org.gradle.process.internal.child.ImplementationClassLoaderWorker.execute(ImplementationClassLoaderWorker.java:80)

at org.gradle.process.internal.child.ImplementationClassLoaderWorker.execute(ImplementationClassLoaderWorker.java:36)

at org.gradle.process.internal.child.IsolatedApplicationClassLoaderWorker.call(IsolatedApplicationClassLoaderWorker.java:48)

at org.gradle.process.internal.child.IsolatedApplicationClassLoaderWorker.call(IsolatedApplicationClassLoaderWorker.java:30)

at org.gradle.process.internal.launcher.GradleWorkerMain.run(GradleWorkerMain.java:30)

at org.gradle.process.internal.launcher.GradleWorkerMain.main(GradleWorkerMain.java:35) Could not stop org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl@16a6ecf. java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)

at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)

at java.security.AccessController.checkPermission(AccessController.java:427)

at java.util.concurrent.ThreadPoolExecutor.shutdown(ThreadPoolExecutor.java:894)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.requestStop(DefaultExecutorFactory.java:77)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.stop(DefaultExecutorFactory.java:85)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.stop(DefaultExecutorFactory.java:81)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.concurrent.DefaultExecutorFactory.stop(DefaultExecutorFactory.java:35)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.remote.internal.MessagingServices.close(MessagingServices.java:114)

at org.gradle.messaging.remote.internal.MessagingServices.stop(MessagingServices.java:100)

at org.gradle.process.internal.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:84)

at org.gradle.process.internal.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:35)

at org.gradle.process.internal.child.ImplementationClassLoaderWorker.execute(ImplementationClassLoaderWorker.java:80)

at org.gradle.process.internal.child.ImplementationClassLoaderWorker.execute(ImplementationClassLoaderWorker.java:36)

at org.gradle.process.internal.child.IsolatedApplicationClassLoaderWorker.call(IsolatedApplicationClassLoaderWorker.java:48)

at org.gradle.process.internal.child.IsolatedApplicationClassLoaderWorker.call(IsolatedApplicationClassLoaderWorker.java:30)

at org.gradle.process.internal.launcher.GradleWorkerMain.run(GradleWorkerMain.java:30)

at org.gradle.process.internal.launcher.GradleWorkerMain.main(GradleWorkerMain.java:35) Could not stop org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl@195042b. java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)

at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)

at java.security.AccessController.checkPermission(AccessController.java:427)

at java.util.concurrent.ThreadPoolExecutor.shutdown(ThreadPoolExecutor.java:894)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.requestStop(DefaultExecutorFactory.java:77)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.stop(DefaultExecutorFactory.java:85)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.stop(DefaultExecutorFactory.java:81)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.concurrent.DefaultExecutorFactory.stop(DefaultExecutorFactory.java:35)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.remote.internal.MessagingServices.close(MessagingServices.java:114)

at org.gradle.messaging.remote.internal.MessagingServices.stop(MessagingServices.java:100)

at org.gradle.process.internal.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:84)

at org.gradle.process.internal.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:35)

at org.gradle.process.internal.child.ImplementationClassLoaderWorker.execute(ImplementationClassLoaderWorker.java:80)

at org.gradle.process.internal.child.ImplementationClassLoaderWorker.execute(ImplementationClassLoaderWorker.java:36)

at org.gradle.process.internal.child.IsolatedApplicationClassLoaderWorker.call(IsolatedApplicationClassLoaderWorker.java:48)

at org.gradle.process.internal.child.IsolatedApplicationClassLoaderWorker.call(IsolatedApplicationClassLoaderWorker.java:30)

at org.gradle.process.internal.launcher.GradleWorkerMain.run(GradleWorkerMain.java:30)

at org.gradle.process.internal.launcher.GradleWorkerMain.main(GradleWorkerMain.java:35) Could not stop org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl@1113622. java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)

at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)

at java.security.AccessController.checkPermission(AccessController.java:427)

at java.util.concurrent.ThreadPoolExecutor.shutdown(ThreadPoolExecutor.java:894)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.requestStop(DefaultExecutorFactory.java:77)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.stop(DefaultExecutorFactory.java:85)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.stop(DefaultExecutorFactory.java:81)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.concurrent.DefaultExecutorFactory.stop(DefaultExecutorFactory.java:35)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.remote.internal.MessagingServices.close(MessagingServices.java:114)

at org.gradle.messaging.remote.internal.MessagingServices.stop(MessagingServices.java:100)

at org.gradle.process.internal.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:84)

at org.gradle.process.internal.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:35)

at org.gradle.process.internal.child.ImplementationClassLoaderWorker.execute(ImplementationClassLoaderWorker.java:80)

at org.gradle.process.internal.child.ImplementationClassLoaderWorker.execute(ImplementationClassLoaderWorker.java:36)

at org.gradle.process.internal.child.IsolatedApplicationClassLoaderWorker.call(IsolatedApplicationClassLoaderWorker.java:48)

at org.gradle.process.internal.child.IsolatedApplicationClassLoaderWorker.call(IsolatedApplicationClassLoaderWorker.java:30)

at org.gradle.process.internal.launcher.GradleWorkerMain.run(GradleWorkerMain.java:30)

at org.gradle.process.internal.launcher.GradleWorkerMain.main(GradleWorkerMain.java:35) Could not stop org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl@3c0007. java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)

at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)

at java.security.AccessController.checkPermission(AccessController.java:427)

at java.util.concurrent.ThreadPoolExecutor.shutdown(ThreadPoolExecutor.java:894)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.requestStop(DefaultExecutorFactory.java:77)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.stop(DefaultExecutorFactory.java:85)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.stop(DefaultExecutorFactory.java:81)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.concurrent.DefaultExecutorFactory.stop(DefaultExecutorFactory.java:35)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.remote.internal.MessagingServices.close(MessagingServices.java:114)

at org.gradle.messaging.remote.internal.MessagingServices.stop(MessagingServices.java:100)

at org.gradle.process.internal.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:84)

at org.gradle.process.internal.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:35)

at org.gradle.process.internal.child.ImplementationClassLoaderWorker.execute(ImplementationClassLoaderWorker.java:80)

at org.gradle.process.internal.child.ImplementationClassLoaderWorker.execute(ImplementationClassLoaderWorker.java:36)

at org.gradle.process.internal.child.IsolatedApplicationClassLoaderWorker.call(IsolatedApplicationClassLoaderWorker.java:48)

at org.gradle.process.internal.child.IsolatedApplicationClassLoaderWorker.call(IsolatedApplicationClassLoaderWorker.java:30)

at org.gradle.process.internal.launcher.GradleWorkerMain.run(GradleWorkerMain.java:30)

at org.gradle.process.internal.launcher.GradleWorkerMain.main(GradleWorkerMain.java:35) Could not stop org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl@5dcec6. java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)

at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)

at java.security.AccessController.checkPermission(AccessController.java:427)

at java.util.concurrent.ThreadPoolExecutor.shutdown(ThreadPoolExecutor.java:894)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.requestStop(DefaultExecutorFactory.java:77)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.stop(DefaultExecutorFactory.java:85)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.stop(DefaultExecutorFactory.java:81)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.concurrent.DefaultExecutorFactory.stop(DefaultExecutorFactory.java:35)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.remote.internal.MessagingServices.close(MessagingServices.java:114)

at org.gradle.messaging.remote.internal.MessagingServices.stop(MessagingServices.java:100)

at org.gradle.process.internal.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:84)

at org.gradle.process.internal.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:35)

at org.gradle.process.internal.child.ImplementationClassLoaderWorker.execute(ImplementationClassLoaderWorker.java:80)

at org.gradle.process.internal.child.ImplementationClassLoaderWorker.execute(ImplementationClassLoaderWorker.java:36)

at org.gradle.process.internal.child.IsolatedApplicationClassLoaderWorker.call(IsolatedApplicationClassLoaderWorker.java:48)

at org.gradle.process.internal.child.IsolatedApplicationClassLoaderWorker.call(IsolatedApplicationClassLoaderWorker.java:30)

at org.gradle.process.internal.launcher.GradleWorkerMain.run(GradleWorkerMain.java:30)

at org.gradle.process.internal.launcher.GradleWorkerMain.main(GradleWorkerMain.java:35) Could not stop org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl@44c8ca. java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)

at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)

at java.security.AccessController.checkPermission(AccessController.java:427)

at java.util.concurrent.ThreadPoolExecutor.shutdown(ThreadPoolExecutor.java:894)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.requestStop(DefaultExecutorFactory.java:77)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.stop(DefaultExecutorFactory.java:85)

at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl.stop(DefaultExecutorFactory.java:81)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.concurrent.DefaultExecutorFactory.stop(DefaultExecutorFactory.java:35)

at org.gradle.internal.CompositeStoppable.stop(CompositeStoppable.java:122)

at org.gradle.messaging.remote.internal.MessagingServices.close(MessagingServices.java:114)

at org.gradle.messaging.remote.internal.MessagingServices.stop(MessagingServices.java:100)

at org.gradle.process.internal.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:84)

at org.gradle.process.internal.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:35)

at org.gradle.process.internal.child.ImplementationClassLoaderWorker.execute(ImplementationClassLoaderWorker.java:80)

at org.gradle.process.internal.child.ImplementationClassLoad


(Peter Niederwieser) #2

Seems like the JVM that runs the Gradle build on Jenkins has a security manager installed that doesn’t grant permission “modifyThread”.


(commerce) #3

Thanks for your answer, which directed me into java security learning. More info for my settings: Ubuntu server 10.04 LTS apache tomcat 6.0.18 Sun jdk 1.6.0_27 I tried to run the gradle build from commandline on the server and it works.

We run tomcat without security manager configured. I then tried to configure the security manager and got jekins up again. Then I granted

permission java.lang.RuntimePermission "modifyThread";

For all codebases in tomcat, but still the same Exception happens. During jenkins gradle build there are two more java processes. Why is the process that controls “findbugs” launched without the permission?


(Peter Niederwieser) #4

I wonder why the JVM that Gradle launches to run FindBugs (which is where I believe the error happens) has a security manager installed (in your case). Maybe you can find something useful in the debug log (’-d’).


(commerce) #5

In our jenkins build settings we use jdk 1.5.0_22 to run our builds. I changed this to jdk 1.6.0_27 and the build with findbugs is working again. Maybe this info is valueable for someone.


(commerce) #6

Just to let you know. It is not a jenkins or tomcat problem. I ran gradle from commandline with setting JAVA_HOME to jdk 1.5.0_22 and findbugs failed, too.


(Peter Niederwieser) #7

The FindBugs plugin works fine for me with JDK 1.5. Anyway, good to hear that you were able to solve the problem.