java.lang.NullPointerException

Spring JIRA | Lee Standen | 3 years ago
  1. 0

    Follows on from LDAP-296. After trying 2.0.1.RELEASE, I ran into another NPE. This is code which works fine when run normally through an IDE, but when packaged up using the Maven shade plugin, it fails with an NPE. {code} Exception in thread "main" java.lang.NullPointerException at org.springframework.ldap.odm.core.impl.DefaultObjectDirectoryMapper.verifyConversion(DefaultObjectDirectoryMapper.java:167) at org.springframework.ldap.odm.core.impl.DefaultObjectDirectoryMapper.addManagedClass(DefaultObjectDirectoryMapper.java:144) at org.springframework.ldap.odm.core.impl.DefaultObjectDirectoryMapper.getEntityData(DefaultObjectDirectoryMapper.java:107) at org.springframework.ldap.odm.core.impl.DefaultObjectDirectoryMapper.filterFor(DefaultObjectDirectoryMapper.java:447) at org.springframework.ldap.core.LdapTemplate.find(LdapTemplate.java:1824) at org.springframework.ldap.core.LdapTemplate.find(LdapTemplate.java:1857) at org.springframework.ldap.repository.support.SimpleLdapRepository.findAll(SimpleLdapRepository.java:119) at org.springframework.ldap.repository.support.SimpleLdapRepository.findAll(SimpleLdapRepository.java:43) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:344) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:329) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) at com.sun.proxy.$Proxy22.findAll(Unknown Source) at au.net.iinet.hris_ldap.service.LdapSyncService.buildPermissions(LdapSyncService.java:128) at au.net.iinet.hris_ldap.service.LdapSyncService.main(LdapSyncService.java:104) {code}

    Spring JIRA | 3 years ago | Lee Standen
    java.lang.NullPointerException
  2. 0

    Follows on from LDAP-296. After trying 2.0.1.RELEASE, I ran into another NPE. This is code which works fine when run normally through an IDE, but when packaged up using the Maven shade plugin, it fails with an NPE. {code} Exception in thread "main" java.lang.NullPointerException at org.springframework.ldap.odm.core.impl.DefaultObjectDirectoryMapper.verifyConversion(DefaultObjectDirectoryMapper.java:167) at org.springframework.ldap.odm.core.impl.DefaultObjectDirectoryMapper.addManagedClass(DefaultObjectDirectoryMapper.java:144) at org.springframework.ldap.odm.core.impl.DefaultObjectDirectoryMapper.getEntityData(DefaultObjectDirectoryMapper.java:107) at org.springframework.ldap.odm.core.impl.DefaultObjectDirectoryMapper.filterFor(DefaultObjectDirectoryMapper.java:447) at org.springframework.ldap.core.LdapTemplate.find(LdapTemplate.java:1824) at org.springframework.ldap.core.LdapTemplate.find(LdapTemplate.java:1857) at org.springframework.ldap.repository.support.SimpleLdapRepository.findAll(SimpleLdapRepository.java:119) at org.springframework.ldap.repository.support.SimpleLdapRepository.findAll(SimpleLdapRepository.java:43) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:344) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:329) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) at com.sun.proxy.$Proxy22.findAll(Unknown Source) at au.net.iinet.hris_ldap.service.LdapSyncService.buildPermissions(LdapSyncService.java:128) at au.net.iinet.hris_ldap.service.LdapSyncService.main(LdapSyncService.java:104) {code}

    Spring JIRA | 3 years ago | Lee Standen
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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

      No message provided

      at org.springframework.ldap.odm.core.impl.DefaultObjectDirectoryMapper.verifyConversion()
    2. spring-ldap-core
      SimpleLdapRepository.findAll
      1. org.springframework.ldap.odm.core.impl.DefaultObjectDirectoryMapper.verifyConversion(DefaultObjectDirectoryMapper.java:167)
      2. org.springframework.ldap.odm.core.impl.DefaultObjectDirectoryMapper.addManagedClass(DefaultObjectDirectoryMapper.java:144)
      3. org.springframework.ldap.odm.core.impl.DefaultObjectDirectoryMapper.getEntityData(DefaultObjectDirectoryMapper.java:107)
      4. org.springframework.ldap.odm.core.impl.DefaultObjectDirectoryMapper.filterFor(DefaultObjectDirectoryMapper.java:447)
      5. org.springframework.ldap.core.LdapTemplate.find(LdapTemplate.java:1824)
      6. org.springframework.ldap.core.LdapTemplate.find(LdapTemplate.java:1857)
      7. org.springframework.ldap.repository.support.SimpleLdapRepository.findAll(SimpleLdapRepository.java:119)
      8. org.springframework.ldap.repository.support.SimpleLdapRepository.findAll(SimpleLdapRepository.java:43)
      8 frames
    3. 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:483)
      4 frames
    4. Spring Data Core
      RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke
      1. org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:344)
      2. org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:329)
      2 frames
    5. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
      2 frames
    6. com.sun.proxy
      $Proxy22.findAll
      1. com.sun.proxy.$Proxy22.findAll(Unknown Source)
      1 frame
    7. au.net.iinet
      LdapSyncService.main
      1. au.net.iinet.hris_ldap.service.LdapSyncService.buildPermissions(LdapSyncService.java:128)
      2. au.net.iinet.hris_ldap.service.LdapSyncService.main(LdapSyncService.java:104)
      2 frames