Team Velocity gadget is issuing an error

Issue #141 resolved
Sally Makhlouf created an issue

Hi Team,

Team velocity gadget is not working properly. Please check the logs that we found.

2022-03-16 08:25:11,585+0400 pool-184-thread-1 ERROR LJOU2886 392x78847x2 mb41mt 172.20.51.6 /plugins/servlet/stonikbyte/greatgadgets/aws [c.s.g.g.common.tasks.TaskGetVelocityChartData] http://127.0.0.1:8080 550 3 3 Code Black fieldStoryPoints false false null null false - Exception has occurred
java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "vvel4764"
        at com.stonikbyte.great.gadgets.common.ws.beans.IssueInfoBean.<init>(IssueInfoBean.java:456)
        at com.stonikbyte.great.gadgets.common.services.impl.JiraRestServiceImpl.lambda$optimizedGetOutsideIssueDetailsFromSprint$4(JiraRestServiceImpl.java:451)
        at java.util.ArrayList.forEach(ArrayList.java:1259)
        at com.stonikbyte.great.gadgets.common.services.impl.JiraRestServiceImpl.optimizedGetOutsideIssueDetailsFromSprint(JiraRestServiceImpl.java:449)
        at com.stonikbyte.great.gadgets.common.services.impl.JiraRestServiceImpl.getOutsideIssueDetailsFromSprint(JiraRestServiceImpl.java:404)
        at com.stonikbyte.great.gadgets.common.tasks.TaskGetVelocityChartData.determineVelocityDataForSprint(TaskGetVelocityChartData.java:551)
        at com.stonikbyte.great.gadgets.common.tasks.TaskGetVelocityChartData$ConcurrentGetVelocityChartTask.run(TaskGetVelocityChartData.java:892)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NumberFormatException: For input string: "vvel4764"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
        at java.lang.Integer.parseInt(Integer.java:580)
        at java.lang.Integer.valueOf(Integer.java:766)
        at com.stonikbyte.great.gadgets.common.ws.beans.IssueInfoBean.<init>(IssueInfoBean.java:357)

Best regards,

Sally

