Mantis import into JIRA fails with NPE

I try to import projects from Mantis. Some of them get imported fine, but one fails (at the first step) with an NPE:

2013-04-22 18:07:07,695 INFO - Importing: Issues
2013-04-22 18:07:07,695 INFO - ------------------------------
2013-04-22 18:07:07,695 INFO - Only new items will be imported
2013-04-22 18:07:23,112 INFO - ------------------------------
2013-04-22 18:07:23,112 INFO - Finished Importing : Issues
2013-04-22 18:07:23,112 INFO - ------------------------------
2013-04-22 18:07:23,112 ERROR - Unexpected failure occurred. Importer will stop immediately. Data maybe in an unstable state
	at org.apache.oro.text.regex.Util.substitute(Unknown Source)
	at com.atlassian.jira.util.RegexpUtils.replaceAll(
	at com.atlassian.jira.plugins.importer.imports.mantis.transformer.IssueTransformerVer118OrOlder.escapeMantisString(
	at com.atlassian.jira.plugins.importer.imports.mantis.transformer.IssueTransformerVer118OrOlder.transform(
	at com.atlassian.jira.plugins.importer.imports.mantis.transformer.IssueTransformerVer118OrOlder.transform(
	at com.atlassian.jira.plugins.importer.web.JdbcConnection.queryDb(
	at com.atlassian.jira.plugins.importer.web.JdbcConnection.queryDb(
	at com.atlassian.jira.plugins.importer.imports.mantis.MantisDataBean.getIssuesIterator(
	at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.importIssues(
	at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.doImport(
	at com.atlassian.jira.task.TaskManagerImpl$
	at java.util.concurrent.FutureTask$Sync.innerRun(
	at java.util.concurrent.Executors$
	at java.util.concurrent.FutureTask$Sync.innerRun(
	at com.atlassian.multitenant.impl.DefaultMultiTenantManager.runForTenant(
	at com.atlassian.multitenant.juc.MultiTenantExecutors$
	at com.atlassian.jira.task.ForkedThreadExecutor$
2013-04-22 18:07:23,115 INFO - No issues need to be reindexed.
No issue gets imported. I can guess that there is some text somewhere in mantis that doesn't suit the escaper, but I can't get further.
Any idea of where I can get more info ? A fix ?
-- Hugues

2 answers

0 vote
Yilin Mo Atlassian Team Apr 23, 2013

Please be aware that : JIRA Importers plugin is compatible with Mantis versions 1.1.8 to 1.2.8.

You can go to the page "Administration >> Logging & Profiling " then add the package "com.atlassian.jira.plugins.importer" with the debug level and enable the SQL dump log, try again to check whether you can get more information about the issue?

Also, I would like to encourage you open a support ticket that we can help you qucikly move forward.

Thanks Yilin,

My Mantis version is 1.2.8. Ticket is opened at support desk. I will keep you informed on what happens next.

Suggest an answer

Log in or Join to answer
Community showcase
Jason Wong
Published yesterday in Agility Beta

Welcome to agility

Every team in the world is unique, and so   Atlassian believes   that each and every team's best way of working  needs to  be molded to their unique circumstances  – ...

372 views 6 16
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot