java.lang.IllegalStateException: Failed to execute CommandLineRunner

GitHub | wilkinsona | 4 months ago
  1. 0

    GitHub comment 6709#241351019

    GitHub | 4 months ago | wilkinsona
    java.lang.IllegalStateException: Failed to execute CommandLineRunner
  2. 0

    Nullpointer Exception when configuring SessionFactory with more than one package

    GitHub | 3 months ago | buchgeher
    org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.NullPointerException
  3. 0

    MappingException with root cause NullpointerException

    Stack Overflow | 10 months ago | Supamiu
    java.lang.NullPointerException: null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    neo4j in JEE (JBoss) environment:

    Stack Overflow | 1 year ago | michaeak
    org.jboss.resteasy.spi.UnhandledException: java.lang.NullPointerException
  6. 0

    Optional<T> is not recognized as a valid return type of a repository method (where T denotes an entity type). The stack trace becomes as follows: {code} java.lang.NullPointerException at org.neo4j.ogm.metadata.MetaData.entityType(MetaData.java:231) at org.neo4j.ogm.session.Neo4jSession.entityType(Neo4jSession.java:451) at org.neo4j.ogm.session.delegates.LoadByTypeDelegate.loadAll(LoadByTypeDelegate.java:55) at org.neo4j.ogm.session.delegates.LoadByTypeDelegate.loadAll(LoadByTypeDelegate.java:144) at org.neo4j.ogm.session.Neo4jSession.loadAll(Neo4jSession.java:193) at org.springframework.data.neo4j.repository.query.derived.DerivedGraphRepositoryQuery.execute(DerivedGraphRepositoryQuery.java:64) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:454) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:432) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor.invoke(DefaultMethodInvokingMethodInterceptor.java:61) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:136) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) at com.sun.proxy.$Proxy103.findByLogin(Unknown Source) {code} with a simple SDN interface such as : {code} public interface UserRepository extends GraphRepository<User> { Optional<User> findByLogin(String login); } {code}

    Spring JIRA | 1 year ago | Florent Biville
    java.lang.NullPointerException

    1 unregistered visitors
    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.NullPointerException

      null

      at org.neo4j.ogm.MetaData.entityType()
    2. org.neo4j.ogm
      Neo4jSession.loadAll
      1. org.neo4j.ogm.MetaData.entityType(MetaData.java:280)[neo4j-ogm-core-2.0.4.jar!/:na]
      2. org.neo4j.ogm.session.Neo4jSession.entityType(Neo4jSession.java:486)[neo4j-ogm-core-2.0.4.jar!/:na]
      3. org.neo4j.ogm.session.delegates.LoadByTypeDelegate.loadAll(LoadByTypeDelegate.java:60)[neo4j-ogm-core-2.0.4.jar!/:na]
      4. org.neo4j.ogm.session.delegates.LoadByTypeDelegate.loadAll(LoadByTypeDelegate.java:113)[neo4j-ogm-core-2.0.4.jar!/:na]
      5. org.neo4j.ogm.session.Neo4jSession.loadAll(Neo4jSession.java:157)[neo4j-ogm-core-2.0.4.jar!/:na]
      5 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_74]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_74]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_74]
      4. java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_74]
      4 frames
    4. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)[spring-aop-4.3.3.BUILD-SNAPSHOT.jar!/:4.3.3.BUILD-SNAPSHOT]
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)[spring-aop-4.3.3.BUILD-SNAPSHOT.jar!/:4.3.3.BUILD-SNAPSHOT]
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)[spring-aop-4.3.3.BUILD-SNAPSHOT.jar!/:4.3.3.BUILD-SNAPSHOT]
      4. org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)[spring-aop-4.3.3.BUILD-SNAPSHOT.jar!/:4.3.3.BUILD-SNAPSHOT]
      5. org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)[spring-aop-4.3.3.BUILD-SNAPSHOT.jar!/:4.3.3.BUILD-SNAPSHOT]
      6. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.3.3.BUILD-SNAPSHOT.jar!/:4.3.3.BUILD-SNAPSHOT]
      7. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)[spring-aop-4.3.3.BUILD-SNAPSHOT.jar!/:4.3.3.BUILD-SNAPSHOT]
      7 frames
    5. com.sun.proxy
      $Proxy38.loadAll
      1. com.sun.proxy.$Proxy38.loadAll(Unknown Source)[na:na]
      1 frame
    6. Spring Data Neo4j
      Neo4jTemplate.loadAll
      1. org.springframework.data.neo4j.template.Neo4jTemplate.loadAll(Neo4jTemplate.java:100)[spring-data-neo4j-4.1.3.BUILD-SNAPSHOT.jar!/:na]
      1 frame
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_74]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_74]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_74]
      4. java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_74]
      4 frames
    8. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)[spring-aop-4.3.3.BUILD-SNAPSHOT.jar!/:4.3.3.BUILD-SNAPSHOT]
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)[spring-aop-4.3.3.BUILD-SNAPSHOT.jar!/:4.3.3.BUILD-SNAPSHOT]
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)[spring-aop-4.3.3.BUILD-SNAPSHOT.jar!/:4.3.3.BUILD-SNAPSHOT]
      3 frames
    9. Spring Tx
      PersistenceExceptionTranslationInterceptor.invoke
      1. org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:136)[spring-tx-4.3.3.BUILD-SNAPSHOT.jar!/:4.3.3.BUILD-SNAPSHOT]
      1 frame
    10. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.3.3.BUILD-SNAPSHOT.jar!/:4.3.3.BUILD-SNAPSHOT]
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)[spring-aop-4.3.3.BUILD-SNAPSHOT.jar!/:4.3.3.BUILD-SNAPSHOT]
      2 frames
    11. com.sun.proxy
      $Proxy41.loadAll
      1. com.sun.proxy.$Proxy41.loadAll(Unknown Source)[na:na]
      1 frame
    12. Spring Data Neo4j
      GraphRepositoryImpl.findAll
      1. org.springframework.data.neo4j.repository.GraphRepositoryImpl.findAll(GraphRepositoryImpl.java:125)[spring-data-neo4j-4.1.3.BUILD-SNAPSHOT.jar!/:na]
      2. org.springframework.data.neo4j.repository.GraphRepositoryImpl.findAll(GraphRepositoryImpl.java:120)[spring-data-neo4j-4.1.3.BUILD-SNAPSHOT.jar!/:na]
      2 frames
    13. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_74]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_74]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_74]
      4. java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_74]
      4 frames
    14. Spring Data Core
      RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke
      1. org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:503)[spring-data-commons-1.12.3.BUILD-SNAPSHOT.jar!/:na]
      2. org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:488)[spring-data-commons-1.12.3.BUILD-SNAPSHOT.jar!/:na]
      3. org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:460)[spring-data-commons-1.12.3.BUILD-SNAPSHOT.jar!/:na]
      3 frames
    15. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.3.3.BUILD-SNAPSHOT.jar!/:4.3.3.BUILD-SNAPSHOT]
      1 frame
    16. org.springframework.data
      DefaultMethodInvokingMethodInterceptor.invoke
      1. org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor.invoke(DefaultMethodInvokingMethodInterceptor.java:61)[spring-data-commons-1.12.3.BUILD-SNAPSHOT.jar!/:na]
      1 frame
    17. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.3.3.BUILD-SNAPSHOT.jar!/:4.3.3.BUILD-SNAPSHOT]
      1 frame
    18. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)[spring-tx-4.3.3.BUILD-SNAPSHOT.jar!/:4.3.3.BUILD-SNAPSHOT]
      2. org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:280)[spring-tx-4.3.3.BUILD-SNAPSHOT.jar!/:4.3.3.BUILD-SNAPSHOT]
      3. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)[spring-tx-4.3.3.BUILD-SNAPSHOT.jar!/:4.3.3.BUILD-SNAPSHOT]
      3 frames
    19. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.3.3.BUILD-SNAPSHOT.jar!/:4.3.3.BUILD-SNAPSHOT]
      1 frame
    20. Spring Tx
      PersistenceExceptionTranslationInterceptor.invoke
      1. org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:136)[spring-tx-4.3.3.BUILD-SNAPSHOT.jar!/:4.3.3.BUILD-SNAPSHOT]
      1 frame
    21. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.3.3.BUILD-SNAPSHOT.jar!/:4.3.3.BUILD-SNAPSHOT]
      2. org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)[spring-aop-4.3.3.BUILD-SNAPSHOT.jar!/:4.3.3.BUILD-SNAPSHOT]
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.3.3.BUILD-SNAPSHOT.jar!/:4.3.3.BUILD-SNAPSHOT]
      4. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)[spring-aop-4.3.3.BUILD-SNAPSHOT.jar!/:4.3.3.BUILD-SNAPSHOT]
      4 frames
    22. com.sun.proxy
      $Proxy43.findAll
      1. com.sun.proxy.$Proxy43.findAll(Unknown Source)[na:na]
      1 frame
    23. sample.data.neo4j
      SampleNeo4jApplication.run
      1. sample.data.neo4j.SampleNeo4jApplication.run(SampleNeo4jApplication.java:41)[classes!/:1.4.1.BUILD-SNAPSHOT]
      1 frame
    24. Spring Boot
      SpringApplication.run
      1. org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:798)[spring-boot-1.4.1.BUILD-SNAPSHOT.jar!/:1.4.1.BUILD-SNAPSHOT]
      2. org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:782)[spring-boot-1.4.1.BUILD-SNAPSHOT.jar!/:1.4.1.BUILD-SNAPSHOT]
      3. org.springframework.boot.SpringApplication.afterRefresh(SpringApplication.java:769)[spring-boot-1.4.1.BUILD-SNAPSHOT.jar!/:1.4.1.BUILD-SNAPSHOT]
      4. org.springframework.boot.SpringApplication.run(SpringApplication.java:314)[spring-boot-1.4.1.BUILD-SNAPSHOT.jar!/:1.4.1.BUILD-SNAPSHOT]
      5. org.springframework.boot.SpringApplication.run(SpringApplication.java:1185)[spring-boot-1.4.1.BUILD-SNAPSHOT.jar!/:1.4.1.BUILD-SNAPSHOT]
      6. org.springframework.boot.SpringApplication.run(SpringApplication.java:1174)[spring-boot-1.4.1.BUILD-SNAPSHOT.jar!/:1.4.1.BUILD-SNAPSHOT]
      6 frames
    25. sample.data.neo4j
      SampleNeo4jApplication.main
      1. sample.data.neo4j.SampleNeo4jApplication.main(SampleNeo4jApplication.java:59)[classes!/:1.4.1.BUILD-SNAPSHOT]
      1 frame
    26. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_74]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_74]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_74]
      4. java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_74]
      4 frames
    27. Spring Boot Loader
      JarLauncher.main
      1. org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)[spring-boot-sample-data-neo4j-1.4.1.BUILD-SNAPSHOT.jar:1.4.1.BUILD-SNAPSHOT]
      2. org.springframework.boot.loader.Launcher.launch(Launcher.java:87)[spring-boot-sample-data-neo4j-1.4.1.BUILD-SNAPSHOT.jar:1.4.1.BUILD-SNAPSHOT]
      3. org.springframework.boot.loader.Launcher.launch(Launcher.java:50)[spring-boot-sample-data-neo4j-1.4.1.BUILD-SNAPSHOT.jar:1.4.1.BUILD-SNAPSHOT]
      4. org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:58)[spring-boot-sample-data-neo4j-1.4.1.BUILD-SNAPSHOT.jar:1.4.1.BUILD-SNAPSHOT]
      4 frames