Marcel Reutegger created OAK-1953:
-------------------------------------

             Summary: Oak console on MongoMK fails with NPE
                 Key: OAK-1953
                 URL: https://issues.apache.org/jira/browse/OAK-1953
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: core, mongomk, run
    Affects Versions: 1.0
            Reporter: Marcel Reutegger
            Assignee: Marcel Reutegger


The exception is:

{noformat}
Apache Jackrabbit Oak 1.1-SNAPSHOT
Exception in thread "main" java.lang.NullPointerException: Lease End Time not 
set
        at 
com.google.common.base.Preconditions.checkNotNull(Preconditions.java:209)
        at 
org.apache.jackrabbit.oak.plugins.document.ClusterNodeInfoDocument.getLeaseEndTime(ClusterNodeInfoDocument.java:41)
        at 
org.apache.jackrabbit.oak.plugins.document.LastRevRecoveryAgent.recover(LastRevRecoveryAgent.java:81)
        at 
org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.checkLastRevRecovery(DocumentNodeStore.java:425)
        at 
org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.<init>(DocumentNodeStore.java:404)
        at 
org.apache.jackrabbit.oak.plugins.document.DocumentMK$Builder.getNodeStore(DocumentMK.java:582)
        at org.apache.jackrabbit.oak.console.Console.main(Console.java:72)
        at org.apache.jackrabbit.oak.run.Main.main(Main.java:118)
{noformat}

The document in the clusterNodes collection looks like this:

{noformat}
{
        "_id" : "1",
        "state" : null,
        "leaseEnd" : null,
        "instance" : "/Users/mreutegg/test",
        "machine" : "mac:685b35b878ea",
        "recoveryLock" : null,
        "info" : "id: 1,\nstartTime: 1404725920370,\nmachineId: 
mac:685b35b878ea,\ninstanceId: /Users/mreutegg/test,\npid: 40619,\nuuid: 
5cca6177-1062-441c-a86b-ec7bf848917d,\nreadWriteMode: null,\nstate: 
NONE,\nrevLock: NONE",
        "_modCount" : NumberLong(52)
}
{noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to