You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Oleg Cohen <ol...@assurebridge.com> on 2020/04/30 11:25:26 UTC

ClassCast error

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

Re: ClassCast error

Posted by Julian Reschke <ju...@gmx.de>.
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