# HG changeset patch # User one # Date 1362832320 -32400 # Node ID c6929060c85f5006f95dcef17ec755a9c76c375c # Parent cddb5ed942a649fd43467564ae0878dd986dadf5 modified clone method in ClaimModel. diff -r cddb5ed942a6 -r c6929060c85f app/models/ClaimModel.java --- a/app/models/ClaimModel.java Sat Mar 09 21:26:40 2013 +0900 +++ b/app/models/ClaimModel.java Sat Mar 09 21:32:00 2013 +0900 @@ -441,8 +441,10 @@ ClaimModel newClaim = new ClaimModel(tpGraph.addVertex(null)); String author = (getAuthorId()).toString(); String type = (this.getProperty(TYPE)).toString(); + String status = (this.getProperty(STATUS)).toString(); JsonNode toulmin = (JsonNode)this.getProperty(TOULMIN); newClaim.setClaimProperties(toulmin, type); + newClaim.setProperty(STATUS, status); tpGraph.setLabelToAuthor(newClaim, author); copyRequestEdges(newClaim); return newClaim; diff -r cddb5ed942a6 -r c6929060c85f app/models/TPGraph.java --- a/app/models/TPGraph.java Sat Mar 09 21:26:40 2013 +0900 +++ b/app/models/TPGraph.java Sat Mar 09 21:32:00 2013 +0900 @@ -252,6 +252,7 @@ } return v; } + private void recursiveCopyDownClaimsAndSetLabel(ClaimModel oldUpClaim, ClaimModel latestUpClaim, String timestamp, String... labels) { diff -r cddb5ed942a6 -r c6929060c85f logs/application.log --- a/logs/application.log Sat Mar 09 21:26:40 2013 +0900 +++ b/logs/application.log Sat Mar 09 21:32:00 2013 +0900 @@ -1,90 +1,12 @@ -2013-03-08 16:32:03,907 - [INFO] - from play in main +2013-03-09 21:16:11,664 - [INFO] - from play in main Listening for HTTP on port 9000... -2013-03-08 16:32:21,334 - [ERROR] - from application in New I/O worker #1 - - -! @6dh8bk8oc - Internal server error, for request [GET /] -> - -play.api.UnexpectedException: Unexpected exception [NullPointerException: null] - at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$3$$anonfun$1.apply(ApplicationProvider.scala:134) ~[play_2.9.1.jar:2.0.3] - at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$3$$anonfun$1.apply(ApplicationProvider.scala:112) ~[play_2.9.1.jar:2.0.3] - at scala.Option.map(Option.scala:133) ~[scala-library.jar:0.11.3] - at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$3.apply(ApplicationProvider.scala:112) ~[play_2.9.1.jar:2.0.3] - at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$3.apply(ApplicationProvider.scala:110) ~[play_2.9.1.jar:2.0.3] - at scala.Either$RightProjection.flatMap(Either.scala:277) ~[scala-library.jar:0.11.3] - at play.core.ReloadableApplication$$anonfun$get$1.apply(ApplicationProvider.scala:110) ~[play_2.9.1.jar:2.0.3] - at play.core.ReloadableApplication$$anonfun$get$1.apply(ApplicationProvider.scala:110) ~[play_2.9.1.jar:2.0.3] - at akka.dispatch.Future$$anon$3.liftedTree1$1(Future.scala:195) ~[akka-actor.jar:2.0.2] - at akka.dispatch.Future$$anon$3.run(Future.scala:194) ~[akka-actor.jar:2.0.2] - at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:94) ~[akka-actor.jar:2.0.2] - at akka.jsr166y.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1381) ~[akka-actor.jar:2.0.2] - at akka.jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:259) ~[akka-actor.jar:2.0.2] - at akka.jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:975) ~[akka-actor.jar:2.0.2] - at akka.jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1479) ~[akka-actor.jar:2.0.2] - at akka.jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104) ~[akka-actor.jar:2.0.2] -Caused by: java.lang.NullPointerException: null - at models.TPGraph.addVertex(TPGraph.java:58) ~[classes/:na] - at init.InitialData.init(InitialData.java:35) ~[classes/:na] - at Global.onStart(Global.java:12) ~[classes/:na] - at play.core.j.JavaGlobalSettingsAdapter.onStart(JavaGlobalSettingsAdapter.scala:16) ~[play_2.9.1.jar:2.0.3] - at play.api.GlobalPlugin.onStart(Global.scala:134) ~[play_2.9.1.jar:2.0.3] - at play.api.Play$$anonfun$start$1.apply(Play.scala:60) ~[play_2.9.1.jar:2.0.3] - at play.api.Play$$anonfun$start$1.apply(Play.scala:60) ~[play_2.9.1.jar:2.0.3] - at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59) ~[scala-library.jar:0.11.3] - at scala.collection.immutable.List.foreach(List.scala:45) ~[scala-library.jar:0.11.3] - at play.api.Play$.start(Play.scala:60) ~[play_2.9.1.jar:2.0.3] - at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$3$$anonfun$1.apply(ApplicationProvider.scala:125) ~[play_2.9.1.jar:2.0.3] - ... 15 common frames omitted - -2013-03-08 16:35:18,020 - [INFO] - from application in play-akka.actor.default-dispatcher-1 -Application shutdown... - -2013-03-08 16:35:18,291 - [INFO] - from play in play-akka.actor.default-dispatcher-1 -Application started (Dev) - -2013-03-08 16:35:46,443 - [INFO] - from application in play-akka.actor.default-dispatcher-4 -Application shutdown... - -2013-03-08 16:35:46,464 - [INFO] - from play in play-akka.actor.default-dispatcher-4 -Application started (Dev) - -2013-03-08 16:36:49,997 - [INFO] - from application in play-akka.actor.default-dispatcher-4 -Application shutdown... - -2013-03-08 16:36:50,017 - [INFO] - from play in play-akka.actor.default-dispatcher-4 -Application started (Dev) - -2013-03-08 16:40:45,293 - [INFO] - from application in play-akka.actor.default-dispatcher-7 -Application shutdown... - -2013-03-08 16:40:45,312 - [INFO] - from play in play-akka.actor.default-dispatcher-7 -Application started (Dev) - -2013-03-08 16:40:50,750 - [INFO] - from application in play-akka.actor.default-dispatcher-7 -Application shutdown... - -2013-03-08 16:40:50,770 - [INFO] - from play in play-akka.actor.default-dispatcher-7 -Application started (Dev) - -2013-03-08 16:41:00,781 - [INFO] - from application in play-akka.actor.default-dispatcher-7 -Application shutdown... - -2013-03-08 16:41:00,804 - [INFO] - from play in play-akka.actor.default-dispatcher-7 -Application started (Dev) - -2013-03-08 16:41:12,377 - [INFO] - from application in play-akka.actor.default-dispatcher-7 -Application shutdown... - -2013-03-08 16:41:12,395 - [INFO] - from play in play-akka.actor.default-dispatcher-7 -Application started (Dev) - -2013-03-08 17:16:30,131 - [ERROR] - from application in New I/O worker #7 +2013-03-09 21:16:20,164 - [ERROR] - from application in New I/O worker #1 ! Internal server error, for request [GET /] -> -sbt.PlayExceptions$CompilationException: Compilation error [value getLatestUserConsesus is not a member of object controllers.User] +sbt.PlayExceptions$CompilationException: Compilation error [copyConsensusTree(models.ClaimModel,java.lang.Long) in models.TPGraph cannot be applied to (models.ClaimModel)] at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$4$$anonfun$apply$12$$anonfun$apply$13.apply(PlayReloader.scala:229) ~[na:na] at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$4$$anonfun$apply$12$$anonfun$apply$13.apply(PlayReloader.scala:229) ~[na:na] at scala.Option.map(Option.scala:133) ~[scala-library.jar:0.11.3] @@ -109,24 +31,51 @@ at akka.jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1479) ~[akka-actor.jar:2.0.2] at akka.jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104) ~[akka-actor.jar:2.0.2] -2013-03-08 17:17:39,241 - [INFO] - from application in play-akka.actor.default-dispatcher-8 +2013-03-09 21:19:51,518 - [INFO] - from play in play-akka.actor.default-dispatcher-2 +Application started (Dev) + +2013-03-09 21:20:50,697 - [INFO] - from application in play-akka.actor.default-dispatcher-2 Application shutdown... -2013-03-08 17:17:39,260 - [INFO] - from play in play-akka.actor.default-dispatcher-8 +2013-03-09 21:20:50,720 - [INFO] - from play in play-akka.actor.default-dispatcher-2 Application started (Dev) -2013-03-08 17:17:55,060 - [INFO] - from application in play-akka.actor.default-dispatcher-10 +2013-03-09 21:22:54,876 - [INFO] - from application in play-akka.actor.default-dispatcher-5 +Application shutdown... + +2013-03-09 21:22:54,901 - [INFO] - from play in play-akka.actor.default-dispatcher-5 +Application started (Dev) + +2013-03-09 21:23:00,061 - [INFO] - from application in play-akka.actor.default-dispatcher-5 Application shutdown... -2013-03-08 17:17:55,078 - [INFO] - from play in play-akka.actor.default-dispatcher-10 +2013-03-09 21:23:00,081 - [INFO] - from play in play-akka.actor.default-dispatcher-5 +Application started (Dev) + +2013-03-09 21:23:14,959 - [INFO] - from application in play-akka.actor.default-dispatcher-5 +Application shutdown... + +2013-03-09 21:23:14,982 - [INFO] - from play in play-akka.actor.default-dispatcher-5 Application started (Dev) -2013-03-08 17:18:10,608 - [ERROR] - from application in New I/O worker #13 +2013-03-09 21:23:39,874 - [INFO] - from application in play-akka.actor.default-dispatcher-4 +Application shutdown... + +2013-03-09 21:23:39,895 - [INFO] - from play in play-akka.actor.default-dispatcher-4 +Application started (Dev) + +2013-03-09 21:28:39,794 - [INFO] - from application in play-akka.actor.default-dispatcher-4 +Application shutdown... + +2013-03-09 21:28:39,822 - [INFO] - from play in play-akka.actor.default-dispatcher-4 +Application started (Dev) + +2013-03-09 21:29:44,595 - [ERROR] - from application in New I/O worker #13 -! Internal server error, for request [GET /users/consensus/Akifumi?_=1362730689442] -> +! Internal server error, for request [GET /users/all?_=1362832184455] -> -sbt.PlayExceptions$CompilationException: Compilation error [value getLatestUserConsensus is not a member of object controllers.User] +sbt.PlayExceptions$CompilationException: Compilation error [cannot find symbol [symbol: variable STAT] [location: class models.ClaimModel]] at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$4$$anonfun$apply$12$$anonfun$apply$13.apply(PlayReloader.scala:229) ~[na:na] at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$4$$anonfun$apply$12$$anonfun$apply$13.apply(PlayReloader.scala:229) ~[na:na] at scala.Option.map(Option.scala:133) ~[scala-library.jar:0.11.3] @@ -151,30 +100,45 @@ at akka.jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1479) ~[akka-actor.jar:2.0.2] at akka.jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104) ~[akka-actor.jar:2.0.2] -2013-03-08 17:18:13,933 - [INFO] - from application in play-akka.actor.default-dispatcher-10 +2013-03-09 21:29:44,726 - [ERROR] - from application in New I/O worker #14 + + +! Internal server error, for request [GET /consensus/browse/64?_=1362832184455] -> + +sbt.PlayExceptions$CompilationException: Compilation error [cannot find symbol [symbol: variable STAT] [location: class models.ClaimModel]] + at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$4$$anonfun$apply$12$$anonfun$apply$13.apply(PlayReloader.scala:229) ~[na:na] + at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$4$$anonfun$apply$12$$anonfun$apply$13.apply(PlayReloader.scala:229) ~[na:na] + at scala.Option.map(Option.scala:133) ~[scala-library.jar:0.11.3] + at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$4$$anonfun$apply$12.apply(PlayReloader.scala:229) ~[na:na] + at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$4$$anonfun$apply$12.apply(PlayReloader.scala:226) ~[na:na] + at scala.Option.map(Option.scala:133) ~[scala-library.jar:0.11.3] + at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$4.apply(PlayReloader.scala:226) ~[na:na] + at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$4.apply(PlayReloader.scala:224) ~[na:na] + at scala.Either$LeftProjection.map(Either.scala:183) ~[scala-library.jar:0.11.3] + at sbt.PlayReloader$$anon$2$$anonfun$reload$3.apply(PlayReloader.scala:224) ~[na:na] + at sbt.PlayReloader$$anon$2$$anonfun$reload$3.apply(PlayReloader.scala:219) ~[na:na] + at scala.Option.getOrElse(Option.scala:108) ~[scala-library.jar:0.11.3] + at sbt.PlayReloader$$anon$2.reload(PlayReloader.scala:219) ~[na:na] + at play.core.ReloadableApplication$$anonfun$get$1.apply(ApplicationProvider.scala:110) ~[play_2.9.1.jar:2.0.3] + at play.core.ReloadableApplication$$anonfun$get$1.apply(ApplicationProvider.scala:110) ~[play_2.9.1.jar:2.0.3] + at akka.dispatch.Future$$anon$3.liftedTree1$1(Future.scala:195) ~[akka-actor.jar:2.0.2] + at akka.dispatch.Future$$anon$3.run(Future.scala:194) ~[akka-actor.jar:2.0.2] + at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:94) ~[akka-actor.jar:2.0.2] + at akka.jsr166y.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1381) ~[akka-actor.jar:2.0.2] + at akka.jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:259) ~[akka-actor.jar:2.0.2] + at akka.jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:975) ~[akka-actor.jar:2.0.2] + at akka.jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1479) ~[akka-actor.jar:2.0.2] + at akka.jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104) ~[akka-actor.jar:2.0.2] + +2013-03-09 21:29:49,832 - [INFO] - from application in play-akka.actor.default-dispatcher-4 Application shutdown... -2013-03-08 17:18:13,949 - [INFO] - from play in play-akka.actor.default-dispatcher-10 -Application started (Dev) - -2013-03-08 17:19:58,092 - [INFO] - from application in play-akka.actor.default-dispatcher-11 -Application shutdown... - -2013-03-08 17:19:58,109 - [INFO] - from play in play-akka.actor.default-dispatcher-11 +2013-03-09 21:29:49,852 - [INFO] - from play in play-akka.actor.default-dispatcher-4 Application started (Dev) -2013-03-08 17:20:53,334 - [INFO] - from application in play-akka.actor.default-dispatcher-11 +2013-03-09 21:31:19,822 - [INFO] - from application in play-akka.actor.default-dispatcher-4 Application shutdown... -2013-03-08 17:20:53,356 - [INFO] - from play in play-akka.actor.default-dispatcher-11 +2013-03-09 21:31:19,841 - [INFO] - from play in play-akka.actor.default-dispatcher-4 Application started (Dev) -2013-03-08 19:46:34,614 - [INFO] - from application in play-akka.actor.default-dispatcher-15 -Application shutdown... - -2013-03-08 19:46:34,636 - [INFO] - from play in play-akka.actor.default-dispatcher-15 -Application started (Dev) - -2013-03-08 20:06:38,305 - [INFO] - from application in main -Application shutdown... - diff -r cddb5ed942a6 -r c6929060c85f target/scala-2.9.1/cache/compile/compile Binary file target/scala-2.9.1/cache/compile/compile has changed