How to Solve "Integer cannot be cast to Long" Problem on Spring Roo
java.lang.Integer cannot be cast to java.lang.LongAnd all my Spring Roo environment stopped working.
After "googling" a lot, I've finally found one possible reason to this problem, at least it was my case. So I'd like to share.
In my case I have annotated some fields with @Min(1) or @Max(9) for example, and what I didn't know is that those annotations takes a long parameter, not a integer parameter.
Then after changing @Min(1) to @Min(1L), the same to @Max annotations, the problem has gone and my Spring Roo environment is working again.
Thanx to this post http://www.manning-sandbox.com/thread.jspa?threadID=39831&tstart=0
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)