org.springframework.dao.DataRetrievalFailureException: The user 'john doe _john.doe@example.com_' does not have the permission to login and/or is not a member of the following user group(s) in your Crowd server: '[jira-users]'

Jenkins JIRA | Sorin Sbarnea | 2 years ago
  1. 0

    It seems that the code for doing the lookup for Crowd users is broken because the log is full of severe!? messages like ones below even if I am sure that these users are inside the Crowd directory. You may observe the strange way the user is formatted on the error. Also all these users are inside the Crowd directory and members of the jira-users group. My impression is that the plugin is trying to lookup the users by their visual name instead of their email address. {noformat} Mar 31, 2015 12:17:47 PM de.theit.jenkins.crowd.CrowdMailAddressResolverImpl findMailAddressFor SEVERE: Access exception trying to look up email address in Crowd org.springframework.dao.DataRetrievalFailureException: The user 'john doe _john.doe@example.com_' does not have the permission to login and/or is not a member of the following user group(s) in your Crowd server: '[jira-users]' at de.theit.jenkins.crowd.CrowdUserDetailsService.loadUserByUsername(CrowdUserDetailsService.java:96) at de.theit.jenkins.crowd.CrowdSecurityRealm.loadUserByUsername(CrowdSecurityRealm.java:305) at de.theit.jenkins.crowd.CrowdMailAddressResolverImpl.findMailAddressFor(CrowdMailAddressResolverImpl.java:83) at hudson.tasks.MailAddressResolver.resolve(MailAddressResolver.java:122) {noformat}

    Jenkins JIRA | 2 years ago | Sorin Sbarnea
    org.springframework.dao.DataRetrievalFailureException: The user 'john doe _john.doe@example.com_' does not have the permission to login and/or is not a member of the following user group(s) in your Crowd server: '[jira-users]'
  2. 0

    It seems that the code for doing the lookup for Crowd users is broken because the log is full of severe!? messages like ones below even if I am sure that these users are inside the Crowd directory. You may observe the strange way the user is formatted on the error. Also all these users are inside the Crowd directory and members of the jira-users group. My impression is that the plugin is trying to lookup the users by their visual name instead of their email address. {noformat} Mar 31, 2015 12:17:47 PM de.theit.jenkins.crowd.CrowdMailAddressResolverImpl findMailAddressFor SEVERE: Access exception trying to look up email address in Crowd org.springframework.dao.DataRetrievalFailureException: The user 'john doe _john.doe@example.com_' does not have the permission to login and/or is not a member of the following user group(s) in your Crowd server: '[jira-users]' at de.theit.jenkins.crowd.CrowdUserDetailsService.loadUserByUsername(CrowdUserDetailsService.java:96) at de.theit.jenkins.crowd.CrowdSecurityRealm.loadUserByUsername(CrowdSecurityRealm.java:305) at de.theit.jenkins.crowd.CrowdMailAddressResolverImpl.findMailAddressFor(CrowdMailAddressResolverImpl.java:83) at hudson.tasks.MailAddressResolver.resolve(MailAddressResolver.java:122) {noformat}

    Jenkins JIRA | 2 years ago | Sorin Sbarnea
    org.springframework.dao.DataRetrievalFailureException: The user 'john doe _john.doe@example.com_' does not have the permission to login and/or is not a member of the following user group(s) in your Crowd server: '[jira-users]'
  3. 0

    we recently moved from LDAP to Crowd authentication via Crowd2 plugin. we are experiencing an issue with a internal custom plugin which check users permissions before executing. we retrieve build user via {code} Cause.UserIdCause mycause = (Cause.UserIdCause)build.getCause(Cause.UserIdCause.class); variables.put("BUILD_USERID", mycause.getUserId()); variables.put("BUILD_USERNAME", mycause.getUserName()); {code} Both variables seems to return the same value, which is {code}Name Surname (name.surname){code} while we expect at least one of the two to be simply {code}name.surname{code} so that it could be passed to {code}UserDetails ud = Jenkins.getInstance().getSecurityRealm().loadUserByUsername(build_user); {code} With current values, the method is failing since the id is not correctly recognized and Crowd group membership not correctly resolved causing the error: ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com org.springframework.dao.DataRetrievalFailureException: The user 'Name Surname (name.surname)' does not have the permission to login and/or is not a member of the following user group(s) in your Crowd server: 'Jenkins-build-user' at de.theit.jenkins.crowd.CrowdUserDetailsService.loadUserByUsername(CrowdUserDetailsService.java:94) at de.theit.jenkins.crowd.CrowdSecurityRealm.loadUserByUsername(CrowdSecurityRealm.java:281) at com.buongiorno.jenkinsci.plugins.delivery.ScriptBuildWrapper.setUp(ScriptBuildWrapper.java:95) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:600) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:584) at hudson.model.Run.execute(Run.java:1575) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237)

    Jenkins JIRA | 4 years ago | Michele Sacchetti
    org.springframework.dao.DataRetrievalFailureException: The user 'Name Surname (name.surname)' does not have the permission to login and/or is not a member of the following user group(s) in your Crowd server: 'Jenkins-build-user'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    we recently moved from LDAP to Crowd authentication via Crowd2 plugin. we are experiencing an issue with a internal custom plugin which check users permissions before executing. we retrieve build user via {code} Cause.UserIdCause mycause = (Cause.UserIdCause)build.getCause(Cause.UserIdCause.class); variables.put("BUILD_USERID", mycause.getUserId()); variables.put("BUILD_USERNAME", mycause.getUserName()); {code} Both variables seems to return the same value, which is {code}Name Surname (name.surname){code} while we expect at least one of the two to be simply {code}name.surname{code} so that it could be passed to {code}UserDetails ud = Jenkins.getInstance().getSecurityRealm().loadUserByUsername(build_user); {code} With current values, the method is failing since the id is not correctly recognized and Crowd group membership not correctly resolved causing the error: ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com org.springframework.dao.DataRetrievalFailureException: The user 'Name Surname (name.surname)' does not have the permission to login and/or is not a member of the following user group(s) in your Crowd server: 'Jenkins-build-user' at de.theit.jenkins.crowd.CrowdUserDetailsService.loadUserByUsername(CrowdUserDetailsService.java:94) at de.theit.jenkins.crowd.CrowdSecurityRealm.loadUserByUsername(CrowdSecurityRealm.java:281) at com.buongiorno.jenkinsci.plugins.delivery.ScriptBuildWrapper.setUp(ScriptBuildWrapper.java:95) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:600) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:584) at hudson.model.Run.execute(Run.java:1575) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237)

    Jenkins JIRA | 4 years ago | Michele Sacchetti
    org.springframework.dao.DataRetrievalFailureException: The user 'Name Surname (name.surname)' does not have the permission to login and/or is not a member of the following user group(s) in your Crowd server: 'Jenkins-build-user'
  6. 0

    Retrieving customized auto-generated keys with Spring JDBC Template

    Stack Overflow | 3 years ago | RaghaveShukla
    org.springframework.dao.DataRetrievalFailureException: The generated key is not of a supported numeric type. Unable to cast [java.lang.String] to [java.lang.Number]

    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. org.springframework.dao.DataRetrievalFailureException

      The user 'john doe _john.doe@example.com_' does not have the permission to login and/or is not a member of the following user group(s) in your Crowd server: '[jira-users]'

      at de.theit.jenkins.crowd.CrowdUserDetailsService.loadUserByUsername()
    2. de.theit.jenkins
      CrowdMailAddressResolverImpl.findMailAddressFor
      1. de.theit.jenkins.crowd.CrowdUserDetailsService.loadUserByUsername(CrowdUserDetailsService.java:96)
      2. de.theit.jenkins.crowd.CrowdSecurityRealm.loadUserByUsername(CrowdSecurityRealm.java:305)
      3. de.theit.jenkins.crowd.CrowdMailAddressResolverImpl.findMailAddressFor(CrowdMailAddressResolverImpl.java:83)
      3 frames
    3. Hudson
      MailAddressResolver.resolve
      1. hudson.tasks.MailAddressResolver.resolve(MailAddressResolver.java:122)
      1 frame