JIRA Importer Fails with IllegalArgumentException

Symptoms

Using the JIRA Importer, the import operation fails with the following stack trace:

java.lang.IllegalArgumentException: name argument cannot be null or blank
	at org.apache.commons.lang.Validate.isTrue(Validate.java:157)
	at com.atlassian.crowd.model.group.GroupTemplate.<init>(GroupTemplate.java:33)
	at com.atlassian.crowd.importer.mappers.jdbc.GroupMapper.mapRow(GroupMapper.java:29)
	at org.springframework.jdbc.core.RowMapperResultSetExtractor.extractData(RowMapperResultSetExtractor.java:92)
	at org.springframework.jdbc.core.JdbcTemplate$1QueryStatementCallback.doInStatement(JdbcTemplate.java:448)
	at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:396)
	at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:458)
	at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:466)
	at com.atlassian.crowd.importer.importers.JdbcImporter.findGroups(JdbcImporter.java:56)
	at com.atlassian.crowd.importer.importers.BaseImporter.importUsersGroupsAndMemberships(BaseImporter.java:230)
	at com.atlassian.crowd.importer.importers.BaseDelegatingJdbcImporter.importUsersGroupsAndMemberships(BaseDelegatingJdbcImporter.java:74)
	at com.atlassian.crowd.importer.importers.JiraImporter.importUsersGroupsAndMemberships(JiraImporter.java:10)
	at com.atlassian.crowd.importer.manager.ImporterManagerImpl.performImport(ImporterManagerImpl.java:36)
	at com.atlassian.crowd.console.action.dataimport.AtlassianImporter.doImport(AtlassianImporter.java:54)
	at com.atlassian.crowd.console.action.dataimport.AtlassianImporter.doCheckAdditionalParamsRequired(AtlassianImporter.java:118)

Cause

One of the groups from JIRA's "cwd_group" table has empty name.

For JIRA version prior to 4.3, please check the "groupbase" table.

Resolution

In the JIRA database, "cwd_group" table, find what group entry does not have a name and then add a name to it.

For JIRA version prior to 4.3, please check the "groupbase" table.




Last modified on Feb 3, 2025

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.