Comments (10)

  1. Danut M [StonikByte] repo owner

    Hi Sally,

    Thanks for posting.

    The error in question seems caused by an invalid sprint Id in the change history of an issue from the board. It is expected that the sprint ID is numerical, but in this case it is "vvel4764", which is totally invalid.

    What version of Jira do you have?

    We can create a custom app version that will log more info so that we can identify exactly the issue that that has this problem. Would it be OK to install this version? Do you have access to the Jira log file (atlassian-jira.log)?

    Thank you,

    Danut Manda

  2. Danut M [StonikByte] repo owner

    Hi Sally,

    Actually there is no need for a custom app version. The app already logged the details.

    In the atlassian-jira.log file, there should be a line that contains text “Error creating issue info bean for json“.

    I need all the log entries starting with that line.

    Looking forward for your reply.

    Thank you,

    Danut Manda

  3. Sally Makhlouf reporter

    Error creating issue info bean for json {"expand":"operations,versionedRepresentations,editmeta,changelog,renderedFields","self":"https://corpjira.digital14.com/rest/api/2/issue/149430","changelog":{"total":9,"maxResults":9,"histories":[{"author":{"emailAddress":"Gaurav.Chauhan@digital14.com","avatarUrls":{"48x48":"https://corpjira.digital14.com/secure/useravatar?avatarId=10122","24x24":"https://corpjira.digital14.com/secure/useravatar?size=small&avatarId=10122","16x16":"https://corpjira.digital14.com/secure/useravatar?size=xsmall&avatarId=10122","32x32":"https://corpjira.digital14.com/secure/useravatar?size=medium&avatarId=10122"},"displayName":"Gaurav Chauhan","name":"CGAU1083","self":"https://corpjira.digital14.com/rest/api/2/user?username=CGAU1083","active":true,"timeZone":"Asia/Dubai","key":"cgau1083"},"created":"2020-05-31T09:16:30.702+0400","id":"1638605","items":[{"field":"Epic Link","from":null,"toString":"ALC-8889","fromString":null,"to":"136651","fieldtype":"custom"}]},{"author":{"emailAddress":"Randhir.Kumar@digital14.com","avatarUrls":{"48x48":"https://corpjira.digital14.com/secure/useravatar?avatarId=10122","24x24":"https://corpjira.digital14.com/secure/useravatar?size=small&avatarId=10122","16x16":"https://corpjira.digital14.com/secure/useravatar?size=xsmall&avatarId=10122","32x32":"https://corpjira.digital14.com/secure/useravatar?size=medium&avatarId=10122"},"displayName":"Randhir Kumar [X]","name":"KRAN4411","self":"https://corpjira.digital14.com/rest/api/2/user?username=KRAN4411","active":false,"timeZone":"Asia/Dubai","key":"kran4411"},"created":"2020-05-31T11:12:56.652+0400","id":"1639850","items":[{"field":"Sprint","from":"vvel4764","toString":"","fromString":"","to":"vvel4764","fieldtype":"custom"}]},{"author":{"emailAddress":"Randhir.Kumar@digital14.com","avatarUrls":{"48x48":"https://corpjira.digital14.com/secure/useravatar?avatarId=10122","24x24":"https://corpjira.digital14.com/secure/useravatar?size=small&avatarId=10122","16x16":"https://corpjira.digital14.com/secure/useravatar?size=xsmall&avatarId=10122","32x32":"https://corpjira.digital14.com/secure/useravatar?size=medium&avatarId=10122"},"displayName":"Randhir Kumar [X]","name":"KRAN4411","self":"https://corpjira.digital14.com/rest/api/2/user?username=KRAN4411","active":false,"timeZone":"Asia/Dubai","key":"kran4411"},"created":"2020-05-31T11:13:00.485+0400","id":"1639866","items":[{"field":"Sprint","from":null,"toString":"Jan: Sprint 2","fromString":null,"to":"19","fieldtype":"custom"}]},{"author":{"emailAddress":"Gaurav.Chauhan@digital14.com","avatarUrls":{"48x48":"https://corpjira.digital14.com/secure/useravatar?avatarId=10122","24x24":"https://corpjira.digital14.com/secure/useravatar?size=small&avatarId=10122","16x16":"https://corpjira.digital14.com/secure/useravatar?size=xsmall&avatarId=10122","32x32":"https://corpjira.digital14.com/secure/useravatar?size=medium&avatarId=10122"},"displayName":"Gaurav Chauhan","name":"CGAU1083","self":"https://corpjira.digital14.com/rest/api/2/user?username=CGAU1083","active":true,"timeZone":"Asia/Dubai","key":"cgau1083"},"created":"2020-06-25T15:38:12.991+0400","id":"1740208","items":[{"field":"status","from":"10100","toString":"On Hold","fromString":"Backlog","to":"10959","fieldtype":"jira"}]},{"author":{"emailAddress":"Gaurav.Chauhan@digital14.com","avatarUrls":{"48x48":"https://corpjira.digital14.com/secure/useravatar?avatarId=10122","24x24":"https://corpjira.digital14.com/secure/useravatar?size=small&avatarId=10122","16x16":"https://corpjira.digital14.com/secure/useravatar?size=xsmall&avatarId=10122","32x32":"https://corpjira.digital14.com/secure/useravatar?size=medium&avatarId=10122"},"displayName":"Gaurav Chauhan","name":"CGAU1083","self":"https://corpjira.digital14.com/rest/api/2/user?username=CGAU1083","active":true,"timeZone":"Asia/Dubai","key":"cgau1083"},"created":"2020-06-25T15:38:18.316+0400","id":"1740209","items":[{"field":"status","from":"10959","toString":"Closed","fromString":"On Hold","to":"6","fieldtype":"jira"}]},{"author":{"emailAddress":"Gaurav.Chauhan@digital14.com","avatarUrls":{"48x48":"https://corpjira.digital14.com/secure/useravatar?avatarId=10122","24x24":"https://corpjira.digital14.com/secure/useravatar?size=small&avatarId=10122","16x16":"https://corpjira.digital14.com/secure/useravatar?size=xsmall&avatarId=10122","32x32":"https://corpjira.digital14.com/secure/useravatar?size=medium&avatarId=10122"},"displayName":"Gaurav Chauhan","name":"CGAU1083","self":"https://corpjira.digital14.com/rest/api/2/user?username=CGAU1083","active":true,"timeZone":"Asia/Dubai","key":"cgau1083"},"created":"2020-06-30T22:18:07.998+0400","id":"1755266","items":[{"field":"Task mode","from":null,"toString":"Auto bottom up","fromString":null,"to":"14600","fieldtype":"custom"}]},{"author":{"emailAddress":"Gaurav.Chauhan@digital14.com","avatarUrls":{"48x48":"https://corpjira.digital14.com/secure/useravatar?avatarId=10122","24x24":"https://corpjira.digital14.com/secure/useravatar?size=small&avatarId=10122","16x16":"https://corpjira.digital14.com/secure/useravatar?size=xsmall&avatarId=10122","32x32":"https://corpjira.digital14.com/secure/useravatar?size=medium&avatarId=10122"},"displayName":"Gaurav Chauhan","name":"CGAU1083","self":"https://corpjira.digital14.com/rest/api/2/user?username=CGAU1083","active":true,"timeZone":"Asia/Dubai","key":"cgau1083"},"created":"2020-06-30T22:19:10.623+0400","id":"1756025","items":[{"field":"Planned End","from":null,"toString":"02/Jun/20 12:00 AM","fromString":null,"to":"2020-06-02T00:00:00+0400","fieldtype":"custom"},{"field":"Planned Start","from":null,"toString":"31/May/20 12:00 AM","fromString":null,"to":"2020-05-31T00:00:00+0400","fieldtype":"custom"}]},{"author":{"emailAddress":"Mano.Emmanvel@digital14.com","avatarUrls":{"48x48":"https://corpjira.digital14.com/secure/useravatar?avatarId=11518","24x24":"https://corpjira.digital14.com/secure/useravatar?size=small&avatarId=11518","16x16":"https://corpjira.digital14.com/secure/useravatar?size=xsmall&avatarId=11518","32x32":"https://corpjira.digital14.com/secure/useravatar?size=medium&avatarId=11518"},"displayName":"Mano Harrison Emmanvel","name":"VMAN9576","self":"https://corpjira.digital14.com/rest/api/2/user?username=VMAN9576","active":true,"timeZone":"Asia/Dubai","key":"vman9576"},"created":"2022-01-19T15:47:06.730+0400","id":"3991090","items":[{"field":"Workflow","from":"217739","toString":"DevOps Task Workflow 1.3","fromString":"DevOps Task Workflow 1.1","to":"537174","fieldtype":"jira"}]},{"author":{"emailAddress":"Sally.Makhlouf@digital14.com","avatarUrls":{"48x48":"https://corpjira.digital14.com/secure/useravatar?ownerId=msal1149&avatarId=21120","24x24":"https://corpjira.digital14.com/secure/useravatar?size=small&ownerId=msal1149&avatarId=21120","16x16":"https://corpjira.digital14.com/secure/useravatar?size=xsmall&ownerId=msal1149&avatarId=21120","32x32":"https://corpjira.digital14.com/secure/useravatar?size=medium&ownerId=msal1149&avatarId=21120"},"displayName":"Sally Makhlouf","name":"MSAL1149","self":"https://corpjira.digital14.com/rest/api/2/user?username=MSAL1149","active":true,"timeZone":"Asia/Dubai","key":"msal1149"},"created":"2022-02-18T14:58:19.029+0400","id":"4069275","items":[{"field":"resolution","from":null,"toString":"Resolved","fromString":null,"to":"10201","fieldtype":"jira"}]}],"startAt":0},"id":"149430","fields":{"issuetype":{"avatarId":10318,"name":"Task","self":"https://corpjira.digital14.com/rest/api/2/issuetype/3","description":"A task that needs to be done.","id":"3","iconUrl":"https://corpjira.digital14.com/secure/viewavatar?size=xsmall&avatarId=10318&avatarType=issuetype","subtask":false},"created":"2020-05-31T09:16:09.000+0400","customfield_10002":0,"customfield_10004":[],"status":{"name":"Closed","self":"https://corpjira.digital14.com/rest/api/2/status/6","description":"The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.","iconUrl":"https://corpjira.digital14.com/images/icons/statuses/closed.png","id":"6","statusCategory":{"colorName":"green","name":"Done","self":"https://corpjira.digital14.com/rest/api/2/statuscategory/3","id":3,"key":"done"}}},"key":"ALC-9481"}
    java.lang.NumberFormatException: For input string: "vvel4764"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:580)
    at java.lang.Integer.valueOf(Integer.java:766)
    at com.stonikbyte.great.gadgets.common.ws.beans.IssueInfoBean.<init>(IssueInfoBean.java:357)
    at com.stonikbyte.great.gadgets.common.services.impl.JiraRestServiceImpl.lambda$optimizedGetOutsideIssueDetailsFromSprint$4(JiraRestServiceImpl.java:451)
    at java.util.ArrayList.forEach(ArrayList.java:1259)
    at com.stonikbyte.great.gadgets.common.services.impl.JiraRestServiceImpl.optimizedGetOutsideIssueDetailsFromSprint(JiraRestServiceImpl.java:449)
    at com.stonikbyte.great.gadgets.common.services.impl.JiraRestServiceImpl.getOutsideIssueDetailsFromSprint(JiraRestServiceImpl.java:404)
    at com.stonikbyte.great.gadgets.common.tasks.TaskGetVelocityChartData.determineVelocityDataForSprint(TaskGetVelocityChartData.java:551)
    at com.stonikbyte.great.gadgets.common.tasks.TaskGetVelocityChartData$ConcurrentGetVelocityChartTask.run(TaskGetVelocityChartData.java:892)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
    2022-03-16 08:49:57,870+0400 pool-184-thread-2 ERROR LJOU2886 395x79472x2 mb41mt 172.20.51.6 /plugins/servlet/stonikbyte/greatgadgets/aws [c.s.g.g.common.tasks.TaskGetVelocityChartData] http://127.0.0.1:8080 550 3 3 Code Black fieldStoryPoints false false null null false - Exception has occurred
    java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "vvel4764"
    at com.stonikbyte.great.gadgets.common.ws.beans.IssueInfoBean.<init>(IssueInfoBean.java:456)
    at com.stonikbyte.great.gadgets.common.services.impl.JiraRestServiceImpl.lambda$optimizedGetOutsideIssueDetailsFromSprint$4(JiraRestServiceImpl.java:451)
    at java.util.ArrayList.forEach(ArrayList.java:1259)
    at com.stonikbyte.great.gadgets.common.services.impl.JiraRestServiceImpl.optimizedGetOutsideIssueDetailsFromSprint(JiraRestServiceImpl.java:449)
    at com.stonikbyte.great.gadgets.common.services.impl.JiraRestServiceImpl.getOutsideIssueDetailsFromSprint(JiraRestServiceImpl.java:404)
    at com.stonikbyte.great.gadgets.common.tasks.TaskGetVelocityChartData.determineVelocityDataForSprint(TaskGetVelocityChartData.java:551)
    at com.stonikbyte.great.gadgets.common.tasks.TaskGetVelocityChartData$ConcurrentGetVelocityChartTask.run(TaskGetVelocityChartData.java:892)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
    Caused by: java.lang.NumberFormatException: For input string: "vvel4764"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:580)
    at java.lang.Integer.valueOf(Integer.java:766)
    at com.stonikbyte.great.gadgets.common.ws.beans.IssueInfoBean.<init>(IssueInfoBean.java:357)
    ... 11 more

  4. Danut M [StonikByte] repo owner

    Hi Sally,

    Thanks for this info. As I suspected, there is a field named Sprint that was set to a non-numerical value.

    The issue is ALC-9481.

    Can you please open issue ALC-9481 in Jira and provide a screenshot with its History tab? It should be visible there that the sprint was set to the invalid value.

    Also, please open this URL in your browser:

    <Your_Jira_Base_Url>/rest/api/latest/field

    This returns the list of the fields from you Jira. I want to check if you have more than one field named 'Sprints '. This might be a possible cause.

    Thank you,

    Danut Manda

  5. Sally Makhlouf reporter

    Hi Danut,

    We only have 1 field named Sprint and please find the screenshot attached.

  6. Danut M [StonikByte] repo owner

    Hi Sally,

    From the picture that you attached, it appears that Randhir Kumar set the Sprint to 'wel4764' on 31/May/20. I am not sure how was possible to set this to a non-numerical value.

    Can you please verify if there are other issues with the same problem?

    If this is the only one, a solution would be to permanently delete this issue from Jira.

    Thank you,

    Danut Manda

  7. Sally Makhlouf reporter

    Hi Danut,

    I verified and found that it was the only issue that had the problem.

    I would really appreciate if you can fix the issue from your end so we can avoid any future similar situation instead of deleting issues.

    Best regards,

    Sally

  8. Danut M [StonikByte] repo owner

    Hi Sally,

    I am happy to see this resolved.

    This looks more like a Jira bug to me. The sprint id must have always a numerical value. In this case, it was not. Perhaps you should ask Atlassian Support how was it possible to have the sprint id set to a non-numerical value.

    Our app signals an error if that field is not numerical, because ignoring it might result in incorrect velocity data displayed by the gadget. There is no fix to make, at least for now. We might reconsider this if the problem re-occurs or if it is also signaled by other customers.

    Thank you,

    Danut Manda

  9. Log in to comment