Clicking Edit in a User directory configuration causes System Error in Confluence

Still need help?

The Atlassian Community is here for you.

Ask the community


Platform Notice: Server and Data Center Only - This article only applies to Atlassian products on the server and data center platforms.


While trying to configure user repository from the user directory, any changes resulted in 500 error page

The following appears in the atlassian-confluence.log

Caused by: org.springframework.beans.FatalBeanException: Could not copy properties from source to target; nested exception is java.lang.reflect.InvocationTargetException
	at org.springframework.beans.BeanUtils.copyProperties(
Caused by: java.lang.reflect.InvocationTargetException
Caused by: java.lang.NumberFormatException: For input string: "636/"


Diagnostic Steps

  • The string For input string: "636/" looks like  a port number
  • Check what is the URL of the LDAP if it contains a backlash:

    ldap.url: ldaps://


The backlash in the URL caused this problem.


In your database, run the following query:

select, d.directory_name, m.list_index from cwd_directory d join cwd_app_dir_mapping m on;

Take note of the id of the problematic directory, and insert it to the following code and run it in your database:

UPDATE cwd_directory_attribute
SET attribute_value = 'ldap://' <without the backlash>
WHERE directory_id = <directory ID obtained form the previous query>
AND attribute_name = 'ldap.url'

Always back up your data before performing any modifications to the database. If possible, test any alter, insert, update, or delete SQL commands on a staging server first.

Check if the codes above was run successfully by running the following code:

SELECT * FROM cwd_directory_attribute WHERE directory_id = <directory id> AND attribute_name = 'ldap.url';

flush your cache (By going to Confluence Admin > Cache Management > Flush All) and see if this setting works

Last modified on Mar 30, 2016

Was this helpful?

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