groovy
  1. groovy
  2. GROOVY-5037

Grails functional tests failing due to VerifyError loading classes

    Details

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

      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')
              }
      

        Activity

        Graeme Rocher made changes -
        Field Original Value New Value
        Summary Grails functional tests failing due to VerifierError Grails functional tests failing due to VerifyError loading classes
        Description Exception:

        {code}
        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
        {code}

        Code that is causing the exception looks like:

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

        {code}
        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
        {code}

        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:

        {code}
               def wrapperName = "${realmName}Wrapper".toString()
                "${wrapperName}"(RealmWrapper) {
                    realm = ref("${realmName}Instance")
                    tokenClass = GrailsClassUtils.getStaticPropertyValue(grailsClass.clazz, 'authTokenClass')
                }
        {code}
        blackdrag blackdrag made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Assignee Jochen Theodorou [ blackdrag ]
        Fix Version/s 1.9-beta-4 [ 17656 ]
        Resolution Fixed [ 1 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: