[2.0] Form does not have a corresponding accessor for Sprint data binding?

4,254 views
Skip to first unread message

Cyril N.

unread,
Apr 17, 2012, 9:31:34 AM4/17/12
to play-fr...@googlegroups.com
Using Eclipse, everytime I change my form, I have this errror :

[IllegalStateException: JSR-303 validated property 'email' does not have a corresponding accessor for Spring data binding - check your DataBinder's configuration (bean property versus direct field access)]


The only way to not have this, is to remove the scala folder in the target directory, stop and re "run" the application. But as soon as I change a bit the Form, I have to do all of this again.


Why? Is there something I can do to avoid that ?


Thanks for your help!


Guillaume Bort

unread,
Apr 17, 2012, 10:26:26 AM4/17/12
to play-fr...@googlegroups.com
Probably because you are usin eclipse and it compiles in the same folder as Play, disabling the magic bytecode manipulation generating getter/setter. 
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/tPo2dNsnxA4J.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.

Cyril Nicodème

unread,
Apr 17, 2012, 10:30:23 AM4/17/12
to play-fr...@googlegroups.com
Thanks for your reply.
That's right, I'm using Eclipse, but how can I specify it to not compile directly into my project but somewhere else?

Cyril


2012/4/17 Guillaume Bort <guillau...@gmail.com>

sun

unread,
Apr 17, 2012, 1:01:11 PM4/17/12
to play-framework
In Eclipse you can the output folder under "Project properties" -
"Java Build Path".

Niklas Nylund

unread,
May 31, 2012, 8:49:52 AM5/31/12
to play-fr...@googlegroups.com
This seems to fix the issue. Is there a bug that tracks this issue already?

Niklas

tony

unread,
Oct 1, 2012, 4:09:38 PM10/1/12
to play-fr...@googlegroups.com
Can someone help me a little bit more with this? I've opened Java Build Path in eclipse. Do I change the "Default output folder"? It seems I can only set it to be something that's actually in my project folder.

Thanks in advance,

Tony
Reply all
Reply to author
Forward
0 new messages