java.lang.NoClassDefFoundError: org/neo4j/kernel/configuration/Settings

GitHub | dpdonohue | 11 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd , Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. 0

    First try of neo4j-framework - errors due to missing methods and classes

    GitHub | 11 months ago | dpdonohue
    java.lang.NoClassDefFoundError: org/neo4j/kernel/configuration/Settings
  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. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 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>
  5. 0
    samebug tip
    Check if you didn't forget to instantiate your topic in the kafka broker.
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

    org.neo4j.kernel.configuration.Settings

    at java.net.URLClassLoader.findClass()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    2. java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    3. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    4 frames
  3. org.neo4j.metrics
    MetricsSettings.<clinit>
    1. org.neo4j.metrics.MetricsSettings.<clinit>(MetricsSettings.java:41)
    1 frame
  4. Java RT
    Field.get
    1. sun.misc.Unsafe.ensureClassInitialized(Native Method)
    2. sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:43)
    3. sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:142)
    4. java.lang.reflect.Field.acquireFieldAccessor(Field.java:1088)
    5. java.lang.reflect.Field.getFieldAccessor(Field.java:1069)
    6. java.lang.reflect.Field.get(Field.java:393)
    6 frames
  5. Neo4j - Graph Database Kernel
    Config.<init>
    1. org.neo4j.kernel.configuration.AnnotatedFieldHarvester.findStatic(AnnotatedFieldHarvester.java:47)
    2. org.neo4j.kernel.configuration.AnnotationBasedConfigurationMigrator.<init>(AnnotationBasedConfigurationMigrator.java:40)
    3. org.neo4j.kernel.configuration.Config.registerSettingsClasses(Config.java:96)
    4. org.neo4j.kernel.configuration.Config.<init>(Config.java:89)
    4 frames
  6. org.neo4j.kernel
    PlatformModule.<init>
    1. org.neo4j.kernel.impl.factory.PlatformModule.<init>(PlatformModule.java:122)
    1 frame
  7. org.neo4j.test
    TestGraphDatabaseFactory$1$1.createPlatform
    1. org.neo4j.test.ImpermanentGraphDatabase$ImpermanentPlatformModule.<init>(ImpermanentGraphDatabase.java:197)
    2. org.neo4j.test.TestGraphDatabaseFactory$1$1$1.<init>(TestGraphDatabaseFactory.java:177)
    3. org.neo4j.test.TestGraphDatabaseFactory$1$1.createPlatform(TestGraphDatabaseFactory.java:176)
    3 frames
  8. org.neo4j.kernel
    GraphDatabaseFacadeFactory.newFacade
    1. org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:124)
    2. org.neo4j.kernel.impl.factory.CommunityFacadeFactory.newFacade(CommunityFacadeFactory.java:43)
    3. org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:108)
    3 frames
  9. org.neo4j.test
    TestGraphDatabaseFactory$1.newDatabase
    1. org.neo4j.test.TestGraphDatabaseFactory$1.newDatabase(TestGraphDatabaseFactory.java:171)
    1 frame
  10. Neo4j - Graph Database Kernel
    GraphDatabaseBuilder.newGraphDatabase
    1. org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:185)
    1 frame
  11. org.neo4j.test
    TestGraphDatabaseFactory.newImpermanentDatabase
    1. org.neo4j.test.TestGraphDatabaseFactory.newImpermanentDatabase(TestGraphDatabaseFactory.java:56)
    1 frame
  12. io.knovo.factual
    TestUnitFactualService.setUp
    1. io.knovo.factual.TestUnitFactualService.setUp(TestUnitFactualService.java:37)
    1 frame
  13. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  14. JUnit
    ParentRunner.run
    1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    4. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
    5. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    6. org.junit.runners.ParentRunner.run(ParentRunner.java:292)
    6 frames
  15. Mockito
    MockitoJUnitRunner.run
    1. org.mockito.internal.runners.JUnit45AndHigherRunnerImpl.run(JUnit45AndHigherRunnerImpl.java:37)
    2. org.mockito.runners.MockitoJUnitRunner.run(MockitoJUnitRunner.java:62)
    2 frames
  16. JUnit4 Provider
    JUnit4Provider.invoke
    1. org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
    2. org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
    3. org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
    3 frames
  17. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  18. SureFire
    ForkedBooter.main
    1. org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
    2. org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
    3. org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
    4. org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
    5. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
    5 frames