Uploaded image for project: 'SR for Jira - Development'
  1. SR for Jira - Development
  2. SRJIRA-4094

Script Registry not loading with MismatchedInputException

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 5.6.9.1-p5
    • Fix Version/s: 5.8.0
    • Component/s: None
    • Labels:
      None
    • Sprint:
      SR4J Sprint 74
    • Critical Points:
      3.1

      Description

      I have clicked on the script registry. The page keeps loading and become irresponsive. JIRA become low and inaccessible. Please see screenshot.

      Exception 

      [c.o.s.c.jira.admin.ScriptRegistry] Failed to get script info from [<REDACTED>]
      com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `com.onresolve.scriptrunner.model.ScriptConfiguration` out of START_ARRAY token
       at [Source: (String)"<REDACTED>"; line: 1, column: 1]
      	at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59)
      	at com.fasterxml.jackson.databind.DeserializationContext.reportInputMismatch(DeserializationContext.java:1442)
      	at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1216)
      	at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1168)
      	at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromArray(BeanDeserializerBase.java:1460)
      	at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeOther(BeanDeserializer.java:185)
      	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:161)
      	at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4202)
      	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3205)
      	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3173)
      	at com.fasterxml.jackson.databind.ObjectMapper$readValue.call(Unknown Source)
      	at com.onresolve.scriptrunner.canned.jira.admin.ScriptRegistry$_getScriptInfo_closure2.doCall(ScriptRegistry.groovy:179)
      	... 2 filtered
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)
      	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
      	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
      	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034)
      	at groovy.lang.Closure.call(Closure.java:418)
      	at groovy.lang.Closure.call(Closure.java:434)
      	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2125)
      	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2110)
      	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2151)
      	at org.codehaus.groovy.runtime.dgm$163.invoke(Unknown Source)
      	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274)
      	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:128)
      	at com.onresolve.scriptrunner.canned.jira.admin.ScriptRegistry.getScriptInfo(ScriptRegistry.groovy:151)
      	... 2 filtered
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)
      	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
      	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:352)
      	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034)
      	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:68)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:169)
      	at com.onresolve.scriptrunner.canned.jira.admin.ScriptRegistry$_getTransitionsFromWorkflow_closure4$_closure15.doCall(ScriptRegistry.groovy:272)
      	... 2 filtered
       
       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              szaporozhtsev Sergey Zaporozhtsev [X] (Inactive)
              Reporter:
              dluksza Dariusz Luksza
              Votes:
              9 Vote for this issue
              Watchers:
              15 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: