NullPointerException thrown when trying to sync repo

Timothy Chin Community Champion Jan 11, 2013

After clicking the refresh icon to Sync Repo, an error message is returned:

*Sync Failed: java.lang.NullPointerException*

2013-01-11 17:19:42,578 BitbucketConnectorExecutorServiceThread:thread-1 WARN ServiceRunner    com.atlassian.jira.plugins.dvcs.scheduler.DvcsScheduler:job [dvcs.sync.impl.DefaultSynchronizer] 
java.lang.NullPointerException
	at com.atlassian.jira.plugins.dvcs.spi.bitbucket.transformers.ChangesetFileTransformer$1.transform(ChangesetFileTransformer.java:34)
	at org.apache.commons.collections.CollectionUtils.collect(CollectionUtils.java:632)
	at org.apache.commons.collections.CollectionUtils.collect(CollectionUtils.java:610)
	at org.apache.commons.collections.CollectionUtils.collect(CollectionUtils.java:575)
	at com.atlassian.jira.plugins.dvcs.spi.bitbucket.transformers.ChangesetFileTransformer.fromBitbucketChangesetsWithDiffstat(ChangesetFileTransformer.java:25)
	at com.atlassian.jira.plugins.dvcs.spi.bitbucket.transformers.DetailedChangesetTransformer.fromChangesetAndBitbucketDiffstats(DetailedChangesetTransformer.java:21)
	at com.atlassian.jira.plugins.dvcs.spi.bitbucket.BitbucketCommunicator.getDetailChangeset(BitbucketCommunicator.java:168)
	at com.atlassian.jira.plugins.dvcs.service.remote.ChangesetIterator.next(BranchedChangesetIterator.java:109)
	at com.atlassian.jira.plugins.dvcs.service.remote.BranchedChangesetIterator.next(BranchedChangesetIterator.java:61)
	at com.atlassian.jira.plugins.dvcs.service.remote.BranchedChangesetIterator.next(BranchedChangesetIterator.java:19)
	at com.atlassian.jira.plugins.dvcs.sync.impl.DefaultSynchronisationOperation.synchronise(DefaultSynchronisationOperation.java:64)
	at com.atlassian.jira.plugins.dvcs.sync.impl.DefaultSynchronizer$1.run(DefaultSynchronizer.java:79)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)

The DVCS connector is connecting to BitBucket.

2 answers

1 accepted

Hi Timothy,

This issue has cropped up a couple of times recently. We've been resolving it by manually updating the DVCS connector plugin to version 1.2.6.1. Please raise a support ticket and myself or one of my team mates should be able to get this taken care of.

Cheers

Turner

Timothy Chin Community Champion Jan 17, 2013

Where do I raise this issue at? I coulnd not even find the right JIRA instance to raise this issue..

Hi Timothy,

As Turner suggested, it is best to raise an issue on support. You may register first and raise this question to https://support.atlassian.com

Do let us know if you need assistance on this.

Hi Tomothy,

I'm afraid that you have run into a known bug described on the following report: https://studio.atlassian.com/browse/BBC-232. I could not find any workarounds for this, so my best advice is to wait for version 1.3 of the plugin.

I hope this is has been helpful.

Timothy Chin Community Champion Jan 15, 2013

Can't view the issue but does the sync actually finish?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

135 views 0 4
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