kneczaj / pi-puppids

Automatically exported from code.google.com/p/pi-puppids
0 stars 0 forks source link

Conquering attempts are not possible if place is already conquered by the opposing faction #29

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start a conquering attempt for a place belonging to the opposing faction

What is the expected output? What do you see instead?
Excpected: A warning that currently not enough players are taking part and a 
dialogue to add more team members to the attempt.

Happening: UI-wise nothing happens, in the server log a 
IllegalArgumentException is shown.

Stacktrace:

[error] application -

! @6dajjbj8h - Internal server error, for request [GET 
/conquer/conquer?conqueringAttemptId=511aa32b44ae4037a73eb516] ->

play.core.ActionInvoker$$anonfun$receive$1$$anon$1: Execution exception 
[[IllegalArgumentException: Could not find conquering attempt]]
        at play.core.ActionInvoker$$anonfun$receive$1.apply(Invoker.scala:134) [play_2.9.1.jar:2.0.4]
        at play.core.ActionInvoker$$anonfun$receive$1.apply(Invoker.scala:115) [play_2.9.1.jar:2.0.4]
        at akka.actor.Actor$class.apply(Actor.scala:318) [akka-actor.jar:2.0.2]
        at play.core.ActionInvoker.apply(Invoker.scala:113) [play_2.9.1.jar:2.0.4]
        at akka.actor.ActorCell.invoke(ActorCell.scala:626) [akka-actor.jar:2.0.2]
        at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:197) [akka-actor.jar:2.0.2]
Caused by: java.lang.IllegalArgumentException: Could not find conquering attempt
        at services.impl.ConqueringServiceImpl.checkConquerConditions(ConqueringServiceImpl.java:239) ~[classes/:na]
        at services.impl.ConqueringServiceImpl.conquer(ConqueringServiceImpl.java:311) ~[classes/:na]
        at controllers.ConquerController.conquer(ConquerController.java:96) ~[classes/:na]
        at Routes$$anonfun$routes$1$$anonfun$apply$25$$anonfun$apply$26.apply(routes_routing.scala:300) ~[classes/:na]
        at Routes$$anonfun$routes$1$$anonfun$apply$25$$anonfun$apply$26.apply(routes_routing.scala:300) ~[classes/:na]
        at play.core.Router$HandlerInvoker$$anon$5$$anon$1.invocation(Router.scala:1090) ~[play_2.9.1.jar:2.0.4]

Original issue reported on code.google.com by michi.sc...@gmail.com on 12 Feb 2013 at 8:29

GoogleCodeExporter commented 8 years ago

Original comment by michi.sc...@gmail.com on 12 Feb 2013 at 8:32