java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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}
    via by Jonathan Keller,
  • 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}
    via by Jonathan Keller,
    • 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)
    No Bugmate found.