java.lang.SecurityException: Prohibited package name: java.nio.file

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via SpringSource Issue Tracker by Eugen Paraschiv, 1 year ago
Prohibited package name: java.nio.file
via SpringSource Issue Tracker by Eugen Paraschiv, 1 year ago
Prohibited package name: java.nio.file
via GitHub by evant
, 2 years ago
Prohibited package name: java.lang
via GitHub by evant
, 2 years ago
Prohibited package name: java.lang
via Google Groups by Natalie Helmer, 2 years ago
Prohibited package name: java.util.xsd
via caucho.com by Unknown author, 1 year ago
java.lang.SecurityException: Prohibited package name: java.nio.file
at java.lang.ClassLoader.preDefineClass(ClassLoader.java:480)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:626)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at org.apache.xbean.classloader.JarFileClassLoader.access$200(JarFileClassLoader.java:44)
at org.apache.xbean.classloader.JarFileClassLoader$6.run(JarFileClassLoader.java:337)
at org.apache.xbean.classloader.JarFileClassLoader.findClass(JarFileClassLoader.java:290)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at org.apache.xbean.classloader.JarFileClassLoader.access$200(JarFileClassLoader.java:44)
at org.apache.xbean.classloader.JarFileClassLoader$6.run(JarFileClassLoader.java:337)
at org.apache.xbean.classloader.JarFileClassLoader.findClass(JarFileClassLoader.java:290)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at org.springframework.ide.eclipse.core.java.ClassUtils.loadClass(ClassUtils.java:147)
at org.springframework.ide.eclipse.beans.core.autowire.internal.provider.AutowireDependencyProvider.getBeansForType(AutowireDependencyProvider.java:322)
at org.springframework.ide.eclipse.beans.core.autowire.internal.provider.AutowireDependencyProvider.createInjectionMetadataProviders(AutowireDependencyProvider.java:355)
at org.springframework.ide.eclipse.beans.core.autowire.internal.provider.AutowireDependencyProvider.access$2(AutowireDependencyProvider.java:353)
at org.springframework.ide.eclipse.beans.core.autowire.internal.provider.AutowireDependencyProvider$1.doWithActiveProjectClassLoader(AutowireDependencyProvider.java:140)
at org.springframework.ide.eclipse.core.java.JdtUtils$DefaultProjectClassLoaderSupport.executeCallback(JdtUtils.java:886)
at org.springframework.ide.eclipse.beans.core.autowire.internal.provider.AutowireDependencyProvider.resolveAutowiredDependencies(AutowireDependencyProvider.java:133)
at org.springframework.ide.eclipse.beans.core.autowire.internal.validation.rules.AutowireDependencyProblemsRule.validate(AutowireDependencyProblemsRule.java:47)
at org.springframework.ide.eclipse.beans.core.autowire.internal.validation.rules.AutowireDependencyProblemsRule.validate(AutowireDependencyProblemsRule.java:1)
at org.springframework.ide.eclipse.core.model.validation.AbstractValidator$ValidationVisitor.visit(AbstractValidator.java:258)
at org.springframework.ide.eclipse.beans.core.internal.model.AbstractBeansConfig.accept(AbstractBeansConfig.java:107)
at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:139)
at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:101)
at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$7.execute(SpringProjectContributionManager.java:238)
at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$9.run(SpringProjectContributionManager.java:269)
at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.execute(SpringProjectContributionManager.java:272)
at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.runValidator(SpringProjectContributionManager.java:235)
at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.build(SpringProjectContributionManager.java:108)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:282)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:363)
at org.eclipse.core.internal.resources.Project$1.run(Project.java:545)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
at org.eclipse.core.internal.resources.Project.internalBuild(Project.java:524)
at org.springframework.ide.eclipse.core.SpringCoreUtils$1.run(SpringCoreUtils.java:744)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
22 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.