java.lang.IllegalArgumentException: The template variable, projectId, has no value

Atlassian JIRA | Victor Teoh [Atlassian] | 8 months ago
  1. 0

    h3. *Environment* - Confluence 5.9.6 - Jira 7.1.1 h3. *Steps to reproduce* # Create an Epic Jira issue in Confluence page via Jira Issue Macro. # Add additional text to the Confluence page. # Save the page. # Highlight the text to create a Jira issue (Task, Story , Bug) and ensure that the "Link to Epic" checkbox is ticked. !jira epic.PNG|thumbnail! # Note that the loading button spins forever *Note that the previous bug report here (https://jira.atlassian.com/browse/CONF-31934) is different* It shows a different error and the workaround doesn't work. Enabling Confluence Remote API also doesn't work. The following errors are shown in the Jira logs : {code} 2016-03-23 16:52:23,554 http-nio-8080-exec-11 ERROR admin 1012x853x1 jeozli 127.0.0.1 /rest/api/2/issue/bulk [c.a.j.rest.exception.ExceptionInterceptor] Returning internal server error in response java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor958.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker$1.invoke(DispatchProviderHelper.java:192) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$1.intercept(DispatchProviderHelper.java:83) ... 3 filtered at com.atlassian.jira.rest.exception.ExceptionInterceptor.intercept(ExceptionInterceptor.java:55) ... 1 filtered at com.atlassian.jira.rest.v2.issue.scope.RequestScopeInterceptor.intercept(RequestScopeInterceptor.java:39) ... 15 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) ... 86 filtered at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:70) ... 15 filtered at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:37) ... 74 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.atlassian.greenhopper.service.issuelink.EpicServiceImpl.addIssuesToEpic(EpicServiceImpl.java:90) at com.atlassian.greenhopper.customfield.epiclink.EpicLinkRestFieldOperationsHandler.update(EpicLinkRestFieldOperationsHandler.java:104) at com.atlassian.greenhopper.customfield.epiclink.EpicLinkRestFieldOperationsHandler.handleOperation(EpicLinkRestFieldOperationsHandler.java:76) at com.atlassian.greenhopper.customfield.epiclink.EpicLinkRestFieldOperationsHandler.updateIssueInputParameters(EpicLinkRestFieldOperationsHandler.java:64) at com.atlassian.jira.rest.v2.issue.IssueInputParametersAssembler$IssueInputParametersBuilder.finalizeIssueInputParams(IssueInputParametersAssembler.java:428) at com.atlassian.jira.rest.v2.issue.IssueInputParametersAssembler.makeCreateAssembler(IssueInputParametersAssembler.java:131) at com.atlassian.jira.rest.v2.issue.IssueInputParametersAssembler.makeCreateAssemblers(IssueInputParametersAssembler.java:138) at com.atlassian.jira.rest.v2.issue.CreateIssueResource.createIssues(CreateIssueResource.java:77) at com.atlassian.jira.rest.v2.issue.IssueResource.createIssues(IssueResource.java:624) ... 210 more {code} These are the errors shown in the Confluence logs {code} -------------------------- Parameters -------------------------- avatarId : 10324 size : xsmall iconType : project serverId : ede78247-11c9-32ac-95b2-ac5ff936f756 caused by: java.lang.IllegalArgumentException: The template variable, projectId, has no value at com.sun.jersey.api.uri.UriTemplate.templateVariableHasNoValue(UriTemplate.java:892) 2016-03-23 16:52:18,771 ERROR [http-nio-8090-exec-5] [ContainerBase.[Standalone].[localhost].[/confluence]] log Unhandled exception occurred whilst decorating page -- referer: http://localhost:8090/confluence/display/NEW/asd22 | url: /confluence/plugins/servlet/jira-integration/icons | userName: admin java.lang.IllegalArgumentException: The template variable, projectId, has no value at com.sun.jersey.api.uri.UriTemplate.templateVariableHasNoValue(UriTemplate.java:892) at com.sun.jersey.api.uri.UriTemplate.createURIComponent(UriTemplate.java:661) {code}

    Atlassian JIRA | 8 months ago | Victor Teoh [Atlassian]
    java.lang.IllegalArgumentException: The template variable, projectId, has no value
  2. 0

    h3. *Environment* - Confluence 5.9.6 - Jira 7.1.1 h3. *Steps to reproduce* # Create an Epic Jira issue in Confluence page via Jira Issue Macro. # Add additional text to the Confluence page. # Save the page. # Highlight the text to create a Jira issue (Task, Story , Bug) and ensure that the "Link to Epic" checkbox is ticked. !jira epic.PNG|thumbnail! # Note that the loading button spins forever *Note that the previous bug report here (https://jira.atlassian.com/browse/CONF-31934) is different* It shows a different error and the workaround doesn't work. Enabling Confluence Remote API also doesn't work. The following errors are shown in the Jira logs : {code} 2016-03-23 16:52:23,554 http-nio-8080-exec-11 ERROR admin 1012x853x1 jeozli 127.0.0.1 /rest/api/2/issue/bulk [c.a.j.rest.exception.ExceptionInterceptor] Returning internal server error in response java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor958.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker$1.invoke(DispatchProviderHelper.java:192) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$1.intercept(DispatchProviderHelper.java:83) ... 3 filtered at com.atlassian.jira.rest.exception.ExceptionInterceptor.intercept(ExceptionInterceptor.java:55) ... 1 filtered at com.atlassian.jira.rest.v2.issue.scope.RequestScopeInterceptor.intercept(RequestScopeInterceptor.java:39) ... 15 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) ... 86 filtered at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:70) ... 15 filtered at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:37) ... 74 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.atlassian.greenhopper.service.issuelink.EpicServiceImpl.addIssuesToEpic(EpicServiceImpl.java:90) at com.atlassian.greenhopper.customfield.epiclink.EpicLinkRestFieldOperationsHandler.update(EpicLinkRestFieldOperationsHandler.java:104) at com.atlassian.greenhopper.customfield.epiclink.EpicLinkRestFieldOperationsHandler.handleOperation(EpicLinkRestFieldOperationsHandler.java:76) at com.atlassian.greenhopper.customfield.epiclink.EpicLinkRestFieldOperationsHandler.updateIssueInputParameters(EpicLinkRestFieldOperationsHandler.java:64) at com.atlassian.jira.rest.v2.issue.IssueInputParametersAssembler$IssueInputParametersBuilder.finalizeIssueInputParams(IssueInputParametersAssembler.java:428) at com.atlassian.jira.rest.v2.issue.IssueInputParametersAssembler.makeCreateAssembler(IssueInputParametersAssembler.java:131) at com.atlassian.jira.rest.v2.issue.IssueInputParametersAssembler.makeCreateAssemblers(IssueInputParametersAssembler.java:138) at com.atlassian.jira.rest.v2.issue.CreateIssueResource.createIssues(CreateIssueResource.java:77) at com.atlassian.jira.rest.v2.issue.IssueResource.createIssues(IssueResource.java:624) ... 210 more {code} These are the errors shown in the Confluence logs {code} -------------------------- Parameters -------------------------- avatarId : 10324 size : xsmall iconType : project serverId : ede78247-11c9-32ac-95b2-ac5ff936f756 caused by: java.lang.IllegalArgumentException: The template variable, projectId, has no value at com.sun.jersey.api.uri.UriTemplate.templateVariableHasNoValue(UriTemplate.java:892) 2016-03-23 16:52:18,771 ERROR [http-nio-8090-exec-5] [ContainerBase.[Standalone].[localhost].[/confluence]] log Unhandled exception occurred whilst decorating page -- referer: http://localhost:8090/confluence/display/NEW/asd22 | url: /confluence/plugins/servlet/jira-integration/icons | userName: admin java.lang.IllegalArgumentException: The template variable, projectId, has no value at com.sun.jersey.api.uri.UriTemplate.templateVariableHasNoValue(UriTemplate.java:892) at com.sun.jersey.api.uri.UriTemplate.createURIComponent(UriTemplate.java:661) {code}

    Atlassian JIRA | 8 months ago | Victor Teoh [Atlassian]
    java.lang.IllegalArgumentException: The template variable, projectId, has no value
  3. 0

    h3. *Environment* - Confluence 5.9.6 - Jira 7.1.1 h3. *Steps to reproduce* # Create an Epic Jira issue in Confluence page via Jira Issue Macro. # Add additional text to the Confluence page. # Save the page. # Highlight the text to create a Jira issue (Task, Story , Bug) and ensure that the "Link to Epic" checkbox is ticked. !jira epic.PNG|thumbnail! # Note that the loading button spins forever *Note that the previous bug report here (https://jira.atlassian.com/browse/CONF-31934) is different* It shows a different error and the workaround doesn't work. Enabling Confluence Remote API also doesn't work. The following errors are shown in the Jira logs : {code} 2016-03-23 16:52:23,554 http-nio-8080-exec-11 ERROR admin 1012x853x1 jeozli 127.0.0.1 /rest/api/2/issue/bulk [c.a.j.rest.exception.ExceptionInterceptor] Returning internal server error in response java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor958.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker$1.invoke(DispatchProviderHelper.java:192) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$1.intercept(DispatchProviderHelper.java:83) ... 3 filtered at com.atlassian.jira.rest.exception.ExceptionInterceptor.intercept(ExceptionInterceptor.java:55) ... 1 filtered at com.atlassian.jira.rest.v2.issue.scope.RequestScopeInterceptor.intercept(RequestScopeInterceptor.java:39) ... 15 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) ... 86 filtered at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:70) ... 15 filtered at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:37) ... 74 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.atlassian.greenhopper.service.issuelink.EpicServiceImpl.addIssuesToEpic(EpicServiceImpl.java:90) at com.atlassian.greenhopper.customfield.epiclink.EpicLinkRestFieldOperationsHandler.update(EpicLinkRestFieldOperationsHandler.java:104) at com.atlassian.greenhopper.customfield.epiclink.EpicLinkRestFieldOperationsHandler.handleOperation(EpicLinkRestFieldOperationsHandler.java:76) at com.atlassian.greenhopper.customfield.epiclink.EpicLinkRestFieldOperationsHandler.updateIssueInputParameters(EpicLinkRestFieldOperationsHandler.java:64) at com.atlassian.jira.rest.v2.issue.IssueInputParametersAssembler$IssueInputParametersBuilder.finalizeIssueInputParams(IssueInputParametersAssembler.java:428) at com.atlassian.jira.rest.v2.issue.IssueInputParametersAssembler.makeCreateAssembler(IssueInputParametersAssembler.java:131) at com.atlassian.jira.rest.v2.issue.IssueInputParametersAssembler.makeCreateAssemblers(IssueInputParametersAssembler.java:138) at com.atlassian.jira.rest.v2.issue.CreateIssueResource.createIssues(CreateIssueResource.java:77) at com.atlassian.jira.rest.v2.issue.IssueResource.createIssues(IssueResource.java:624) ... 210 more {code} These are the errors shown in the Confluence logs {code} -------------------------- Parameters -------------------------- avatarId : 10324 size : xsmall iconType : project serverId : ede78247-11c9-32ac-95b2-ac5ff936f756 caused by: java.lang.IllegalArgumentException: The template variable, projectId, has no value at com.sun.jersey.api.uri.UriTemplate.templateVariableHasNoValue(UriTemplate.java:892) 2016-03-23 16:52:18,771 ERROR [http-nio-8090-exec-5] [ContainerBase.[Standalone].[localhost].[/confluence]] log Unhandled exception occurred whilst decorating page -- referer: http://localhost:8090/confluence/display/NEW/asd22 | url: /confluence/plugins/servlet/jira-integration/icons | userName: admin java.lang.IllegalArgumentException: The template variable, projectId, has no value at com.sun.jersey.api.uri.UriTemplate.templateVariableHasNoValue(UriTemplate.java:892) at com.sun.jersey.api.uri.UriTemplate.createURIComponent(UriTemplate.java:661) {code}

    Atlassian JIRA | 8 months ago | Victor Teoh [Atlassian]
    java.lang.IllegalArgumentException: The template variable, projectId, has no value
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    h3. *Environment* - Confluence 5.9.6 - Jira 7.1.1 h3. *Steps to reproduce* # Create an Epic Jira issue in Confluence page via Jira Issue Macro. # Add additional text to the Confluence page. # Save the page. # Highlight the text to create a Jira issue (Task, Story , Bug) and ensure that the "Link to Epic" checkbox is ticked. !jira epic.PNG|thumbnail! # Note that the loading button spins forever *Note that the previous bug report here (https://jira.atlassian.com/browse/CONF-31934) is different* It shows a different error and the workaround doesn't work. Enabling Confluence Remote API also doesn't work. The following errors are shown in the Jira logs : {code} 2016-03-23 16:52:23,554 http-nio-8080-exec-11 ERROR admin 1012x853x1 jeozli 127.0.0.1 /rest/api/2/issue/bulk [c.a.j.rest.exception.ExceptionInterceptor] Returning internal server error in response java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor958.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker$1.invoke(DispatchProviderHelper.java:192) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$1.intercept(DispatchProviderHelper.java:83) ... 3 filtered at com.atlassian.jira.rest.exception.ExceptionInterceptor.intercept(ExceptionInterceptor.java:55) ... 1 filtered at com.atlassian.jira.rest.v2.issue.scope.RequestScopeInterceptor.intercept(RequestScopeInterceptor.java:39) ... 15 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) ... 86 filtered at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:70) ... 15 filtered at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:37) ... 74 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.atlassian.greenhopper.service.issuelink.EpicServiceImpl.addIssuesToEpic(EpicServiceImpl.java:90) at com.atlassian.greenhopper.customfield.epiclink.EpicLinkRestFieldOperationsHandler.update(EpicLinkRestFieldOperationsHandler.java:104) at com.atlassian.greenhopper.customfield.epiclink.EpicLinkRestFieldOperationsHandler.handleOperation(EpicLinkRestFieldOperationsHandler.java:76) at com.atlassian.greenhopper.customfield.epiclink.EpicLinkRestFieldOperationsHandler.updateIssueInputParameters(EpicLinkRestFieldOperationsHandler.java:64) at com.atlassian.jira.rest.v2.issue.IssueInputParametersAssembler$IssueInputParametersBuilder.finalizeIssueInputParams(IssueInputParametersAssembler.java:428) at com.atlassian.jira.rest.v2.issue.IssueInputParametersAssembler.makeCreateAssembler(IssueInputParametersAssembler.java:131) at com.atlassian.jira.rest.v2.issue.IssueInputParametersAssembler.makeCreateAssemblers(IssueInputParametersAssembler.java:138) at com.atlassian.jira.rest.v2.issue.CreateIssueResource.createIssues(CreateIssueResource.java:77) at com.atlassian.jira.rest.v2.issue.IssueResource.createIssues(IssueResource.java:624) ... 210 more {code} These are the errors shown in the Confluence logs {code} -------------------------- Parameters -------------------------- avatarId : 10324 size : xsmall iconType : project serverId : ede78247-11c9-32ac-95b2-ac5ff936f756 caused by: java.lang.IllegalArgumentException: The template variable, projectId, has no value at com.sun.jersey.api.uri.UriTemplate.templateVariableHasNoValue(UriTemplate.java:892) 2016-03-23 16:52:18,771 ERROR [http-nio-8090-exec-5] [ContainerBase.[Standalone].[localhost].[/confluence]] log Unhandled exception occurred whilst decorating page -- referer: http://localhost:8090/confluence/display/NEW/asd22 | url: /confluence/plugins/servlet/jira-integration/icons | userName: admin java.lang.IllegalArgumentException: The template variable, projectId, has no value at com.sun.jersey.api.uri.UriTemplate.templateVariableHasNoValue(UriTemplate.java:892) at com.sun.jersey.api.uri.UriTemplate.createURIComponent(UriTemplate.java:661) {code}

    Atlassian JIRA | 8 months ago | Victor Teoh [Atlassian]
    java.lang.IllegalArgumentException: The template variable, projectId, has no value
  6. 0

    Creating alert condition broken

    GitHub | 2 years ago | bernd
    java.lang.IllegalArgumentException: The template variable 'conditionId' has no value

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      The template variable, projectId, has no value

      at com.sun.jersey.api.uri.UriTemplate.templateVariableHasNoValue()
    2. jersey-core
      UriTemplate.templateVariableHasNoValue
      1. com.sun.jersey.api.uri.UriTemplate.templateVariableHasNoValue(UriTemplate.java:892)
      1 frame