{"action":"closed","issue":{"url":"https://api.github.com/repos/gisselFdez/PFE-M2IAGL/issues/11","labels_url":"https://api.github.com/repos/gisselFdez/PFE-M2IAGL/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/gisselFdez/PFE-M2IAGL/issues/11/comments","events_url":"https://api.github.com/repos/gisselFdez/PFE-M2IAGL/issues/11/events","html_url":"https://github.com/gisselFdez/PFE-M2IAGL/issues/11","id":126163132,"number":11,"title":"Crash when loading graph db","user":{"login":"Magolac","id":7278940,"avatar_url":"https://avatars.githubusercontent.com/u/7278940?v=3","gravatar_id":"","url":"https://api.github.com/users/Magolac","html_url":"https://github.com/Magolac","followers_url":"https://api.github.com/users/Magolac/followers","following_url":"https://api.github.com/users/Magolac/following{/other_user}","gists_url":"https://api.github.com/users/Magolac/gists{/gist_id}","starred_url":"https://api.github.com/users/Magolac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Magolac/subscriptions","organizations_url":"https://api.github.com/users/Magolac/orgs","repos_url":"https://api.github.com/users/Magolac/repos","events_url":"https://api.github.com/users/Magolac/events{/privacy}","received_events_url":"https://api.github.com/users/Magolac/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-12T11:53:59Z","updated_at":"2016-01-22T09:57:50Z","closed_at":"2016-01-22T09:57:50Z","body":"The program crashes when loading a graph database created with an older Neo4J version.\r\n\r\nTo solve this problem substitute in the Generator class the line:\r\nGraphDatabaseService db =new GraphDatabaseFactory().newEmbeddedDatabase(DB_PATH );\r\n\r\nwith this:\r\nGraphDatabaseService db = new GraphDatabaseFactory()\r\n\t    .newEmbeddedDatabaseBuilder(new File(DB_PATH)  )\r\n\t    .setConfig( GraphDatabaseSettings.allow_store_upgrade, \"true\" )\r\n\t    .newGraphDatabase();\r\n\r\nLike this the db is automatically updgraded when starting. In addition the method newEmbeddedDatabase(String) was deprecated.\r\n\r\n\r\n"}}