java.lang.IllegalArgumentException: User should not be null

Atlassian JIRA | Joshua Ali | 1 year ago
  1. 0

    {noformat} 2015-11-25 11:49:06,224 ERROR [http-nio-8081-exec-106] [lasso.migration.jersey.MigrationResource] createUser An error occured attempting to create a user -- url: /rest/lasso/1.0/migration/user | userName: lasso-admin java.lang.IllegalArgumentException: User should not be null at com.atlassian.user.util.Assert.fail(Assert.java:12) at com.atlassian.user.util.Assert.notNull(Assert.java:25) at com.atlassian.crowd.embedded.atlassianuser.EmbeddedCrowdGroupManager.getCrowdUser(EmbeddedCrowdGroupManager.java:229) at com.atlassian.crowd.embedded.atlassianuser.EmbeddedCrowdGroupManager.addMembership(EmbeddedCrowdGroupManager.java:174) at sun.reflect.GeneratedMethodAccessor2234.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy73.addMembership(Unknown Source) at bucket.user.DefaultUserAccessor.addUser(DefaultUserAccessor.java:76) at sun.reflect.GeneratedMethodAccessor1972.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:16) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) {noformat} Originally reported as [MEGA-2608|https://sdog.jira-dev.com/browse/MEGA-2608]. The Lasso Plugin running on CAC makes a call to {{UserAccessor.addUser(username, password, email, fullname, groups)}} (implementation [here|https://stash.atlassian.com/projects/CONF/repos/confluence/browse/confluence-core/confluence-bucket/src/main/java/bucket/user/DefaultUserAccessor.java#63]), which essentially does two operations: the creation of the user (via the other {{addUser()}}) and membership addition to the groups (via {{addMembership()}}). The user returned from the creation of the user, however, is returning {{null}}, which is illegal.

    Atlassian JIRA | 1 year ago | Joshua Ali
    java.lang.IllegalArgumentException: User should not be null
  2. 0

    {noformat} 2015-11-25 11:49:06,224 ERROR [http-nio-8081-exec-106] [lasso.migration.jersey.MigrationResource] createUser An error occured attempting to create a user -- url: /rest/lasso/1.0/migration/user | userName: lasso-admin java.lang.IllegalArgumentException: User should not be null at com.atlassian.user.util.Assert.fail(Assert.java:12) at com.atlassian.user.util.Assert.notNull(Assert.java:25) at com.atlassian.crowd.embedded.atlassianuser.EmbeddedCrowdGroupManager.getCrowdUser(EmbeddedCrowdGroupManager.java:229) at com.atlassian.crowd.embedded.atlassianuser.EmbeddedCrowdGroupManager.addMembership(EmbeddedCrowdGroupManager.java:174) at sun.reflect.GeneratedMethodAccessor2234.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy73.addMembership(Unknown Source) at bucket.user.DefaultUserAccessor.addUser(DefaultUserAccessor.java:76) at sun.reflect.GeneratedMethodAccessor1972.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:16) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) {noformat} Originally reported as [MEGA-2608|https://sdog.jira-dev.com/browse/MEGA-2608]. The Lasso Plugin running on CAC makes a call to {{UserAccessor.addUser(username, password, email, fullname, groups)}} (implementation [here|https://stash.atlassian.com/projects/CONF/repos/confluence/browse/confluence-core/confluence-bucket/src/main/java/bucket/user/DefaultUserAccessor.java#63]), which essentially does two operations: the creation of the user (via the other {{addUser()}}) and membership addition to the groups (via {{addMembership()}}). The user returned from the creation of the user, however, is returning {{null}}, which is illegal.

    Atlassian JIRA | 1 year ago | Joshua Ali
    java.lang.IllegalArgumentException: User should not be null
  3. 0

    集合型を書き込む時にnullを設定するとNullPointerExceptionが発生する。

    GitHub | 2 years ago | mygreen
    java.lang.IllegalArgumentException: targetClass should not be null.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Javers IlegalArguementException

    Stack Overflow | 5 months ago | Neo
    java.lang.IllegalArgumentException: argument should not be null
  6. 0

    Why is javers throwing "argument should not be null" when the compared objects are NOT null, in a mockito test?

    Stack Overflow | 2 years ago | user26270
    java.lang.IllegalArgumentException: argument should not be null

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      User should not be null

      at com.atlassian.user.util.Assert.fail()
    2. com.atlassian.user
      Assert.notNull
      1. com.atlassian.user.util.Assert.fail(Assert.java:12)
      2. com.atlassian.user.util.Assert.notNull(Assert.java:25)
      2 frames
    3. com.atlassian.crowd
      EmbeddedCrowdGroupManager.addMembership
      1. com.atlassian.crowd.embedded.atlassianuser.EmbeddedCrowdGroupManager.getCrowdUser(EmbeddedCrowdGroupManager.java:229)
      2. com.atlassian.crowd.embedded.atlassianuser.EmbeddedCrowdGroupManager.addMembership(EmbeddedCrowdGroupManager.java:174)
      2 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor2234.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:497)
      3 frames
    5. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      3 frames
    6. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      1 frame
    7. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      2 frames
    8. com.sun.proxy
      $Proxy73.addMembership
      1. com.sun.proxy.$Proxy73.addMembership(Unknown Source)
      1 frame
    9. bucket.user
      DefaultUserAccessor.addUser
      1. bucket.user.DefaultUserAccessor.addUser(DefaultUserAccessor.java:76)
      1 frame
    10. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor1972.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:497)
      3 frames
    11. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      3 frames
    12. com.atlassian.spring
      SpringProfilingInterceptor.invoke
      1. com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:16)
      1 frame
    13. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      1 frame
    14. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      1 frame
    15. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      2 frames