Hello,
We are in the process of migrating from Sling6 to Sling10 (Sling11 came
out after we started the initiative). One of the upgrades is moving from
Jackrabbit 2 to Jackrabbit Oak. We've modeled ourselves after the
Sling10 starter war. The starter war uses Oak 1.6.8 so we started with
that. Unfortunately a bug fixed in Oak 1.10.0
<https://issues.apache.org/jira/browse/OAK-7778> means we have to
migrate from Oak 1.6.8 to 1.10.0. Mostly this was just dealing with the
broken apart modules of Oak and including the proper artifacts. For this
I tried to cross reference with the starter of sling11 which had already
migrated to Oak 1.8.x. I've been moderately successful. However, about
1/2 the time, our application will fail to deploy. I can not parse if
this is a Oak failure or a sling10 failure, or a configuration between
the two issue. I'm looking for any insight as to what this might be.
Here is what I believe to be the relevant error messages:
14.02.2019 12:28:29.190 *WARN*[CM Event Dispatcher (Fire
ConfigurationEvent:
pid=org.apache.jackrabbit.oak.segment.SegmentNodeStoreService)]
org.apache.sling.commons.scheduler.impl.QuartzScheduler Scheduler job
requested thread pool with name oak but this thread pool is not in the
list of allowed pools.
14.02.2019 12:28:29.453 *WARN*[Apache Sling Repository Startup Thread]
org.apache.jackrabbit.oak.plugins.name.NameValidator Invalid namespace
prefix([, sv, nt, xml, jcr, oak, rep, mix]): slingevent
14.02.2019 12:28:29.454 *WARN*[Apache Sling Repository Startup Thread]
org.apache.jackrabbit.oak.plugins.name.NameValidator Invalid namespace
prefix([, sv, nt, xml, jcr, oak, rep, mix]): sling
14.02.2019 12:28:29.455 *WARN*[Apache Sling Repository Startup Thread]
org.apache.jackrabbit.oak.plugins.name.NameValidator Invalid namespace
prefix([, sv, nt, xml, jcr, oak, rep, mix]): sling
14.02.2019 12:28:29.455 *WARN*[Apache Sling Repository Startup Thread]
org.apache.jackrabbit.oak.plugins.name.NameValidator Invalid namespace
prefix([, sv, nt, xml, jcr, oak, rep, mix]): sling
14.02.2019 12:28:29.456 *WARN*[Apache Sling Repository Startup Thread]
org.apache.jackrabbit.oak.plugins.name.NameValidator Invalid namespace
prefix([, sv, nt, xml, jcr, oak, rep, mix]): sling
14.02.2019 12:28:29.904 *ERROR*[Apache Sling Repository Startup Thread]
org.apache.sling.jcr.oak.server.internal.OakSlingRepositoryManager
start: Uncaught Throwable trying to access Repository, calling
stopRepository()
java.lang.RuntimeException:
org.apache.jackrabbit.oak.api.CommitFailedException: OakConstraint0001:
/oak:index/jcrLanguage/:index[[]]: The primary type null does not exist
at
org.apache.jackrabbit.oak.OakInitializer.initialize(OakInitializer.java:50)
at org.apache.jackrabbit.oak.Oak.initialContent(Oak.java:682)
at
org.apache.jackrabbit.oak.Oak.createNewContentRepository(Oak.java:725)
at
org.apache.jackrabbit.oak.Oak.createContentRepository(Oak.java:670)
at
org.apache.jackrabbit.oak.jcr.Jcr.createContentRepository(Jcr.java:376)
at
org.apache.sling.jcr.oak.server.internal.OakSlingRepositoryManager.acquireRepository(OakSlingRepositoryManager.java:152)
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)
Caused by: org.apache.jackrabbit.oak.api.CommitFailedException:
OakConstraint0001: /oak:index/jcrLanguage/:index[[]]: The primary type
null does not exist
Any help or pointing in the right direction would be much appreciated.
Marc