Skip to content

Instantly share code, notes, and snippets.

View santoshjoshi's full-sized avatar

Santosh Joshi santoshjoshi

View GitHub Profile
@santoshjoshi
santoshjoshi / gist:21b061a437b68dea1de1a90f65922fc7
Created June 3, 2016 09:24 — forked from badsyntax/gist:4330899
Googe places autocomplete implementation using Twitter bootstrap typeahead and google's autocomplete and geocoding services
/**
* Author: Richard Willis - badsyntax.co
* Example here: http://demos.badsyntax.co/places-search-bootstrap/example.html
*
* Please note: This is not a reliable method of geocoding the address. Using the
* PlacesService is a much better approach. View the example above for an example
* of using the PlacesService to geocode the address.
*/
var service = new google.maps.places.AutocompleteService();
org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver doResolveHandlerMethodException
SEVERE: Failed to invoke @ExceptionHandler method: public org.springframework.web.servlet.ModelAndView HelloController.handleCustomException(com.mkyong.common.exception.CustomGenericException,javax.servlet.http.HttpServletRequest,org.springframework.web.servlet.ModelAndView)
java.lang.IllegalStateException: No suitable resolver for argument [2] [type=org.springframework.web.servlet.ModelAndView]
HandlerMethod details:
Controller [HelloController]
Method [public org.springframework.web.servlet.ModelAndView HelloController.handleCustomException(CustomGenericException,javax.servlet.http.HttpServletRequest,org.springframework.web.servlet.ModelAndView)]
at org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:169)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:124)
at or