java.lang.NullPointerException: cache for that branch (1) does not exist

Kuali JIRA | Mike Riley | 4 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

    Unit test KmsDocumentServiceTest.testGetReferences(...) fails intermittently (~ 3 of 6 runs) on my machine. I think the following exception stack dump looks like it is related: I found this exception stack in the console log ...indicating the ingestion failed with "cache for that branch (1) does not exist": 2013-02-07 10:42:10,144 [main:] ERROR org.kuali.kits.kms.repository.batch.BatchUtils.storeBatchException() :: org.kuali.kits.kms.repository.BatchException [RUNTIME_EXCEPTION] trunk/ditavals/kbstaff.ditaval : java.lang.NullPointerException: cache for that branch (1) does not exist java.lang.NullPointerException: cache for that branch (1) does not exist at org.kuali.kits.kms.audience.AudienceService.getCacheEntry(AudienceService.java:1038) at org.kuali.kits.kms.audience.AudienceService.verifyDitaVal(AudienceService.java:1516) at org.kuali.kits.kms.audience.AudienceService.verifyDitaVal(AudienceService.java:1511) at org.kuali.kits.kms.audience.AudienceService.verify(AudienceService.java:1376) at org.kuali.kits.kms.document.validation.KmsValidation.checkSingle(KmsValidation.java:168) at org.kuali.kits.kms.document.validation.KmsValidation.check(KmsValidation.java:127) at org.kuali.kits.kms.repository.RepositoryPollerTask.getAndValidateContent(RepositoryPollerTask.java:857) at org.kuali.kits.kms.repository.RepositoryPollerTask.addOrModifyDocumentFromSvn(RepositoryPollerTask.java:417) at org.kuali.kits.kms.repository.RepositoryPollerTask.ingestTestDocument(RepositoryPollerTask.java:1730) at org.kuali.kits.kms.repository.RepositoryPoller.ingestTestDocument(RepositoryPoller.java:445) at org.kuali.kits.kms.repository.RepositoryPoller.ingestTestDocument(RepositoryPoller.java:325) at org.kuali.kits.kms.document.test.KmsDocumentServiceTest.ingest(KmsDocumentServiceTest.java:189) at org.kuali.kits.kms.document.test.KmsDocumentServiceTest.testGetReferences(KmsDocumentServiceTest.java:89) 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:597) at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:66) at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:105) at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:86) at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:94) at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:84) at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:49) at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:98) at org.kuali.rice.test.runners.RiceUnitTestClassRunner.invokeTestMethod(RiceUnitTestClassRunner.java:44) at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:61) at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:54) at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:34) at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:44) at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:52) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) 2013-02-07 10:42:10,150 [main:] ERROR org.kuali.kits.kms.document.test.KmsDocumentServiceTest.ingest() :: Could not ingest document. org.kuali.kits.kms.repository.BatchException [RUNTIME_EXCEPTION] trunk/ditavals/kbstaff.ditaval : java.lang.NullPointerException: cache for that branch (1) does not exist at org.kuali.kits.kms.repository.RepositoryPollerTask.ingestTestDocument(RepositoryPollerTask.java:1734) at org.kuali.kits.kms.repository.RepositoryPoller.ingestTestDocument(RepositoryPoller.java:445) at org.kuali.kits.kms.repository.RepositoryPoller.ingestTestDocument(RepositoryPoller.java:325) at org.kuali.kits.kms.document.test.KmsDocumentServiceTest.ingest(KmsDocumentServiceTest.java:189) at org.kuali.kits.kms.document.test.KmsDocumentServiceTest.testGetReferences(KmsDocumentServiceTest.java:89) 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:597) at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:66) at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:105) at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:86) at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:94) at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:84) at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:49) at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:98) at org.kuali.rice.test.runners.RiceUnitTestClassRunner.invokeTestMethod(RiceUnitTestClassRunner.java:44) at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:61) at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:54) at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:34) at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:44) at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:52) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: java.lang.NullPointerException: cache for that branch (1) does not exist at org.kuali.kits.kms.audience.AudienceService.getCacheEntry(AudienceService.java:1038) at org.kuali.kits.kms.audience.AudienceService.verifyDitaVal(AudienceService.java:1516) at org.kuali.kits.kms.audience.AudienceService.verifyDitaVal(AudienceService.java:1511) at org.kuali.kits.kms.audience.AudienceService.verify(AudienceService.java:1376) at org.kuali.kits.kms.document.validation.KmsValidation.checkSingle(KmsValidation.java:168) at org.kuali.kits.kms.document.validation.KmsValidation.check(KmsValidation.java:127) at org.kuali.kits.kms.repository.RepositoryPollerTask.getAndValidateContent(RepositoryPollerTask.java:857) at org.kuali.kits.kms.repository.RepositoryPollerTask.addOrModifyDocumentFromSvn(RepositoryPollerTask.java:417) at org.kuali.kits.kms.repository.RepositoryPollerTask.ingestTestDocument(RepositoryPollerTask.java:1730) ... 27 more

    Kuali JIRA | 4 years ago | Mike Riley
    java.lang.NullPointerException: cache for that branch (1) does not exist
  2. 0

    Unit test KmsDocumentServiceTest.testGetReferences(...) fails intermittently (~ 3 of 6 runs) on my machine. I think the following exception stack dump looks like it is related: I found this exception stack in the console log ...indicating the ingestion failed with "cache for that branch (1) does not exist": 2013-02-07 10:42:10,144 [main:] ERROR org.kuali.kits.kms.repository.batch.BatchUtils.storeBatchException() :: org.kuali.kits.kms.repository.BatchException [RUNTIME_EXCEPTION] trunk/ditavals/kbstaff.ditaval : java.lang.NullPointerException: cache for that branch (1) does not exist java.lang.NullPointerException: cache for that branch (1) does not exist at org.kuali.kits.kms.audience.AudienceService.getCacheEntry(AudienceService.java:1038) at org.kuali.kits.kms.audience.AudienceService.verifyDitaVal(AudienceService.java:1516) at org.kuali.kits.kms.audience.AudienceService.verifyDitaVal(AudienceService.java:1511) at org.kuali.kits.kms.audience.AudienceService.verify(AudienceService.java:1376) at org.kuali.kits.kms.document.validation.KmsValidation.checkSingle(KmsValidation.java:168) at org.kuali.kits.kms.document.validation.KmsValidation.check(KmsValidation.java:127) at org.kuali.kits.kms.repository.RepositoryPollerTask.getAndValidateContent(RepositoryPollerTask.java:857) at org.kuali.kits.kms.repository.RepositoryPollerTask.addOrModifyDocumentFromSvn(RepositoryPollerTask.java:417) at org.kuali.kits.kms.repository.RepositoryPollerTask.ingestTestDocument(RepositoryPollerTask.java:1730) at org.kuali.kits.kms.repository.RepositoryPoller.ingestTestDocument(RepositoryPoller.java:445) at org.kuali.kits.kms.repository.RepositoryPoller.ingestTestDocument(RepositoryPoller.java:325) at org.kuali.kits.kms.document.test.KmsDocumentServiceTest.ingest(KmsDocumentServiceTest.java:189) at org.kuali.kits.kms.document.test.KmsDocumentServiceTest.testGetReferences(KmsDocumentServiceTest.java:89) 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:597) at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:66) at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:105) at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:86) at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:94) at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:84) at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:49) at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:98) at org.kuali.rice.test.runners.RiceUnitTestClassRunner.invokeTestMethod(RiceUnitTestClassRunner.java:44) at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:61) at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:54) at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:34) at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:44) at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:52) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) 2013-02-07 10:42:10,150 [main:] ERROR org.kuali.kits.kms.document.test.KmsDocumentServiceTest.ingest() :: Could not ingest document. org.kuali.kits.kms.repository.BatchException [RUNTIME_EXCEPTION] trunk/ditavals/kbstaff.ditaval : java.lang.NullPointerException: cache for that branch (1) does not exist at org.kuali.kits.kms.repository.RepositoryPollerTask.ingestTestDocument(RepositoryPollerTask.java:1734) at org.kuali.kits.kms.repository.RepositoryPoller.ingestTestDocument(RepositoryPoller.java:445) at org.kuali.kits.kms.repository.RepositoryPoller.ingestTestDocument(RepositoryPoller.java:325) at org.kuali.kits.kms.document.test.KmsDocumentServiceTest.ingest(KmsDocumentServiceTest.java:189) at org.kuali.kits.kms.document.test.KmsDocumentServiceTest.testGetReferences(KmsDocumentServiceTest.java:89) 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:597) at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:66) at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:105) at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:86) at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:94) at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:84) at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:49) at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:98) at org.kuali.rice.test.runners.RiceUnitTestClassRunner.invokeTestMethod(RiceUnitTestClassRunner.java:44) at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:61) at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:54) at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:34) at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:44) at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:52) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: java.lang.NullPointerException: cache for that branch (1) does not exist at org.kuali.kits.kms.audience.AudienceService.getCacheEntry(AudienceService.java:1038) at org.kuali.kits.kms.audience.AudienceService.verifyDitaVal(AudienceService.java:1516) at org.kuali.kits.kms.audience.AudienceService.verifyDitaVal(AudienceService.java:1511) at org.kuali.kits.kms.audience.AudienceService.verify(AudienceService.java:1376) at org.kuali.kits.kms.document.validation.KmsValidation.checkSingle(KmsValidation.java:168) at org.kuali.kits.kms.document.validation.KmsValidation.check(KmsValidation.java:127) at org.kuali.kits.kms.repository.RepositoryPollerTask.getAndValidateContent(RepositoryPollerTask.java:857) at org.kuali.kits.kms.repository.RepositoryPollerTask.addOrModifyDocumentFromSvn(RepositoryPollerTask.java:417) at org.kuali.kits.kms.repository.RepositoryPollerTask.ingestTestDocument(RepositoryPollerTask.java:1730) ... 27 more

    Kuali JIRA | 4 years ago | Mike Riley
    java.lang.NullPointerException: cache for that branch (1) does not exist

    Root Cause Analysis

    1. java.lang.NullPointerException

      cache for that branch (1) does not exist

      at org.kuali.kits.kms.audience.AudienceService.getCacheEntry()
    2. org.kuali.kits
      KmsDocumentServiceTest.testGetReferences
      1. org.kuali.kits.kms.audience.AudienceService.getCacheEntry(AudienceService.java:1038)
      2. org.kuali.kits.kms.audience.AudienceService.verifyDitaVal(AudienceService.java:1516)
      3. org.kuali.kits.kms.audience.AudienceService.verifyDitaVal(AudienceService.java:1511)
      4. org.kuali.kits.kms.audience.AudienceService.verify(AudienceService.java:1376)
      5. org.kuali.kits.kms.document.validation.KmsValidation.checkSingle(KmsValidation.java:168)
      6. org.kuali.kits.kms.document.validation.KmsValidation.check(KmsValidation.java:127)
      7. org.kuali.kits.kms.repository.RepositoryPollerTask.getAndValidateContent(RepositoryPollerTask.java:857)
      8. org.kuali.kits.kms.repository.RepositoryPollerTask.addOrModifyDocumentFromSvn(RepositoryPollerTask.java:417)
      9. org.kuali.kits.kms.repository.RepositoryPollerTask.ingestTestDocument(RepositoryPollerTask.java:1730)
      10. org.kuali.kits.kms.repository.RepositoryPoller.ingestTestDocument(RepositoryPoller.java:445)
      11. org.kuali.kits.kms.repository.RepositoryPoller.ingestTestDocument(RepositoryPoller.java:325)
      12. org.kuali.kits.kms.document.test.KmsDocumentServiceTest.ingest(KmsDocumentServiceTest.java:189)
      13. org.kuali.kits.kms.document.test.KmsDocumentServiceTest.testGetReferences(KmsDocumentServiceTest.java:89)
      13 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:597)
      4 frames
    4. JUnit
      JUnit4ClassRunner.invokeTestMethod
      1. org.junit.internal.runners.TestMethod.invoke(TestMethod.java:66)
      2. org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:105)
      3. org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:86)
      4. org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:94)
      5. org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:84)
      6. org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:49)
      7. org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:98)
      7 frames
    5. org.kuali.rice
      RiceUnitTestClassRunner.invokeTestMethod
      1. org.kuali.rice.test.runners.RiceUnitTestClassRunner.invokeTestMethod(RiceUnitTestClassRunner.java:44)
      1 frame
    6. JUnit
      JUnit4ClassRunner.run
      1. org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:61)
      2. org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:54)
      3. org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:34)
      4. org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:44)
      5. org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:52)
      5 frames
    7. JUnit4 Runner
      JUnit4TestReference.run
      1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
      1 frame
    8. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
      4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
      5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
      5 frames