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.

  • This is on the rice-release-0-9-3-kra-br branch. it can be replicated using the KRA 093-rice branch at https://test.kuali.org/kra-dev2. When I try to save a document, I get the exception included at the bottom of this description. Line 187 of BusinessObjectDaoOjb reads: getOjbCollectionHelper().processCollections(this, bo, savedBo); The problem is that ojbCollectionHelper is null. It looks like ojbCollectionHelper is intended to injected, but it isn't wired up in KNSSpringBeans.xml: <bean id="businessObjectDao" parent="platformAwareDao" class="org.kuali.core.dao.ojb.BusinessObjectDaoOjb"> <property name="persistenceStructureService"> <ref bean="persistenceStructureService" /> </property> </bean> I checked Rice 092, and that line in BusinessObjectDaoOjb looks like this: KNSServiceLocator.getOjbCollectionHelper().processCollections(this, bo, savedBo); Anyways, it looks like there was a switch to dependency injection for 093 (seems like a good idea) but someone missed updating KNSSpringBeans.xml on a merge or something. java.lang.NullPointerException at org.kuali.core.dao.ojb.BusinessObjectDaoOjb.save(BusinessObjectDaoOjb.java:187) at org.kuali.core.service.impl.BusinessObjectServiceImpl.save(BusinessObjectServiceImpl.java:66) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:139) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:203) at $Proxy62.save(Unknown Source) at org.kuali.kra.kim.service.impl.ServiceBase.saveToDatabase(ServiceBase.java:87) at org.kuali.kra.kim.service.impl.PersonServiceImpl.addQualifiedRole(PersonServiceImpl.java:174) at org.kuali.kra.proposaldevelopment.service.impl.ProposalAuthorizationServiceImpl.addRole(ProposalAuthorizationServiceImpl.java:86) at org.kuali.kra.proposaldevelopment.web.struts.action.ProposalDevelopmentAction.initializeProposalUsers(ProposalDevelopmentAction.java:308) at org.kuali.kra.proposaldevelopment.web.struts.action.ProposalDevelopmentAction.save(ProposalDevelopmentAction.java:147) at org.kuali.kra.proposaldevelopment.web.struts.action.ProposalDevelopmentProposalAction.save(ProposalDevelopmentProposalAction.java:66)
    via by Bryan Hutchinson,
  • This is on the rice-release-0-9-3-kra-br branch. it can be replicated using the KRA 093-rice branch at https://test.kuali.org/kra-dev2. When I try to save a document, I get the exception included at the bottom of this description. Line 187 of BusinessObjectDaoOjb reads: getOjbCollectionHelper().processCollections(this, bo, savedBo); The problem is that ojbCollectionHelper is null. It looks like ojbCollectionHelper is intended to injected, but it isn't wired up in KNSSpringBeans.xml: <bean id="businessObjectDao" parent="platformAwareDao" class="org.kuali.core.dao.ojb.BusinessObjectDaoOjb"> <property name="persistenceStructureService"> <ref bean="persistenceStructureService" /> </property> </bean> I checked Rice 092, and that line in BusinessObjectDaoOjb looks like this: KNSServiceLocator.getOjbCollectionHelper().processCollections(this, bo, savedBo); Anyways, it looks like there was a switch to dependency injection for 093 (seems like a good idea) but someone missed updating KNSSpringBeans.xml on a merge or something. java.lang.NullPointerException at org.kuali.core.dao.ojb.BusinessObjectDaoOjb.save(BusinessObjectDaoOjb.java:187) at org.kuali.core.service.impl.BusinessObjectServiceImpl.save(BusinessObjectServiceImpl.java:66) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:139) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:203) at $Proxy62.save(Unknown Source) at org.kuali.kra.kim.service.impl.ServiceBase.saveToDatabase(ServiceBase.java:87) at org.kuali.kra.kim.service.impl.PersonServiceImpl.addQualifiedRole(PersonServiceImpl.java:174) at org.kuali.kra.proposaldevelopment.service.impl.ProposalAuthorizationServiceImpl.addRole(ProposalAuthorizationServiceImpl.java:86) at org.kuali.kra.proposaldevelopment.web.struts.action.ProposalDevelopmentAction.initializeProposalUsers(ProposalDevelopmentAction.java:308) at org.kuali.kra.proposaldevelopment.web.struts.action.ProposalDevelopmentAction.save(ProposalDevelopmentAction.java:147) at org.kuali.kra.proposaldevelopment.web.struts.action.ProposalDevelopmentProposalAction.save(ProposalDevelopmentProposalAction.java:66)
    via by Bryan Hutchinson,
    • java.lang.NullPointerException at org.kuali.core.dao.ojb.BusinessObjectDaoOjb.save(BusinessObjectDaoOjb.java:187) at org.kuali.core.service.impl.BusinessObjectServiceImpl.save(BusinessObjectServiceImpl.java:66) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:139) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:203) at $Proxy62.save(Unknown Source) at org.kuali.kra.kim.service.impl.ServiceBase.saveToDatabase(ServiceBase.java:87) at org.kuali.kra.kim.service.impl.PersonServiceImpl.addQualifiedRole(PersonServiceImpl.java:174) at org.kuali.kra.proposaldevelopment.service.impl.ProposalAuthorizationServiceImpl.addRole(ProposalAuthorizationServiceImpl.java:86) at org.kuali.kra.proposaldevelopment.web.struts.action.ProposalDevelopmentAction.initializeProposalUsers(ProposalDevelopmentAction.java:308) at org.kuali.kra.proposaldevelopment.web.struts.action.ProposalDevelopmentAction.save(ProposalDevelopmentAction.java:147) at org.kuali.kra.proposaldevelopment.web.struts.action.ProposalDevelopmentProposalAction.save(ProposalDevelopmentProposalAction.java:66)
    No Bugmate found.