Could not create table due to missing Field Type definition
プラットフォームについて: 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 は除く
問題
When installing or upgrading JIRA, one or more tables may fail to be created and present messages such as below on atlassian-jira.log
.
2015-08-18 08:32:23,275 localhost-startStop-1 WARN [core.entity.jdbc.DatabaseUtil] Entity "ClusteredJob" has no table in the database
2015-08-18 08:32:23,275 localhost-startStop-1 ERROR [core.entity.jdbc.DatabaseUtil] Could not create table "clusteredjob"
2015-08-18 08:32:23,275 localhost-startStop-1 ERROR [core.entity.jdbc.DatabaseUtil] Field type [null] not found for field [parameters] of entity [ClusteredJob], not creating table.
原因
This occurs when JIRA is unable to locate a field type definition for the type of data stored in a certain column of the database. This information is stored on the fieldtype-<db-type>.xml
file (located under <JIRA_INSTALL>/atlassian-jira/WEB-INF/classes/entitydefs/
).
ソリューション
オプション 1
Replace the fieldtype-<db-type>.xml
file with the one from a clean installation of JIRA.
オプション 2
- Open the
entitymodel.xml
file (located on the same folder as thefieldtype-<db-type>.xml
); Locate the
field
definition according to what was presented in the log message/s (see example below) and take note of the value fortype
;<field name="parameters" type="byte-array" />
Open the
fieldtype-<db-type>.xml
file (according to the database driver you use) and locate thefield-type-def
property for the field noted above (see example fororacle10g
);<field-type-def type="byte-array" sql-type="LONG RAW" java-type="java.lang.Object"></field-type-def>
- Compare with the
fieldtype-<db-type>.xml
of a new installation of JIRA and add the definition for such field type; - Jira を再起動します