Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-5037

Grails functional tests failing due to VerifyError loading classes

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.8.3
    • Fix Version/s: 1.8.3, 1.9-beta-4
    • Component/s: None
    • Labels:
      None

      Description

      Exception:

      Caused by: java.lang.VerifyError: (class: org/jsecurity/grails/RealmWrapper, method: isPermitted signature: (Lorg/jsecurity/subject/PrincipalCollection;Ljava/util/List;)[Z) Expecting to find object/array on stack
      	at java.lang.Class.forName0(Native Method)
      	at java.lang.Class.forName(Class.java:169)
      	at JsecurityGrailsPlugin$_closure7.class$(JsecurityGrailsPlugin.groovy)
      	at JsecurityGrailsPlugin$_closure7.$get$$class$org$jsecurity$grails$RealmWrapper(JsecurityGrailsPlugin.groovy)
      	at JsecurityGrailsPlugin$_closure7.doCall(JsecurityGrailsPlugin.groovy:338)
      	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:90)
      	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
      	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
      	at groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java:1093)
      	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1056)
      	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884)
      	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:704)
      	at Jsec
      

      Console output from functional tests:

      http://hudson.grails.org/job/grails_functional_tests_2.0.x/1009/console

      Code that is causing the exception looks like:

             def wrapperName = "${realmName}Wrapper".toString()
              "${wrapperName}"(RealmWrapper) {
                  realm = ref("${realmName}Instance")
                  tokenClass = GrailsClassUtils.getStaticPropertyValue(grailsClass.clazz, 'authTokenClass')
              }
      

        Attachments

          Activity

            People

            • Assignee:
              blackdrag Jochen Theodorou
              Reporter:
              graemerocher Graeme Rocher
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: