Stefan Egli created OAK-3289: -------------------------------- Summary: ClusterViewDocument should store longs, not integers Key: OAK-3289 URL: https://issues.apache.org/jira/browse/OAK-3289 Project: Jackrabbit Oak Issue Type: Bug Components: core, rdbmk Affects Versions: 1.3.4 Reporter: Stefan Egli Assignee: Stefan Egli Fix For: 1.3.5
The following error occurs on RDBMk: {code} 25.08.2015 14:26:48.381 *ERROR* [DocumentDiscoveryLiteService-BackgroundWorker-[ 1]] org.apache.jackrabbit.oak.plugins.document.DocumentDiscoveryLiteService doCh eckView: RuntimeException: re: java.lang.ClassCastException: java.lang.Long cann ot be cast to java.lang.Integer java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer at org.apache.jackrabbit.oak.plugins.document.ClusterViewDocument.<init> (ClusterViewDocument.java:450) at org.apache.jackrabbit.oak.plugins.document.ClusterViewDocument.doRead (ClusterViewDocument.java:406) at org.apache.jackrabbit.oak.plugins.document.ClusterViewDocument.readOr Update(ClusterViewDocument.java:186) at org.apache.jackrabbit.oak.plugins.document.DocumentDiscoveryLiteServi ce.doCheckView(DocumentDiscoveryLiteService.java:544) at org.apache.jackrabbit.oak.plugins.document.DocumentDiscoveryLiteServi ce.checkView(DocumentDiscoveryLiteService.java:416) {code} This is due to the fact that RDBMK uses json which returns long independently of whether it was stored as integer or long in the first place. Also see related OAK-3288 -- This message was sent by Atlassian JIRA (v6.3.4#6332)