org.hibernate.NonUniqueResultException: query did not return a unique result: 2

atlassian.com | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Unable to sync crowd user directory - query did not return a unique result - Atlassian Documentation

    atlassian.com | 8 months ago
    org.hibernate.NonUniqueResultException: query did not return a unique result: 2
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Getting exception when opening Tracker Capture

    GitHub | 2 years ago | adam704a
    org.hibernate.NonUniqueResultException: query did not return a unique result: 2
  4. 0

    Problem while Retreiving the value from DB

    Coderanch | 4 years ago | Parthiban Malayandi
    org.hibernate.NonUniqueResultException: query did not return a unique result: 2

    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.hibernate.NonUniqueResultException

      query did not return a unique result: 2

      at org.hibernate.internal.AbstractQueryImpl.uniqueElement()
    2. Hibernate
      CriteriaImpl.uniqueResult
      1. org.hibernate.internal.AbstractQueryImpl.uniqueElement(AbstractQueryImpl.java:914)[hibernate-core-4.2.4.Final.jar:4.2.4.Final]
      2. org.hibernate.internal.CriteriaImpl.uniqueResult(CriteriaImpl.java:396)[hibernate-core-4.2.4.Final.jar:4.2.4.Final]
      2 frames
    3. com.atlassian.crowd
      MembershipDAOHibernate.isUserDirectMember
      1. com.atlassian.crowd.dao.membership.MembershipDAOHibernate.findInternalMembership(MembershipDAOHibernate.java:270)[crowd-persistence-hibernate4-2.6.6.jar:na]
      2. com.atlassian.crowd.dao.membership.MembershipDAOHibernate.isUserDirectMember(MembershipDAOHibernate.java:146)[crowd-persistence-hibernate4-2.6.6.jar:na]
      2 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor1041.invoke(Unknown Source)[na:na]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_40]
      3. java.lang.reflect.Method.invoke(Method.java:606)[na:1.7.0_40]
      3 frames
    5. Spring AOP
      AopUtils.invokeJoinpointUsingReflection
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)[spring-aop-3.2.4.RELEASE.jar:3.2.4.RELEASE]
      1 frame