HI i have problem in plugin

Description

HI i have problem in plugin

I can create custom field and first sync is successful , copy old custom field to newcustom field — after i get an error.

uest body by other means will not work as expected.
2019-07-02 17:51:55,586 http-nio-8843-exec-78 WARN Gorya 1071x5379276x5 bv95di 10.7.13.132,212.5.125.230 /rest/com.deniz.jira.customfields/latest/options/dbTables/synchConfiguration [c.d.j.c.i.ss.rest.CustomFieldOptionsResource]
java.lang.NullPointerException
at com.deniz.jira.cf.imp.ss.dbsynch.a.a(SourceFile:141)
at com.deniz.jira.cf.imp.ss.dbsynch.a.a(SourceFile:125)
at com.deniz.jira.cf.imp.ss.dbsynch.a.a(SourceFile:85)
at com.deniz.jira.cf.imp.ss.dbsynch.DBSynchronizationManager.processRowsFromDBTable(SourceFile:194)
at com.deniz.jira.cf.imp.ss.dbsynch.DBSynchronizationManager.synchronize(SourceFile:133)
at com.deniz.jira.cf.imp.ss.dbsynch.DBSynchronizationManager.synch(SourceFile:104)
at com.deniz.jira.cf.imp.ss.rest.CustomFieldOptionsResource.configureSynch(SourceFile:425)
... 3 filtered
at java.lang.reflect.Method.invoke(Method.java:498)
... 19 filtered
at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:154)
... 1 filtered
at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:68)
... 32 filtered
at com.atlassian.servicedesk.internal.web.ExternalCustomerLockoutFilter.doFilter(ExternalCustomerLockoutFilter.java:56)
... 13 filtered
at de.syracom.plugins.securelogin.common.service.SecureLoginFilter.doFilter(SecureLoginFilter.java:158)
... 3 filtered
at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21)
... 53 filtered
at com.atlassian.jira.security.JiraSecurityFilter.lambda$doFilter$0(JiraSecurityFilter.java:66)
... 1 filtered
at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:64)
... 16 filtered
at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:37)
... 19 filtered
at com.atlassian.jira.servermetrics.CorrelationIdPopulatorFilter.doFilter(CorrelationIdPopulatorFilter.java:30)
... 5 filtered
at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.lambda$invokeFilterChain$0(CustomerContextSettingFilter.java:181)
at com.atlassian.servicedesk.internal.api.util.context.ReentrantThreadLocalBasedCodeContext.rteInvoke(ReentrantThreadLocalBasedCodeContext.java:137)
at com.atlassian.servicedesk.internal.api.util.context.ReentrantThreadLocalBasedCodeContext.runOutOfContext(ReentrantThreadLocalBasedCodeContext.java:90)
at com.atlassian.servicedesk.internal.utils.context.CustomerContextServiceImpl.runOutOfCustomerContext(CustomerContextServiceImpl.java:47)
at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.outOfCustomerContext(CustomerContextSettingFilter.java:174)
at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilterImpl(CustomerContextSettingFilter.java:130)
at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilter(CustomerContextSettingFilter.java:121)
... 4 filtered
at com.atlassian.jwt.internal.servlet.JwtAuthFilter.doFilter(JwtAuthFilter.java:32)
... 8 filtered
at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21)
... 4 filtered
at com.atlassian.web.servlet.plugin.LocationCleanerFilter.doFilter(LocationCleanerFilter.java:36)
... 26 filtered
at com.atlassian.jira.servermetrics.MetricsCollectorFilter.doFilter(MetricsCollectorFilter.java:25)
... 24 filtered
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)

Environment

Cent os 7

Activity

Show:
Deniz Oğuz
July 3, 2019, 8:44 AM

Hi,

What do you mean by "copy old custom field to new custom field"? If you have updated database row for a custom field you should also modify AO_00C882_EX_OP_INFO table accordingly.

Alexey Gorya
July 3, 2019, 12:10 PM

Hi problem appears when updating the field Description

and set in from

if not specify Description all working

Deniz Oğuz
July 3, 2019, 12:22 PM

If you are using SQL are you sure that you are selecting ProjectUnid column so that it exist in the result or if you are using Table are you sure that ProjectUnid column exist int he table?

Alexey Gorya
July 3, 2019, 2:34 PM

Yes Project id is column and select in MSSQL client is correctly receive data.

 

Fixed

Assignee

Deniz Oğuz

Reporter

Alexey Gorya

Labels

None

Source

None

Jira Version

Jira v7.12.1

Database Type/Version

oracle 18

Browser Type/Version

None

Fix versions

Affects versions

Priority

Major
Configure