java.lang.NullPointerException

Kuali JIRA | Jonathan Keller | 4 years ago
  1. 0

    We are having an intermittent problem in one of our unit tests that looks like a possible OJB issue. If it is occurring silently, it would also explain a set of tests which have never worked since moving to Rice 2.x. Essentially, it seems to be having problems within OJB resolving this method: {{org.kuali.rice.kew.engine.node.RouteNode.getPreviousNodeIds(RouteNode.java:480)}} This occurs from a permission check which is happening as part of converting a document to its "error correction" form. Virtually all of our error correction conversion tests are failing, as the document never completes routing. An exception of this nature within the routing threads would explain this. Does anyone have any idea how we would get an error like this in the PersistenceBrokerImpl on a intermittent basis? {noformat} <<< org.kuali.kfs.fp.document.PreEncumbranceDocumentTest.testConvertIntoErrorCorrection_invalidYear Stack Trace java.lang.NullPointerException at org.apache.ojb.broker.core.PersistenceBrokerImpl.getTopLevelClass(Unknown Source) at org.apache.ojb.broker.accesslayer.MtoNCollectionPrefetcher.associateBatched(Unknown Source) at org.apache.ojb.broker.accesslayer.MtoNCollectionPrefetcher.prefetchRelationship(Unknown Source) at org.apache.ojb.broker.core.QueryReferenceBroker$PBPrefetchingListener.prefetch(Unknown Source) at org.apache.ojb.broker.core.QueryReferenceBroker$PBCollectionProxyListener.beforeLoading(Unknown Source) at org.apache.ojb.broker.core.proxy.CollectionProxyDefaultImpl.beforeLoading(Unknown Source) at org.apache.ojb.broker.core.proxy.CollectionProxyDefaultImpl.getData(Unknown Source) at org.apache.ojb.broker.core.proxy.CollectionProxyDefaultImpl.iterator(Unknown Source) at org.kuali.rice.kew.engine.node.RouteNode.getPreviousNodeIds(RouteNode.java:480) at org.kuali.rice.kew.api.doctype.RouteNode$Builder.create(RouteNode.java:301) at org.kuali.rice.kew.api.doctype.ProcessDefinition$Builder.create(ProcessDefinition.java:163) at org.kuali.rice.kew.impl.doctype.DocumentTypeServiceImpl.getRoutePathForDocumentTypeName(DocumentTypeServiceImpl.java:236) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:58) at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:213) at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:66) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy135.getRoutePathForDocumentTypeName(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:58) at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:213) at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:66) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy136.getRoutePathForDocumentTypeName(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy136.getRoutePathForDocumentTypeName(Unknown Source) at org.kuali.rice.kns.document.authorization.DocumentAuthorizerBase.canSendAnyTypeAdHocRequests(DocumentAuthorizerBase.java:291) at org.kuali.rice.kns.document.authorization.DocumentAuthorizerBase.getDocumentActions(DocumentAuthorizerBase.java:117) at org.kuali.kfs.sys.document.authorization.FinancialSystemTransactionalDocumentAuthorizerBase.getDocumentActions(FinancialSystemTransactionalDocumentAuthorizerBase.java:49) at org.kuali.kfs.sec.document.authorization.SecTransactionalDocumentAuthorizer.getDocumentActions(SecTransactionalDocumentAuthorizer.java:122) at org.kuali.kfs.sys.document.FinancialSystemTransactionalDocumentBase.toErrorCorrection(FinancialSystemTransactionalDocumentBase.java:167) at org.kuali.kfs.sys.document.GeneralLedgerPostingDocumentBase.toErrorCorrection(GeneralLedgerPostingDocumentBase.java:161) at org.kuali.kfs.sys.document.AccountingDocumentBase.toErrorCorrection(AccountingDocumentBase.java:395) at org.kuali.kfs.sys.document.AccountingDocumentTestUtils.testConvertIntoErrorCorrection_invalidYear(AccountingDocumentTestUtils.java:161) at org.kuali.kfs.fp.document.PreEncumbranceDocumentTest.testConvertIntoErrorCorrection_invalidYear(PreEncumbranceDocumentTest.java:86) at org.kuali.kfs.sys.context.KualiTestBase.runBare(KualiTestBase.java:94) {noformat}

    Kuali JIRA | 4 years ago | Jonathan Keller
    java.lang.NullPointerException
  2. 0

    We are having an intermittent problem in one of our unit tests that looks like a possible OJB issue. If it is occurring silently, it would also explain a set of tests which have never worked since moving to Rice 2.x. Essentially, it seems to be having problems within OJB resolving this method: {{org.kuali.rice.kew.engine.node.RouteNode.getPreviousNodeIds(RouteNode.java:480)}} This occurs from a permission check which is happening as part of converting a document to its "error correction" form. Virtually all of our error correction conversion tests are failing, as the document never completes routing. An exception of this nature within the routing threads would explain this. Does anyone have any idea how we would get an error like this in the PersistenceBrokerImpl on a intermittent basis? {noformat} <<< org.kuali.kfs.fp.document.PreEncumbranceDocumentTest.testConvertIntoErrorCorrection_invalidYear Stack Trace java.lang.NullPointerException at org.apache.ojb.broker.core.PersistenceBrokerImpl.getTopLevelClass(Unknown Source) at org.apache.ojb.broker.accesslayer.MtoNCollectionPrefetcher.associateBatched(Unknown Source) at org.apache.ojb.broker.accesslayer.MtoNCollectionPrefetcher.prefetchRelationship(Unknown Source) at org.apache.ojb.broker.core.QueryReferenceBroker$PBPrefetchingListener.prefetch(Unknown Source) at org.apache.ojb.broker.core.QueryReferenceBroker$PBCollectionProxyListener.beforeLoading(Unknown Source) at org.apache.ojb.broker.core.proxy.CollectionProxyDefaultImpl.beforeLoading(Unknown Source) at org.apache.ojb.broker.core.proxy.CollectionProxyDefaultImpl.getData(Unknown Source) at org.apache.ojb.broker.core.proxy.CollectionProxyDefaultImpl.iterator(Unknown Source) at org.kuali.rice.kew.engine.node.RouteNode.getPreviousNodeIds(RouteNode.java:480) at org.kuali.rice.kew.api.doctype.RouteNode$Builder.create(RouteNode.java:301) at org.kuali.rice.kew.api.doctype.ProcessDefinition$Builder.create(ProcessDefinition.java:163) at org.kuali.rice.kew.impl.doctype.DocumentTypeServiceImpl.getRoutePathForDocumentTypeName(DocumentTypeServiceImpl.java:236) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:58) at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:213) at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:66) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy135.getRoutePathForDocumentTypeName(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:58) at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:213) at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:66) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy136.getRoutePathForDocumentTypeName(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy136.getRoutePathForDocumentTypeName(Unknown Source) at org.kuali.rice.kns.document.authorization.DocumentAuthorizerBase.canSendAnyTypeAdHocRequests(DocumentAuthorizerBase.java:291) at org.kuali.rice.kns.document.authorization.DocumentAuthorizerBase.getDocumentActions(DocumentAuthorizerBase.java:117) at org.kuali.kfs.sys.document.authorization.FinancialSystemTransactionalDocumentAuthorizerBase.getDocumentActions(FinancialSystemTransactionalDocumentAuthorizerBase.java:49) at org.kuali.kfs.sec.document.authorization.SecTransactionalDocumentAuthorizer.getDocumentActions(SecTransactionalDocumentAuthorizer.java:122) at org.kuali.kfs.sys.document.FinancialSystemTransactionalDocumentBase.toErrorCorrection(FinancialSystemTransactionalDocumentBase.java:167) at org.kuali.kfs.sys.document.GeneralLedgerPostingDocumentBase.toErrorCorrection(GeneralLedgerPostingDocumentBase.java:161) at org.kuali.kfs.sys.document.AccountingDocumentBase.toErrorCorrection(AccountingDocumentBase.java:395) at org.kuali.kfs.sys.document.AccountingDocumentTestUtils.testConvertIntoErrorCorrection_invalidYear(AccountingDocumentTestUtils.java:161) at org.kuali.kfs.fp.document.PreEncumbranceDocumentTest.testConvertIntoErrorCorrection_invalidYear(PreEncumbranceDocumentTest.java:86) at org.kuali.kfs.sys.context.KualiTestBase.runBare(KualiTestBase.java:94) {noformat}

    Kuali JIRA | 4 years ago | Jonathan Keller
    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.apache.ojb.broker.core.PersistenceBrokerImpl.getTopLevelClass()
    2. ObJectRelationalBridge
      CollectionProxyDefaultImpl.iterator
      1. org.apache.ojb.broker.core.PersistenceBrokerImpl.getTopLevelClass(Unknown Source)
      2. org.apache.ojb.broker.accesslayer.MtoNCollectionPrefetcher.associateBatched(Unknown Source)
      3. org.apache.ojb.broker.accesslayer.MtoNCollectionPrefetcher.prefetchRelationship(Unknown Source)
      4. org.apache.ojb.broker.core.QueryReferenceBroker$PBPrefetchingListener.prefetch(Unknown Source)
      5. org.apache.ojb.broker.core.QueryReferenceBroker$PBCollectionProxyListener.beforeLoading(Unknown Source)
      6. org.apache.ojb.broker.core.proxy.CollectionProxyDefaultImpl.beforeLoading(Unknown Source)
      7. org.apache.ojb.broker.core.proxy.CollectionProxyDefaultImpl.getData(Unknown Source)
      8. org.apache.ojb.broker.core.proxy.CollectionProxyDefaultImpl.iterator(Unknown Source)
      8 frames
    3. org.kuali.rice
      DocumentTypeServiceImpl.getRoutePathForDocumentTypeName
      1. org.kuali.rice.kew.engine.node.RouteNode.getPreviousNodeIds(RouteNode.java:480)
      2. org.kuali.rice.kew.api.doctype.RouteNode$Builder.create(RouteNode.java:301)
      3. org.kuali.rice.kew.api.doctype.ProcessDefinition$Builder.create(ProcessDefinition.java:163)
      4. org.kuali.rice.kew.impl.doctype.DocumentTypeServiceImpl.getRoutePathForDocumentTypeName(DocumentTypeServiceImpl.java:236)
      4 frames
    4. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      3 frames
    5. Spring Context
      CacheInterceptor.invoke
      1. org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:58)
      2. org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:213)
      3. org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:66)
      3 frames
    6. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
      2 frames
    7. Unknown
      $Proxy135.getRoutePathForDocumentTypeName
      1. $Proxy135.getRoutePathForDocumentTypeName(Unknown Source)
      1 frame
    8. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      3 frames
    9. Spring Context
      CacheInterceptor.invoke
      1. org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:58)
      2. org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:213)
      3. org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:66)
      3 frames
    10. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
      2 frames
    11. Unknown
      $Proxy136.getRoutePathForDocumentTypeName
      1. $Proxy136.getRoutePathForDocumentTypeName(Unknown Source)
      1 frame
    12. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      3 frames
    13. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
      1 frame
    14. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
      2 frames
    15. Unknown
      $Proxy136.getRoutePathForDocumentTypeName
      1. $Proxy136.getRoutePathForDocumentTypeName(Unknown Source)
      1 frame
    16. org.kuali.rice
      DocumentAuthorizerBase.getDocumentActions
      1. org.kuali.rice.kns.document.authorization.DocumentAuthorizerBase.canSendAnyTypeAdHocRequests(DocumentAuthorizerBase.java:291)
      2. org.kuali.rice.kns.document.authorization.DocumentAuthorizerBase.getDocumentActions(DocumentAuthorizerBase.java:117)
      2 frames
    17. org.kuali.kfs
      KualiTestBase.runBare
      1. org.kuali.kfs.sys.document.authorization.FinancialSystemTransactionalDocumentAuthorizerBase.getDocumentActions(FinancialSystemTransactionalDocumentAuthorizerBase.java:49)
      2. org.kuali.kfs.sec.document.authorization.SecTransactionalDocumentAuthorizer.getDocumentActions(SecTransactionalDocumentAuthorizer.java:122)
      3. org.kuali.kfs.sys.document.FinancialSystemTransactionalDocumentBase.toErrorCorrection(FinancialSystemTransactionalDocumentBase.java:167)
      4. org.kuali.kfs.sys.document.GeneralLedgerPostingDocumentBase.toErrorCorrection(GeneralLedgerPostingDocumentBase.java:161)
      5. org.kuali.kfs.sys.document.AccountingDocumentBase.toErrorCorrection(AccountingDocumentBase.java:395)
      6. org.kuali.kfs.sys.document.AccountingDocumentTestUtils.testConvertIntoErrorCorrection_invalidYear(AccountingDocumentTestUtils.java:161)
      7. org.kuali.kfs.fp.document.PreEncumbranceDocumentTest.testConvertIntoErrorCorrection_invalidYear(PreEncumbranceDocumentTest.java:86)
      8. org.kuali.kfs.sys.context.KualiTestBase.runBare(KualiTestBase.java:94)
      8 frames