Uploaded image for project: 'SR for Bitbucket - Development'
  1. SR for Bitbucket - Development
  2. SRBITB-237

Class not found for some event types

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 5.0.6, 5.0.7
    • Fix Version/s: 5.0.9, 5.0.10
    • Labels:
      None
    • Sprint:
      Sprint 30 - Ends June 20
    • Critical Points:
      0

      Description

      Some event types can not be found when the event handler is registered resulting in the following stacktrace:

      java.lang.ClassNotFoundException: com.atlassian.bitbucket.event.watch.WatcherAddedEvent not found by com.onresolve.stash.groovy.groovyrunner [125]
      at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:264)
      at com.onresolve.scriptrunner.bitbucket.DynamicEventListenerInvoker$_supportedEventTypes_closure1.doCall(BitbucketEventListener.groovy:268)
      at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
      at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
      at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1021)
      at groovy.lang.Closure.call(Closure.java:426)
      at groovy.lang.Closure.call(Closure.java:442)

      It's because we need to use the Bitbucket class loader rather than our own to load the classes for the supported event types.

        Attachments

          Activity

            People

            Assignee:
            amarkham Adam Markham
            Reporter:
            amarkham Adam Markham
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: