org.springframework.dao.InvalidDataAccessApiUsageException: An instance of a null PK has been incorrectly provided for this find operation.; nested exception is java.lang.IllegalArgumentException: An instance of a null PK has been incorrectly provided for this find operation.

Kuali JIRA | Erik Meade | 3 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Abbreviated test name: RuleTemplateDefaultsTest.testAllTrueOptionsInTestRuleTemplate Full test name: org.kuali.rice.kew.rule.RuleTemplateDefaultsTest.testAllTrueOptionsInTestRuleTemplate Test results url: http://ci.rice.kuali.org/job/rice-2.5-test-integration-mysql/lastCompletedBuild/testReport/org.kuali.rice.kew.rule/RuleTemplateDefaultsTest/testAllTrueOptionsInTestRuleTemplate/ {code} org.springframework.dao.InvalidDataAccessApiUsageException: An instance of a null PK has been incorrectly provided for this find operation.; nested exception is java.lang.IllegalArgumentException: An instance of a null PK has been incorrectly provided for this find operation. at org.eclipse.persistence.internal.jpa.EntityManagerImpl.findInternal(EntityManagerImpl.java:775) at org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:719) at org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:588) at sun.reflect.GeneratedMethodAccessor419.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:366) at com.sun.proxy.$Proxy44.find(Unknown Source) at sun.reflect.GeneratedMethodAccessor419.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:241) at com.sun.proxy.$Proxy44.find(Unknown Source) at org.kuali.rice.krad.data.jpa.JpaPersistenceProvider$2.call(JpaPersistenceProvider.java:213) at org.kuali.rice.krad.data.jpa.JpaPersistenceProvider.doWithExceptionTranslation(JpaPersistenceProvider.java:364) at org.kuali.rice.krad.data.jpa.JpaPersistenceProvider.find(JpaPersistenceProvider.java:198) at sun.reflect.GeneratedMethodAccessor425.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) 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$1.proceedWithInvocation(TransactionInterceptor.java:96) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy46.find(Unknown Source) at org.kuali.rice.krad.data.provider.impl.ProviderBasedDataObjectService.find(ProviderBasedDataObjectService.java:64) at org.kuali.rice.krad.service.impl.DocumentHeaderServiceImpl.getDocumentHeaderById(DocumentHeaderServiceImpl.java:38) at org.kuali.rice.krad.document.DocumentBase.getDocumentHeader(DocumentBase.java:411) at org.kuali.rice.kew.rule.RuleTemplateDefaultsTest.createNewKualiMaintenanceForm(RuleTemplateDefaultsTest.java:68) at org.kuali.rice.kew.rule.RuleTemplateDefaultsTest.testAllTrueOptionsInTestRuleTemplate(RuleTemplateDefaultsTest.java:111) {code} Abbreviated test name: RuleTemplateDefaultsTest.testCorrectKeyValuesReturnedBasedOnKualiFormInstance Full test name: org.kuali.rice.kew.rule.RuleTemplateDefaultsTest.testCorrectKeyValuesReturnedBasedOnKualiFormInstance Test results url: http://ci.rice.kuali.org/job/rice-2.5-test-integration-mysql/lastCompletedBuild/testReport/org.kuali.rice.kew.rule/RuleTemplateDefaultsTest/testCorrectKeyValuesReturnedBasedOnKualiFormInstance/ Abbreviated test name: RuleTemplateDefaultsTest.testOptionsInRT_ValidRuleTemplatesWithVaryingDefaults Full test name: org.kuali.rice.kew.rule.RuleTemplateDefaultsTest.testOptionsInRT_ValidRuleTemplatesWithVaryingDefaults Test results url: http://ci.rice.kuali.org/job/rice-2.5-test-integration-mysql/lastCompletedBuild/testReport/org.kuali.rice.kew.rule/RuleTemplateDefaultsTest/testOptionsInRT_ValidRuleTemplatesWithVaryingDefaults/

    Kuali JIRA | 3 years ago | Erik Meade
    org.springframework.dao.InvalidDataAccessApiUsageException: An instance of a null PK has been incorrectly provided for this find operation.; nested exception is java.lang.IllegalArgumentException: An instance of a null PK has been incorrectly provided for this find operation.

    Root Cause Analysis

    1. org.springframework.dao.InvalidDataAccessApiUsageException

      An instance of a null PK has been incorrectly provided for this find operation.; nested exception is java.lang.IllegalArgumentException: An instance of a null PK has been incorrectly provided for this find operation.

      at org.eclipse.persistence.internal.jpa.EntityManagerImpl.findInternal()
    2. EclipseLink (non-OSGi)
      EntityManagerImpl.find
      1. org.eclipse.persistence.internal.jpa.EntityManagerImpl.findInternal(EntityManagerImpl.java:775)
      2. org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:719)
      3. org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:588)
      3 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor419.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:601)
      3 frames
    4. Spring ORM
      ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke
      1. org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:366)
      1 frame
    5. com.sun.proxy
      $Proxy44.find
      1. com.sun.proxy.$Proxy44.find(Unknown Source)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor419.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:601)
      3 frames
    7. Spring ORM
      SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke
      1. org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:241)
      1 frame
    8. com.sun.proxy
      $Proxy44.find
      1. com.sun.proxy.$Proxy44.find(Unknown Source)
      1 frame
    9. org.kuali.rice
      JpaPersistenceProvider.find
      1. org.kuali.rice.krad.data.jpa.JpaPersistenceProvider$2.call(JpaPersistenceProvider.java:213)
      2. org.kuali.rice.krad.data.jpa.JpaPersistenceProvider.doWithExceptionTranslation(JpaPersistenceProvider.java:364)
      3. org.kuali.rice.krad.data.jpa.JpaPersistenceProvider.find(JpaPersistenceProvider.java:198)
      3 frames
    10. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor425.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:601)
      3 frames
    11. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      3 frames
    12. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
      2. org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
      3. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
      3 frames
    13. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      2 frames
    14. com.sun.proxy
      $Proxy46.find
      1. com.sun.proxy.$Proxy46.find(Unknown Source)
      1 frame
    15. org.kuali.rice
      RuleTemplateDefaultsTest.testAllTrueOptionsInTestRuleTemplate
      1. org.kuali.rice.krad.data.provider.impl.ProviderBasedDataObjectService.find(ProviderBasedDataObjectService.java:64)
      2. org.kuali.rice.krad.service.impl.DocumentHeaderServiceImpl.getDocumentHeaderById(DocumentHeaderServiceImpl.java:38)
      3. org.kuali.rice.krad.document.DocumentBase.getDocumentHeader(DocumentBase.java:411)
      4. org.kuali.rice.kew.rule.RuleTemplateDefaultsTest.createNewKualiMaintenanceForm(RuleTemplateDefaultsTest.java:68)
      5. org.kuali.rice.kew.rule.RuleTemplateDefaultsTest.testAllTrueOptionsInTestRuleTemplate(RuleTemplateDefaultsTest.java:111)
      5 frames