{"action":"created","issue":{"url":"https://api.github.com/repos/FaKod/neo4j-scala/issues/38","labels_url":"https://api.github.com/repos/FaKod/neo4j-scala/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/FaKod/neo4j-scala/issues/38/comments","events_url":"https://api.github.com/repos/FaKod/neo4j-scala/issues/38/events","html_url":"https://github.com/FaKod/neo4j-scala/issues/38","id":103655782,"number":38,"title":"(run-main-0) java.lang.ExceptionInInitializerError","user":{"login":"shu920921","id":12455284,"avatar_url":"https://avatars.githubusercontent.com/u/12455284?v=3","gravatar_id":"","url":"https://api.github.com/users/shu920921","html_url":"https://github.com/shu920921","followers_url":"https://api.github.com/users/shu920921/followers","following_url":"https://api.github.com/users/shu920921/following{/other_user}","gists_url":"https://api.github.com/users/shu920921/gists{/gist_id}","starred_url":"https://api.github.com/users/shu920921/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shu920921/subscriptions","organizations_url":"https://api.github.com/users/shu920921/orgs","repos_url":"https://api.github.com/users/shu920921/repos","events_url":"https://api.github.com/users/shu920921/events{/privacy}","received_events_url":"https://api.github.com/users/shu920921/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-28T06:23:32Z","updated_at":"2015-09-01T12:40:29Z","closed_at":null,"body":"Hi.\r\nI have one question.\r\n\r\nI can't run with sbt.\r\n\r\nAs my  ```build.sbt```   bellow.\r\n\r\n```\r\nscalaVersion := \"2.10.4\"\r\n\r\nresolvers ++= Seq(\r\n  \"Neo4j Scala Wrapper\" at \"https://oss.sonatype.org/content/repositories/snapshots/\",\r\n  \"Neo4j Repositories\" at \"http://m2.neo4j.org/content/repositories/releases\"\r\n)\r\n\r\nlibraryDependencies ++= Seq(\r\n  \"eu.fakod\" % \"neo4j-scala_2.10\" % \"0.3.1-SNAPSHOT\",\r\n  \"com.sun.jersey\" % \"jersey-core\" % \"1.9\" // You need this if you use REST Provider\r\n)\r\n```\r\n\r\nI referenced #36 \r\n\r\nAs my application structure bellow.\r\n\r\n![2015-08-28 15 03 48](https://cloud.githubusercontent.com/assets/12455284/9540228/2f498cfc-4d97-11e5-97db-c22965309003.png)\r\n  \r\nI copied #30 ```TheMatrixTraversalHack.scala``` to ```src/main/scala-2-10/TheMatrixTraversalHack.scala```\r\n\r\nThen, ```sbt compile run```\r\nAs the result  bellow\r\n\r\n```\r\nsbt compile run\r\n[info] Loading project definition from /Users/shu/Documents/workspace/Neo4jScala/neo4j-scala/project\r\n[info] Set current project to neo4j-scala (in build file:/Users/shu/Documents/workspace/Neo4jScala/neo4j-scala/)\r\n[success] Total time: 1 s, completed 2015/08/28 15:18:05\r\n[info] Running TheMatrixTraversalHack \r\n[error] (run-main-0) java.lang.ExceptionInInitializerError\r\njava.lang.ExceptionInInitializerError\r\n        at TheMatrixTraversalHack.main(TheMatrixTraversalHack.scala)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n        at java.lang.reflect.Method.invoke(Method.java:606)\r\nCaused by: java.lang.RuntimeException: Error starting org.neo4j.kernel.EmbeddedGraphDatabase, /tmp/temp-neo-TheMatrix\r\n        at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:362)\r\n        at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:59)\r\n        at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:90)\r\n        at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:199)\r\n        at eu.fakod.neo4jscala.SingeltonProvider$.apply(DatabaseServiceProvider.scala:63)\r\n        at eu.fakod.neo4jscala.SingletonEmbeddedGraphDatabaseServiceProvider$class.$init$(DatabaseServiceProvider.scala:88)\r\n        at TheMatrixTraversalHack$.<init>(TheMatrixTraversalHack.scala:20)\r\n        at TheMatrixTraversalHack$.<clinit>(TheMatrixTraversalHack.scala)\r\n        at TheMatrixTraversalHack.main(TheMatrixTraversalHack.scala)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n        at java.lang.reflect.Method.invoke(Method.java:606)\r\nCaused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.transaction.XaDataSourceManager@78d9af50' was successfully initialized, but failed to start. Please see attached cause exception.\r\n        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:513)\r\n        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:115)\r\n        at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:339)\r\n        at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:59)\r\n        at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:90)\r\n        at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:199)\r\n        at eu.fakod.neo4jscala.SingeltonProvider$.apply(DatabaseServiceProvider.scala:63)\r\n        at eu.fakod.neo4jscala.SingletonEmbeddedGraphDatabaseServiceProvider$class.$init$(DatabaseServiceProvider.scala:88)\r\n        at TheMatrixTraversalHack$.<init>(TheMatrixTraversalHack.scala:20)\r\n        at TheMatrixTraversalHack$.<clinit>(TheMatrixTraversalHack.scala)\r\n        at TheMatrixTraversalHack.main(TheMatrixTraversalHack.scala)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n        at java.lang.reflect.Method.invoke(Method.java:606)\r\nCaused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource@5db29aee' was successfully initialized, but failed to start. Please see attached cause exception.\r\n        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:513)\r\n        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:115)\r\n        at org.neo4j.kernel.impl.transaction.XaDataSourceManager.start(XaDataSourceManager.java:164)\r\n        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:507)\r\n        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:115)\r\n        at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:339)\r\n        at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:59)\r\n        at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:90)\r\n        at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:199)\r\n        at eu.fakod.neo4jscala.SingeltonProvider$.apply(DatabaseServiceProvider.scala:63)\r\n        at eu.fakod.neo4jscala.SingletonEmbeddedGraphDatabaseServiceProvider$class.$init$(DatabaseServiceProvider.scala:88)\r\n        at TheMatrixTraversalHack$.<init>(TheMatrixTraversalHack.scala:20)\r\n        at TheMatrixTraversalHack$.<clinit>(TheMatrixTraversalHack.scala)\r\n        at TheMatrixTraversalHack.main(TheMatrixTraversalHack.scala)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n        at java.lang.reflect.Method.invoke(Method.java:606)\r\nCaused by: org.neo4j.kernel.impl.storemigration.StoreUpgrader$UnexpectedUpgradingStoreVersionException: 'neostore.nodestore.db' has a store version number that we cannot upgrade from. Expected 'v0.A.1' but file is version 'NodeStore v0.A.5'.\r\n        at org.neo4j.kernel.impl.storemigration.UpgradableDatabase.checkUpgradeable(UpgradableDatabase.java:78)\r\n        at org.neo4j.kernel.impl.storemigration.StoreMigrator.needsMigration(StoreMigrator.java:103)\r\n        at org.neo4j.kernel.impl.storemigration.StoreUpgrader.getParticipantsEagerToMigrate(StoreUpgrader.java:241)\r\n        at org.neo4j.kernel.impl.storemigration.StoreUpgrader.migrateIfNeeded(StoreUpgrader.java:129)\r\n        at org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource.start(NeoStoreXaDataSource.java:350)\r\n        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:507)\r\n        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:115)\r\n        at org.neo4j.kernel.impl.transaction.XaDataSourceManager.start(XaDataSourceManager.java:164)\r\n        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:507)\r\n        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:115)\r\n        at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:339)\r\n        at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:59)\r\n        at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:90)\r\n        at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:199)\r\n        at eu.fakod.neo4jscala.SingeltonProvider$.apply(DatabaseServiceProvider.scala:63)\r\n        at eu.fakod.neo4jscala.SingletonEmbeddedGraphDatabaseServiceProvider$class.$init$(DatabaseServiceProvider.scala:88)\r\n        at TheMatrixTraversalHack$.<init>(TheMatrixTraversalHack.scala:20)\r\n        at TheMatrixTraversalHack$.<clinit>(TheMatrixTraversalHack.scala)\r\n        at TheMatrixTraversalHack.main(TheMatrixTraversalHack.scala)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n        at java.lang.reflect.Method.invoke(Method.java:606)\r\n[trace] Stack trace suppressed: run last compile:run for the full output.\r\njava.lang.RuntimeException: Nonzero exit code: 1\r\n        at scala.sys.package$.error(package.scala:27)\r\n[trace] Stack trace suppressed: run last compile:run for the full output.\r\n[error] (compile:run) Nonzero exit code: 1\r\n[error] Total time: 1 s, completed 2015/08/28 15:18:07\r\n```\r\n\r\n```compile``` completed, but ```run``` did not.\r\n\r\nPlease tell me the solution.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/FaKod/neo4j-scala/issues/comments/136701544","html_url":"https://github.com/FaKod/neo4j-scala/issues/38#issuecomment-136701544","issue_url":"https://api.github.com/repos/FaKod/neo4j-scala/issues/38","id":136701544,"user":{"login":"shu920921","id":12455284,"avatar_url":"https://avatars.githubusercontent.com/u/12455284?v=3","gravatar_id":"","url":"https://api.github.com/users/shu920921","html_url":"https://github.com/shu920921","followers_url":"https://api.github.com/users/shu920921/followers","following_url":"https://api.github.com/users/shu920921/following{/other_user}","gists_url":"https://api.github.com/users/shu920921/gists{/gist_id}","starred_url":"https://api.github.com/users/shu920921/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shu920921/subscriptions","organizations_url":"https://api.github.com/users/shu920921/orgs","repos_url":"https://api.github.com/users/shu920921/repos","events_url":"https://api.github.com/users/shu920921/events{/privacy}","received_events_url":"https://api.github.com/users/shu920921/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T12:40:29Z","updated_at":"2015-09-01T12:40:29Z","body":"Sorry, I resolved my errors.\r\n\r\nI had misstake scala compiler version and neo4j version.\r\n\r\nI modified version, then the file run.\r\n\r\nThank you."}}