Java Runtime errors

Core environment and runtime library

https://java.com
Solution coverage:
Summary coverage:

Top patterns

  1. SecurityManager permission too restrictive or unable to find policy file

    If you have correctly set a policy file, check that the permissions in the policy file are not too restrictive for the operation you are trying to perform. If you are unsure as to how to correctly set a policy file, then check this answer

  2. AccessController.doPrivileged() has thrown an IOException
    No solution
  3. AccessControlContext.checkPermission() has thrown an ExceptionInInitializerError
    No solution

DescriptionException TypeEntry MethodWeb pages

SecurityManager permission too restrictive or unable to find policy file

java.security.AccessControlException
java.security.AccessControlContext.checkPermission
3602Web pages
1Solution
AccessControlExceptionAccessControlContext.checkPermission3602

AccessController.doPrivileged() has thrown an IOException

java.io.IOException
3 frames hidden
java.security.AccessController.doPrivileged
154Web pages
IOExceptionAccessController.doPrivileged154

AccessControlContext.checkPermission() has thrown an ExceptionInInitializerError

java.lang.ExceptionInInitializerError
java.security.AccessControlContext.checkPermission
118Web pages
ExceptionInInitializerErrorAccessControlContext.checkPermission118

AccessController.checkPermission() has thrown an AccessControlException

java.security.AccessControlException
java.security.AccessController.checkPermission
110Web pages
AccessControlExceptionAccessController.checkPermission110

AccessController.doPrivileged() has thrown a PrivilegedActionException

java.security.PrivilegedActionException
java.security.AccessController.doPrivileged
98Web pages
PrivilegedActionExceptionAccessController.doPrivileged98

AccessController.doPrivileged() has thrown a StackOverflowError

java.lang.StackOverflowError
java.security.AccessController.doPrivileged
90Web pages
StackOverflowErrorAccessController.doPrivileged90

AccessController.doPrivileged() has thrown a BeanCreationException

org.springframework.beans.factory.BeanCreationException
3 frames hidden
java.security.AccessController.doPrivileged
89Web pages
BeanCreationExceptionAccessController.doPrivileged89

AccessController.doPrivileged() has thrown a BeanCreationException

org.springframework.beans.factory.BeanCreationException
2 frames hidden
java.security.AccessController.doPrivileged
69Web pages
BeanCreationExceptionAccessController.doPrivileged69

SecureClassLoader.defineClass() has thrown a Throwable

java.lang.Throwable
java.security.SecureClassLoader.defineClass
69Web pages
ThrowableSecureClassLoader.defineClass69

AccessController.doPrivileged() has thrown a Throwable

java.lang.Throwable
java.security.AccessController.doPrivileged
64Web pages
ThrowableAccessController.doPrivileged64

KeyPairGenerator$Delegate.initialize() has thrown an InvalidAlgorithmParameterException

java.security.InvalidAlgorithmParameterException
1 frames hidden
java.security.KeyPairGenerator$Delegate.initialize
41Web pages
InvalidAlgorithmParameterExceptionKeyPairGenerator$Delegate.initialize41

KeyStore.getInstance() has thrown a KeyStoreException

java.security.KeyStoreException
java.security.KeyStore.getInstance
40Web pages
KeyStoreExceptionKeyStore.getInstance40

AccessController.doPrivileged() has thrown a BeanCreationException

org.springframework.beans.factory.BeanCreationException
java.security.AccessController.doPrivileged
36Web pages
BeanCreationExceptionAccessController.doPrivileged36

Signature.getInstance() has thrown a NoSuchAlgorithmException

java.security.NoSuchAlgorithmException
java.security.Signature.getInstance
26Web pages
NoSuchAlgorithmExceptionSignature.getInstance26

AccessController.doPrivileged() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
java.security.AccessController.doPrivileged
25Web pages
ClassNotFoundExceptionAccessController.doPrivileged25

