{"action":"closed","issue":{"url":"https://api.github.com/repos/realm/realm-java/issues/1794","labels_url":"https://api.github.com/repos/realm/realm-java/issues/1794/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-java/issues/1794/comments","events_url":"https://api.github.com/repos/realm/realm-java/issues/1794/events","html_url":"https://github.com/realm/realm-java/issues/1794","id":117567157,"number":1794,"title":"Realm Error io.realm.Realm.getDefaultMediator","user":{"login":"AndyDavidJoyce","id":7745380,"avatar_url":"https://avatars.githubusercontent.com/u/7745380?v=3","gravatar_id":"","url":"https://api.github.com/users/AndyDavidJoyce","html_url":"https://github.com/AndyDavidJoyce","followers_url":"https://api.github.com/users/AndyDavidJoyce/followers","following_url":"https://api.github.com/users/AndyDavidJoyce/following{/other_user}","gists_url":"https://api.github.com/users/AndyDavidJoyce/gists{/gist_id}","starred_url":"https://api.github.com/users/AndyDavidJoyce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndyDavidJoyce/subscriptions","organizations_url":"https://api.github.com/users/AndyDavidJoyce/orgs","repos_url":"https://api.github.com/users/AndyDavidJoyce/repos","events_url":"https://api.github.com/users/AndyDavidJoyce/events{/privacy}","received_events_url":"https://api.github.com/users/AndyDavidJoyce/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-java/labels/Help","name":"Help","color":"cc317c"},{"url":"https://api.github.com/repos/realm/realm-java/labels/Pending","name":"Pending","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-11-18T11:26:34Z","updated_at":"2015-11-24T12:05:05Z","closed_at":"2015-11-24T12:05:05Z","body":"Hi Guys! \r\n\r\nIve just recently released an application and checking crashalytics over the last couple of days and ive had a number of crashes relating to this error io.realm.Realm.getDefaultMediator. It seems to crash when i get the instance of realm. Ive pasted the stack trace below.\r\n\r\nFatal Exception: java.lang.ExceptionInInitializerError\r\n       at com.electropages.mobile.classes.AlertBackgroundService.getAllReminders(AlertBackgroundService.java:57)\r\n       at com.electropages.mobile.classes.AlertBackgroundService.onHandleIntent(AlertBackgroundService.java:52) \r\n       at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)\r\n       at android.os.Handler.dispatchMessage(Handler.java:102)\r\n       at android.os.Looper.loop(Looper.java:136)\r\n       at android.os.HandlerThread.run(HandlerThread.java:61)\r\nCaused by io.realm.exceptions.RealmException: Could not find io.realm.DefaultRealmModuleMediator\r\n       at io.realm.Realm.getDefaultMediator(Realm.java:256)\r\n       at io.realm.Realm.<clinit>(Realm.java:165) \r\n       at com.electropages.mobile.classes.AlertBackgroundService.getAllReminders(AlertBackgroundService.java:57) \r\n       at com.electropages.mobile.classes.AlertBackgroundService.onHandleIntent(AlertBackgroundService.java:52) \r\n       at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)\r\n       at android.os.Handler.dispatchMessage(Handler.java:102)\r\n       at android.os.Looper.loop(Looper.java:136)\r\n       at android.os.HandlerThread.run(HandlerThread.java:61)\r\nCaused by java.lang.ClassNotFoundException: io.realm.DefaultRealmModuleMediator\r\n       at java.lang.Class.classForName(Class.java) \r\n       at java.lang.Class.forName(Class.java:251) \r\n       at java.lang.Class.forName(Class.java:216) \r\n       at io.realm.Realm.getDefaultMediator(Realm.java:251) \r\n       at io.realm.Realm.<clinit>(Realm.java:165) \r\n       at com.electropages.mobile.classes.AlertBackgroundService.getAllReminders(AlertBackgroundService.java:57) \r\n       at com.electropages.mobile.classes.AlertBackgroundService.onHandleIntent(AlertBackgroundService.java:52) \r\n       at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65) \r\n       at android.os.Handler.dispatchMessage(Handler.java:102) \r\n       at android.os.Looper.loop(Looper.java:136) \r\n       at android.os.HandlerThread.run(HandlerThread.java:61) \r\nCaused by java.lang.NoClassDefFoundError: io/realm/DefaultRealmModuleMediator\r\n       at java.lang.Class.classForName(Class.java) \r\n       at java.lang.Class.forName(Class.java:251) \r\n       at java.lang.Class.forName(Class.java:216) \r\n       at io.realm.Realm.getDefaultMediator(Realm.java:251) \r\n       at io.realm.Realm.<clinit>(Realm.java:165) \r\n       at com.electropages.mobile.classes.AlertBackgroundService.getAllReminders(AlertBackgroundService.java:57) \r\n       at com.electropages.mobile.classes.AlertBackgroundService.onHandleIntent(AlertBackgroundService.java:52) \r\n       at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65) \r\n       at android.os.Handler.dispatchMessage(Handler.java:102) \r\n       at android.os.Looper.loop(Looper.java:136) \r\n       at android.os.HandlerThread.run(HandlerThread.java:61) \r\nCaused by java.lang.ClassNotFoundException: Didn't find class \"io.realm.DefaultRealmModuleMediator\" on path: DexPathList[[zip file \"/data/app/com.electropages.mobile-2.apk\"],nativeLibraryDirectories=[/data/app-lib/com.electropages.mobile-2, /vendor/lib, /system/lib]]\r\n       at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) \r\n       at java.lang.ClassLoader.loadClass(ClassLoader.java:497) \r\n       at java.lang.ClassLoader.loadClass(ClassLoader.java:457) \r\n       at java.lang.Class.classForName(Class.java) \r\n       at java.lang.Class.forName(Class.java:251) \r\n       at java.lang.Class.forName(Class.java:216) \r\n       at io.realm.Realm.getDefaultMediator(Realm.java:251) \r\n       at io.realm.Realm.<clinit>(Realm.java:165) \r\n       at com.electropages.mobile.classes.AlertBackgroundService.getAllReminders(AlertBackgroundService.java:57) \r\n       at com.electropages.mobile.classes.AlertBackgroundService.onHandleIntent(AlertBackgroundService.java:52) \r\n       at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65) \r\n       at android.os.Handler.dispatchMessage(Handler.java:102) \r\n       at android.os.Looper.loop(Looper.java:136) \r\n       at android.os.HandlerThread.run(HandlerThread.java:61) \r\n\r\nAny help would be brilliant! "}}