Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » AccessControlException in eclipse-based product when using New Plugin Project wizard
AccessControlException in eclipse-based product when using New Plugin Project wizard [message #1834393] Mon, 09 November 2020 15:54
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 1
Registered: July 2009
Junior Member
We develop our own product based on Eclipse. Since Eclipse 4.14 (2019-12) we experience a problem in our product when creating a new plugin project. It does not happen in a plain eclipse without our plugins installed, but in our product it is always reproducible with these steps (works on Windows and linux):

1. Start the product with a fresh workspace
2. Open New Plugin Project wizard
3. Enter some project name and press Next.
4. Press Finish

This causes an error like this (the listed plugin differs between different attempts):

java.security.AccessControlException: access denied ("java.io.FilePermission" ".../plugins/org.eclipse.equinox.security.linux.x86_64_1.1.300.v20190830-1238" "read")
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
at java.security.AccessController.checkPermission(AccessController.java:884)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at java.lang.SecurityManager.checkRead(SecurityManager.java:888)
at java.io.File.exists(File.java:814)
at org.eclipse.pde.core.target.TargetBundle.initialize(TargetBundle.java:164)
at org.eclipse.pde.core.target.TargetBundle.<init>(TargetBundle.java:84)
at org.eclipse.pde.internal.core.target.ProfileBundleContainer.lambda$0(ProfileBundleContainer.java:167)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.Nodes$CollectorTask.doLeaf(Nodes.java:2183)
at java.util.stream.Nodes$CollectorTask.doLeaf(Nodes.java:2149)
at java.util.stream.AbstractTask.compute(AbstractTask.java:316)
at java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:731)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

Sometimes the project is created, sometimes it isn't. But when I do the same again without restarting (or just press Finish again in case the wizard is still open), it does not happen again.

From what I know we have not limited permissions through policies, we even tried to get rid of this by explicitly granting all permissions. And if this was the issue, it should happen regardless of the Eclipse version, but it does not happen with Eclipse 4.12 (that was the base of the previous version of our product). I even built a new package of our current product version based on 4.12 to see if this is caused by some change on our side. But with that package (our current plugins installed in Eclipse 4.12), it still does not happen.

We sometimes see something similar when importing plugin projects into the workspace, then it happens during "Initializing plug-in models".

It feels like something is not properly initialized when starting up the product, but I don't know if we are doing something wrong or if we somehow trigger a rare Eclipse bug that was introduced after 4.12. I already checked the start levels in the product configuration using the Add Recommended button, everything looks fine there.

Does anyone have any idea what could cause this? And if not, can anyone give advise about how to get more information to narrow down the search?
Previous Topic:Product Export with JDK 11
Next Topic:PDE build failing with java 11.
Goto Forum:
  


Current Time: Thu Apr 25 18:09:13 GMT 2024

Powered by FUDForum. Page generated in 0.03216 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top