There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Not able to start in tomcat 7
    via GitHub by jenshp
  • GitHub comment 783#270628410
    via GitHub by kmakowski
  • GitHub comment 340#259598197
    via GitHub by doracl
  • Why is this Groovy code trying to cast?
    via Stack Overflow by tinny
  • groovy "with" block usage query
    via Stack Overflow by Abe
    • Cannot cast object 'User(' with class 'com.test.User' to class 'com.test.User' at at at at at grails.plugin.springsecurity.web.authentication.GrailsUsernamePasswordAuthenticationFilter.attemptAuthentication(GrailsUsernamePasswordAuthenticationFilter.groovy:53) at Caused by: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'User(' with class 'com.test.User' to class 'com.test.User' at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.continueCastOnSAM( at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.continueCastOnNumber( at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType( at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.castToType( at com.test.User.findWhere(User.groovy) at com.test.User$ Source) at grails.plugin.springsecurity.userdetails.GormUserDetailsService.$tt__loadUserByUsername(GormUserDetailsService.groovy:60) at grails.plugin.springsecurity.userdetails.GormUserDetailsService$_loadUserByUsername_closure1.doCall(GormUserDetailsService.groovy)

    Users with the same issue

    11 times, last one,
    1 times, last one,
    2 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    15 more bugmates