java.lang.NullPointerException

Kuali JIRA | Bryan Hutchinson | 9 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    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)

    Kuali JIRA | 9 years ago | Bryan Hutchinson
    java.lang.NullPointerException
  2. 0

    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)

    Kuali JIRA | 9 years ago | Bryan Hutchinson
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.kuali.core.dao.ojb.BusinessObjectDaoOjb.save()
    2. org.kuali.core
      BusinessObjectServiceImpl.save
      1. org.kuali.core.dao.ojb.BusinessObjectDaoOjb.save(BusinessObjectDaoOjb.java:187)
      2. org.kuali.core.service.impl.BusinessObjectServiceImpl.save(BusinessObjectServiceImpl.java:66)
      2 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    4. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:172)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:139)
      3 frames
    5. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
      1 frame
    6. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:203)
      2 frames
    7. Unknown
      $Proxy62.save
      1. $Proxy62.save(Unknown Source)
      1 frame
    8. org.kuali.kra
      ProposalDevelopmentProposalAction.save
      1. org.kuali.kra.kim.service.impl.ServiceBase.saveToDatabase(ServiceBase.java:87)
      2. org.kuali.kra.kim.service.impl.PersonServiceImpl.addQualifiedRole(PersonServiceImpl.java:174)
      3. org.kuali.kra.proposaldevelopment.service.impl.ProposalAuthorizationServiceImpl.addRole(ProposalAuthorizationServiceImpl.java:86)
      4. org.kuali.kra.proposaldevelopment.web.struts.action.ProposalDevelopmentAction.initializeProposalUsers(ProposalDevelopmentAction.java:308)
      5. org.kuali.kra.proposaldevelopment.web.struts.action.ProposalDevelopmentAction.save(ProposalDevelopmentAction.java:147)
      6. org.kuali.kra.proposaldevelopment.web.struts.action.ProposalDevelopmentProposalAction.save(ProposalDevelopmentProposalAction.java:66)
      6 frames