com.atlassian.user.impl.RepositoryException: org.springframework.orm.hibernate3.HibernateSystemException: Named query not known: atluser.externalEntity_hasMembership; nested exception is org.hibernate.MappingException: Named query not known: atluser.externalEntity_hasMembership

Atlassian JIRA | Esther Asenjo | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    [BAM-16069] "Named query not known: atluser.externalEntity_hasMembership" when using LDAP for users with AD integration - Atlassian JIRA

    atlassian.com | 1 year ago
    com.atlassian.user.impl.RepositoryException: org.springframework.orm.hibernate3.HibernateSystemException: Named query not known: atluser.externalEntity_hasMembership; nested exception is org.hibernate.MappingException: Named query not known: atluser.externalEntity_hasMembership
  2. 0

    {code} 2015-06-24 09:01:40,855 ERROR [http-bio-8443-exec-10] [DefaultUserAccessor] org.springframework.orm.hibernate3.HibernateSystemException: Named query not known: atluser.externalEntity_hasMembership; nested exception is org.hibernate.MappingException: Named query not known: atluser.externalEntity_hasMembership com.atlassian.user.impl.RepositoryException: org.springframework.orm.hibernate3.HibernateSystemException: Named query not known: atluser.externalEntity_hasMembership; nested exception is org.hibernate.MappingException: Named query not known: atluser.externalEntity_hasMembership at com.atlassian.user.impl.hibernate3.HibernateGroupManager.hasExternalMembership(HibernateGroupManager.java:399) at com.atlassian.user.impl.hibernate3.HibernateGroupManager.hasMembership(HibernateGroupManager.java:357) at com.atlassian.user.impl.cache.CachingGroupManager.hasMembership(CachingGroupManager.java:170) at com.atlassian.user.impl.delegation.DelegatingGroupManager.hasMembership(DelegatingGroupManager.java:256) at sun.reflect.GeneratedMethodAccessor1117.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.atlassian.crowd.integration.atlassianuser.DynamicDelegationAccessor$DelegatingInvocationHandler.invoke(DynamicDelegationAccessor.java:125) at com.sun.proxy.$Proxy32.hasMembership(Unknown Source) at bucket.user.DefaultUserAccessor.hasMembership(DefaultUserAccessor.java:487) at bucket.user.DefaultUserAccessor.hasMembership(DefaultUserAccessor.java:511) at sun.reflect.GeneratedMethodAccessor948.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:98) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:2 {code}

    Atlassian JIRA | 2 years ago | Esther Asenjo [Atlassian]
    com.atlassian.user.impl.RepositoryException: org.springframework.orm.hibernate3.HibernateSystemException: Named query not known: atluser.externalEntity_hasMembership; nested exception is org.hibernate.MappingException: Named query not known: atluser.externalEntity_hasMembership
  3. 0

    {code} 2015-06-24 09:01:40,855 ERROR [http-bio-8443-exec-10] [DefaultUserAccessor] org.springframework.orm.hibernate3.HibernateSystemException: Named query not known: atluser.externalEntity_hasMembership; nested exception is org.hibernate.MappingException: Named query not known: atluser.externalEntity_hasMembership com.atlassian.user.impl.RepositoryException: org.springframework.orm.hibernate3.HibernateSystemException: Named query not known: atluser.externalEntity_hasMembership; nested exception is org.hibernate.MappingException: Named query not known: atluser.externalEntity_hasMembership at com.atlassian.user.impl.hibernate3.HibernateGroupManager.hasExternalMembership(HibernateGroupManager.java:399) at com.atlassian.user.impl.hibernate3.HibernateGroupManager.hasMembership(HibernateGroupManager.java:357) at com.atlassian.user.impl.cache.CachingGroupManager.hasMembership(CachingGroupManager.java:170) at com.atlassian.user.impl.delegation.DelegatingGroupManager.hasMembership(DelegatingGroupManager.java:256) at sun.reflect.GeneratedMethodAccessor1117.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.atlassian.crowd.integration.atlassianuser.DynamicDelegationAccessor$DelegatingInvocationHandler.invoke(DynamicDelegationAccessor.java:125) at com.sun.proxy.$Proxy32.hasMembership(Unknown Source) at bucket.user.DefaultUserAccessor.hasMembership(DefaultUserAccessor.java:487) at bucket.user.DefaultUserAccessor.hasMembership(DefaultUserAccessor.java:511) at sun.reflect.GeneratedMethodAccessor948.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:98) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:2 {code}

    Atlassian JIRA | 2 years ago | Esther Asenjo
    com.atlassian.user.impl.RepositoryException: org.springframework.orm.hibernate3.HibernateSystemException: Named query not known: atluser.externalEntity_hasMembership; nested exception is org.hibernate.MappingException: Named query not known: atluser.externalEntity_hasMembership
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    h4. Summary When an user with AD account logs in into Bamboo, the application logs are polluted with Hibernate related exceptions, related to a Hibernate query called _atluser.externalEntity_hasMembership_ which cannot be found. h4. Steps to Reproduce - Create a remote application link in Bamboo with an external application. - Log into Bamboo with an external user (AD integration). h5. Expected Results - Application logs are clear and no exceptions are raised. h5. Actual Results - Application logs are polluted with the following exception. In this case, Bamboo is figuring out if the application switcher icon (AKA _hamburguer_ icon) is to be displayed, by checking if the external user has certain memberships. The below exception is thrown in the atlassian-bamboo.log file: {code} 2015-06-24 09:01:40,855 ERROR [http-bio-8443-exec-10] [DefaultUserAccessor] org.springframework.orm.hibernate3.HibernateSystemException: Named query not known: atluser.externalEntity_hasMembership; nested exception is org.hibernate.MappingException: Named query not known: atluser.externalEntity_hasMembership com.atlassian.user.impl.RepositoryException: org.springframework.orm.hibernate3.HibernateSystemException: Named query not known: atluser.externalEntity_hasMembership; nested exception is org.hibernate.MappingException: Named query not known: atluser.externalEntity_hasMembership at com.atlassian.user.impl.hibernate3.HibernateGroupManager.hasExternalMembership(HibernateGroupManager.java:399) at com.atlassian.user.impl.hibernate3.HibernateGroupManager.hasMembership(HibernateGroupManager.java:357) at com.atlassian.user.impl.cache.CachingGroupManager.hasMembership(CachingGroupManager.java:170) at com.atlassian.user.impl.delegation.DelegatingGroupManager.hasMembership(DelegatingGroupManager.java:256) at sun.reflect.GeneratedMethodAccessor1117.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.atlassian.crowd.integration.atlassianuser.DynamicDelegationAccessor$DelegatingInvocationHandler.invoke(DynamicDelegationAccessor.java:125) at com.sun.proxy.$Proxy32.hasMembership(Unknown Source) at bucket.user.DefaultUserAccessor.hasMembership(DefaultUserAccessor.java:487) at bucket.user.DefaultUserAccessor.hasMembership(DefaultUserAccessor.java:511) at sun.reflect.GeneratedMethodAccessor948.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:98) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:2 {code} h4. Workaround There's no workaround for this issue, a new version of Bamboo will be released.

    Atlassian JIRA | 2 years ago | Rafael Sperafico [Atlassian]
    com.atlassian.user.impl.RepositoryException: org.springframework.orm.hibernate3.HibernateSystemException: Named query not known: atluser.externalEntity_hasMembership; nested exception is org.hibernate.MappingException: Named query not known: atluser.externalEntity_hasMembership

    Root Cause Analysis

    1. com.atlassian.user.impl.RepositoryException

      org.springframework.orm.hibernate3.HibernateSystemException: Named query not known: atluser.externalEntity_hasMembership; nested exception is org.hibernate.MappingException: Named query not known: atluser.externalEntity_hasMembership

      at com.atlassian.user.impl.hibernate3.HibernateGroupManager.hasExternalMembership()
    2. com.atlassian.user
      DelegatingGroupManager.hasMembership
      1. com.atlassian.user.impl.hibernate3.HibernateGroupManager.hasExternalMembership(HibernateGroupManager.java:399)
      2. com.atlassian.user.impl.hibernate3.HibernateGroupManager.hasMembership(HibernateGroupManager.java:357)
      3. com.atlassian.user.impl.cache.CachingGroupManager.hasMembership(CachingGroupManager.java:170)
      4. com.atlassian.user.impl.delegation.DelegatingGroupManager.hasMembership(DelegatingGroupManager.java:256)
      4 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor1117.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:606)
      3 frames
    4. com.atlassian.crowd
      DynamicDelegationAccessor$DelegatingInvocationHandler.invoke
      1. com.atlassian.crowd.integration.atlassianuser.DynamicDelegationAccessor$DelegatingInvocationHandler.invoke(DynamicDelegationAccessor.java:125)
      1 frame
    5. com.sun.proxy
      $Proxy32.hasMembership
      1. com.sun.proxy.$Proxy32.hasMembership(Unknown Source)
      1 frame
    6. bucket.user
      DefaultUserAccessor.hasMembership
      1. bucket.user.DefaultUserAccessor.hasMembership(DefaultUserAccessor.java:487)
      2. bucket.user.DefaultUserAccessor.hasMembership(DefaultUserAccessor.java:511)
      2 frames
    7. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor948.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:606)
      3 frames
    8. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      3 frames
    9. Spring Tx
      TransactionInterceptor$1.proceedWithInvocation
      1. org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:98)
      1 frame