You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Julian Reschke <ju...@gmx.de> on 2020/05/04 08:13:34 UTC
Re: ClassCast error
On 30.04.2020 13:25, Oleg Cohen wrote:
> Greetings,
>
> I am seeing this exception when my application starts:
>
> java.lang.ClassCastException:
> org.apache.jackrabbit.oak.segment.SegmentNodeState cannot be cast to
> org.apache.jackrabbit.oak.plugins.document.AbstractDocumentNodeState
> at
> org.apache.jackrabbit.oak.plugins.document.secondary.SecondaryStoreObserver.contentChanged(SecondaryStoreObserver.java:79)
> ~[?:?]
> at
> org.apache.jackrabbit.oak.spi.commit.BackgroundObserver$1$1.call(BackgroundObserver.java:127)
> [!/:1.26.0]
> at
> org.apache.jackrabbit.oak.spi.commit.BackgroundObserver$1$1.call(BackgroundObserver.java:121)
> [!/:1.26.0]
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_231]
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> [?:1.8.0_231]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> [?:1.8.0_231]
>
> I wonder if anyone has seen the same and what the problem might be.
>
> Thank you!
> Oleg
The exception sounds as if you're trying to use a SegmentStore where a
DocumentStore is expected.
Best regards, Julian