BasicPermission.<init>() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
1 frames hidden
java.security.BasicPermission.<init>
25Web pages
IllegalArgumentExceptionBasicPermission.<init>25

SecureClassLoader.defineClass() has thrown a FMLLaunchHandler

net.minecraftforge.fml.relauncher.FMLLaunchHandler
java.security.SecureClassLoader.defineClass
24Web pages
FMLLaunchHandlerSecureClassLoader.defineClass24

AccessController.doPrivileged() has thrown a FMLLaunchHandler

net.minecraftforge.fml.relauncher.FMLLaunchHandler
java.security.AccessController.doPrivileged
24Web pages
FMLLaunchHandlerAccessController.doPrivileged24

Security.getEngineClassName() has thrown a NoSuchAlgorithmException

java.security.NoSuchAlgorithmException
java.security.Security.getEngineClassName
22Web pages
NoSuchAlgorithmExceptionSecurity.getEngineClassName22

Signature.initVerify() has thrown an InvalidKeyException

java.security.InvalidKeyException
java.security.Signature.initVerify
22Web pages
InvalidKeyExceptionSignature.initVerify22

AccessController.doPrivileged() has thrown a BeanCreationException

org.springframework.beans.factory.BeanCreationException
1 frames hidden
java.security.AccessController.doPrivileged
20Web pages
BeanCreationExceptionAccessController.doPrivileged20

AccessController.doPrivileged() has thrown a ThreadGroup

java.lang.ThreadGroup
java.security.AccessController.doPrivileged
20Web pages
ThreadGroupAccessController.doPrivileged20

SecureClassLoader.defineClass() has thrown a ThreadGroup

java.lang.ThreadGroup
java.security.SecureClassLoader.defineClass
19Web pages
ThreadGroupSecureClassLoader.defineClass19

AccessController.throwACE() has thrown an AccessControlException

java.security.AccessControlException
java.security.AccessController.throwACE
19Web pages
AccessControlExceptionAccessController.throwACE19

MessageDigest.update() has thrown a NullPointerException

java.lang.NullPointerException
java.security.MessageDigest.update
18Web pages
NullPointerExceptionMessageDigest.update18

KeyPairGenerator.getInstance() has thrown a NoSuchAlgorithmException

java.security.NoSuchAlgorithmException
java.security.KeyPairGenerator.getInstance
18Web pages
NoSuchAlgorithmExceptionKeyPairGenerator.getInstance18

AccessController.doPrivileged() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
java.security.AccessController.doPrivileged
17Web pages
NoClassDefFoundErrorAccessController.doPrivileged17

AccessController.doPrivileged() has thrown a MediaUnsupportedException

com.sun.media.jmc.MediaUnsupportedException
1 frames hidden
java.security.AccessController.doPrivileged
15Web pages
MediaUnsupportedExceptionAccessController.doPrivileged15

AccessController.doPrivileged() has thrown a RuntimeException

java.lang.RuntimeException
java.security.AccessController.doPrivileged
15Web pages
RuntimeExceptionAccessController.doPrivileged15

AccessController.doPrivileged() has thrown a SecurityException

java.lang.SecurityException
3 frames hidden
java.security.AccessController.doPrivileged
15Web pages
SecurityExceptionAccessController.doPrivileged15

KeyStore.load() has thrown an IOException

java.io.IOException
1 frames hidden
java.security.KeyStore.load
13Web pages
IOExceptionKeyStore.load13

AccessController.doPrivileged() has thrown an IllegalStateException

java.lang.IllegalStateException
java.security.AccessController.doPrivileged
12Web pages
IllegalStateExceptionAccessController.doPrivileged12

SecureClassLoader.defineClass() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
java.security.SecureClassLoader.defineClass
12Web pages
NoClassDefFoundErrorSecureClassLoader.defineClass12

AccessController.doPrivileged() has thrown a ServletException

javax.servlet.ServletException
3 frames hidden
java.security.AccessController.doPrivileged
11Web pages
ServletExceptionAccessController.doPrivileged11

