|AccessControlException in eclipse-based product when using New Plugin Project wizard [message #1834393]
||Mon, 09 November 2020 15:54
| Missing name Mising name
Registered: July 2009
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")
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?
Powered by FUDForum
. Page generated in 0.02170 seconds