{"action":"created","issue":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5907","repository_url":"https://api.github.com/repos/orientechnologies/orientdb","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5907/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5907/comments","events_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5907/events","html_url":"https://github.com/orientechnologies/orientdb/issues/5907","id":144583557,"number":5907,"title":"NPE creating index entry","user":{"login":"zerovian","id":3799244,"avatar_url":"https://avatars.githubusercontent.com/u/3799244?v=3","gravatar_id":"","url":"https://api.github.com/users/zerovian","html_url":"https://github.com/zerovian","followers_url":"https://api.github.com/users/zerovian/followers","following_url":"https://api.github.com/users/zerovian/following{/other_user}","gists_url":"https://api.github.com/users/zerovian/gists{/gist_id}","starred_url":"https://api.github.com/users/zerovian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zerovian/subscriptions","organizations_url":"https://api.github.com/users/zerovian/orgs","repos_url":"https://api.github.com/users/zerovian/repos","events_url":"https://api.github.com/users/zerovian/events{/privacy}","received_events_url":"https://api.github.com/users/zerovian/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/orientechnologies/orientdb/labels/bug","name":"bug","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"laa","id":105066,"avatar_url":"https://avatars.githubusercontent.com/u/105066?v=3","gravatar_id":"","url":"https://api.github.com/users/laa","html_url":"https://github.com/laa","followers_url":"https://api.github.com/users/laa/followers","following_url":"https://api.github.com/users/laa/following{/other_user}","gists_url":"https://api.github.com/users/laa/gists{/gist_id}","starred_url":"https://api.github.com/users/laa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laa/subscriptions","organizations_url":"https://api.github.com/users/laa/orgs","repos_url":"https://api.github.com/users/laa/repos","events_url":"https://api.github.com/users/laa/events{/privacy}","received_events_url":"https://api.github.com/users/laa/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/orientechnologies/orientdb/milestones/64","html_url":"https://github.com/orientechnologies/orientdb/milestones/2.1.x%20(next%20hotfix)","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/milestones/64/labels","id":1282180,"number":64,"title":"2.1.x (next hotfix)","description":"","creator":{"login":"lvca","id":312606,"avatar_url":"https://avatars.githubusercontent.com/u/312606?v=3","gravatar_id":"","url":"https://api.github.com/users/lvca","html_url":"https://github.com/lvca","followers_url":"https://api.github.com/users/lvca/followers","following_url":"https://api.github.com/users/lvca/following{/other_user}","gists_url":"https://api.github.com/users/lvca/gists{/gist_id}","starred_url":"https://api.github.com/users/lvca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lvca/subscriptions","organizations_url":"https://api.github.com/users/lvca/orgs","repos_url":"https://api.github.com/users/lvca/repos","events_url":"https://api.github.com/users/lvca/events{/privacy}","received_events_url":"https://api.github.com/users/lvca/received_events","type":"User","site_admin":false},"open_issues":159,"closed_issues":3,"state":"open","created_at":"2015-08-31T15:18:49Z","updated_at":"2016-04-07T09:47:48Z","due_on":null,"closed_at":null},"comments":15,"created_at":"2016-03-30T13:10:03Z","updated_at":"2016-04-07T13:35:43Z","closed_at":null,"body":"orientdb 2.1.11\r\n\r\n\r\nUnfortunately I don't have a reproducable for this.  It takes 2-3 days for it to occur and it is somewhat random, but it eventually always occurs.\r\n\r\nI suspect there might be another exception underneath this (possibly an OOM), but since the releaseExclusiveLock() is in the finally block and it is throwing NPE, the original exception is lost.\r\n\r\nLooking at OCacheEntry I don't see why the dataPointer would be going null between the call to acquireExclusiveLock and releaseExclusiveLock.  \r\n\r\ncom.progress.isq.ipqos.WorkErrorException: Error during insertion of key in index\r\n        at com.progress.isq.ipqos.resources.plugins.openedge.work.WorkRunnable.performPolling(WorkRunnable.java:64)\r\n        at com.progress.isq.ipqos.resources.plugins.openedge.work.DatabaseInstWork.doWork(DatabaseInstWork.java:85)\r\n        at com.progress.isq.ipqos.resources.plugins.database.DatabaseInstResource.doWork(DatabaseInstResource.java:526)\r\n        at com.progress.isq.ipqos.ScheduledWorkShell.run(ScheduledWorkShell.java:86)\r\n        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\n        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\n        at java.lang.Thread.run(Thread.java:744)\r\nCaused by: com.orientechnologies.orient.core.index.OIndexException: Error during insertion of key in index\r\n        at com.orientechnologies.orient.core.index.OIndexMultiValues.put(OIndexMultiValues.java:162)\r\n        at com.orientechnologies.orient.core.index.OIndexMultiValues.put(OIndexMultiValues.java:52)\r\n        at com.orientechnologies.orient.core.tx.OTransactionNoTx.addIndexEntry(OTransactionNoTx.java:256)\r\n        at com.orientechnologies.orient.core.index.OIndexTxAware.put(OIndexTxAware.java:97)\r\n        at com.orientechnologies.orient.core.index.OIndexTxAware.put(OIndexTxAware.java:41)\r\n        at com.orientechnologies.orient.core.index.OClassIndexManager.addIndexEntry(OClassIndexManager.java:530)\r\n        at com.orientechnologies.orient.core.index.OClassIndexManager.addIndexesEntries(OClassIndexManager.java:517)\r\n        at com.orientechnologies.orient.core.index.OClassIndexManager.onRecordAfterCreate(OClassIndexManager.java:428)\r\n        at com.orientechnologies.orient.core.hook.ODocumentHookAbstract.onTrigger(ODocumentHookAbstract.java:229)\r\n        at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.callbackHooks(ODatabaseDocumentTx.java:1037)\r\n        at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.callbackHookSuccess(ODatabaseDocumentTx.java:3038)\r\n        at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.executeSaveRecord(ODatabaseDocumentTx.java:1987)\r\n        at com.orientechnologies.orient.core.tx.OTransactionNoTx.saveRecord(OTransactionNoTx.java:160)\r\n        at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.save(ODatabaseDocumentTx.java:2532)\r\n        at com.orientechnologies.orient.object.db.OObjectDatabaseTx.save(OObjectDatabaseTx.java:470)\r\n        at com.orientechnologies.orient.object.db.OObjectDatabaseTx.save(OObjectDatabaseTx.java:405)\r\n        at com.progress.isq.ipqos.activity.ActivityDataAccess.save(ActivityDataAccess.java:60)\r\n        at com.progress.isq.ipqos.activity.ActivityService.create(ActivityService.java:73)\r\n        at com.progress.isq.ipqos.activity.ActivityService.create(ActivityService.java:60)\r\n        at com.progress.isq.ipqos.activity.ServiceAdapter.storeActivities(ServiceAdapter.java:63)\r\n        at com.progress.isq.ipqos.activity.MultiActivityServiceAdapter.processData(MultiActivityServiceAdapter.java:262)\r\n        at com.progress.isq.ipqos.activity.MultiActivityServiceAdapter.processResponse(MultiActivityServiceAdapter.java:219)\r\n        at com.progress.isq.ipqos.activity.MultiActivityServiceAdapter.processActivities(MultiActivityServiceAdapter.java:201)\r\n        at com.progress.isq.ipqos.resources.plugins.database.DatabaseActivityProcessor.processActivities(DatabaseActivityProcessor.java:431)\r\n        at com.progress.isq.ipqos.activity.MultiActivityServiceAdapter.processActivities(MultiActivityServiceAdapter.java:181)\r\n        at com.progress.isq.ipqos.activity.MultiActivityServiceAdapter.fetchAndStoreActivities(MultiActivityServiceAdapter.java:111)\r\n        at com.progress.isq.ipqos.resources.plugins.openedge.work.WorkRunnable.performPolling(WorkRunnable.java:60)\r\n        ... 6 more\r\nCaused by: java.lang.NullPointerException\r\n        at com.orientechnologies.orient.core.storage.cache.OCacheEntry.releaseExclusiveLock(OCacheEntry.java:81)\r\n        at com.orientechnologies.orient.core.storage.impl.local.paginated.atomicoperations.OAtomicOperation.commitChanges(OAtomicOperation.java:394)\r\n        at com.orientechnologies.orient.core.storage.impl.local.paginated.atomicoperations.OAtomicOperationsManager.endAtomicOperation(OAtomicOperationsManager.java:168)\r\n        at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.commitAtomicOperation(OAbstractPaginatedStorage.java:351)\r\n        at com.orientechnologies.orient.core.index.OIndexAbstract.commitStorageAtomicOperation(OIndexAbstract.java:928)\r\n        at com.orientechnologies.orient.core.index.OIndexMultiValues.put(OIndexMultiValues.java:157)\r\n        ... 32 more\r\n "},"comment":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/comments/206907122","html_url":"https://github.com/orientechnologies/orientdb/issues/5907#issuecomment-206907122","issue_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5907","id":206907122,"user":{"login":"laa","id":105066,"avatar_url":"https://avatars.githubusercontent.com/u/105066?v=3","gravatar_id":"","url":"https://api.github.com/users/laa","html_url":"https://github.com/laa","followers_url":"https://api.github.com/users/laa/followers","following_url":"https://api.github.com/users/laa/following{/other_user}","gists_url":"https://api.github.com/users/laa/gists{/gist_id}","starred_url":"https://api.github.com/users/laa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laa/subscriptions","organizations_url":"https://api.github.com/users/laa/orgs","repos_url":"https://api.github.com/users/laa/repos","events_url":"https://api.github.com/users/laa/events{/privacy}","received_events_url":"https://api.github.com/users/laa/received_events","type":"User","site_admin":false},"created_at":"2016-04-07T13:35:43Z","updated_at":"2016-04-07T13:35:43Z","body":"Thank you very much, I will start fix it from Monday."}}