Permissions.add() has thrown a SecurityException

java.lang.SecurityException
java.security.Permissions.add
11Web pages
SecurityExceptionPermissions.add11

Signature$Delegate.chooseProvider() has thrown an InvalidKeyException

java.security.InvalidKeyException
java.security.Signature$Delegate.chooseProvider
11Web pages
InvalidKeyExceptionSignature$Delegate.chooseProvider11

AccessController.doPrivileged() has thrown an IOException

java.io.IOException
1 frames hidden
java.security.AccessController.doPrivileged
10Web pages
IOExceptionAccessController.doPrivileged10

KeyStore.getEntry() has thrown an UnsupportedOperationException

java.lang.UnsupportedOperationException
1 frames hidden
java.security.KeyStore.getEntry
10Web pages
UnsupportedOperationExceptionKeyStore.getEntry10

AccessController.doPrivileged() has thrown a NullPointerException

java.lang.NullPointerException
4 frames hidden
java.security.AccessController.doPrivileged
10Web pages
NullPointerExceptionAccessController.doPrivileged10

KeyFactory.generatePublic() has thrown an InvalidKeySpecException

java.security.spec.InvalidKeySpecException
1 frames hidden
java.security.KeyFactory.generatePublic
9Web pages
InvalidKeySpecExceptionKeyFactory.generatePublic9

KeyStore.load() has thrown an IOException

java.io.IOException
java.security.KeyStore.load
9Web pages
IOExceptionKeyStore.load9

KeyStore.load() has thrown an IOException

java.io.IOException
1 frames hidden
java.security.KeyStore.load
9Web pages
IOExceptionKeyStore.load9

SecureClassLoader.defineClass() has thrown an UnsupportedClassVersionError

java.lang.UnsupportedClassVersionError
java.security.SecureClassLoader.defineClass
8Web pages
UnsupportedClassVersionErrorSecureClassLoader.defineClass8

KeyStore$Builder$2.getKeyStore() has thrown a KeyStoreException

java.security.KeyStoreException
java.security.KeyStore$Builder$2.getKeyStore
8Web pages
KeyStoreExceptionKeyStore$Builder$2.getKeyStore8

AccessController.doPrivileged() has thrown a NoSuchMethodError

java.lang.NoSuchMethodError
8 frames hidden
java.security.AccessController.doPrivileged
8Web pages
NoSuchMethodErrorAccessController.doPrivileged8

KeyFactory.generatePublic() has thrown an InvalidKeySpecException

java.security.spec.InvalidKeySpecException
1 frames hidden
java.security.KeyFactory.generatePublic
8Web pages
InvalidKeySpecExceptionKeyFactory.generatePublic8

AccessController.doPrivileged() has thrown an IOException

java.io.IOException
java.security.AccessController.doPrivileged
8Web pages
IOExceptionAccessController.doPrivileged8

AccessController.doPrivileged() has thrown an Error

java.lang.Error
2 frames hidden
java.security.AccessController.doPrivileged
7Web pages
ErrorAccessController.doPrivileged7

Signature.initVerify() has thrown an InvalidKeyException

java.security.InvalidKeyException
1 frames hidden
java.security.Signature.initVerify
7Web pages
InvalidKeyExceptionSignature.initVerify7

SecureClassLoader.defineClass() has thrown an IncompatibleClassChangeError

