{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-java/issues/961","labels_url":"https://api.github.com/repos/realm/realm-java/issues/961/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-java/issues/961/comments","events_url":"https://api.github.com/repos/realm/realm-java/issues/961/events","html_url":"https://github.com/realm/realm-java/issues/961","id":61498226,"number":961,"title":"Caused by: java.lang.IllegalArgumentException: Illegal Argument: Invalid Group file format.","user":{"login":"jasonross","id":1913983,"avatar_url":"https://avatars.githubusercontent.com/u/1913983?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonross","html_url":"https://github.com/jasonross","followers_url":"https://api.github.com/users/jasonross/followers","following_url":"https://api.github.com/users/jasonross/following{/other_user}","gists_url":"https://api.github.com/users/jasonross/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonross/subscriptions","organizations_url":"https://api.github.com/users/jasonross/orgs","repos_url":"https://api.github.com/users/jasonross/repos","events_url":"https://api.github.com/users/jasonross/events{/privacy}","received_events_url":"https://api.github.com/users/jasonross/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-java/labels/Investigate","name":"Investigate","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-03-14T08:21:00Z","updated_at":"2015-03-18T11:34:26Z","closed_at":null,"body":"I am a fan of Realm. When use it,there is a crash below:\r\n<pre>\r\nCaused by: java.lang.IllegalArgumentException: Illegal Argument: Invalid Group file format.\r\n       at io.realm.internal.SharedGroup.createNativeWithImplicitTransactions(SharedGroup.java)\r\n       at io.realm.internal.SharedGroup.(SharedGroup.java:58)\r\n       at io.realm.Realm.(Realm.java:199)\r\n       at io.realm.Realm.createAndValidate(Realm.java:516)\r\n       at io.realm.Realm.create(Realm.java:480)\r\n       at io.realm.Realm.getInstance(Realm.java:397)\r\n       at io.realm.Realm.getInstance(Realm.java:378)\r\n</pre>\r\nCan anybody tell me why ?"},"comment":{"url":"https://api.github.com/repos/realm/realm-java/issues/comments/82918053","html_url":"https://github.com/realm/realm-java/issues/961#issuecomment-82918053","issue_url":"https://api.github.com/repos/realm/realm-java/issues/961","id":82918053,"user":{"login":"NirpE","id":3623617,"avatar_url":"https://avatars.githubusercontent.com/u/3623617?v=3","gravatar_id":"","url":"https://api.github.com/users/NirpE","html_url":"https://github.com/NirpE","followers_url":"https://api.github.com/users/NirpE/followers","following_url":"https://api.github.com/users/NirpE/following{/other_user}","gists_url":"https://api.github.com/users/NirpE/gists{/gist_id}","starred_url":"https://api.github.com/users/NirpE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NirpE/subscriptions","organizations_url":"https://api.github.com/users/NirpE/orgs","repos_url":"https://api.github.com/users/NirpE/repos","events_url":"https://api.github.com/users/NirpE/events{/privacy}","received_events_url":"https://api.github.com/users/NirpE/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T11:34:26Z","updated_at":"2015-03-18T11:34:26Z","body":"I do not want to change the file name. Simply remove old, create new with same name. I could do this if the openRealm map handling would be proper to catch that exception when creating Realm object and removing it from open realms since it is not valid. Now it assumes that Realm object constructor never fails and the check is only performed if the created object is valid."}}