java.lang.IllegalAccessError: tried to access method org.codehaus.groovy.reflection.CachedClass.coerceArgument(Ljava/lang/Object;)Ljava/lang/Object; from class org.codehaus.groovy.runtime.dgm$328

Apache's JIRA Issue Tracker | René de Bloois | 9 years ago
  1. 0

    I get this stacktrace {code} java.lang.IllegalAccessError: tried to access method org.codehaus.groovy.reflection.CachedClass.coerceArgument(Ljava/lang/Object;)Ljava/lang/Object; from class org.codehaus.groovy.runtime.dgm$328 at org.codehaus.groovy.runtime.dgm$328.doMethodInvoke(Unknown Source) at org.codehaus.groovy.runtime.CallSiteArray$PojoCall.call(CallSiteArray.java:72) at org.codehaus.groovy.runtime.CallSiteArray.call(CallSiteArray.java:40) at app.web.controllers.SearchLanesController$_closure1_closure3.doCall(SearchLanesController.groovy]:51) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:227) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:873) at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:947) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:76) at app.web.controllers.SearchLanesController$_closure1_closure3.doCall(SearchLanesController.groovy]) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:227) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:873) at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:947) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:710) at groovy.lang.Closure.call(Closure.java:292) at groovy.lang.Closure.call(Closure.java:287) at ronnie.gosh.UnboundClosure.call(UnboundClosure.java:25) at ronnie.gosh.ApplicationContext.call(ApplicationContext.java:86) at ronnie.gosh.ApplicationContext.call(ApplicationContext.java:97) at ronnie.gosh.GoshDispatcherServlet.doService(GoshDispatcherServlet.java:97) at app.web.HtmlDispatcherServlet.doService(HtmlDispatcherServlet.java:43) at ronnie.gosh.GoshDispatcherServlet.service(GoshDispatcherServlet.java:112) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) {code} I didn't get that with a previous revision. At line 48 of SearchLanesController.groovy I have {code} def lanes = laneService.search( session.user, origRegions, null, null, destRegions, null, null, null, null, (int)0, (boolean)true, (int)( args.maxResults + 1 ), null, (int)0, null, null, null, null, (boolean)false, (boolean)false ) {code} It tries to call a java class method of a business component: {code} public List search( SessionUser sessionUser, List originRegionCodes, List originCountryCodes, List originStationCodes, List destinationRegionCodes, List destinationCountryCodes, List destinationStationCodes, List productGroupCodes, final String laneProductGroupType, final int currentTransitTimeValue, boolean includeAuthorizedFlag, int maxResults, List daysOfWeek, final int pickupCutoff, Long minEtp, Long maxEtp, Long minTargetDay, Long maxTargetDay, boolean includeProposed, final boolean getETP ) {code} This method is also in an interface. Together they form a spring bean with transactions, so that there is a proxy around it. It worked in a previous revision of groovy 1.6 beta 1.

    Apache's JIRA Issue Tracker | 9 years ago | René de Bloois
    java.lang.IllegalAccessError: tried to access method org.codehaus.groovy.reflection.CachedClass.coerceArgument(Ljava/lang/Object;)Ljava/lang/Object; from class org.codehaus.groovy.runtime.dgm$328
  2. 0

    I get this stacktrace {code} java.lang.IllegalAccessError: tried to access method org.codehaus.groovy.reflection.CachedClass.coerceArgument(Ljava/lang/Object;)Ljava/lang/Object; from class org.codehaus.groovy.runtime.dgm$328 at org.codehaus.groovy.runtime.dgm$328.doMethodInvoke(Unknown Source) at org.codehaus.groovy.runtime.CallSiteArray$PojoCall.call(CallSiteArray.java:72) at org.codehaus.groovy.runtime.CallSiteArray.call(CallSiteArray.java:40) at app.web.controllers.SearchLanesController$_closure1_closure3.doCall(SearchLanesController.groovy]:51) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:227) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:873) at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:947) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:76) at app.web.controllers.SearchLanesController$_closure1_closure3.doCall(SearchLanesController.groovy]) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:227) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:873) at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:947) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:710) at groovy.lang.Closure.call(Closure.java:292) at groovy.lang.Closure.call(Closure.java:287) at ronnie.gosh.UnboundClosure.call(UnboundClosure.java:25) at ronnie.gosh.ApplicationContext.call(ApplicationContext.java:86) at ronnie.gosh.ApplicationContext.call(ApplicationContext.java:97) at ronnie.gosh.GoshDispatcherServlet.doService(GoshDispatcherServlet.java:97) at app.web.HtmlDispatcherServlet.doService(HtmlDispatcherServlet.java:43) at ronnie.gosh.GoshDispatcherServlet.service(GoshDispatcherServlet.java:112) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) {code} I didn't get that with a previous revision. At line 48 of SearchLanesController.groovy I have {code} def lanes = laneService.search( session.user, origRegions, null, null, destRegions, null, null, null, null, (int)0, (boolean)true, (int)( args.maxResults + 1 ), null, (int)0, null, null, null, null, (boolean)false, (boolean)false ) {code} It tries to call a java class method of a business component: {code} public List search( SessionUser sessionUser, List originRegionCodes, List originCountryCodes, List originStationCodes, List destinationRegionCodes, List destinationCountryCodes, List destinationStationCodes, List productGroupCodes, final String laneProductGroupType, final int currentTransitTimeValue, boolean includeAuthorizedFlag, int maxResults, List daysOfWeek, final int pickupCutoff, Long minEtp, Long maxEtp, Long minTargetDay, Long maxTargetDay, boolean includeProposed, final boolean getETP ) {code} This method is also in an interface. Together they form a spring bean with transactions, so that there is a proxy around it. It worked in a previous revision of groovy 1.6 beta 1.

    Apache's JIRA Issue Tracker | 9 years ago | René de Bloois
    java.lang.IllegalAccessError: tried to access method org.codehaus.groovy.reflection.CachedClass.coerceArgument(Ljava/lang/Object;)Ljava/lang/Object; from class org.codehaus.groovy.runtime.dgm$328
  3. 0

    db:: 3.65::java.lang.IllegalAccessError k3

    hivmr.com | 11 months ago
    java.lang.reflect.InvocationTargetException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    db:: 3.25::Spring java.lang.IllegalAccessError: tried to access method org.springframe d8

    hivmr.com | 9 months ago
    java.lang.reflect.InvocationTargetException
  6. 0

    Login failed with Confluence 5.x

    GitHub | 4 years ago | bananastalktome
    java.lang.IllegalAccessError: tried to access method com.atlassian.confluence.event.events.security.SecurityEvent.<init>(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V from class shibauth.confluence.authentication.shibboleth.RemoteUserAuthenticator

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalAccessError

      tried to access method org.codehaus.groovy.reflection.CachedClass.coerceArgument(Ljava/lang/Object;)Ljava/lang/Object; from class org.codehaus.groovy.runtime.dgm$328

      at org.codehaus.groovy.runtime.dgm$328.doMethodInvoke()
    2. Groovy
      CallSiteArray.call
      1. org.codehaus.groovy.runtime.dgm$328.doMethodInvoke(Unknown Source)
      2. org.codehaus.groovy.runtime.CallSiteArray$PojoCall.call(CallSiteArray.java:72)
      3. org.codehaus.groovy.runtime.CallSiteArray.call(CallSiteArray.java:40)
      3 frames