NumberFormatException Importing BitBucket issues into Jira

I've set up an Eval version of Jira in order to install the BitBucket Importer plugin. My intention is to import our BitBucket issues, and backup the imported data to restore to our Jira OnDemand service. We've got three BitBucket repos using issue tracking that I want to import. Two have imported flawlessly, but the largest (and most important) does not. In the UI I see the following error:

Error
Fetching data from Bitbucket failed: java.lang.NumberFormatException: null (the complete exception can be found in the log)

And if I view the log I see the following exception:

2013-06-15 12:07:07,065 JiraTaskExectionThread-9 ERROR jim 727x852x1 1n7wfqm 203.122.235.224 /secure/admin/views/FetchDataPage!default.jspa [importer.bitbucket.fetch.DataFetchJob] Fetching data from Bitbucket has failed
java.lang.NumberFormatException: null
	at java.lang.Integer.parseInt(Unknown Source)
	at java.lang.Integer.parseInt(Unknown Source)
	at com.atlassian.jira.plugins.importer.bitbucket.BitbucketImporterClient.waitForRepositoryBackupToFinish(BitbucketImporterClient.java:312)
	at com.atlassian.jira.plugins.importer.bitbucket.BitbucketImporterClient.loadProject(BitbucketImporterClient.java:236)
	at com.atlassian.jira.plugins.importer.bitbucket.fetch.DataFetchJob$DataFetchCallable.call(DataFetchJob.java:99)
	at com.atlassian.jira.plugins.importer.bitbucket.fetch.DataFetchJob$DataFetchCallable.call(DataFetchJob.java:73)
	at com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:365)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at com.atlassian.jira.task.ForkedThreadExecutor$ForkedRunnableDecorator.run(ForkedThreadExecutor.java:249)
	at java.lang.Thread.run(Unknown Source)

The BitBucket repo has 260 issues, so it's not super huge. I am able to manually download a backup from BitBucket (it's a 17Mb) zip file. The server has ample space to download and unzip this file.

Not being able to import BitBucket issues is blocks us from moving to Jira, we're going through this routine of using an eval Jira because previous requests to make te BitBucket Importer available to OnDemand users have not been actioned.

1 answer

Hello,

I beleive this was fixed rather recently. Check out https://ecosystem.atlassian.net/browse/JIM-991 followed by https://marketplace.atlassian.com/plugins/com.atlassian.jira.plugins.jira-importers-bitbucket-plugin. Looks like your exact issue was resolved in a bugfix on the 23rd.

Give upgrading a try and see if it is working for you now.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,754 views 11 18
Join discussion

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