{"action":"created","issue":{"url":"https://api.github.com/repos/javers/javers/issues/218","labels_url":"https://api.github.com/repos/javers/javers/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/javers/javers/issues/218/comments","events_url":"https://api.github.com/repos/javers/javers/issues/218/events","html_url":"https://github.com/javers/javers/issues/218","id":109786100,"number":218,"title":"Random ClassCastExceptions","user":{"login":"peda","id":559490,"avatar_url":"https://avatars.githubusercontent.com/u/559490?v=3","gravatar_id":"","url":"https://api.github.com/users/peda","html_url":"https://github.com/peda","followers_url":"https://api.github.com/users/peda/followers","following_url":"https://api.github.com/users/peda/following{/other_user}","gists_url":"https://api.github.com/users/peda/gists{/gist_id}","starred_url":"https://api.github.com/users/peda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peda/subscriptions","organizations_url":"https://api.github.com/users/peda/orgs","repos_url":"https://api.github.com/users/peda/repos","events_url":"https://api.github.com/users/peda/events{/privacy}","received_events_url":"https://api.github.com/users/peda/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/javers/javers/labels/question","name":"question","color":"cc317c"},{"url":"https://api.github.com/repos/javers/javers/labels/test%20required","name":"test required","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-10-05T12:31:38Z","updated_at":"2015-10-09T16:10:52Z","closed_at":null,"body":"Hello,\r\n\r\nI do have a structure of nested entity objects (similar to the large depth employee sample). Even if I re-run the application multiple times with the same data set the exception does not occur at every run - at some runs no exceptions happens, at some runs the exceptions occurs just once even though I'm comparing dozens of objects with nearly the same values (just some primitives do have different values) and at some runs nearly every diff throws the exception.\r\n\r\n```\r\n java.lang.ClassCastException: com.XXX.XXX.domain.MyObject cannot be cast to org.javers.core.metamodel.object.GlobalId\r\n\tat org.javers.core.graph.ObjectNode.getReference(ObjectNode.java:75)\r\n\tat org.javers.core.diff.RealNodePair.getRightGlobalId(RealNodePair.java:61)\r\n\tat org.javers.core.diff.appenders.ReferenceChangeAppender.calculateChanges(ReferenceChangeAppender.java:25)\r\n\tat org.javers.core.diff.appenders.ReferenceChangeAppender.calculateChanges(ReferenceChangeAppender.java:15)\r\n\tat org.javers.core.diff.DiffFactory.appendChanges(DiffFactory.java:142)\r\n\tat org.javers.core.diff.DiffFactory.appendPropertyChanges(DiffFactory.java:132)\r\n\tat org.javers.core.diff.DiffFactory.createAndAppendChanges(DiffFactory.java:114)\r\n\tat org.javers.core.diff.DiffFactory.create(DiffFactory.java:65)\r\n\tat org.javers.core.diff.DiffFactory.compare(DiffFactory.java:58)\r\n\tat org.javers.core.JaversCore.compare(JaversCore.java:94)\r\n\tat com.XXX.XXX.util.audit.AuditLogEntry.createFromRecord(AuditLogEntry.java:139)\r\n```"},"comment":{"url":"https://api.github.com/repos/javers/javers/issues/comments/146913555","html_url":"https://github.com/javers/javers/issues/218#issuecomment-146913555","issue_url":"https://api.github.com/repos/javers/javers/issues/218","id":146913555,"user":{"login":"bartoszwalacik","id":2511028,"avatar_url":"https://avatars.githubusercontent.com/u/2511028?v=3","gravatar_id":"","url":"https://api.github.com/users/bartoszwalacik","html_url":"https://github.com/bartoszwalacik","followers_url":"https://api.github.com/users/bartoszwalacik/followers","following_url":"https://api.github.com/users/bartoszwalacik/following{/other_user}","gists_url":"https://api.github.com/users/bartoszwalacik/gists{/gist_id}","starred_url":"https://api.github.com/users/bartoszwalacik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartoszwalacik/subscriptions","organizations_url":"https://api.github.com/users/bartoszwalacik/orgs","repos_url":"https://api.github.com/users/bartoszwalacik/repos","events_url":"https://api.github.com/users/bartoszwalacik/events{/privacy}","received_events_url":"https://api.github.com/users/bartoszwalacik/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T16:10:52Z","updated_at":"2015-10-09T16:10:52Z","body":"Ok , will do"}}