java.lang.reflect.InvocationTargetException: null

GitHub | tjeerdnet | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.

Root Cause Analysis

  1. org.codehaus.groovy.runtime.typehandling.GroovyCastException

    Cannot cast object 'net.test.command.UserCommand$__clinit__closure1@433c198' with class 'net.test.command.UserCommand$__clinit__closure1' to class 'java.util.Map'

    at com.github.rahulsom.swaggydoc.SwaggyDataService.getModels()
  2. com.github.rahulsom
    SwaggyDataService.$tt__apiDetails
    1. com.github.rahulsom.swaggydoc.SwaggyDataService.getModels(SwaggyDataService.groovy:390)[swaggydoc-grails3-0.26.0.jar:na]
    2. com.github.rahulsom.swaggydoc.SwaggyDataService.$tt__apiDetails(SwaggyDataService.groovy:151)[swaggydoc-grails3-0.26.0.jar:na]
    2 frames
  3. Grails
    GrailsTransactionTemplate.execute
    1. grails.transaction.GrailsTransactionTemplate$2.doInTransaction(GrailsTransactionTemplate.groovy:96)[grails-core-3.0.11.jar:3.0.11]
    2. grails.transaction.GrailsTransactionTemplate.execute(GrailsTransactionTemplate.groovy:93)[grails-core-3.0.11.jar:3.0.11]
    2 frames
  4. com.github.rahulsom
    ApiController.show
    1. com.github.rahulsom.swaggydoc.ApiController.show(ApiController.groovy:29)[swaggydoc-grails3-0.26.0.jar:na]
    1 frame
  5. grails.plugin.springsecurity
    SecurityRequestHolderFilter.doFilter
    1. grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.groovy:53)[spring-security-core-3.0.0.jar:na]
    2. grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.groovy:62)[spring-security-core-3.0.0.jar:na]
    3. grails.plugin.springsecurity.web.SecurityRequestHolderFilter.doFilter(SecurityRequestHolderFilter.groovy:58)[spring-security-core-3.0.0.jar:na]
    3 frames
  6. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_71]
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_71]
    3. java.lang.Thread.run(Thread.java:745)[na:1.8.0_71]
    3 frames