com.mysema.query.QueryException: java.lang.IllegalArgumentException: No enum constant com.atlassian.jira.internal.mail.processor.feature.handler.MailHandlerDTO.HandlerType.CONNECTIONFAILUREHANDLER

Atlassian JIRA | Chung Park Chan | 4 months ago
  1. 0

    h3. Summary JIRA Service Desk Email requests configuration page loads indefinitely after importing backup from Cloud to Server. h3. Environment JIRA Service Desk migrated from Cloud to Server h3. Steps to Reproduce # Get a Cloud backup # Restore into JIRA Service Desk 3.1.9 # Go to {{Project Administration >> Email requests}} h3. Expected Results Email requests configuration page loads h3. Actual Results Email requests configuration page loads indefinitely and the below exception is thrown in the _atlassian-jira-incoming-mail.log_ file: {noformat} 2016-08-22 14:47:39,830 ERROR [] Caesium-4-3 ServiceRunner MailJobRunner Failed com.mysema.query.QueryException: java.lang.IllegalArgumentException: No enum constant com.atlassian.jira.internal.mail.processor.feature.handler.MailHandlerDTO.HandlerType.CONNECTIONFAILUREHANDLER at com.mysema.query.sql.SQLResultIterator.next(SQLResultIterator.java:91) [jira-email-processor-plugin-2.1.2_1471846358000.jar:?] at com.atlassian.pocketknife.internal.querydsl.CloseableIterableImpl$CloseableIteratorImpl.nextImpl(CloseableIterableImpl.java:326) [jira-email-processor-plugin-2.1.2_1471846358000.jar:?] at com.atlassian.pocketknife.internal.querydsl.CloseableIterableImpl$CloseableIteratorImpl.hasNext(CloseableIterableImpl.java:299) [jira-email-processor-plugin-2.1.2_1471846358000.jar:?] at com.atlassian.jira.internal.mail.processor.querydsl.QueryDslHelper.list(QueryDslHelper.java:387) [jira-email-processor-plugin-2.1.2_1471846358000.jar:?] at com.atlassian.jira.internal.mail.processor.feature.handler.MailHandlerStore.getMailHandlersByChannelId(MailHandlerStore.java:34) [jira-email-processor-plugin-2.1.2_1471846358000.jar:?] at com.atlassian.jira.internal.mail.processor.feature.handler.MailHandlerManager.getMailHandlersByChannel(MailHandlerManager.java:29) [jira-email-processor-plugin-2.1.2_1471846358000.jar:?] at com.atlassian.jira.internal.mail.processor.feature.processor.MailProcessorWorker.process(MailProcessorWorker.java:64) [jira-email-processor-plugin-2.1.2_1471846358000.jar:?] at com.atlassian.jira.internal.mail.processor.feature.processor.MailProcessorService.run(MailProcessorService.java:36) [jira-email-processor-plugin-2.1.2_1471846358000.jar:?] at com.atlassian.jira.internal.mail.processor.services.MailProcessorExecutor.run(MailProcessorExecutor.java:30) [jira-email-processor-plugin-2.1.2_1471846358000.jar:?] at com.atlassian.jira.internal.mail.processor.services.AbstractMailExecutor.execute(AbstractMailExecutor.java:42) [jira-email-processor-plugin-2.1.2_1471846358000.jar:?] at com.atlassian.jira.internal.mail.processor.services.MailJobRunner.runJob(MailJobRunner.java:35) [jira-email-processor-plugin-2.1.2_1471846358000.jar:?] at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:153) [atlassian-scheduler-core-1.7.0.jar:?] at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:118) [atlassian-scheduler-core-1.7.0.jar:?] at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:97) [atlassian-scheduler-core-1.7.0.jar:?] at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.launchJob(CaesiumSchedulerService.java:401) [atlassian-scheduler-caesium-1.3.0.jar:?] at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeClusteredJob(CaesiumSchedulerService.java:396) [atlassian-scheduler-caesium-1.3.0.jar:?] at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeQueuedJob(CaesiumSchedulerService.java:349) [atlassian-scheduler-caesium-1.3.0.jar:?] at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:255) [atlassian-scheduler-caesium-1.3.0.jar:?] at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:252) [atlassian-scheduler-caesium-1.3.0.jar:?] at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeJob(SchedulerQueueWorker.java:65) [atlassian-scheduler-caesium-1.3.0.jar:?] at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeNextJob(SchedulerQueueWorker.java:59) [atlassian-scheduler-caesium-1.3.0.jar:?] at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.run(SchedulerQueueWorker.java:34) [atlassian-scheduler-caesium-1.3.0.jar:?] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_74] Caused by: java.lang.IllegalArgumentException: No enum constant com.atlassian.jira.internal.mail.processor.feature.handler.MailHandlerDTO.HandlerType.CONNECTIONFAILUREHANDLER at java.lang.Enum.valueOf(Enum.java:238) [?:1.8.0_74] at com.mysema.query.sql.types.EnumByNameType.getValue(EnumByNameType.java:49) [jira-email-processor-plugin-2.1.2_1471846358000.jar:?] at com.mysema.query.sql.types.EnumByNameType.getValue(EnumByNameType.java:28) [jira-email-processor-plugin-2.1.2_1471846358000.jar:?] at com.mysema.query.sql.Configuration.get(Configuration.java:154) [jira-email-processor-plugin-2.1.2_1471846358000.jar:?] at com.mysema.query.sql.AbstractSQLQuery.get(AbstractSQLQuery.java:118) [jira-email-processor-plugin-2.1.2_1471846358000.jar:?] at com.mysema.query.sql.AbstractSQLQuery.newInstance(AbstractSQLQuery.java:345) [jira-email-processor-plugin-2.1.2_1471846358000.jar:?] at com.mysema.query.sql.AbstractSQLQuery.access$000(AbstractSQLQuery.java:52) [jira-email-processor-plugin-2.1.2_1471846358000.jar:?] at com.mysema.query.sql.AbstractSQLQuery$3.produceNext(AbstractSQLQuery.java:198) [jira-email-processor-plugin-2.1.2_1471846358000.jar:?] at com.mysema.query.sql.SQLResultIterator.next(SQLResultIterator.java:85) [jira-email-processor-plugin-2.1.2_1471846358000.jar:?] ... 22 more {noformat} h3.Workaround There are 2 workarounds: # Remove all Email requests before generating the backup in Cloud # Remove the {{CONNECTIONFAILUREHANDLER}} from database after restoring the backup into JIRA Service Desk Server {code:borderStyle=solid} delete from "AO_2C4E5C_MAILHANDLER" where "HANDLER_TYPE" = 'CONNECTIONFAILUREHANDLER'; {code} (!) Please create a backup of the database before deleting the entries

    Atlassian JIRA | 4 months ago | Chung Park Chan
    com.mysema.query.QueryException: java.lang.IllegalArgumentException: No enum constant com.atlassian.jira.internal.mail.processor.feature.handler.MailHandlerDTO.HandlerType.CONNECTIONFAILUREHANDLER
  2. 0

    Passing unsupported OPERATOR for "constraints" surfaces exception

    GitHub | 3 years ago | ssorallen
    java.lang.IllegalArgumentException: No enum constant mesosphere.marathon.Protos.Constraint.Operator.OPERATOR
  3. 0

    Navitia: No enum constant BSS_RENT

    GitHub | 2 years ago | schildbach
    java.lang.IllegalArgumentException: No enum constant de.schildbach.pte.AbstractNavitiaProvider.SectionType.BSS_RENT
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Adding a non-ActiveWeb annotation on action method causes IllegalArgumentException

    GitHub | 2 years ago | ipolevoy
    java.lang.IllegalArgumentException: No enum constant org.javalite.activeweb.HttpMethod.Protected
  6. 0

    Titan-Hadoop does not respect the output.location in properties.

    GitHub | 2 years ago | dbeaumon
    java.lang.RuntimeException: No enum constant org.apache.hadoop.mapreduce.JobCounter.VCORES_MILLIS_REDUCES
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

    No enum constant com.atlassian.jira.internal.mail.processor.feature.handler.MailHandlerDTO.HandlerType.CONNECTIONFAILUREHANDLER

    at java.lang.Enum.valueOf()
  2. Java RT
    Enum.valueOf
    1. java.lang.Enum.valueOf(Enum.java:238)[?:1.8.0_74]
    1 frame
  3. Querydsl - SQL support
    SQLResultIterator.next
    1. com.mysema.query.sql.types.EnumByNameType.getValue(EnumByNameType.java:49)[jira-email-processor-plugin-2.1.2_1471846358000.jar:?]
    2. com.mysema.query.sql.types.EnumByNameType.getValue(EnumByNameType.java:28)[jira-email-processor-plugin-2.1.2_1471846358000.jar:?]
    3. com.mysema.query.sql.Configuration.get(Configuration.java:154)[jira-email-processor-plugin-2.1.2_1471846358000.jar:?]
    4. com.mysema.query.sql.AbstractSQLQuery.get(AbstractSQLQuery.java:118)[jira-email-processor-plugin-2.1.2_1471846358000.jar:?]
    5. com.mysema.query.sql.AbstractSQLQuery.newInstance(AbstractSQLQuery.java:345)[jira-email-processor-plugin-2.1.2_1471846358000.jar:?]
    6. com.mysema.query.sql.AbstractSQLQuery.access$000(AbstractSQLQuery.java:52)[jira-email-processor-plugin-2.1.2_1471846358000.jar:?]
    7. com.mysema.query.sql.AbstractSQLQuery$3.produceNext(AbstractSQLQuery.java:198)[jira-email-processor-plugin-2.1.2_1471846358000.jar:?]
    8. com.mysema.query.sql.SQLResultIterator.next(SQLResultIterator.java:85)[jira-email-processor-plugin-2.1.2_1471846358000.jar:?]
    8 frames
  4. com.atlassian.pocketknife
    CloseableIterableImpl$CloseableIteratorImpl.hasNext
    1. com.atlassian.pocketknife.internal.querydsl.CloseableIterableImpl$CloseableIteratorImpl.nextImpl(CloseableIterableImpl.java:326)[jira-email-processor-plugin-2.1.2_1471846358000.jar:?]
    2. com.atlassian.pocketknife.internal.querydsl.CloseableIterableImpl$CloseableIteratorImpl.hasNext(CloseableIterableImpl.java:299)[jira-email-processor-plugin-2.1.2_1471846358000.jar:?]
    2 frames
  5. com.atlassian.jira
    MailJobRunner.runJob
    1. com.atlassian.jira.internal.mail.processor.querydsl.QueryDslHelper.list(QueryDslHelper.java:387)[jira-email-processor-plugin-2.1.2_1471846358000.jar:?]
    2. com.atlassian.jira.internal.mail.processor.feature.handler.MailHandlerStore.getMailHandlersByChannelId(MailHandlerStore.java:34)[jira-email-processor-plugin-2.1.2_1471846358000.jar:?]
    3. com.atlassian.jira.internal.mail.processor.feature.handler.MailHandlerManager.getMailHandlersByChannel(MailHandlerManager.java:29)[jira-email-processor-plugin-2.1.2_1471846358000.jar:?]
    4. com.atlassian.jira.internal.mail.processor.feature.processor.MailProcessorWorker.process(MailProcessorWorker.java:64)[jira-email-processor-plugin-2.1.2_1471846358000.jar:?]
    5. com.atlassian.jira.internal.mail.processor.feature.processor.MailProcessorService.run(MailProcessorService.java:36)[jira-email-processor-plugin-2.1.2_1471846358000.jar:?]
    6. com.atlassian.jira.internal.mail.processor.services.MailProcessorExecutor.run(MailProcessorExecutor.java:30)[jira-email-processor-plugin-2.1.2_1471846358000.jar:?]
    7. com.atlassian.jira.internal.mail.processor.services.AbstractMailExecutor.execute(AbstractMailExecutor.java:42)[jira-email-processor-plugin-2.1.2_1471846358000.jar:?]
    8. com.atlassian.jira.internal.mail.processor.services.MailJobRunner.runJob(MailJobRunner.java:35)[jira-email-processor-plugin-2.1.2_1471846358000.jar:?]
    8 frames
  6. com.atlassian.scheduler
    SchedulerQueueWorker.run
    1. com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:153)[atlassian-scheduler-core-1.7.0.jar:?]
    2. com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:118)[atlassian-scheduler-core-1.7.0.jar:?]
    3. com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:97)[atlassian-scheduler-core-1.7.0.jar:?]
    4. com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.launchJob(CaesiumSchedulerService.java:401)[atlassian-scheduler-caesium-1.3.0.jar:?]
    5. com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeClusteredJob(CaesiumSchedulerService.java:396)[atlassian-scheduler-caesium-1.3.0.jar:?]
    6. com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeQueuedJob(CaesiumSchedulerService.java:349)[atlassian-scheduler-caesium-1.3.0.jar:?]
    7. com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:255)[atlassian-scheduler-caesium-1.3.0.jar:?]
    8. com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:252)[atlassian-scheduler-caesium-1.3.0.jar:?]
    9. com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeJob(SchedulerQueueWorker.java:65)[atlassian-scheduler-caesium-1.3.0.jar:?]
    10. com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeNextJob(SchedulerQueueWorker.java:59)[atlassian-scheduler-caesium-1.3.0.jar:?]
    11. com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.run(SchedulerQueueWorker.java:34)[atlassian-scheduler-caesium-1.3.0.jar:?]
    11 frames
  7. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)[?:1.8.0_74]
    1 frame