Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-15840

Error creating sample Software project until after JIRA restart

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 7.3.6, 7.3.8, 7.4.4, 7.6.6, 7.13.1
    • None

    Description

      Description of Problem

      Error when attempting to create sample JIRA Software project. This occurs after installing JIRA Software onto existing JIRA instance.

      Steps to Reproduce

      1. Install JIRA Core
      2. Install JIRA Software application onto JIRA Core instance
      3. Attempt to create sample JIRA Software project.
        • Error appears in create project dialog: "Hmm... we couldn't create your project due to an unknown error. Try refreshing the page to start again."

      Error appears in logs:

      2017-04-27 16:16:55,002 http-nio-8080-exec-12 WARN tim 976x1017x1 z9xx8 192.168.56.1 /rest/jira-importers-plugin/1.0/demo/create [c.a.p.r.c.security.jersey.XsrfResourceFilter] Use of the 'nocheck' value for X-Atlassian-Token has been deprecated since rest 3.0.0. Please use a value of 'no-check' instead.
      2017-04-27 16:16:55,016 http-nio-8080-exec-12 ERROR tim 976x1017x1 z9xx8 192.168.56.1 /rest/jira-importers-plugin/1.0/demo/create [c.a.p.r.c.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'storyPoints' in  class com.atlassian.jira.plugins.importer.demo.DemoDataProjectInfoBeanConverter$CustomFieldsUtil threw exception java.lang.NoClassDefFoundError: com/atlassian/greenhopper/service/PageRequest at renderFragment[line 25, column 76]
      com.atlassian.templaterenderer.RenderingException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'storyPoints' in  class com.atlassian.jira.plugins.importer.demo.DemoDataProjectInfoBeanConverter$CustomFieldsUtil threw exception java.lang.NoClassDefFoundError: com/atlassian/greenhopper/service/PageRequest at renderFragment[line 25, column 76]
              at com.atlassian.templaterenderer.velocity.one.six.internal.VelocityTemplateRendererImpl.renderFragment(VelocityTemplateRendererImpl.java:127)
              at sun.reflect.GeneratedMethodAccessor570.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              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.$Proxy3420.renderFragment(Unknown Source)
              at com.atlassian.jira.plugins.importer.sample.SampleDataImporterImpl.parseSampleData(SampleDataImporterImpl.java:72)
              at com.atlassian.jira.plugins.importer.demo.DemoDataImportServiceImpl.importDemoProject(DemoDataImportServiceImpl.java:138)
              at com.atlassian.jira.plugins.importer.demo.DemoDataImportServiceImpl.createDemoDataProject(DemoDataImportServiceImpl.java:124)
              at com.atlassian.jira.plugins.importer.rest.DemoDataResource.createDemo(DemoDataResource.java:141)
              ... 3 filtered
              at java.lang.reflect.Method.invoke(Method.java:498)
              at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
              ... 13 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)
              ... 36 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:80)
              ... 1 filtered
              at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:78)
              ... 16 filtered
              at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:37)
              ... 20 filtered
              at com.atlassian.jira.servermetrics.CorrelationIdPopulatorFilter.doFilter(CorrelationIdPopulatorFilter.java:30)
              ... 10 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)
              ... 29 filtered
              at com.atlassian.jira.servermetrics.MetricsCollectorFilter.doFilter(MetricsCollectorFilter.java:25)
              ... 28 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: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'storyPoints' in  class com.atlassian.jira.plugins.importer.demo.DemoDataProjectInfoBeanConverter$CustomFieldsUtil threw exception java.lang.NoClassDefFoundError: com/atlassian/greenhopper/service/PageRequest at renderFragment[line 25, column 76]
              at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:351)
              at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284)
              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.ASTMethod.execute(ASTMethod.java:155)
              at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:342)
              at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
              at org.apache.velocity.runtime.RuntimeInstance.render(RuntimeInstance.java:1276)
              at org.apache.velocity.runtime.RuntimeInstance.evaluate(RuntimeInstance.java:1215)
              at org.apache.velocity.runtime.RuntimeInstance.evaluate(RuntimeInstance.java:1164)
              at org.apache.velocity.app.VelocityEngine.evaluate(VelocityEngine.java:219)
              at com.atlassian.templaterenderer.velocity.one.six.internal.VelocityTemplateRendererImpl.renderFragment(VelocityTemplateRendererImpl.java:122)
              ... 254 more
      Caused by: java.lang.NoClassDefFoundError: com/atlassian/greenhopper/service/PageRequest
              at com.atlassian.jira.plugins.importer.appbridge.software.GreenHopperBridgeUtils.getUtil(GreenHopperBridgeUtils.java:48)
              at com.atlassian.jira.plugins.importer.appbridge.software.GreenHopperBridgeUtils.getStoryPointsCustomFieldName(GreenHopperBridgeUtils.java:55)
              at com.atlassian.jira.plugins.importer.appbridge.software.JimJiraSoftwareAccessorImpl.getStoryPointsCustomFieldName(JimJiraSoftwareAccessorImpl.java:204)
              at com.atlassian.jira.plugins.importer.demo.DemoDataProjectInfoBeanConverter$CustomFieldsUtil.storyPoints(DemoDataProjectInfoBeanConverter.java:155)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              ... 1 filtered
              at java.lang.reflect.Method.invoke(Method.java:498)
              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.UnboxingMethod.invoke(UnboxingMethod.java:30)
              at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
              ... 265 more
      Caused by: java.lang.ClassNotFoundException: com.atlassian.greenhopper.service.PageRequest not found by com.atlassian.jira.plugins.jira-importers-plugin [92]
              at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532)
              at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)
              at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
              ... 277 more
      
      

      Expected Behavior

      Able to create sample project without error

      Workaround

      Restart JIRA after installing JIRA Software

      Additional Notes

      When JIRA is installed using the JIRA Software installer a restart is not required.

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tevans Tim Evans (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: