[
https://jira.jboss.org/jira/browse/DNA-617?page=com.atlassian.jira.plugin...
]
Randall Hauch updated DNA-617:
------------------------------
Attachment: DNA-617_FixForNPE.patch
I've attached a very simple patch to fix the NPE in the search indexer (in the case
when there isn't even a root in the source), but once I apply this I'm getting
other errors in the basic JPA connector (see stack trace that follows). I'm not sure
why this might be happening, but I haven't had time to investigate. I did want to post
the fix for the NPE, though.
java.lang.IllegalArgumentException: The actual location of </{}testroot/{}node1[2]
&& [{http://www.jboss.org/dna/1.0}uuid = 656a90cd-1703-440d-b4f2-19280cf20c57]>
is not equal to the current location of </{}testroot/{}node1[3] &&
[{http://www.jboss.org/dna/1.0}uuid = 656a90cd-1703-440d-b4f2-19280cf20c57]>
at
org.jboss.dna.graph.request.ReadNodeRequest.setActualLocationOfNode(ReadNodeRequest.java:263)
at
org.jboss.dna.connector.store.jpa.model.basic.BasicRequestProcessor.process(BasicRequestProcessor.java:519)
at
org.jboss.dna.graph.request.processor.RequestProcessor.process(RequestProcessor.java:243)
at
org.jboss.dna.graph.request.processor.RequestProcessor.process(RequestProcessor.java:314)
at
org.jboss.dna.graph.request.processor.RequestProcessor.process(RequestProcessor.java:223)
at
org.jboss.dna.connector.store.jpa.model.basic.BasicJpaConnection.execute(BasicJpaConnection.java:154)
at
org.jboss.dna.graph.connector.RepositoryConnectionPool$ConnectionWrapper.execute(RepositoryConnectionPool.java:996)
at
org.jboss.dna.graph.request.CompositeRequestChannel$2.call(CompositeRequestChannel.java:193)
at
org.jboss.dna.graph.request.CompositeRequestChannel$2.call(CompositeRequestChannel.java:183)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:637)
NPE while updating indexes (during integration tests)
-----------------------------------------------------
Key: DNA-617
URL:
https://jira.jboss.org/jira/browse/DNA-617
Project: DNA
Issue Type: Bug
Components: JCR, Query, Search
Affects Versions: 0.7
Reporter: Randall Hauch
Assignee: Brian Carothers
Priority: Blocker
Fix For: 0.7
Attachments: DNA-617_FixForNPE.patch
This happened on the nightly integration tests, but did not happen during the continuous
integration tests. So while I'm not sure how repeatable it is, there is at least a
stack trace:
java.lang.IllegalStateException: Failed to initialize the repository with text content.
at org.jboss.dna.jcr.DnaRepositoryStub.configureRepository(DnaRepositoryStub.java:140)
at org.jboss.dna.jcr.DnaRepositoryStub.getRepository(DnaRepositoryStub.java:157)
at org.jboss.dna.jcr.DnaRepositoryStub.getRepository(DnaRepositoryStub.java:41)
at org.apache.jackrabbit.test.RepositoryHelper.getRepository(RepositoryHelper.java:68)
at org.apache.jackrabbit.test.RepositoryHelper.getProperty(RepositoryHelper.java:150)
at org.apache.jackrabbit.test.AbstractJCRTest.getProperty(AbstractJCRTest.java:442)
at org.apache.jackrabbit.test.AbstractJCRTest.setUp(AbstractJCRTest.java:264)
at org.apache.jackrabbit.test.api.RootNodeTest.setUp(RootNodeTest.java:47)
at junit.framework.TestCase.runBare(TestCase.java:132)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at org.apache.jackrabbit.test.AbstractJCRTest.run(AbstractJCRTest.java:406)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: java.lang.NullPointerException
at
org.jboss.dna.graph.search.SearchEngineIndexer.indexSubgraph(SearchEngineIndexer.java:294)
at org.jboss.dna.graph.search.SearchEngineIndexer.index(SearchEngineIndexer.java:227)
at org.jboss.dna.graph.search.SearchEngineIndexer.index(SearchEngineIndexer.java:135)
at
org.jboss.dna.jcr.RepositoryQueryManager$SelfContained.reindexContent(RepositoryQueryManager.java:334)
at
org.jboss.dna.jcr.RepositoryQueryManager$SelfContained.<init>(RepositoryQueryManager.java:292)
at org.jboss.dna.jcr.JcrRepository.<init>(JcrRepository.java:593)
at org.jboss.dna.jcr.JcrEngine.doCreateJcrRepository(JcrEngine.java:257)
at org.jboss.dna.jcr.JcrEngine.getRepository(JcrEngine.java:175)
at org.jboss.dna.jcr.DnaRepositoryStub.configureRepository(DnaRepositoryStub.java:120)
at org.jboss.dna.jcr.DnaRepositoryStub.getRepository(DnaRepositoryStub.java:157)
at org.jboss.dna.jcr.DnaRepositoryStub.getRepository(DnaRepositoryStub.java:41)
at org.apache.jackrabbit.test.RepositoryHelper.getRepository(RepositoryHelper.java:68)
at org.apache.jackrabbit.test.RepositoryHelper.getProperty(RepositoryHelper.java:150)
at org.apache.jackrabbit.test.AbstractJCRTest.getProperty(AbstractJCRTest.java:442)
at org.apache.jackrabbit.test.AbstractJCRTest.setUp(AbstractJCRTest.java:264)
at org.apache.jackrabbit.test.api.RootNodeTest.setUp(RootNodeTest.java:47)
at junit.framework.TestCase.runBare(TestCase.java:132)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira