java.lang.IllegalStateException: Class not found: [Ljava.lang.String;

hivmr.com | 9 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0
    samebug tip
    A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.
  3. 0
    samebug tip
    If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add with the following: <groupId>com.fasterxml</groupId> <artifactId>classmate</artifactId> <version>1.0</version>
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    [Ljava.lang.String;

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    2. java.security.AccessController.doPrivileged(Native Method)
    3. java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    5. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    6. java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    6 frames
  3. JBoss MetaData Repository
    MetaDataRetrievalToMetaDataBridge.getComponentMetaData
    1. org.jboss.metadata.spi.signature.Signature.stringsToClasses(Signature.java:170)
    2. org.jboss.metadata.spi.signature.Signature.stringsToClasses(Signature.java:125)
    3. org.jboss.metadata.spi.signature.Signature.getParametersTypes(Signature.java:292)
    4. org.jboss.metadata.plugins.loader.reflection.AnnotatedElementMetaDataLoader.getComponentMetaDataRetrieval(AnnotatedElementMetaDataLoader.java:138)
    5. org.jboss.metadata.plugins.context.AbstractMetaDataContext.getComponentMetaDataRetrieval(AbstractMetaDataContext.java:280)
    6. org.jboss.metadata.spi.retrieval.MetaDataRetrievalToMetaDataBridge.getComponentMetaData(MetaDataRetrievalToMetaDataBridge.java:159)
    6 frames
  4. org.jboss.aop
    AOPConstructorJoinpoint.dispatch
    1. org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.methodHasAnnotations(AOPConstructorJoinpoint.java:202)
    2. org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.hasMethodMetaData(AOPConstructorJoinpoint.java:172)
    3. org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.hasInstanceOrJoinpointMetaData(AOPConstructorJoinpoint.java:152)
    4. org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.dispatch(AOPConstructorJoinpoint.java:99)
    4 frames
  5. JBoss Microcontainer Kernel
    KernelControllerContextAction.install
    1. org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:103)
    2. org.jboss.kernel.plugins.dependency.InstantiateAction.installActionInternal(InstantiateAction.java:52)
    3. org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:197)
    4. org.jboss.kernel.plugins.dependency.KernelControllerContextAction.install(KernelControllerContextAction.java:136)
    4 frames
  6. JBoss Microcontainer Dependency
    AbstractController.install
    1. org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
    2. org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:233)
    3. org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:724)
    4. org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:445)
    5. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:555)
    6. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:489)
    7. org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:289)
    8. org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:192)
    8 frames
  7. JBoss Microcontainer Kernel
    BeanXMLDeployer.deploy
    1. org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:302)
    2. org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:272)
    3. org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:119)
    4. org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:96)
    4 frames
  8. org.jboss.embedded
    Bootstrap.bootstrap
    1. org.jboss.embedded.Bootstrap.deployBaseBootstrapUrl(Bootstrap.java:150)
    2. org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:162)
    3. org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:201)
    4. org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:214)
    4 frames
  9. org.jboss.seam
    SeamTest.init
    1. org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:919)
    2. org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:856)
    3. org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
    3 frames
  10. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  11. TestNG
    TestNG.main
    1. org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:604)
    2. org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:394)
    3. org.testng.internal.Invoker.invokeConfigurations(Invoker.java:142)
    4. org.testng.internal.Invoker.invokeConfigurations(Invoker.java:79)
    5. org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:165)
    6. org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:103)
    7. org.testng.TestRunner.runWorkers(TestRunner.java:678)
    8. org.testng.TestRunner.privateRun(TestRunner.java:624)
    9. org.testng.TestRunner.run(TestRunner.java:495)
    10. org.testng.SuiteRunner.runTest(SuiteRunner.java:300)
    11. org.testng.SuiteRunner.runSequentially(SuiteRunner.java:295)
    12. org.testng.SuiteRunner.privateRun(SuiteRunner.java:275)
    13. org.testng.SuiteRunner.run(SuiteRunner.java:190)
    14. org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:792)
    15. org.testng.TestNG.runSuitesLocally(TestNG.java:765)
    16. org.testng.TestNG.run(TestNG.java:699)
    17. org.testng.TestNG.privateMain(TestNG.java:824)
    18. org.testng.TestNG.main(TestNG.java:802)
    18 frames