java.lang.NoClassDefFoundError: Could not initialize class com.atlassian.servicedesk.plugins.automation.internal.bootstrap.database.schema.common.querydsl.Tables

Atlassian JIRA | Pedro Cora [Atlassian] | 1 year ago
  1. 0

    h3. Summary While creating a new Service Desk, the administrator gets the following exception on the screen: ||!Screen Shot 2015-09-07 at 14.55.51.png|height=400!|| {noformat} Could not initialize class com.atlassian.servicedesk.plugins.automation.internal.bootstrap.database.schema.common.querydsl.Tables Please contact the system administrator. {noformat} *The Service Desk is created if you reload the page, but it appears to be corrupt as there are no Request Types, Queues, SLAs* h3. Steps to Reproduce # Install JIRA Service Desk on JIRA. # In the Service Desk menu, click _Create a Service Desk_. # Fill in Project name and Project key and click _Create_. h3. Expected Results The Service Desk is created without any error messages and is usable after that. h3. Actual Results The below exception is thrown in the {{atlassian-jira.log}} file: {noformat} 2015-09-07 14:52:20,573 http-bio-8080-exec-17 ERROR pcora 892x1294x1 xi0v7g 0:0:0:0:0:0:0:1 /rest/servicedesk/1/servicedesk/gettingstarted [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: Could not initialize class com.atlassian.servicedesk.plugins.automation.internal.bootstrap.database.schema.common.querydsl.Tables java.lang.NoClassDefFoundError: Could not initialize class com.atlassian.servicedesk.plugins.automation.internal.bootstrap.database.schema.common.querydsl.Tables at com.atlassian.servicedesk.plugins.automation.internal.configuration.project.dao.querydsl.ProjectUserContextDaoImpl.setRunAsUserContextConfigForProject(ProjectUserContextDaoImpl.java:54) at com.atlassian.servicedesk.plugins.automation.internal.configuration.project.ProjectRunAsUserContextConfigManagerImpl.setRunAsUserContextConfigForProject(ProjectRunAsUserContextConfigManagerImpl.java:66) at com.atlassian.servicedesk.plugins.automation.internal.configuration.project.ProjectRunAsUserContextConfigServiceImpl.setRunAsUserContextConfigForProject(ProjectRunAsUserContextConfigServiceImpl.java:108) at com.atlassian.servicedesk.internal.automation.defaultrule.DefaultAutomationRuleServiceImpl.setRunAsUserContextConfigForProject(DefaultAutomationRuleServiceImpl.java:187) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService.com$atlassian$servicedesk$internal$feature$gettingstarted$GettingStartedService$$setAutomationRunAsUser(GettingStartedService.scala:428) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createServiceDeskForEmptyProject$1$$anonfun$apply$2$$anonfun$apply$4$$anonfun$apply$5.apply(GettingStartedService.scala:158) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createServiceDeskForEmptyProject$1$$anonfun$apply$2$$anonfun$apply$4$$anonfun$apply$5.apply(GettingStartedService.scala:155) at scalaz.$bslash$div$class.flatMap(Either.scala:117) at scalaz.$bslash$div$minus.flatMap(Either.scala:283) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createServiceDeskForEmptyProject$1$$anonfun$apply$2$$anonfun$apply$4.apply(GettingStartedService.scala:155) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createServiceDeskForEmptyProject$1$$anonfun$apply$2$$anonfun$apply$4.apply(GettingStartedService.scala:150) at scalaz.$bslash$div$class.flatMap(Either.scala:117) at scalaz.$bslash$div$minus.flatMap(Either.scala:283) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createServiceDeskForEmptyProject$1$$anonfun$apply$2.apply(GettingStartedService.scala:150) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createServiceDeskForEmptyProject$1$$anonfun$apply$2.apply(GettingStartedService.scala:147) at scalaz.$bslash$div$class.flatMap(Either.scala:117) {noformat} h3. Notes JIRA 6.4.11 h3. Workaround # Uninstall JIRA Service Desk 2.5.5; # [Download version 2.5.4|https://marketplace.atlassian.com/download/plugins/com.atlassian.servicedesk/version/205040]; # Install the OBR through the *Upload Add-on* link in the *Manage Add-ons page* as per [Installing add-ons - Installing by file upload|https://confluence.atlassian.com/display/UPM/Installing+add-ons#Installingadd-ons-Installingbyfileupload]

    Atlassian JIRA | 1 year ago | Pedro Cora [Atlassian]
    java.lang.NoClassDefFoundError: Could not initialize class com.atlassian.servicedesk.plugins.automation.internal.bootstrap.database.schema.common.querydsl.Tables
  2. 0

    h3. Summary While creating a new Service Desk, the administrator gets the following exception on the screen: ||!Screen Shot 2015-09-07 at 14.55.51.png|height=400!|| {noformat} Could not initialize class com.atlassian.servicedesk.plugins.automation.internal.bootstrap.database.schema.common.querydsl.Tables Please contact the system administrator. {noformat} *The Service Desk is created if you reload the page, but it appears to be corrupt as there are no Request Types, Queues, SLAs* h3. Steps to Reproduce # Install JIRA Service Desk on JIRA. # In the Service Desk menu, click _Create a Service Desk_. # Fill in Project name and Project key and click _Create_. h3. Expected Results The Service Desk is created without any error messages and is usable after that. h3. Actual Results The below exception is thrown in the {{atlassian-jira.log}} file: {noformat} 2015-09-07 14:52:20,573 http-bio-8080-exec-17 ERROR pcora 892x1294x1 xi0v7g 0:0:0:0:0:0:0:1 /rest/servicedesk/1/servicedesk/gettingstarted [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: Could not initialize class com.atlassian.servicedesk.plugins.automation.internal.bootstrap.database.schema.common.querydsl.Tables java.lang.NoClassDefFoundError: Could not initialize class com.atlassian.servicedesk.plugins.automation.internal.bootstrap.database.schema.common.querydsl.Tables at com.atlassian.servicedesk.plugins.automation.internal.configuration.project.dao.querydsl.ProjectUserContextDaoImpl.setRunAsUserContextConfigForProject(ProjectUserContextDaoImpl.java:54) at com.atlassian.servicedesk.plugins.automation.internal.configuration.project.ProjectRunAsUserContextConfigManagerImpl.setRunAsUserContextConfigForProject(ProjectRunAsUserContextConfigManagerImpl.java:66) at com.atlassian.servicedesk.plugins.automation.internal.configuration.project.ProjectRunAsUserContextConfigServiceImpl.setRunAsUserContextConfigForProject(ProjectRunAsUserContextConfigServiceImpl.java:108) at com.atlassian.servicedesk.internal.automation.defaultrule.DefaultAutomationRuleServiceImpl.setRunAsUserContextConfigForProject(DefaultAutomationRuleServiceImpl.java:187) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService.com$atlassian$servicedesk$internal$feature$gettingstarted$GettingStartedService$$setAutomationRunAsUser(GettingStartedService.scala:428) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createServiceDeskForEmptyProject$1$$anonfun$apply$2$$anonfun$apply$4$$anonfun$apply$5.apply(GettingStartedService.scala:158) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createServiceDeskForEmptyProject$1$$anonfun$apply$2$$anonfun$apply$4$$anonfun$apply$5.apply(GettingStartedService.scala:155) at scalaz.$bslash$div$class.flatMap(Either.scala:117) at scalaz.$bslash$div$minus.flatMap(Either.scala:283) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createServiceDeskForEmptyProject$1$$anonfun$apply$2$$anonfun$apply$4.apply(GettingStartedService.scala:155) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createServiceDeskForEmptyProject$1$$anonfun$apply$2$$anonfun$apply$4.apply(GettingStartedService.scala:150) at scalaz.$bslash$div$class.flatMap(Either.scala:117) at scalaz.$bslash$div$minus.flatMap(Either.scala:283) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createServiceDeskForEmptyProject$1$$anonfun$apply$2.apply(GettingStartedService.scala:150) at com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createServiceDeskForEmptyProject$1$$anonfun$apply$2.apply(GettingStartedService.scala:147) at scalaz.$bslash$div$class.flatMap(Either.scala:117) {noformat} h3. Notes JIRA 6.4.11 h3. Workaround # Uninstall JIRA Service Desk 2.5.5; # [Download version 2.5.4|https://marketplace.atlassian.com/download/plugins/com.atlassian.servicedesk/version/205040]; # Install the OBR through the *Upload Add-on* link in the *Manage Add-ons page* as per [Installing add-ons - Installing by file upload|https://confluence.atlassian.com/display/UPM/Installing+add-ons#Installingadd-ons-Installingbyfileupload]

    Atlassian JIRA | 1 year ago | Pedro Cora [Atlassian]
    java.lang.NoClassDefFoundError: Could not initialize class com.atlassian.servicedesk.plugins.automation.internal.bootstrap.database.schema.common.querydsl.Tables
  3. 0
    Please add the jar file of spring as dependency for that JavaFX Project.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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.NoClassDefFoundError

      Could not initialize class com.atlassian.servicedesk.plugins.automation.internal.bootstrap.database.schema.common.querydsl.Tables

      at com.atlassian.servicedesk.plugins.automation.internal.configuration.project.dao.querydsl.ProjectUserContextDaoImpl.setRunAsUserContextConfigForProject()
    2. com.atlassian.servicedesk
      GettingStartedService$$anonfun$createServiceDeskForEmptyProject$1$$anonfun$apply$2$$anonfun$apply$4$$anonfun$apply$5.apply
      1. com.atlassian.servicedesk.plugins.automation.internal.configuration.project.dao.querydsl.ProjectUserContextDaoImpl.setRunAsUserContextConfigForProject(ProjectUserContextDaoImpl.java:54)
      2. com.atlassian.servicedesk.plugins.automation.internal.configuration.project.ProjectRunAsUserContextConfigManagerImpl.setRunAsUserContextConfigForProject(ProjectRunAsUserContextConfigManagerImpl.java:66)
      3. com.atlassian.servicedesk.plugins.automation.internal.configuration.project.ProjectRunAsUserContextConfigServiceImpl.setRunAsUserContextConfigForProject(ProjectRunAsUserContextConfigServiceImpl.java:108)
      4. com.atlassian.servicedesk.internal.automation.defaultrule.DefaultAutomationRuleServiceImpl.setRunAsUserContextConfigForProject(DefaultAutomationRuleServiceImpl.java:187)
      5. com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService.com$atlassian$servicedesk$internal$feature$gettingstarted$GettingStartedService$$setAutomationRunAsUser(GettingStartedService.scala:428)
      6. com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createServiceDeskForEmptyProject$1$$anonfun$apply$2$$anonfun$apply$4$$anonfun$apply$5.apply(GettingStartedService.scala:158)
      7. com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createServiceDeskForEmptyProject$1$$anonfun$apply$2$$anonfun$apply$4$$anonfun$apply$5.apply(GettingStartedService.scala:155)
      7 frames
    3. Scalaz
      $bslash$div$minus.flatMap
      1. scalaz.$bslash$div$class.flatMap(Either.scala:117)
      2. scalaz.$bslash$div$minus.flatMap(Either.scala:283)
      2 frames
    4. com.atlassian.servicedesk
      GettingStartedService$$anonfun$createServiceDeskForEmptyProject$1$$anonfun$apply$2$$anonfun$apply$4.apply
      1. com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createServiceDeskForEmptyProject$1$$anonfun$apply$2$$anonfun$apply$4.apply(GettingStartedService.scala:155)
      2. com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createServiceDeskForEmptyProject$1$$anonfun$apply$2$$anonfun$apply$4.apply(GettingStartedService.scala:150)
      2 frames
    5. Scalaz
      $bslash$div$minus.flatMap
      1. scalaz.$bslash$div$class.flatMap(Either.scala:117)
      2. scalaz.$bslash$div$minus.flatMap(Either.scala:283)
      2 frames
    6. com.atlassian.servicedesk
      GettingStartedService$$anonfun$createServiceDeskForEmptyProject$1$$anonfun$apply$2.apply
      1. com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createServiceDeskForEmptyProject$1$$anonfun$apply$2.apply(GettingStartedService.scala:150)
      2. com.atlassian.servicedesk.internal.feature.gettingstarted.GettingStartedService$$anonfun$createServiceDeskForEmptyProject$1$$anonfun$apply$2.apply(GettingStartedService.scala:147)
      2 frames
    7. Scalaz
      $bslash$div$class.flatMap
      1. scalaz.$bslash$div$class.flatMap(Either.scala:117)
      1 frame