java.lang.RuntimeException: java.util.concurrent.ExecutionException: com.atlassian.jira.util.dbc.Assertions$NullArgumentException: shareType should not be null!

Atlassian JIRA | Tim Evans | 3 months ago
  1. 0

    h3. Description of Problem After restoring a Cloud backup to JIRA server, indexing failed with the following errors in atlassian-jira.log {noformat} 2016-08-19 21:18:10,996 JiraTaskExectionThread-3 WARN sysadmin 1277x313x1 v5jhvz 10.61.1.234 /secure/admin/jira/IndexReIndex.jspa [c.a.jira.index.AccumulatingResultB$ java.lang.RuntimeException: java.util.concurrent.ExecutionException: com.atlassian.jira.util.dbc.Assertions$NullArgumentException: shareType should not be null! at com.atlassian.jira.index.FutureResult.await(FutureResult.java:29) at com.atlassian.jira.index.AccumulatingResultBuilder$CompositeResult.await(AccumulatingResultBuilder.java:140) at com.atlassian.jira.sharing.index.DefaultSharedEntityIndexManager.reIndex(DefaultSharedEntityIndexManager.java:128) at com.atlassian.jira.sharing.index.DefaultSharedEntityIndexManager.reIndexAll(DefaultSharedEntityIndexManager.java:83) at com.atlassian.jira.util.index.CompositeIndexLifecycleManager.reIndexAll(CompositeIndexLifecycleManager.java:64) at com.atlassian.jira.util.index.CompositeIndexLifecycleManager.reIndexAll(CompositeIndexLifecycleManager.java:48) at com.atlassian.jira.web.action.admin.index.ReIndexAsyncIndexerCommand.doReindex(ReIndexAsyncIndexerCommand.java:25) at com.atlassian.jira.web.action.admin.index.AbstractAsyncIndexerCommand.call(AbstractAsyncIndexerCommand.java:54) at com.atlassian.jira.web.action.admin.index.ReIndexAsyncIndexerCommand.call(ReIndexAsyncIndexerCommand.java:16) at com.atlassian.jira.web.action.admin.index.AbstractAsyncIndexerCommand.call(AbstractAsyncIndexerCommand.java:24) at com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:453) at com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:421) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at com.atlassian.jira.task.ForkedThreadExecutor$ForkedRunnableDecorator.run(ForkedThreadExecutor.java:216) at java.lang.Thread.run(Thread.java:745) Caused by: java.util.concurrent.ExecutionException: com.atlassian.jira.util.dbc.Assertions$NullArgumentException: shareType should not be null! at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:192) ... 2016-08-19 19:07:19,414 JiraImportTaskExecutionThread-1 ERROR sysadmin 1144x114x1 1mg9eth 10.60.2.234 /secure/admin/XmlRestor$ com.atlassian.jira.index.IndexingFailureException: Indexing completed with 2 errors at com.atlassian.jira.index.AccumulatingResultBuilder$CompositeResult.await(AccumulatingResultBuilder.java:150) at com.atlassian.jira.sharing.index.DefaultSharedEntityIndexManager.reIndex(DefaultSharedEntityIndexManager.java:1$ at com.atlassian.jira.sharing.index.DefaultSharedEntityIndexManager.reIndexAll(DefaultSharedEntityIndexManager.jav$ at com.atlassian.jira.sharing.index.DefaultSharedEntityIndexManager.reIndexAll(DefaultSharedEntityIndexManager.jav$ at com.atlassian.jira.sharing.index.DefaultSharedEntityIndexManager.activate(DefaultSharedEntityIndexManager.java:$ at com.atlassian.jira.sharing.index.DefaultSharedEntityIndexManager.activate(DefaultSharedEntityIndexManager.java:$ at com.atlassian.jira.util.index.CompositeIndexLifecycleManager.activate(CompositeIndexLifecycleManager.java:134) at com.atlassian.jira.util.index.CompositeIndexLifecycleManager.activate(CompositeIndexLifecycleManager.java:128) at com.atlassian.jira.bc.dataimport.DefaultDataImportService.reindex(DefaultDataImportService.java:955) at com.atlassian.jira.bc.dataimport.DefaultDataImportService.performImport(DefaultDataImportService.java:749) at com.atlassian.jira.bc.dataimport.DefaultDataImportService.doImport(DefaultDataImportService.java:320) at com.atlassian.jira.web.action.setup.DataImportAsyncCommand.call(DataImportAsyncCommand.java:60) at com.atlassian.jira.web.action.setup.DataImportAsyncCommand.call(DataImportAsyncCommand.java:28) at com.atlassian.jira.task.ImportTaskManagerImpl$TaskCallableDecorator.call(ImportTaskManagerImpl.java:157) at com.atlassian.jira.task.ImportTaskManagerImpl$TaskCallableDecorator.call(ImportTaskManagerImpl.java:133) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) {noformat} h3. Cause In Cloud versions, there is a new Share Type for filters for any logged in User. This value translates to "loggedin" in thesharepermissions table. Unfortunately, this value does not exist for JIRA Server, and it is interpreted as being null on the table. h3. Expected Behavior Indexing does not fail after restore from JIRA Cloud. * One solution might be to fix this value during the XML restore process h3. Workaround # Stop JIRA # Run this database query: {{update sharepermissions set sharetype = 'global' where sharetype = 'loggedin';}} # Start JIRA # Run a lock index to re-build the indexes.

    Atlassian JIRA | 3 months ago | Tim Evans
    java.lang.RuntimeException: java.util.concurrent.ExecutionException: com.atlassian.jira.util.dbc.Assertions$NullArgumentException: shareType should not be null!
  2. 0

    How to correct TomcatFailure

    Stack Overflow | 4 months ago | Jack
    java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
  3. 0

    race condition building reactor from source?

    GitHub | 2 years ago | Ed42
    java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException: 1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Sometimes flaky build with parallel build-option of Maven3

    GitHub | 2 years ago | jbarop
    java.util.concurrent.ExecutionException: java.lang.RuntimeException: could not load file
  6. 0

    Vaadin UI.access() throws ExecutionException

    Stack Overflow | 2 years ago | Nikolay Kuznetsov
    java.util.concurrent.ExecutionException: java.lang.NullPointerException

  1. rp 6 times, last 3 months ago
  2. qavid 1 times, last 5 months ago
  3. Mark 6 times, last 5 months ago
  4. tfr 3 times, last 4 months ago
  5. rp 4 times, last 4 months ago
2 more registered users
52 unregistered visitors
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.util.concurrent.ExecutionException

    com.atlassian.jira.util.dbc.Assertions$NullArgumentException: shareType should not be null!

    at java.util.concurrent.FutureTask.report()
  2. Java RT
    FutureTask.get
    1. java.util.concurrent.FutureTask.report(FutureTask.java:122)
    2. java.util.concurrent.FutureTask.get(FutureTask.java:192)
    2 frames