{"action":"created","issue":{"url":"https://api.github.com/repos/tuxBurner/play-neo4jplugin/issues/18","labels_url":"https://api.github.com/repos/tuxBurner/play-neo4jplugin/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/tuxBurner/play-neo4jplugin/issues/18/comments","events_url":"https://api.github.com/repos/tuxBurner/play-neo4jplugin/issues/18/events","html_url":"https://github.com/tuxBurner/play-neo4jplugin/issues/18","id":89670823,"number":18,"title":"Cannot init the Global object[neo4j.services.Neo4JServiceProvider cannot be cast to neo4j.services.Neo4JServiceProvider]","user":{"login":"maximepvrt","id":1840026,"avatar_url":"https://avatars.githubusercontent.com/u/1840026?v=3","gravatar_id":"","url":"https://api.github.com/users/maximepvrt","html_url":"https://github.com/maximepvrt","followers_url":"https://api.github.com/users/maximepvrt/followers","following_url":"https://api.github.com/users/maximepvrt/following{/other_user}","gists_url":"https://api.github.com/users/maximepvrt/gists{/gist_id}","starred_url":"https://api.github.com/users/maximepvrt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximepvrt/subscriptions","organizations_url":"https://api.github.com/users/maximepvrt/orgs","repos_url":"https://api.github.com/users/maximepvrt/repos","events_url":"https://api.github.com/users/maximepvrt/events{/privacy}","received_events_url":"https://api.github.com/users/maximepvrt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-19T22:09:38Z","updated_at":"2015-06-21T15:23:55Z","closed_at":null,"body":"Hi,\r\nIn my projet I have a big problem ...\r\n\r\n```\r\nplay.api.PlayException: Cannot init the Global object[neo4j.services.Neo4JServiceProvider cannot be cast to neo4j.services.Neo4JServiceProvider]\r\n\tat play.api.WithDefaultGlobal$$anonfun$play$api$WithDefaultGlobal$$globalInstance$1.apply(Application.scala:59) ~[play_2.10-2.3.8.jar:2.3.8]\r\n\tat play.api.WithDefaultGlobal$$anonfun$play$api$WithDefaultGlobal$$globalInstance$1.apply(Application.scala:53) ~[play_2.10-2.3.8.jar:2.3.8]\r\n\tat play.utils.Threads$.withContextClassLoader(Threads.scala:21) ~[play_2.10-2.3.8.jar:2.3.8]\r\n\tat play.api.WithDefaultGlobal$class.play$api$WithDefaultGlobal$$globalInstance(Application.scala:52) ~[play_2.10-2.3.8.jar:2.3.8]\r\n\tat play.api.DefaultApplication.play$api$WithDefaultGlobal$$globalInstance$lzycompute(Application.scala:402) ~[play_2.10-2.3.8.jar:2.3.8]\r\nCaused by: java.lang.ClassCastException: neo4j.services.Neo4JServiceProvider cannot be cast to neo4j.services.Neo4JServiceProvider\r\n\tat neo4j.services.Neo4JServiceProvider.get(Neo4JServiceProvider.java:21) ~[na:na]\r\n\tat AuthService.<init>(AuthService.java:27) ~[na:na]\r\n\tat MyEnvironment.<init>(MyEnvironment.scala:10) ~[na:na]\r\n\tat Global.<init>(Global.java:8) ~[na:na]\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_40]\r\n```\r\nthe source code is here : https://github.com/hubzer/hubzr-api\r\n\r\nIf I change \r\n```\r\nprivate UserRepository userRepository = Neo4JServiceProvider.get().userRepository;\r\n```\r\nby\r\n```\r\nprivate UserRepository userRepository = null;\r\n```\r\nin AuthService, my app starts :/\r\n\r\nThanks "},"comment":{"url":"https://api.github.com/repos/tuxBurner/play-neo4jplugin/issues/comments/113913036","html_url":"https://github.com/tuxBurner/play-neo4jplugin/issues/18#issuecomment-113913036","issue_url":"https://api.github.com/repos/tuxBurner/play-neo4jplugin/issues/18","id":113913036,"user":{"login":"tuxBurner","id":1614807,"avatar_url":"https://avatars.githubusercontent.com/u/1614807?v=3","gravatar_id":"","url":"https://api.github.com/users/tuxBurner","html_url":"https://github.com/tuxBurner","followers_url":"https://api.github.com/users/tuxBurner/followers","following_url":"https://api.github.com/users/tuxBurner/following{/other_user}","gists_url":"https://api.github.com/users/tuxBurner/gists{/gist_id}","starred_url":"https://api.github.com/users/tuxBurner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuxBurner/subscriptions","organizations_url":"https://api.github.com/users/tuxBurner/orgs","repos_url":"https://api.github.com/users/tuxBurner/repos","events_url":"https://api.github.com/users/tuxBurner/events{/privacy}","received_events_url":"https://api.github.com/users/tuxBurner/received_events","type":"User","site_admin":false},"created_at":"2015-06-21T15:23:55Z","updated_at":"2015-06-21T15:23:55Z","body":"Hi @maximepvrt i am looking into your project.\r\nI already have a project using securesocial if you want you can take a look at https://github.com/tuxBurner/play-project-template/tree/play23"}}