Spring tips

Bean named 'org.springframework.transaction.interceptor.TransactionInterceptor#0' must be of type [org.aopalliance.aop.Advice]

When you are dealing with following exception, you should check if they're no errors in your classpath (for example two different JARs for AOPAlliance project): [2012/12/12 11:22:05.927] org.spring...

Continue Reading β†’

Exception with BindingResult

As you could see in the article about validation in Spring, the object handling validation result must be defined directly after validated object (for example object annotated with @Valid). So, this s...

Continue Reading β†’

Exception using Pageable and Sort instances

When you're using Pageable and Sort instances on your data repository methods, you can encouter following exception: Caused by: java.lang.IllegalStateException: Method must not have Pageable *and* ...

Continue Reading β†’

How to use multiple mappings for one request ?

Normally, we set one URL per defined request. But sometimes we can have to define multiple URLs corresponding to the same request. We can do it in normal way, just by specyfing a list of URLs within {...

Continue Reading β†’

An error occured using authorize tag in JSP

If you use Spring Security project, you can be take to deal with following exception: javax.servlet.ServletException: javax.servlet.jsp.JspException: java.io.IOException: No visible WebSecurityExpr...

Continue Reading β†’

406 response code when sending JSON

With bad configured Spring message converters, you won't able to handle JSON code. If you receive a response with 406 code when you try to send JSON, a problem with message converters can be the reaso...

Continue Reading β†’