Issue #139 resolved
Antti Pöllä created an issue

Hi,

we are evaluating Time To SLA in our QA environment but are having a few issues with its functionality. QA is running JIRA Core+Software 7.0.0.

1) A NullPointerException is logged when trying to generate a report. We get to define filter, SLA status, and working duration, but after clicking next there is an error (see timetosla-error.txt attached).

2) SLA generation for existing issues doesn't seem to work properly. We have a number of SLAs set in "SLA Configuration (New)" that work properly otherwise, but when trying to generate SLAs for old tickets, instead of doing so, it clears the values from new tickets that had them, and for old ones does seemingly nothing.

The progress bar seems like its doing something... 0 of 321 issues have been finished 321 of 321 issues have been finished

Whatever information was in the "SLA Overview"-tab is now gone, and reads "There is no SLA activity yet" instead. So it did do something, but not what we expected. Our "SLA Configuration (Obsolete)" configuration is empty, so maybe it reads those instead?

Comments (29)

  1. Niko Mikander

    Waiting for a quick answer. We do not want you to miss big business possibilites due to these challenges.

  2. Tuncay Senturk repo owner

    Hi

    Sorry for the inconvenience,

    I think both problems are similar and the second one is the root cause the first one. If no issue found with SLA activity, your report gets NPE which we will be fixing within next version.

    However, SLA generation's failure is strange. We need to get some details.
    - Which version of TTS are you using?
    - Have you ever used the old model (the fields except (New))? If yes, have you switched to new model?
    - Could you please verify that "Store in database" option is checked under Admin > TTS Menu > Custom Fields?
    - Could you please attach the log file after running "SLA Generation"?

    I am looking forward to your response to fix the problem

    Regards
    Tuncay

  3. Antti Pöllä reporter

    Thank you for the quick response.

    To answer your queries... * We're running version 6.1.0

    • We originally configured our SLAs to the new one, having only started using the addon yesterday (and never before that). We also tested using the "old" configuration, but with the same results (mainly to verify what I originally wrote about "so maybe it reads those instead"). At that point, "new" and "old" configurations co-existed, and had overlap in definitions
    • Store in database is checked

    • Running "SLA Generation for existing issues" doesn't log anything to /jira/log/atlassian-jira.log (no success or error messages, nothing).

    I also ran a manual re-index, but it didn't change anything.

  4. Tuncay Senturk repo owner

    Are you sure that your SLA definitions match the issues? I mean after defining SLA and creating issue does Time to SLA field displays anything?
    As far as I understand, it displays and after running "SLA Generation" all data ran away. Is that right?

    Please give me as much detail as possible so that I can work on it in the weekend. Screenshots (SLA definitions, issue view before and after SLA generation, ...)

    Thanks for the feedback, I will do my best to understand fix the problem ASAP

    Regard
    Tuncay

  5. Antti Pöllä reporter

    SLA definitions (list + details) definitions.PNG incident-testing-2.PNG

    Generation settings generation-query.PNG generation-progress.PNG

    Issue (incident) details before and after running generate. incident-testing-pre-gen.PNG incident-testing-post-gen.PNG

    Searching issues loses results (latter image is just of one issue, that had data previously, SPI-1724) search-pre-gen.PNG search-post-gen.PNG

  6. Antti Pöllä reporter

    Generating new SLA values continues to work normally after generate, so the defined SLAs are still functional.

    incident-testing-post-gen-2.PNG

  7. Tuncay Senturk repo owner

    Thanks for the unbelievable documentation.
    Unfortunately, I could not find anything yet, but I generated a special binary to understand what's going on in your system.

    Could you please follow these steps?
    - Uninstall current version of TTS.
    - Download and install this binary (JIRA > Admin > Add-ons > Manage add-ons > Upload binary)
    - Generate SLA for existing issues
    - Sen me the whole log file
    - If possible please attach AO_C5D949_TTS_ISSUE_SLA table's content as well.

    Regards
    Tuncay

  8. Antti Pöllä reporter

    Unfortunately installing your binary failed right at the start. It's seemingly installed, but during installation, and trying to access configuration the following error is logged. As an additional detail we are running PostgreSQL 9.4.5, in case that would make any difference.

    Even the basic function of searching issues in JIRA breaks (and returns an "oops", due to the same error about StringLength seen below.

    2015-12-08 08:17:30,725 active-objects-init-JiraTenantImpl{id='system'}-0 DEBUG pollaan2     [c.a.activeobjects.osgi.TenantAwareActiveObjects] bundle [com.tuncaysenturk.jira.plugins.time-to-sla-plugin] creating ActiveObjects
    2015-12-08 08:17:30,774 UpmAsynchronousTaskManager:thread-4 ERROR pollaan2 927x6131x3 t5ssex 194.136.16.66 /rest/plugins/1.0/available/featured [c.t.j.p.timetosla.f.c] Unexpected error during launch
    com.atlassian.activeobjects.internal.ActiveObjectsInitException: bundle [com.tuncaysenturk.jira.plugins.time-to-sla-plugin]
            at com.atlassian.activeobjects.osgi.TenantAwareActiveObjects$1$1$1.call(TenantAwareActiveObjects.java:95)
            at com.atlassian.activeobjects.osgi.TenantAwareActiveObjects$1$1$1.call(TenantAwareActiveObjects.java:86)
            at com.atlassian.sal.core.executor.ThreadLocalDelegateCallable.call(ThreadLocalDelegateCallable.java:42)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            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)
    Caused by: net.java.ao.ActiveObjectsConfigurationException: @StringLength must be <= 450 or UNLIMITED (com.tuncaysenturk.jira.plugins.timetosla.entity.TtsSlaAddCond.getJqlString)
            at net.java.ao.ActiveObjectsConfigurationException.forMethod(ActiveObjectsConfigurationException.java:31)
            at net.java.ao.schema.SchemaGenerator.getSQLTypeFromMethod(SchemaGenerator.java:457)
            at net.java.ao.schema.SchemaGenerator.parseFields(SchemaGenerator.java:359)
            at net.java.ao.schema.SchemaGenerator.parseInterface(SchemaGenerator.java:323)
            at net.java.ao.schema.SchemaGenerator.parseDDLRoots(SchemaGenerator.java:174)
            at net.java.ao.schema.SchemaGenerator.generateImpl(SchemaGenerator.java:119)
            at net.java.ao.schema.SchemaGenerator.migrate(SchemaGenerator.java:89)
            at net.java.ao.EntityManager.migrate(EntityManager.java:132)
            at com.atlassian.activeobjects.internal.EntityManagedActiveObjects.migrate(EntityManagedActiveObjects.java:45)
            at com.atlassian.activeobjects.internal.AbstractActiveObjectsFactory$1.doInTransaction(AbstractActiveObjectsFactory.java:77)
            at com.atlassian.activeobjects.internal.AbstractActiveObjectsFactory$1.doInTransaction(AbstractActiveObjectsFactory.java:72)
            at com.atlassian.sal.core.transaction.HostContextTransactionTemplate$1.doInTransaction(HostContextTransactionTemplate.java:25)
            at com.atlassian.jira.DefaultHostContextAccessor.doInTransaction(DefaultHostContextAccessor.java:38)
            ... 2 filtered
            at java.lang.reflect.Method.invoke(Method.java:497)
            at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:30)
            at com.sun.proxy.$Proxy48.doInTransaction(Unknown Source)
            ... 2 filtered
            at java.lang.reflect.Method.invoke(Method.java:497)
            at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:161)
            at com.sun.proxy.$Proxy48.doInTransaction(Unknown Source)
            at com.atlassian.sal.core.transaction.HostContextTransactionTemplate.execute(HostContextTransactionTemplate.java:21)
            ... 2 filtered
            at java.lang.reflect.Method.invoke(Method.java:497)
            at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
            at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)
            at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
            at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)
            at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
            at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70)
            at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
            at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
            at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)
            at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
            at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
            at com.sun.proxy.$Proxy867.execute(Unknown Source)
            at com.atlassian.activeobjects.internal.AbstractActiveObjectsFactory.create(AbstractActiveObjectsFactory.java:72)
            at com.atlassian.activeobjects.internal.DelegatingActiveObjectsFactory.create(DelegatingActiveObjectsFactory.java:32)
            at com.atlassian.activeobjects.osgi.TenantAwareActiveObjects$1$1$1.call(TenantAwareActiveObjects.java:91)
            ... 6 more
    

    On JIRA startup/indexing there are also these errors (cause is the same however, @StringLength must be <= 450 or UNLIMITED)

    2015-12-08 08:29:11,585 localhost-startStop-1 WARN      [c.a.j.issue.index.DefaultIssueDocumentFactory] Error indexing issue SPI-1728: Dropping 'customfield_12700'
    com.atlassian.activeobjects.internal.ActiveObjectsInitException: bundle [com.tuncaysenturk.jira.plugins.time-to-sla-plugin]
            at com.atlassian.activeobjects.osgi.TenantAwareActiveObjects$1$1$1.call(TenantAwareActiveObjects.java:95)
            at com.atlassian.activeobjects.osgi.TenantAwareActiveObjects$1$1$1.call(TenantAwareActiveObjects.java:86)
            at com.atlassian.sal.core.executor.ThreadLocalDelegateCallable.call(ThreadLocalDelegateCallable.java:42)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            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)
    Caused by: net.java.ao.ActiveObjectsConfigurationException: @StringLength must be <= 450 or UNLIMITED (com.tuncaysenturk.jira.plugins.timetosla.entity.TtsSlaAddCond.setJqlString)
            at net.java.ao.ActiveObjectsConfigurationException.forMethod(ActiveObjectsConfigurationException.java:31)
            at net.java.ao.schema.SchemaGenerator.getSQLTypeFromMethod(SchemaGenerator.java:457)
            at net.java.ao.schema.SchemaGenerator.parseFields(SchemaGenerator.java:359)
            at net.java.ao.schema.SchemaGenerator.parseInterface(SchemaGenerator.java:323)
            at net.java.ao.schema.SchemaGenerator.parseDDLRoots(SchemaGenerator.java:174)
            at net.java.ao.schema.SchemaGenerator.generateImpl(SchemaGenerator.java:119)
            at net.java.ao.schema.SchemaGenerator.migrate(SchemaGenerator.java:89)
            at net.java.ao.EntityManager.migrate(EntityManager.java:132)
            at com.atlassian.activeobjects.internal.EntityManagedActiveObjects.migrate(EntityManagedActiveObjects.java:45)
            at com.atlassian.activeobjects.internal.AbstractActiveObjectsFactory$1.doInTransaction(AbstractActiveObjectsFactory.java:77)
            at com.atlassian.activeobjects.internal.AbstractActiveObjectsFactory$1.doInTransaction(AbstractActiveObjectsFactory.java:72)
            at com.atlassian.sal.core.transaction.HostContextTransactionTemplate$1.doInTransaction(HostContextTransactionTemplate.java:25)
            at com.atlassian.jira.DefaultHostContextAccessor.doInTransaction(DefaultHostContextAccessor.java:38)
            ... 2 filtered
            at java.lang.reflect.Method.invoke(Method.java:497)
            at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:30)
            at com.sun.proxy.$Proxy142.doInTransaction(Unknown Source)
            ... 2 filtered
            at java.lang.reflect.Method.invoke(Method.java:497)
            at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:161)
            at com.sun.proxy.$Proxy142.doInTransaction(Unknown Source)
            at com.atlassian.sal.core.transaction.HostContextTransactionTemplate.execute(HostContextTransactionTemplate.java:21)
            ... 2 filtered
            at java.lang.reflect.Method.invoke(Method.java:497)
            at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
            at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)
            at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
            at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)
            at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
            at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70)
            at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
            at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
            at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)
            at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
            at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
            at com.sun.proxy.$Proxy882.execute(Unknown Source)
            at com.atlassian.activeobjects.internal.AbstractActiveObjectsFactory.create(AbstractActiveObjectsFactory.java:72)
            at com.atlassian.activeobjects.internal.DelegatingActiveObjectsFactory.create(DelegatingActiveObjectsFactory.java:32)
            at com.atlassian.activeobjects.osgi.TenantAwareActiveObjects$1$1$1.call(TenantAwareActiveObjects.java:91)
            ... 6 more
    
    2015-12-08 08:29:11,653 localhost-startStop-1 WARN      [c.a.j.issue.index.DefaultIssueDocumentFactory] Error indexing issue SPI-1728: Dropped: [customfield_12700, customfield_12701, customfield_12800, customfield_12801, customfield_12802, customfield_12803, customfield_12804]
    

    Here is the contents of AO_C5D949_TTS_ISSUE_SLA, but as mentioned, nothing was generated by using this version of the plugin so these are older ones.

       ACTUAL_TARGET_DATE    |  EXPECTED_TARGET_DATE   | FINISHED | ID | INDICATOR | ISSUE_ID | ISSUE_KEY |    LAST_STATUS_DATE     | LAST_STATUS_ID | MULTIPLE_TRANSITION | NOTIFIED |       ORIGIN_DATE       | ORIGIN_STATUS_ID | PAUSED | PAUSED_DURATION | RESET_DATE | SLA_ID | SUM_OF_BACK_TO_ORIGIN_STATUS | TARGET_STATUS_ID | UPDATE_COUNT | WORKING_DURATION 
    -------------------------+-------------------------+----------+----+-----------+----------+-----------+-------------------------+----------------+---------------------+----------+-------------------------+------------------+--------+-----------------+------------+--------+------------------------------+------------------+--------------+------------------
                             | 2015-12-22 11:18:46.274 | f        | 80 | STILL     |   148405 | SPI-1725  | 2015-12-07 13:18:46.274 | 1              | t                   | f        | 2015-12-07 13:18:46.274 | 1                | f      |               0 |            |      8 |                            0 | 5                |            0 |                0
     2015-12-04 15:56:03.346 | 2015-12-04 14:33:50.854 | t        | 73 | EXCEED    |   148401 | SPI-1721  | 2015-12-04 13:33:50.854 | 10021          | f                   | f        | 2015-12-04 13:33:50.854 | 1                | f      |               0 |            |      3 |                            0 | 10021            |            1 |          8532000
                             | 2015-12-07 13:34:16.04  | f        | 81 | STILL     |   148406 | SPI-1726  | 2015-12-07 13:19:16.04  | 1              | f                   | f        | 2015-12-07 13:19:16.04  | 1                | f      |               0 |            |      1 |                            0 | 10021            |            0 |                0
                             | 2015-12-07 17:33:50.854 | f        | 74 | STILL     |   148401 | SPI-1721  | 2015-12-04 15:56:05.218 | 3              | t                   | f        | 2015-12-04 13:33:50.854 | 1                | f      |               0 |            |      4 |                            0 | 5                |            3 |          8533000
     2015-11-09 16:06:20     | 2015-11-11 16:04:15     | t        | 75 | SUCCESS   |   132947 | SPI-1695  | 2015-11-09 16:04:15     | 10021          | f                   | f        | 2015-11-09 16:04:15     | 1                | f      |               0 |            |      7 |                            0 | 10021            |            1 |           125000
                             | 2015-12-08 13:19:16.04  | f        | 82 | STILL     |   148406 | SPI-1726  | 2015-12-07 13:19:16.04  | 1              | t                   | f        | 2015-12-07 13:19:16.04  | 1                | f      |               0 |            |      2 |                            0 | 5                |            0 |                0
                             | 2015-11-24 14:04:15     | f        | 76 | STILL     |   132947 | SPI-1695  | 2015-12-04 15:56:46.312 | 3              | t                   | f        | 2015-11-09 16:04:15     | 1                | f      |               0 |            |      8 |                            0 | 5                |            5 |        856351000
     2015-03-12 10:09:10     | 2015-03-12 10:56:28     | t        | 77 | SUCCESS   |   116058 | SPI-1164  | 2015-03-12 09:56:28     | 10021          | f                   | f        | 2015-03-12 09:56:28     | 1                | f      |               0 |            |      5 |                            0 | 10021            |            1 |           762000
                             | 2015-12-09 13:19:53.913 | f        | 83 | STILL     |   148407 | SPI-1727  | 2015-12-07 13:19:53.913 | 1              | f                   | f        | 2015-12-07 13:19:53.913 | 1                | f      |               0 |            |      7 |                            0 | 10021            |            0 |                0
                             | 2015-12-22 11:19:53.913 | f        | 84 | STILL     |   148407 | SPI-1727  | 2015-12-07 13:19:53.913 | 1              | t                   | f        | 2015-12-07 13:19:53.913 | 1                | f      |               0 |            |      8 |                            0 | 5                |            0 |                0
                             | 2015-12-07 14:20:46.607 | f        | 85 | STILL     |   148408 | SPI-1728  | 2015-12-07 13:20:46.607 | 1              | f                   | f        | 2015-12-07 13:20:46.607 | 1                | f      |               0 |            |      5 |                            0 | 10021            |            0 |                0
                             | 2015-12-10 13:20:46.607 | f        | 86 | STILL     |   148408 | SPI-1728  | 2015-12-07 13:20:46.607 | 1              | t                   | f        | 2015-12-07 13:20:46.607 | 1                | f      |               0 |            |      6 |                            0 | 5                |            0 |                0
                             | 2015-04-20 16:06:41     | f        | 78 | STILL     |   116058 | SPI-1164  | 2015-12-04 15:56:53.713 | 3              | t                   | f        | 2015-03-12 09:56:28     | 1                | f      |      8835347000 |            |      6 |                            0 | 5                |           13 |        251078000
                             | 2015-12-09 13:18:46.274 | f        | 79 | STILL     |   148405 | SPI-1725  | 2015-12-07 13:18:46.274 | 1              | f                   | f        | 2015-12-07 13:18:46.274 | 1                | f      |               0 |            |      7 |                            0 | 10021            |            0 |                0
     2015-12-03 12:42:56.41  | 2015-12-03 12:19:10.542 | t        | 29 | EXCEED    |   148303 | LT-33194  | 2015-12-03 12:04:10.542 | 10021          | f                   | f        | 2015-12-03 12:04:10.542 | 1                | f      |               0 |            |      1 |                            0 | 10021            |            1 |          2325000
                             | 2015-12-07 11:04:10.542 | f        | 30 | STILL     |   148303 | LT-33194  | 2015-12-03 12:42:56.41  | 10021          | t                   | f        | 2015-12-03 12:04:10.542 | 1                | f      |               0 |            |      2 |                            0 | 5                |            4 |          2324000
    (16 rows)
    
  9. Tuncay Senturk repo owner

    Whoops, it's interesting that you were not getting this error before. I also have test environment with Postgre and runs without this failure.

    Anyway, I prepared a new binary. Could you please uninstall the old one and try this one instead

    Sorry about that
    Your help is much appreciated
    Tuncay

  10. Antti Pöllä reporter

    Happy to help, we'd like to get this to work as well :)

    Things improved, but not by much. TTS configuration is now accessible, but searching is still broken, and SLA generation for older issues is stuck at "0 of 0 issues have been finished"

    This is thrown when running SLA generation:

    2015-12-08 09:54:48,177 ajp-nio-8009-exec-7 ERROR pollaan2 594x422x1 4s7qp0 194.136.16.66 /rest/tts-api/1.0/sla-history/generate [c.a.p.r.c.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: com.atlassian.jira.bc.issue.search.SearchService.parseQuery(Lcom/atlassian/crowd/embedded/api/User;Ljava/lang/String;)Lcom/atlassian/jira/bc/issue/search/SearchService$ParseResult;
    java.lang.NoSuchMethodError: com.atlassian.jira.bc.issue.search.SearchService.parseQuery(Lcom/atlassian/crowd/embedded/api/User;Ljava/lang/String;)Lcom/atlassian/jira/bc/issue/search/SearchService$ParseResult;
            at com.tuncaysenturk.jira.plugins.timetosla.service.rest.c.a(GenerateSlaHistoryRestService.java:86)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:497)
            ... 19 filtered
            at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:178)
            ... 1 filtered
            at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:73)
            ... 36 filtered
            at com.atlassian.plugins.cors.CorsFilter.doFilter(CorsFilter.java:65)
            ... 64 filtered
            at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:40)
            ... 72 filtered
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
            at java.lang.Thread.run(Thread.java:745)
    

    This when trying to access JIRA search (https://teams-qa.hiq.fi/jira/issues/?jql=):

    2015-12-08 09:53:59,783 ajp-nio-8009-exec-10 ERROR pollaan2 593x388x1 4s7qp0 194.136.16.66 /issues/ [velocity] Exception in macro #issues at templates/jira/issue/table/issuetable-issue.vm[line 6, column 5]
    2015-12-08 09:53:59,783 ajp-nio-8009-exec-10 ERROR pollaan2 593x388x1 4s7qp0 194.136.16.66 /issues/ [c.atlassian.velocity.DefaultVelocityManager] MethodInvocationException occurred getting message body from Velocity: java.lang.NoSuchMethodError: com.atlas
    sian.jira.issue.Issue.getIssueType()Lorg/ofbiz/core/entity/GenericValue;
    java.lang.NoSuchMethodError: com.atlassian.jira.issue.Issue.getIssueType()Lorg/ofbiz/core/entity/GenericValue;
            at com.tuncaysenturk.jira.plugins.customfield.a.getValueFromIssue(AbstractTtsCFType.java:87)
            at com.atlassian.jira.issue.fields.CustomFieldImpl.getValue(CustomFieldImpl.java:418)
            at com.atlassian.jira.issue.DocumentIssueImpl.getCustomFieldValue(DocumentIssueImpl.java:393)
            at com.atlassian.jira.issue.fields.CustomFieldImpl.getRendererCustomFieldValue(CustomFieldImpl.java:997)
            at com.atlassian.jira.issue.fields.CustomFieldImpl.getColumnViewHtml(CustomFieldImpl.java:991)
            at com.atlassian.jira.issue.fields.layout.column.ColumnLayoutItemImpl.getHtml(ColumnLayoutItemImpl.java:140)
            ... 2 filtered
            at java.lang.reflect.Method.invoke(Method.java:497)
            at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:385)
            at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:374)
            at com.atlassian.velocity.htmlsafe.introspection.AnnotationBoxingMethod.invoke(AnnotationBoxingMethod.java:26)
            at com.atlassian.velocity.htmlsafe.introspection.UnboxingMethod.invoke(UnboxingMethod.java:30)
            at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
            at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262)
            at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:507)
            at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
            at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
            at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
            at org.apache.velocity.runtime.directive.Foreach.performIteration(Foreach.java:393)
            at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:316)
            at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
            at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
            at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212)
            at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247)
            at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
            at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
            at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
            at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
            at org.apache.velocity.Template.merge(Template.java:328)
            at org.apache.velocity.Template.merge(Template.java:235)
            at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:381)
            at com.atlassian.velocity.DefaultVelocityManager.writeEncodedBodyImpl(DefaultVelocityManager.java:117)
            at com.atlassian.velocity.DefaultVelocityManager.writeEncodedBody(DefaultVelocityManager.java:97)
            at com.atlassian.jira.template.velocity.DefaultVelocityTemplatingEngine$DefaultRenderRequest.toWriterImpl(DefaultVelocityTemplatingEngine.java:146)
            at com.atlassian.jira.template.velocity.DefaultVelocityTemplatingEngine$DefaultRenderRequest.asHtml(DefaultVelocityTemplatingEngine.java:134)
            at com.atlassian.jira.web.component.AbstractWebComponent.asHtml(AbstractWebComponent.java:54)
            at com.atlassian.jira.web.component.IssueTableWebComponent$1.write(IssueTableWebComponent.java:181)
            at com.atlassian.jira.web.component.IssueTableWebComponent.asHtml(IssueTableWebComponent.java:108)
            at com.atlassian.jira.web.component.IssueTableWebComponent.getHtml(IssueTableWebComponent.java:74)
            at com.atlassian.jira.web.component.IssueTableWebComponent.getHtml(IssueTableWebComponent.java:57)
            at com.atlassian.jira.plugin.issuenav.service.issuetable.ListViewIssueTableCreator.getTable(ListViewIssueTableCreator.java:66)
            at com.atlassian.jira.plugin.issuenav.service.issuetable.AbstractIssueTableCreator.create(AbstractIssueTableCreator.java:205)
            at com.atlassian.jira.plugin.issuenav.service.issuetable.DefaultIssueTableService.createIssueTableFromCreator(DefaultIssueTableService.java:189)
            at com.atlassian.jira.plugin.issuenav.service.issuetable.DefaultIssueTableService.getIssueTable(DefaultIssueTableService.java:303)
            at com.atlassian.jira.plugin.issuenav.service.issuetable.DefaultIssueTableService.getIssueTableFromFilterWithJql(DefaultIssueTableService.java:125)
            at com.atlassian.jira.plugin.issuenav.IssueNavAction.performSearch(IssueNavAction.java:1244)
            at com.atlassian.jira.plugin.issuenav.IssueNavAction.doNav(IssueNavAction.java:425)
            at com.atlassian.jira.plugin.issuenav.IssueNavAction.doDefault(IssueNavAction.java:269)
            ... 3 filtered
            at java.lang.reflect.Method.invoke(Method.java:497)
            at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70)
            at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56)
            ... 2 filtered
            at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:67)
            ... 7 filtered
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
            ... 117 filtered
            at com.atlassian.jira.plugin.issuenav.IssueNavRewriteFilter.doFilter(IssueNavRewriteFilter.java:101)
            ... 151 filtered
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
            at java.lang.Thread.run(Thread.java:745)
    
    2015-12-08 09:57:00,838 ajp-nio-8009-exec-4 ERROR pollaan2 597x476x1 4s7qp0 194.136.16.66 /issues/ [o.a.c.c.C.[.[localhost].[/jira].[action]] Servlet.service() for servlet action threw exception
    java.lang.AbstractMethodError
            at com.atlassian.jira.issue.customfields.searchers.transformer.AbstractCustomFieldSearchInputTransformer.populateFromQuery(AbstractCustomFieldSearchInputTransformer.java:89)
            at com.atlassian.jira.components.query.DefaultSearcherService.generateQuery(DefaultSearcherService.java:293)
            at com.atlassian.jira.components.query.DefaultSearcherService.searchWithJql(DefaultSearcherService.java:173)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            ... 1 filtered
            at java.lang.reflect.Method.invoke(Method.java:497)
            at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
            at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)
            at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
            at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)
            at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
            at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70)
            at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
            at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
            at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)
            at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
            at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
            at com.sun.proxy.$Proxy2563.searchWithJql(Unknown Source)
            at com.atlassian.jira.plugin.issuenav.IssueNavAction.performSearch(IssueNavAction.java:1252)
            at com.atlassian.jira.plugin.issuenav.IssueNavAction.doNav(IssueNavAction.java:425)
            at com.atlassian.jira.plugin.issuenav.IssueNavAction.doDefault(IssueNavAction.java:269)
            ... 3 filtered
            at java.lang.reflect.Method.invoke(Method.java:497)
            at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70)
            at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56)
            ... 2 filtered
            at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:67)
            ... 7 filtered
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
            ... 117 filtered
            at com.atlassian.jira.plugin.issuenav.IssueNavRewriteFilter.doFilter(IssueNavRewriteFilter.java:101)
            ... 151 filtered
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
            at java.lang.Thread.run(Thread.java:745)
    
    2015-12-08 09:57:00,840 ajp-nio-8009-exec-4 ERROR pollaan2 597x476x1 4s7qp0 194.136.16.66 /issues/ [c.a.j.web.filters.CommittedResponseHtmlErrorRecoveryFilter] Exception occurred after HTTP response was already committed: java.lang.reflect.InvocationTargetException
    
  11. Tuncay Senturk repo owner

    Hmm, you were using JIRA 7.x and I prepared a binary for JIRA 6.x

    Sorry, it will take time to do all work for JIRA 7.

  12. Tuncay Senturk repo owner

    Here is JIRA7 compatible version. Please download this one

    I hope this one will work, but please bear in mind that this one has no fix, just more logs so that I will try to understand the issue in your system or plugin code.
    Tuncay

  13. Tuncay Senturk repo owner

    By the way, please generate SLA by typing JQL that will affect only one issue (e.g. issuekey = PROJ-223)
    Just to have a clear log file.
    Thanks

  14. Antti Pöllä reporter

    That seemed to work... or, well, not break any more than it already is.

    Looks like it stopped doing generate at some point depending a bit on what JQL I used (repeatedly at the same point though, and never seems to time out or give a more specific error on what is wrong).

    "project = SPI" stuck at "584 of 1634 issues have been finished".

    "project = SPI and "Time to SLA" is not NULL" stuck at "0 of 5 issues have been finished"

    "project = SPI and "Time to SLA" is NULL" stuck at 577 of 1627 issues have been finished

    Of 7 issues that had Time to SLA -values, 4 still have them.

    It logged quite a bit, so JIRA rotated its logs. So there's 3 logs attached.

  15. Antti Pöllä reporter

    Noticed your comment a bit late. Running generate against a single issue seems to always get stuck, if it matches an SLA definition. Tested with 5 or so issues that should have SLA, but currently don't, and a few that already have SLA fields filled in the issue.

    Generating to an issue with no definition goes through fine (though obviously it actually won't do anything, but the generator completes).

    Generate to a ticket that already has SLA results in...

    2015-12-08 12:01:53,192 ajp-nio-8009-exec-3 ERROR pollaan2 721x1851x1 guu1rh 194.136.16.66 /rest/tts-api/1.0/sla-history/generate [c.t.j.p.t.service.rest.c] SLAGENERATE: [to executor] for issues : 1
    2015-12-08 12:01:53,192 pool-96-thread-1 ERROR pollaan2 721x1851x1 guu1rh 194.136.16.66 /rest/tts-api/1.0/sla-history/generate [c.t.j.p.t.service.rest.c] [Time to SLA Plugin for JIRA] Thread[executor 1] is being executed issue:SPI-1725
    2015-12-08 12:01:53,192 ajp-nio-8009-exec-3 ERROR pollaan2 721x1851x1 guu1rh 194.136.16.66 /rest/tts-api/1.0/sla-history/generate [c.t.j.p.t.service.rest.c] SLAGENERATE: [to executor] for issues : 2
    2015-12-08 12:01:53,192 pool-96-thread-1 ERROR pollaan2 721x1851x1 guu1rh 194.136.16.66 /rest/tts-api/1.0/sla-history/generate [c.t.j.p.t.service.rest.c] [Time to SLA Plugin for JIRA] Thread[executor 1] deleted history for issue:SPI-1725
    2015-12-08 12:01:53,193 pool-96-thread-1 ERROR pollaan2 721x1851x1 guu1rh 194.136.16.66 /rest/tts-api/1.0/sla-history/generate [c.t.j.p.timetosla.service.d] SLAGENERATE: for issue : SPI-1725 started
    2015-12-08 12:01:53,193 pool-96-thread-1 ERROR pollaan2 721x1851x1 guu1rh 194.136.16.66 /rest/tts-api/1.0/sla-history/generate [c.t.j.p.timetosla.service.d] SLAGENERATE: for issue : SPI-1725 history size 0
    2015-12-08 12:01:53,193 pool-96-thread-1 ERROR pollaan2 721x1851x1 guu1rh 194.136.16.66 /rest/tts-api/1.0/sla-history/generate [c.t.j.p.timetosla.service.d] SLAGENERATE: for issue : SPI-1725 slaResetActions size 0
    2015-12-08 12:01:53,193 pool-96-thread-1 ERROR pollaan2 721x1851x1 guu1rh 194.136.16.66 /rest/tts-api/1.0/sla-history/generate [c.t.j.p.timetosla.service.d] SLAGENERATE: for issue : SPI-1725 change event..started
    2015-12-08 12:01:53,193 pool-96-thread-1 ERROR pollaan2 721x1851x1 guu1rh 194.136.16.66 /rest/tts-api/1.0/sla-history/generate [c.t.j.p.timetosla.service.d] SLAGENERATE: for issue : SPI-1725 change event..workflowName:ICC - Incident WF 0.1
    2015-12-08 12:01:53,194 pool-96-thread-1 ERROR pollaan2 721x1851x1 guu1rh 194.136.16.66 /rest/tts-api/1.0/sla-history/generate [c.t.j.p.timetosla.service.d] SLAGENERATE: for issue : SPI-1725 change slasForCurrentStatus starting
    2015-12-08 12:01:53,194 pool-96-thread-1 ERROR pollaan2 721x1851x1 guu1rh 194.136.16.66 /rest/tts-api/1.0/sla-history/generate [c.t.j.p.timetosla.service.d] SLAGENERATE: for issue : SPI-1725 change slasForCurrentStatus for slaId: 7
    2015-12-08 12:01:53,195 ajp-nio-8009-exec-3 ERROR pollaan2 721x1851x1 guu1rh 194.136.16.66 /rest/tts-api/1.0/sla-history/generate [c.t.j.p.t.service.rest.c] [Time to SLA Plugin for JIRA] exception caught when combining executor services
    java.util.concurrent.ExecutionException: java.lang.NullPointerException
            at java.util.concurrent.FutureTask.report(FutureTask.java:122)
            at java.util.concurrent.FutureTask.get(FutureTask.java:192)
            at com.tuncaysenturk.jira.plugins.timetosla.service.rest.c.a(GenerateSlaHistoryRestService.java:119)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            ... 1 filtered
            at java.lang.reflect.Method.invoke(Method.java:497)
            ... 19 filtered
            at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:178)
            ... 1 filtered
            at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:73)
            ... 36 filtered
            at com.atlassian.plugins.cors.CorsFilter.doFilter(CorsFilter.java:65)
            ... 64 filtered
            at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:40)
            ... 72 filtered
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
            at java.lang.Thread.run(Thread.java:745)
    Caused by: java.lang.NullPointerException
            at com.tuncaysenturk.jira.plugins.timetosla.service.d.a(IssueSlaActivityServiceImpl.java:365)
            at com.tuncaysenturk.jira.plugins.timetosla.service.d.b(IssueSlaActivityServiceImpl.java:998)
            at com.tuncaysenturk.jira.plugins.timetosla.service.d.c(IssueSlaActivityServiceImpl.java:1033)
            at com.tuncaysenturk.jira.plugins.timetosla.service.rest.c.b(GenerateSlaHistoryRestService.java:161)
            at com.tuncaysenturk.jira.plugins.timetosla.service.rest.c.b(GenerateSlaHistoryRestService.java:37)
            at com.tuncaysenturk.jira.plugins.timetosla.service.rest.c$a.call(GenerateSlaHistoryRestService.java:173)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            ... 1 more
    
  16. Antti Pöllä reporter

    Issue that doesn't have SLA fields, but should:

    2015-12-08 12:02:47,081 ajp-nio-8009-exec-1 ERROR pollaan2 722x1878x1 guu1rh 194.136.16.66 /rest/tts-api/1.0/sla-history/generate [c.t.j.p.t.service.rest.c] SLAGENERATE: [to executor] for issues : 1
    2015-12-08 12:02:47,081 pool-98-thread-1 ERROR pollaan2 722x1878x1 guu1rh 194.136.16.66 /rest/tts-api/1.0/sla-history/generate [c.t.j.p.t.service.rest.c] [Time to SLA Plugin for JIRA] Thread[executor 1] is being executed issue:SPI-1723
    2015-12-08 12:02:47,081 pool-98-thread-1 ERROR pollaan2 722x1878x1 guu1rh 194.136.16.66 /rest/tts-api/1.0/sla-history/generate [c.t.j.p.t.service.rest.c] [Time to SLA Plugin for JIRA] Thread[executor 1] deleted history for issue:SPI-1723
    2015-12-08 12:02:47,081 pool-98-thread-1 ERROR pollaan2 722x1878x1 guu1rh 194.136.16.66 /rest/tts-api/1.0/sla-history/generate [c.t.j.p.timetosla.service.d] SLAGENERATE: for issue : SPI-1723 started
    2015-12-08 12:02:47,082 pool-98-thread-1 ERROR pollaan2 722x1878x1 guu1rh 194.136.16.66 /rest/tts-api/1.0/sla-history/generate [c.t.j.p.timetosla.service.d] SLAGENERATE: for issue : SPI-1723 history size 0
    2015-12-08 12:02:47,082 pool-98-thread-1 ERROR pollaan2 722x1878x1 guu1rh 194.136.16.66 /rest/tts-api/1.0/sla-history/generate [c.t.j.p.timetosla.service.d] SLAGENERATE: for issue : SPI-1723 slaResetActions size 0
    2015-12-08 12:02:47,082 pool-98-thread-1 ERROR pollaan2 722x1878x1 guu1rh 194.136.16.66 /rest/tts-api/1.0/sla-history/generate [c.t.j.p.timetosla.service.d] SLAGENERATE: for issue : SPI-1723 change event..started
    2015-12-08 12:02:47,082 pool-98-thread-1 ERROR pollaan2 722x1878x1 guu1rh 194.136.16.66 /rest/tts-api/1.0/sla-history/generate [c.t.j.p.timetosla.service.d] SLAGENERATE: for issue : SPI-1723 change event..workflowName:ICC - Incident WF 0.1
    2015-12-08 12:02:47,083 pool-98-thread-1 ERROR pollaan2 722x1878x1 guu1rh 194.136.16.66 /rest/tts-api/1.0/sla-history/generate [c.t.j.p.timetosla.service.d] SLAGENERATE: for issue : SPI-1723 change slasForCurrentStatus starting
    2015-12-08 12:02:47,083 pool-98-thread-1 ERROR pollaan2 722x1878x1 guu1rh 194.136.16.66 /rest/tts-api/1.0/sla-history/generate [c.t.j.p.timetosla.service.d] SLAGENERATE: for issue : SPI-1723 change slasForCurrentStatus for slaId: 1
    2015-12-08 12:02:47,086 ajp-nio-8009-exec-1 ERROR pollaan2 722x1878x1 guu1rh 194.136.16.66 /rest/tts-api/1.0/sla-history/generate [c.t.j.p.t.service.rest.c] SLAGENERATE: [to executor] for issues : 2
    2015-12-08 12:02:47,086 ajp-nio-8009-exec-1 ERROR pollaan2 722x1878x1 guu1rh 194.136.16.66 /rest/tts-api/1.0/sla-history/generate [c.t.j.p.t.service.rest.c] [Time to SLA Plugin for JIRA] exception caught when combining executor services
    java.util.concurrent.ExecutionException: java.lang.NullPointerException
            at java.util.concurrent.FutureTask.report(FutureTask.java:122)
            at java.util.concurrent.FutureTask.get(FutureTask.java:192)
            at com.tuncaysenturk.jira.plugins.timetosla.service.rest.c.a(GenerateSlaHistoryRestService.java:119)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            ... 1 filtered
            at java.lang.reflect.Method.invoke(Method.java:497)
            ... 19 filtered
            at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:178)
            ... 1 filtered
            at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:73)
            ... 36 filtered
            at com.atlassian.plugins.cors.CorsFilter.doFilter(CorsFilter.java:65)
            ... 64 filtered
            at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:40)
            ... 72 filtered
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
            at java.lang.Thread.run(Thread.java:745)
    Caused by: java.lang.NullPointerException
            at com.tuncaysenturk.jira.plugins.timetosla.service.d.a(IssueSlaActivityServiceImpl.java:365)
            at com.tuncaysenturk.jira.plugins.timetosla.service.d.b(IssueSlaActivityServiceImpl.java:998)
            at com.tuncaysenturk.jira.plugins.timetosla.service.d.c(IssueSlaActivityServiceImpl.java:1033)
            at com.tuncaysenturk.jira.plugins.timetosla.service.rest.c.b(GenerateSlaHistoryRestService.java:161)
            at com.tuncaysenturk.jira.plugins.timetosla.service.rest.c.b(GenerateSlaHistoryRestService.java:37)
            at com.tuncaysenturk.jira.plugins.timetosla.service.rest.c$a.call(GenerateSlaHistoryRestService.java:173)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            ... 1 more
    
  17. Tuncay Senturk repo owner

    I only added only logs, that's really strange getting those errors. At least you should have gotten same error in prior version.
    Anyway, thanks for your help. I will be dealing with those logs and get back to you soon, hopefully :)

  18. Tuncay Senturk repo owner

    Hi again,

    I am sure it will not get stuck when generating SLAs. I fixed that evil. Sorry about that, it was getting NPE within an added log.
    Here is the binary
    Could you please try with issue SPI-1721 or any that should have SLAs? Also please clear logs and send me the latest brief one.

    So appreciated

  19. Tuncay Senturk repo owner

    Hi,

    It is really interesting because it says that JQL you entered "project = SPI" does not match for the issue.
    I am a lot confused because JQL is valid within issue's normal cycle but fails when regeneration.
    I will work on it.

    Anyway thanks for your cooperation

  20. Tuncay Senturk repo owner

    I reproduced it in my local JIRA 7 environment as well.
    Most probably this is a bug comes with JIRA 7, these major JIRA changes always comes with full of pain.
    As I mentioned I will be working on it and add some automated tests for JIRA 7.

  21. Tuncay Senturk repo owner

    Great news, I fixed the bug.
    I think this is the last binary I am bothering you.
    Please verify that it works in your JIRA 7 instance as well, and I will merge the fix to the latest version.

    Thanks for your patience and great cooperation
    Tuncay

  22. Antti Pöllä reporter

    Excellent! I installed the new version, and generating SLAs (and reports) seems to work nicely. Thank you!

    Your plugin seems to be exactly what we need, but we'll do some more testing with the functional version now :)

  23. Tuncay Senturk repo owner

    Enjoy
    By the way there are full of error logs. Ignore them.
    They are just debugging logs. And do not use in production, or if you can live with error logs you can.
    I'll release the new version soon. Less than a week.

  24. Tuncay Senturk repo owner

    Resolved with the latest version
    Please upgrade to TTS 5.7.0 version for JIRA 6.x or 6.2.0 for JIRA 7.x

  25. Log in to comment