java.lang.UnsupportedOperationException: Cannot write to read-only UserManager [ldapRepository] java.lang.UnsupportedOperationException: Cannot write to read-only UserManager [ldapRepository]

Atlassian JIRA | Samuel Le Berrigaud [Atlassian] | 1 decade ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    When trying to reset the password in such configuration a "System Error" occurs as below: java.lang.UnsupportedOperationException: Cannot write to read-only UserManager [ldapRepository] java.lang.UnsupportedOperationException: Cannot write to read-only UserManager [ldapRepository] at com.atlassian.user.impl.ReadOnlyUserManager.alterPassword(ReadOnlyUserManager.java:29) at com.atlassian.user.impl.cache.CachingUserManager.alterPassword(CachingUserManager.java:138) at com.atlassian.user.impl.delegation.DelegatingListUserManager.alterPassword(DelegatingListUserManager.java:127) at bucket.user.DefaultUserAccessor.alterPassword(DefaultUserAccessor.java:695) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.framework.AopProxyUtils.invokeJoinpointUsingReflection(AopProxyUtils.java:61) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:149) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:116) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:56) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:138) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:152) at $Proxy11.alterPassword(Unknown Source) at com.atlassian.confluence.user.actions.ForgotUserPasswordAction.execute(ForgotUserPasswordAction.java:49) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.intercept(DefaultWorkflowInterceptor.java:55) at com.atlassian.confluence.core.ConfluenceWorkflowInterceptor.intercept(ConfluenceWorkflowInterceptor.java:39) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) ...

    Atlassian JIRA | 1 decade ago | Samuel Le Berrigaud [Atlassian]
    java.lang.UnsupportedOperationException: Cannot write to read-only UserManager [ldapRepository] java.lang.UnsupportedOperationException: Cannot write to read-only UserManager [ldapRepository]
  2. 0

    This seems to be a regression from this bug: CONF-6532 This should print a more friendly message. {code} A system error has occurred - our apologies! Please contact your Confluence administrator to create a support issue on our support system at http://support.atlassian.com with the following information: a description of your problem and what you were doing at the time it occurred cut & paste the error and system information found below attach the application server log file (if possible). We will respond as promptly as possible. Thank you! Cause: java.lang.UnsupportedOperationException: Cannot write to read-only UserManager [ldapRepository] at com.atlassian.user.impl.ReadOnlyUserManager.alterPassword(ReadOnlyUserManager.java:29) Stack Trace: [hide] java.lang.UnsupportedOperationException: Cannot write to read-only UserManager [ldapRepository] at com.atlassian.user.impl.ReadOnlyUserManager.alterPassword(ReadOnlyUserManager.java:29) at com.atlassian.user.impl.cache.CachingUserManager.alterPassword(CachingUserManager.java:138) at com.atlassian.user.impl.delegation.DelegatingListUserManager.alterPassword(DelegatingListUserManager.java:128) at bucket.user.DefaultUserAccessor.alterPassword(DefaultUserAccessor.java:701) at sun.reflect.GeneratedMethodAccessor3234.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) {code}

    Atlassian JIRA | 3 years ago | Guilherme Heck [Atlassian]
    java.lang.UnsupportedOperationException: Cannot write to read-only UserManager [ldapRepository]

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      Cannot write to read-only UserManager [ldapRepository] java.lang.UnsupportedOperationException: Cannot write to read-only UserManager [ldapRepository]

      at com.atlassian.user.impl.ReadOnlyUserManager.alterPassword()
    2. com.atlassian.user
      DelegatingListUserManager.alterPassword
      1. com.atlassian.user.impl.ReadOnlyUserManager.alterPassword(ReadOnlyUserManager.java:29)
      2. com.atlassian.user.impl.cache.CachingUserManager.alterPassword(CachingUserManager.java:138)
      3. com.atlassian.user.impl.delegation.DelegatingListUserManager.alterPassword(DelegatingListUserManager.java:127)
      3 frames
    3. bucket.user
      DefaultUserAccessor.alterPassword
      1. bucket.user.DefaultUserAccessor.alterPassword(DefaultUserAccessor.java:695)
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    5. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.AopProxyUtils.invokeJoinpointUsingReflection(AopProxyUtils.java:61)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:149)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:116)
      3 frames
    6. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:56)
      1 frame
    7. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:138)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:152)
      2 frames
    8. Unknown
      $Proxy11.alterPassword
      1. $Proxy11.alterPassword(Unknown Source)
      1 frame
    9. com.atlassian.confluence
      ForgotUserPasswordAction.execute
      1. com.atlassian.confluence.user.actions.ForgotUserPasswordAction.execute(ForgotUserPasswordAction.java:49)
      1 frame
    10. XWork Tiger Extensions
      DefaultActionInvocation.invoke
      1. com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168)
      1 frame
    11. com.opensymphony.xwork
      AroundInterceptor.intercept
      1. com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
      1 frame
    12. XWork Tiger Extensions
      DefaultActionInvocation.invoke
      1. com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)
      1 frame
    13. com.opensymphony.xwork
      DefaultWorkflowInterceptor.intercept
      1. com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.intercept(DefaultWorkflowInterceptor.java:55)
      1 frame
    14. com.atlassian.confluence
      ConfluenceWorkflowInterceptor.intercept
      1. com.atlassian.confluence.core.ConfluenceWorkflowInterceptor.intercept(ConfluenceWorkflowInterceptor.java:39)
      1 frame
    15. XWork Tiger Extensions
      DefaultActionInvocation.invoke
      1. com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)
      1 frame