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.

  • 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
    via by Mike Riley,
  • 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
    via by Mike Riley,
    • 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
    No Bugmate found.