Mercurial > hg > Members > nobuyasu > Consensus
changeset 50:d6c623e92837
modified routes
author | one |
---|---|
date | Thu, 04 Oct 2012 16:14:30 +0900 |
parents | 36ddbd5e5d45 |
children | a76259e2ca9f |
files | app/controllers/User.java app/models/ClaimModel.java app/models/TPGraph.java conf/routes logs/application.log target/scala-2.9.1/cache/compile/compile test/RequestTest.java |
diffstat | 7 files changed, 35 insertions(+), 427 deletions(-) [+] |
line wrap: on
line diff
--- a/app/controllers/User.java Thu Oct 04 14:00:08 2012 +0900 +++ b/app/controllers/User.java Thu Oct 04 16:14:30 2012 +0900 @@ -77,7 +77,9 @@ } else { UserModel user = new UserModel(v); HashSet<Object> set = user.getClaimsAndRequests(); - if (set == null) return notFound("Consensus not found"); + if (set == null) { + return notFound("Consensus not found"); + } Object[] consensus = tpGraph.checkConsensus(set); return created(Json.toJson(consensus)); }
--- a/app/models/ClaimModel.java Thu Oct 04 14:00:08 2012 +0900 +++ b/app/models/ClaimModel.java Thu Oct 04 16:14:30 2012 +0900 @@ -284,7 +284,13 @@ setProperty(STATUS, UNKNOWN); } } else if (inverseRefutationStatus != null && queAndSugStatus == null) { - setProperty(STATUS, inverseRefutationStatus); + if (inverseRefutationStatus.equals(FAILED)) { + setProperty(STATUS, FAILED); + } else if (requestsNumber == agreedNumber && inverseRefutationStatus.equals(PASS)) { + setProperty(STATUS, PASS); + } else { + setProperty(STATUS, UNKNOWN); + } } else if (inverseRefutationStatus == null && queAndSugStatus != null) { if (requestsNumber == agreedNumber && queAndSugStatus.equals(PASS)) { setProperty(STATUS, PASS);
--- a/app/models/TPGraph.java Thu Oct 04 14:00:08 2012 +0900 +++ b/app/models/TPGraph.java Thu Oct 04 16:14:30 2012 +0900 @@ -167,7 +167,7 @@ while (iter.hasNext()) { Object childId = iter.next(); ArrayList<Object> array = getAllUpperVertex(childId); - for (Object parentId: array.toArray()) { + for (Object parentId: array) { if (set.contains(parentId)) { if (set.contains(childId)) { // This behavior is anxiety.
--- a/conf/routes Thu Oct 04 14:00:08 2012 +0900 +++ b/conf/routes Thu Oct 04 16:14:30 2012 +0900 @@ -3,7 +3,7 @@ # ~~~~ # Home page -GET / controllers.Application.index() +#GET / controllers.Application.index() GET /users/all controllers.User.getAllUsers() PUT /users/create/:name controllers.User.createUser(name: String) GET /users/browse/:name controllers.User.getUser(name: String) @@ -26,5 +26,7 @@ # Map static resources from the /public folder to the /assets URL path -GET /assets/*file controllers.Assets.at(path="/public", file) +#GET /assets/*file controllers.Assets.at(path="/public", file) +GET / controllers.Assets.at(path="/public/viewer", file="index.html") +GET /*file controllers.Assets.at(path="/public/viewer", file)
--- a/logs/application.log Thu Oct 04 14:00:08 2012 +0900 +++ b/logs/application.log Thu Oct 04 16:14:30 2012 +0900 @@ -1,420 +1,6 @@ -2012-10-04 13:41:36,536 - [INFO] - from play in main -Listening for HTTP on port 9000... - -2012-10-04 13:43:32,554 - [INFO] - from play in play-akka.actor.default-dispatcher-3 -Application started (Dev) - -2012-10-04 13:46:16,049 - [INFO] - from application in play-akka.actor.default-dispatcher-5 -Application shutdown... - -2012-10-04 13:46:16,064 - [INFO] - from play in play-akka.actor.default-dispatcher-5 -Application started (Dev) - -2012-10-04 13:46:21,049 - [INFO] - from application in play-akka.actor.default-dispatcher-4 -Application shutdown... - -2012-10-04 13:46:21,061 - [INFO] - from play in play-akka.actor.default-dispatcher-4 -Application started (Dev) - -2012-10-04 13:46:25,843 - [ERROR] - from application in New I/O worker #2 - - -! Internal server error, for request [GET /users/all?_=1349325985785] -> - -sbt.PlayExceptions$CompilationException: Compilation error [illegal start of expression] - 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] - -2012-10-04 13:46:25,878 - [ERROR] - from application in New I/O worker #3 - - -! Internal server error, for request [GET /consensus/browse/6?_=1349325985786] -> - -sbt.PlayExceptions$CompilationException: Compilation error [illegal start of expression] - 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] - -2012-10-04 13:46:30,839 - [ERROR] - from application in New I/O worker #2 - - -! Internal server error, for request [GET /users/all?_=1349325990786] -> +2012-10-04 16:02:44,886 - [INFO] - from play in main +Listening for HTTP on port 80... -sbt.PlayExceptions$CompilationException: Compilation error [illegal start of expression] - 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] - -2012-10-04 13:46:30,877 - [ERROR] - from application in New I/O worker #3 - - -! Internal server error, for request [GET /consensus/browse/6?_=1349325990787] -> - -sbt.PlayExceptions$CompilationException: Compilation error [illegal start of expression] - 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] - -2012-10-04 13:46:35,871 - [ERROR] - from application in New I/O worker #2 - - -! Internal server error, for request [GET /users/all?_=1349325995786] -> - -sbt.PlayExceptions$CompilationException: Compilation error [operator && cannot be applied to boolean,java.lang.String] - 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] - -2012-10-04 13:46:35,933 - [ERROR] - from application in New I/O worker #3 - - -! Internal server error, for request [GET /consensus/browse/6?_=1349325995787] -> - -sbt.PlayExceptions$CompilationException: Compilation error [operator && cannot be applied to boolean,java.lang.String] - 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] - -2012-10-04 13:46:41,009 - [INFO] - from application in play-akka.actor.default-dispatcher-5 -Application shutdown... - -2012-10-04 13:46:41,023 - [INFO] - from play in play-akka.actor.default-dispatcher-5 -Application started (Dev) - -2012-10-04 13:46:51,014 - [INFO] - from application in play-akka.actor.default-dispatcher-4 -Application shutdown... - -2012-10-04 13:46:51,026 - [INFO] - from play in play-akka.actor.default-dispatcher-4 +2012-10-04 16:02:48,604 - [INFO] - from play in play-akka.actor.default-dispatcher-3 Application started (Dev) -2012-10-04 13:49:14,219 - [INFO] - from application in play-akka.actor.default-dispatcher-4 -Application shutdown... - -2012-10-04 13:49:14,238 - [INFO] - from play in play-akka.actor.default-dispatcher-4 -Application started (Dev) - -2012-10-04 13:50:38,734 - [INFO] - from application in play-akka.actor.default-dispatcher-4 -Application shutdown... - -2012-10-04 13:50:38,752 - [INFO] - from play in play-akka.actor.default-dispatcher-4 -Application started (Dev) - -2012-10-04 13:52:13,608 - [ERROR] - from application in New I/O worker #6 - - -! Internal server error, for request [GET /users/all?_=1349326333519] -> - -sbt.PlayExceptions$CompilationException: Compilation error [cannot find symbol [symbol: variable refutationStatus] [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] - -2012-10-04 13:52:13,664 - [ERROR] - from application in New I/O worker #7 - - -! Internal server error, for request [GET /consensus/browse/6?_=1349326333520] -> - -sbt.PlayExceptions$CompilationException: Compilation error [cannot find symbol [symbol: variable refutationStatus] [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] - -2012-10-04 13:52:18,586 - [ERROR] - from application in New I/O worker #6 - - -! Internal server error, for request [GET /users/all?_=1349326338519] -> - -sbt.PlayExceptions$CompilationException: Compilation error [cannot find symbol [symbol: variable refutationStatus] [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] - -2012-10-04 13:52:18,637 - [ERROR] - from application in New I/O worker #7 - - -! Internal server error, for request [GET /consensus/browse/6?_=1349326338520] -> - -sbt.PlayExceptions$CompilationException: Compilation error [cannot find symbol [symbol: variable refutationStatus] [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] - -2012-10-04 13:52:23,585 - [ERROR] - from application in New I/O worker #6 - - -! Internal server error, for request [GET /users/all?_=1349326343520] -> - -sbt.PlayExceptions$CompilationException: Compilation error [cannot find symbol [symbol: variable refutationStatus] [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] - -2012-10-04 13:52:23,641 - [ERROR] - from application in New I/O worker #7 - - -! Internal server error, for request [GET /consensus/browse/6?_=1349326343521] -> - -sbt.PlayExceptions$CompilationException: Compilation error [cannot find symbol [symbol: variable refutationStatus] [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] - -2012-10-04 13:52:28,742 - [INFO] - from application in play-akka.actor.default-dispatcher-4 -Application shutdown... - -2012-10-04 13:52:28,754 - [INFO] - from play in play-akka.actor.default-dispatcher-4 -Application started (Dev) - -2012-10-04 13:52:53,732 - [INFO] - from application in play-akka.actor.default-dispatcher-4 -Application shutdown... - -2012-10-04 13:52:53,744 - [INFO] - from play in play-akka.actor.default-dispatcher-4 -Application started (Dev) - -2012-10-04 13:53:33,753 - [INFO] - from application in play-akka.actor.default-dispatcher-6 -Application shutdown... - -2012-10-04 13:53:33,766 - [INFO] - from play in play-akka.actor.default-dispatcher-6 -Application started (Dev) -
--- a/test/RequestTest.java Thu Oct 04 14:00:08 2012 +0900 +++ b/test/RequestTest.java Thu Oct 04 16:14:30 2012 +0900 @@ -25,14 +25,26 @@ createUser(user3); createUser(user4); String[] users1 = {user2,user3,user4}; - String[] u = {user2}; + String[] u = {user2,user3}; createClaim(user1, u); - JsonNode user2Claim = getUserInfo(user2, "requests/"); - if (user2Claim.size() != 0) { - int id = user2Claim.get(0).asInt(); - String[] users = {user1}; + JsonNode user2Requests = getUserInfo(user2, "requests/"); + for (int i=0; i<user2Requests.size(); i++) { + int id = user2Requests.get(0).asInt(); + String[] users = {user1,user3}; createMention(user2, users, NodeModel.L_REFUTATION, id); } + JsonNode user1Requests = getUserInfo(user1, "requests/"); + for (int i=0; i< user1Requests.size(); i++) { + int id = user1Requests.get(0).asInt(); + createMention(user1, u, NodeModel.L_REFUTATION, id); + } + user2Requests = getUserInfo(user2, "requests/"); + for (int i=0; i<user2Requests.size(); i++) { + int id = user2Requests.get(0).asInt(); + String[] users = {user1,user3}; + createMention(user2, users, NodeModel.L_REFUTATION, id); + } + /* JsonNode user1Claim = getUserInfo(user1, "requests/");