We're updating the issue view to help you get more done. 

Reduce logging/ignore bad custom fields in Jira

Description

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 2018-06-04 22:24:45,535 automation-rule-executor:thread-32 WARN jira-admin 508x1699595x14 1om6655 10.212.100.250,10.203.150.21,127.0.0.1 /rest/plugins/1.0/available/featured [c.c.jira.issues.IgnoreScreenEditMetaFieldBeanBuilder] Error loading field meta for field customfield_16600. Field will be ignored. java.lang.NullPointerException customfield_16600 and others like these are created by another plugin, (profields). There are around 9000 entries like this every day. ---- the stack trace is ---- 2018-06-04 03:41:33,128 automation-rule-executor:thread-22 WARN jira-admin [c.c.jira.issues.IgnoreScreenEditMetaFieldBeanBuilder] Error loading field meta for field customfield_16501. Field will be ignored. java.lang.NullPointerException at com.atlassian.jira.rest.v2.issue.AbstractMetaFieldBeanBuilder.getFieldMetaBean(AbstractMetaFieldBeanBuilder.java:127) at com.codebarrel.jira.issues.IgnoreScreenEditMetaFieldBeanBuilder.lambda$addAdditionalFields$0(IgnoreScreenEditMetaFieldBeanBuilder.java:56) at com.codebarrel.jira.issues.IgnoreScreenEditMetaFieldBeanBuilder.lambda$toFieldMetaData$2(IgnoreScreenEditMetaFieldBeanBuilder.java:77) at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) at com.codebarrel.jira.issues.IgnoreScreenEditMetaFieldBeanBuilder.toFieldMetaData(IgnoreScreenEditMetaFieldBeanBuilder.java:75) at com.codebarrel.jira.issues.IgnoreScreenEditMetaFieldBeanBuilder.addAdditionalFields(IgnoreScreenEditMetaFieldBeanBuilder.java:54) at com.atlassian.jira.rest.v2.issue.AbstractMetaFieldBeanBuilder.build(AbstractMetaFieldBeanBuilder.java:98) at com.codebarrel.jira.issues.EditIssueMetaSupplier.get(EditIssueMetaSupplier.java:83) at com.codebarrel.jira.issues.NativeIssueClient.lambda$getEditIssueMetaData$0(NativeIssueClient.java:270) at java.util.Optional.map(Optional.java:215) at com.codebarrel.jira.issues.NativeIssueClient.getEditIssueMetaData(NativeIssueClient.java:270) at com.codebarrel.jira.meta.NativeJiraDataService.getEditIssueMetaData(NativeJiraDataService.java:52) at com.codebarrel.automation.rulecomponent.jira.action.edit.EditIssueActionExecutor.lambda$executeWithIssues$0(EditIssueActionExecutor.java:93) at java.util.ArrayList.forEach(ArrayList.java:1249) at com.codebarrel.automation.rulecomponent.jira.action.edit.EditIssueActionExecutor.executeWithIssues(EditIssueActionExecutor.java:91) at com.codebarrel.automation.api.component.executor.IssueRequiredExecutor.execute(IssueRequiredExecutor.java:28) at com.codebarrel.automation.api.component.executor.IssueRequiredExecutor.execute(IssueRequiredExecutor.java:16) at com.codebarrel.automation.api.service.ComponentChainImpl.doExecute(ComponentChainImpl.java:101) at com.codebarrel.automation.api.service.SingleRuleExecutorServiceImpl.execute(SingleRuleExecutorServiceImpl.java:181) at com.codebarrel.jira.plugin.automation.service.execution.JiraAutomationExecutionService.lambda$validateAndExecute$2(JiraAutomationExecutionService.java:55) at com.codebarrel.jira.plugin.automation.service.execution.JiraIndexingSafeThreadLocalExecutor.lambda$execute$0(JiraIndexingSafeThreadLocalExecutor.java:193) at com.codebarrel.jira.plugin.automation.service.execution.JiraThreadLocalExecutor.executeAs(JiraThreadLocalExecutor.java:44) at com.codebarrel.jira.plugin.automation.service.execution.JiraIndexingSafeThreadLocalExecutor.execute(JiraIndexingSafeThreadLocalExecutor.java:112) at com.codebarrel.jira.plugin.automation.service.execution.JiraIndexingSafeThreadLocalExecutor.execute(JiraIndexingSafeThreadLocalExecutor.java:92) at com.codebarrel.jira.plugin.automation.service.execution.JiraAutomationExecutionService.validateAndExecute(JiraAutomationExecutionService.java:53) at com.codebarrel.jira.plugin.automation.service.execution.JiraAutomationExecutionService.processEventWithRule(JiraAutomationExecutionService.java:49) at com.codebarrel.jira.plugin.automation.queue.JiraAutomationQueueExecutor.lambda$null$1(JiraAutomationQueueExecutor.java:196) at com.codebarrel.jira.plugin.automation.service.execution.JiraThreadLocalExecutor.executeAs(JiraThreadLocalExecutor.java:44) at com.codebarrel.jira.plugin.automation.queue.JiraAutomationQueueExecutor.lambda$null$2(JiraAutomationQueueExecutor.java:188) at java.util.Optional.ifPresent(Optional.java:159) at com.codebarrel.jira.plugin.automation.queue.JiraAutomationQueueExecutor.lambda$processClaimedItem$3(JiraAutomationQueueExecutor.java:188) at com.atlassian.jira.util.concurrent.BoundedExecutor$1.run(BoundedExecutor.java:50) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

Environment

Status

Assignee

Andreas Knecht

Reporter

Andreas Knecht

Links

1

Fix versions

Priority