play 2.0 formbind validation exception

If you get the following error: [ValidationException: Call to TraversableResolver.isReachable() threw an exception] when you try to do a formbind with play 2.0 framework:
Form<Task> tasks = taskForm.bindFromRequest();
Then you should check if your class Task has getters and setters for the variables you need, the springbind library play relies on needs them to work.

3 thoughts on “play 2.0 formbind validation exception

  1. Thanks for this tip! It surely saved me some minutes. I still wonder why even very good tutorials miss these things. Let’s all keep posting online these microsolutions!

  2. Hello I also got that error because I wasn’t declaring the Id field of the Model task following the Java documentation. Which was my bad for not checking all the code in the tutorial.

    • en,I just add “@Id” before the id declare,and then ok

Comments are closed.