Export fails with InstantiationException

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問


プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

問題

The export of Bamboo fails and the following error is found in the atlassian-bamboo.log:

2019-06-03 14:48:32,886 ERROR [http-nio-8085-exec-25] [Export] org.springframework.orm.hibernate5.HibernateSystemException: Cannot instantiate abstract class or interface:  : com.atlassian.bamboo.deployments.projects.persistence.items.AbstractMutableDeploymentProjectItem; nested exception is org.hibernate.InstantiationException: Cannot instantiate abstract class or interface:  : com.atlassian.bamboo.deployments.projects.persistence.items.AbstractMutableDeploymentProjectItem
org.springframework.orm.hibernate5.HibernateSystemException: Cannot instantiate abstract class or interface:  : com.atlassian.bamboo.deployments.projects.persistence.items.AbstractMutableDeploymentProjectItem; nested exception is org.hibernate.InstantiationException: Cannot instantiate abstract class or interface:  : com.atlassian.bamboo.deployments.projects.persistence.items.AbstractMutableDeploymentProjectItem

原因

This issue is caused by database corruption introduced by a bug in Bamboo,  BAM-19948 - Getting issue details... STATUS .

Note: Even if you may be running Bamboo 6.6.2 or newer (which do not contain the bug anymore), the corruption may still be in the database.

ソリューション

To resolve this problem, first upgrade Bamboo to version 6.6.2 or newer to prevent the corruption from reoccurring. Once the upgrade was successful, follow these steps to have Bamboo repair the database corruption:

  1. Create a new plan with an artifact definition. This plan needs no content other than an artifact definition and its sole purpose is to be removed and in the next step.
  2. Remove this new plan created in step 1. This will trigger Bamboo to execute a DB cleanup and removes orphaned Artifact definition records which triggers the bug in affected plans.


説明 How to resolve an InstantiationException that occurs when exporting Bamboo data
製品Bamboo
最終更新日 2019 年 6 月 4 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.