I recently upgraded grails app from 2.5.3 to 3.1.8. I have updated all the plugins. But when I make the api call to the app it throws me the following error.
DEBUG org.springframework.security.web.util.matcher.AntPathRequestMatcher - Checking match of request : '/mapi/login'; against '/mapi/**'
DEBUG org.springframework.security.web.FilterChainProxy - /mapi/login at position 1 of 7 in additional filter chain; firing Filter: 'SecurityRequestHolderFilter'
DEBUG org.springframework.security.web.FilterChainProxy - /mapi/login at position 2 of 7 in additional filter chain; firing Filter: 'MutableLogoutFilter'
DEBUG org.springframework.security.web.util.matcher.AntPathRequestMatcher - Checking match of request : '/mapi/login'; against '/logoff'
DEBUG org.springframework.security.web.FilterChainProxy - /mapi/login at position 3 of 7 in additional filter chain; firing Filter: 'RestAuthenticationFilter'
DEBUG grails.plugin.springsecurity.rest.RestAuthenticationFilter - Actual URI is /mapi/login; endpoint URL is /mapi/login
DEBUG grails.plugin.springsecurity.rest.RestAuthenticationFilter - Applying authentication filter to this request
DEBUG grails.plugin.springsecurity.rest.credentials.DefaultJsonPayloadCredentialsExtractor - Extracted credentials from JSON payload. Username: 20-2330 KEITH ONG, password: [PROTECTED]
DEBUG grails.plugin.springsecurity.rest.RestAuthenticationFilter - Trying to authenticate the request
INFO org.springframework.security.core.SpringSecurityCoreVersion - You are running with Spring Security Core 4.0.4.RELEASE
DEBUG org.springframework.security.authentication.ProviderManager - Authentication attempt using org.springframework.security.authentication.dao.DaoAuthenticationProvider
DEBUG grails.plugin.springsecurity.rest.RestAuthenticationFilter - Authentication failed: Could not obtain current Hibernate Session; nested exception is org.hibernate.HibernateException: No Session found for current thread
DEBUG grails.plugin.springsecurity.rest.token.bearer.BearerTokenReader - Looking for bearer token in Authorization header, query string or Form-Encoded body parameter
DEBUG grails.plugin.springsecurity.rest.token.bearer.BearerTokenReader - No token found
DEBUG grails.plugin.springsecurity.rest.token.bearer.BearerTokenReader - Token: null
DEBUG grails.plugin.springsecurity.rest.token.bearer.BearerTokenAuthenticationFailureHandler - Sending status code 401 and header WWW-Authenticate: Bearer
DEBUG grails.plugin.springsecurity.rest.RestAuthenticationFilter - Not authenticated. Rest authentication token not generated.
I recently upgraded grails app from 2.5.3 to 3.1.8. I have updated all the plugins. But when I make the api call to the app it throws me the following error.
Here's my build.gradle contents