Null Pointer Error when backing up Crowd

When I try to backup crowd to an xml file I get a null pointer error.

com.atlassian.crowd.migration.userMapper.addUserToXml (

I have check the database and there doesn't seem to be any null users, so why am I getting a null pointer error?

3 answers

The line in error is most likely:


Meaning that a user has a null credential, yes the code could be better, and it is a lot better in later releases of Crowd. So I would check to see if a user has a credential that is null.


There area bunch that are null. I have crowd set up to use LDAP as the authentication method. What should the credential be(I would guess "nopass" since that is what some of the others say)?

Would it be wrong to modify the null credentials in the database? Thanks for all the help

To help us verify the error could you let us know the version of Crowd you are using.

It would also help to have the complete stacktrace.



Sorry, I am running version 2.1.1 It is currently being run on a intranet only computer. To get the entire stack trace I would have to type it all out manually, is there a specific part you want to look at that I could get? Thanks!

I am assuming that you are using a delegated LDAP directory, so all auth will happen against LDAP and not against the local database.

Putting no 'nopass' into the credential column would be fine, since it will never be used for auth and that column expects an encrypted value, so nothing will every evaluate to 'nopass'.

You have actually hit which was fixed in 2.2.1 of Crowd.

As with any database change, I would recommend taking a backup of the database before doing this change.



Suggest an answer

Log in or Join to answer
Community showcase
Maarten Cautreels
Posted Thursday in Off-topic

Friday Fun: What's your favourite beer/drink

As a Belgian, beer-lover and home brewer, beer is one of my great passions. I love the fact that with just a few ingredients (usually just water, hop and malt) you can create so many different tastes...

294 views 38 9
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