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

SecurityException: Prohibited package name #16

Open
McPringle opened this issue Dec 1, 2017 · 0 comments
Open

SecurityException: Prohibited package name #16

McPringle opened this issue Dec 1, 2017 · 0 comments

Comments

@McPringle
Copy link

I installed the PIT mutation testing IDEA plugin v1.3.7 in IntelliJ IDEA 2017.2 on Windows 10. I created a run configuration for my project which uses Java 1.8.0_131_b11 and started it. After a few seconds I get the following Exception:

Exception in thread "main" java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.intellij.rt.execution.CommandLineWrapper.main(CommandLineWrapper.java:65)
Caused by: java.lang.ExceptionInInitializerError
      at org.pitest.mutationtest.config.PluginServices.makeForContextLoader(PluginServices.java:27)
      at org.pitest.mutationtest.commandline.MutationCoverageReport.main(MutationCoverageReport.java:35)
      ... 5 more
Caused by: java.lang.SecurityException: Prohibited package name: java.lang.invoke
      at java.lang.ClassLoader.preDefineClass(ClassLoader.java:479)
      at java.lang.ClassLoader.defineClassCond(ClassLoader.java:625)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
      at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:247)
      at org.pitest.reloc.xstream.core.JVM.loadClassForName(JVM.java:279)
      at org.pitest.reloc.xstream.core.JVM.loadClassForName(JVM.java:259)
      at org.pitest.reloc.xstream.XStream.setupAliases(XStream.java:766)
      at org.pitest.reloc.xstream.XStream.<init>(XStream.java:572)
      at org.pitest.reloc.xstream.XStream.<init>(XStream.java:496)
      at org.pitest.reloc.xstream.XStream.<init>(XStream.java:465)
      at org.pitest.reloc.xstream.XStream.<init>(XStream.java:411)
      at org.pitest.reloc.xstream.XStream.<init>(XStream.java:378)
      at org.pitest.util.IsolationUtils.<clinit>(IsolationUtils.java:29)
      ... 7 more
 
Process finished with exit code 1

This is reproducable. If you need more information, I will be glad to provide it to you.

Thank you vermuch for your help.

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

No branches or pull requests

1 participant