sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konrad Windszus <konra...@gmx.de>
Subject NPE in Oak with PaxExam IT
Date Fri, 08 Dec 2017 16:28:27 GMT
I see the following error when executing a test with paxexam

org.ops4j.pax.exam.TestContainerException: There are unresolved bundles. See previous ERROR
log messages for details.

The testing.log exposes only one error, namely

2017-12-08 17:20:00,138 ERROR [Apache Sling Repository Startup Thread] o.a.s.j.o.s.i.OakSlingRepositoryManager
[AbstractSlingRepositoryManager.java : 499] start: Uncaught Throwable trying to access Repository,
calling stopRepository()
java.lang.NullPointerException: null
	at org.apache.jackrabbit.oak.plugins.index.property.Multiplexers.getStrategies(Multiplexers.java:75)
	at org.apache.jackrabbit.oak.plugins.index.property.Multiplexers.getStrategies(Multiplexers.java:62)
	at org.apache.jackrabbit.oak.plugins.index.property.PropertyIndexEditor.getStrategies(PropertyIndexEditor.java:220)
	at org.apache.jackrabbit.oak.plugins.index.property.PropertyIndexEditor.updateIndex(PropertyIndexEditor.java:286)
	at org.apache.jackrabbit.oak.plugins.index.property.PropertyIndexEditor.leave(PropertyIndexEditor.java:239)
	at org.apache.jackrabbit.oak.spi.commit.CompositeEditor.leave(CompositeEditor.java:74)
	at org.apache.jackrabbit.oak.spi.commit.ProgressNotificationEditor.leave(ProgressNotificationEditor.java:76)
	at org.apache.jackrabbit.oak.spi.commit.VisibleEditor.leave(VisibleEditor.java:63)
	at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeAdded(EditorDiff.java:130)
	at org.apache.jackrabbit.oak.plugins.memory.EmptyNodeState.compareAgainstEmptyState(EmptyNodeState.java:161)
	at org.apache.jackrabbit.oak.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:461)
	at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeAdded(EditorDiff.java:125)
	at org.apache.jackrabbit.oak.plugins.memory.EmptyNodeState.compareAgainstEmptyState(EmptyNodeState.java:161)
	at org.apache.jackrabbit.oak.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:461)
	at org.apache.jackrabbit.oak.spi.commit.EditorDiff.process(EditorDiff.java:52)
	at org.apache.jackrabbit.oak.plugins.index.IndexUpdate.enter(IndexUpdate.java:169)
	at org.apache.jackrabbit.oak.spi.commit.VisibleEditor.enter(VisibleEditor.java:57)
	at org.apache.jackrabbit.oak.spi.commit.EditorDiff.process(EditorDiff.java:49)
	at org.apache.jackrabbit.oak.spi.commit.EditorHook.processCommit(EditorHook.java:54)
	at org.apache.jackrabbit.oak.spi.commit.CompositeHook.processCommit(CompositeHook.java:61)
	at org.apache.jackrabbit.oak.segment.SegmentNodeStore$Commit.prepare(SegmentNodeStore.java:603)
	at org.apache.jackrabbit.oak.segment.SegmentNodeStore$Commit.optimisticMerge(SegmentNodeStore.java:634)
	at org.apache.jackrabbit.oak.segment.SegmentNodeStore$Commit.execute(SegmentNodeStore.java:690)
	at org.apache.jackrabbit.oak.segment.SegmentNodeStore.merge(SegmentNodeStore.java:334)
	at org.apache.jackrabbit.oak.spi.lifecycle.OakInitializer.initialize(OakInitializer.java:52)
	at org.apache.jackrabbit.oak.Oak.createNewContentRepository(Oak.java:636)
	at org.apache.jackrabbit.oak.Oak.createContentRepository(Oak.java:624)
	at org.apache.jackrabbit.oak.jcr.Jcr.createContentRepository(Jcr.java:386)
	at org.apache.sling.jcr.oak.server.internal.OakSlingRepositoryManager.acquireRepository(OakSlingRepositoryManager.java:170)
	at org.apache.sling.jcr.base.AbstractSlingRepositoryManager.initializeAndRegisterRepositoryService(AbstractSlingRepositoryManager.java:471)
	at org.apache.sling.jcr.base.AbstractSlingRepositoryManager.access$300(AbstractSlingRepositoryManager.java:85)
	at org.apache.sling.jcr.base.AbstractSlingRepositoryManager$4.run(AbstractSlingRepositoryManager.java:455)


This happens in a slightly modified https://github.com/apache/sling-org-apache-sling-validation-core/blob/master/src/test/java/org/apache/sling/validation/impl/it/tests/ValidationServiceIT.java.

Has anyone ever seen this before?
What else do I need to configure for PaxExam to make Oak come up successfully?

Thanks,
Konrad
 




Mime
View raw message