java.lang.IncompatibleClassChangeError
1 frames hidden
java.security.SecureClassLoader.defineClass
7Web pages
IncompatibleClassChangeErrorSecureClassLoader.defineClass7
Package namePatterns foundSolution coverageSummary coverage
java.lang40338
java.io3874
java.awt3617
java.util.concurrent3502
java.lang.reflect3465
sun.reflect2112
java.util2073
java.net2070
javax.swing1383
java.security856
javax.naming842
java.sql691
sun.net.www.protocol.http690
sun.net.www.protocol.https681
sun.nio.ch458
java.util.zip290
sun.rmi.server287
java.nio.file266
java.util.regex260
sun.rmi.transport.tcp259
com.sun.jndi.ldap243
com.sun.org.apache.xerces.internal.impl236
com.sun.org.apache.xerces.internal.parsers222
javax.swing.plaf.basic217
sun.net.www.http217
java.util.stream182
sun.misc179
java.util.logging154
com.sun.org.apache.xerces.internal.jaxp151
java.nio148
java.util.jar142
javax.swing.text142
sun.launcher138
java.beans137
java.text133
javax.imageio130
sun.rmi.registry127
javax.net.ssl116
javax.management.remote.rmi116
javax.security.auth.login115
java.rmi114
com.sun.org.apache.xalan.internal.xsltc.trax110
sun.nio.cs110
java.awt.image104
javax.security.auth98
sun.rmi.transport97
java.nio.channels95
sun.instrument92
java.util.concurrent.locks88
java.awt.event86
Package nameClass namePatterns foundSolution coverageSummary coverage
java.securityAccessController471
java.securityKeyStore105
java.securitySecureClassLoader100
java.securityKeyFactory39
java.securitySignature32
java.securitySecureRandom20
java.securitySecurity15
java.securityMessageDigest11
java.securityAccessControlContext7
java.securityKeyPairGenerator7
java.securityKeyPairGenerator$Delegate6
java.securityProvider$Service6
java.securityProtectionDomain$15
java.securityProtectionDomain$JavaSecurityAccessImpl4
java.securityPolicy3
java.securityAccessControlContext$13
java.securityAlgorithmParameters3
java.securityProvider3
java.securityKeyStoreSpi2
java.securityAccessControlException2
java.securitySignature$Delegate2
java.securityProtectionDomain1
java.securityKeyStore$Builder$21
java.securityDigestOutputStream1
java.securityDigestInputStream1
java.securityPolicy$UnsupportedEmptyCollection1
java.securityPermission1
java.securityMessageDigest$Delegate1
java.securityBasicPermission1
java.securityPermissions1
java.securityKeyStore$PrivateKeyEntry1
Package nameClass nameMethod namePatterns foundSolution coverage
java.securityAccessControllerdoPrivileged457
java.securitySecureClassLoaderdefineClass97
java.securityKeyStoreload63
java.securityKeyFactorygeneratePublic19
java.securityKeyFactorygeneratePrivate14
java.securityKeyStoregetInstance13
java.securitySignatureverify13
java.securityKeyStoregetKey10
java.securitySecureRandomnextBytes9
java.securitySignatureinitSign9
java.securitySecuritygetImpl7
java.securityAccessControllercheckPermission7
java.securityKeyStoregetEntry7
java.securityAccessControlContextcheckPermission6
java.securityKeyStoresetKeyEntry6
java.securityMessageDigestgetInstance6
java.securityProvider$ServicenewInstance5
java.securityKeyFactorygetInstance5
java.securityProtectionDomain$1doIntersectionPrivilege5
java.securityKeyPairGeneratorgetInstance4
java.securitySignaturesign4
java.securityKeyPairGenerator$DelegategenerateKeyPair4
java.securityAccessControllerdoPrivilegedWithCombiner4
java.securityProtectionDomain$JavaSecurityAccessImpldoIntersectionPrivilege4
java.securitySecureRandom<init>4
java.securityAccessControlContext$1doIntersectionPrivilege3
java.securitySignatureinitVerify3
java.securityKeyPairGeneratorinitialize3
java.securityMessageDigestdigest3
java.securitySecureRandomnext3
java.securitySignaturegetInstance3
java.securityMessageDigestupdate2
java.securitySecuritygetProperty2
java.securityAlgorithmParametersinit2
java.securityKeyStoresetEntry2
java.securitySecuritygetProviders2
java.securityAccessControlException<init>2
java.securityKeyPairGenerator$Delegateinitialize2
java.securityProviderput2
java.securitySecureRandomgetInstance2
java.securitySecureClassLoader<init>2
java.securitySignature$DelegatechooseProvider1
java.securitySecurityremoveProvider1
java.securityKeyFactorygetKeySpec1
java.securityDigestOutputStreamwrite1
java.securityPolicygetPolicyNoCheck1
java.securitySecureClassLoadergetProtectionDomain1
java.securitySignature$Delegateinit1
java.securityAccessControllergetContext1
java.securityAccessControlContextoptimize1
Package nameClass nameMethod nameException TypePatterns foundSolution coverage
java.securityKeyStoreloadIOException49
java.securityAccessControllerdoPrivilegedNullPointerException44
java.securitySecureClassLoaderdefineClassNoClassDefFoundError33
java.securityAccessControllerdoPrivilegedNoClassDefFoundError30
java.securityAccessControllerdoPrivilegedIOException25
java.securityAccessControllerdoPrivilegedUnsatisfiedLinkError25
java.securityKeyFactorygeneratePublicInvalidKeySpecException18
java.securityAccessControllerdoPrivilegedClassNotFoundException17
java.securityAccessControllerdoPrivilegedIllegalArgumentException17
java.securityAccessControllerdoPrivilegedRuntimeException15
java.securityAccessControllerdoPrivilegedConnectException14
java.securityAccessControllerdoPrivilegedBeanCreationException14
java.securityKeyFactorygeneratePrivateInvalidKeySpecException13
java.securityAccessControllerdoPrivilegedIllegalStateException13
java.securityAccessControllerdoPrivilegedSecurityException13
java.securityAccessControllerdoPrivilegedPrivilegedActionException12
java.securitySignatureverifySignatureException11
java.securitySecureClassLoaderdefineClassUnsupportedClassVersionError9
java.securityKeyStoregetKeyUnrecoverableKeyException9
java.securityAccessControllerdoPrivilegedLoginException8
java.securityAccessControllerdoPrivilegedClassCastException8
java.securityAccessControllerdoPrivilegedUnsupportedClassVersionError8
java.securityAccessControllerdoPrivilegedNoSuchMethodError7
java.securityAccessControllerdoPrivilegedInternalError7
java.securitySignatureinitSignInvalidKeyException7
java.securityAccessControllerdoPrivilegedAccessControlException7
java.securityAccessControllerdoPrivilegedFileNotFoundException7
java.securityKeyStoregetInstanceKeyStoreException7
java.securitySecureClassLoaderdefineClassIncompatibleClassChangeError7
java.securitySecureClassLoaderdefineClassClassNotFoundException6
java.securitySecureClassLoaderdefineClassSecurityException6
java.securitySecureClassLoaderdefineClassVerifyError6
java.securitySecureClassLoaderdefineClassClassFormatError5
java.securityAccessControllerdoPrivilegedStackOverflowError5
java.securityMessageDigestgetInstanceNoSuchAlgorithmException5
java.securityKeyStoresetKeyEntryKeyStoreException5
java.securitySecuritygetImplNoSuchAlgorithmException5
java.securityAccessControllerdoPrivilegedSSLHandshakeException5
java.securityKeyStoreloadEOFException5
java.securityKeyPairGenerator$DelegategenerateKeyPairProviderException4
java.securityAccessControllerdoPrivilegedIncompatibleClassChangeError4
java.securityAccessControllerdoPrivilegedResourceAdapterInternalException4
java.securityAccessControllerdoPrivilegedOutOfMemoryError4
java.securityKeyFactorygetInstanceNoSuchAlgorithmException4
java.securitySecureClassLoaderdefineClassLinkageError4
java.securityAccessControllerdoPrivilegedServletException4
java.securitySecureRandom<init>InternalError4
java.securityAccessControllerdoPrivilegedFactoryConfigurationError3
java.securityAccessControllercheckPermissionAccessControlException3
java.securityAccessControllerdoPrivilegedSOAPException3