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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via zutubi.com by Unknown author, 1 year ago
query did not return a unique result: 2
via atlassian.com by Unknown author, 1 year ago
via runawfe by erickv
, 1 year ago
query did not return a unique result: 2
via Sakai JIRA by Stephen Marquard, 1 year ago
query did not return a unique result: 2
org.hibernate.NonUniqueResultException: query did not return a unique result: 2
at org.hibernate.impl.AbstractQueryImpl.uniqueElement(AbstractQueryImpl.java:762)
at com.zutubi.pulse.model.persistence.hibernate.HibernateChangelistDao$3.doInHibernate(HibernateChangelistDao.java:78)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:365)
at com.zutubi.pulse.model.persistence.hibernate.HibernateChangelistDao.findByRevision(HibernateChangelistDao.java:69)
at sun.reflect.GeneratedMethodAccessor1337.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:335)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
at com.zutubi.pulse.model.DefaultBuildManager.getChangelistByRevision(DefaultBuildManager.java:251)
at sun.reflect.GeneratedMethodAccessor1336.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:335)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
at com.zutubi.pulse.BuildController.getChangeSince(BuildController.java:313)
at com.zutubi.pulse.BuildController.getChanges(BuildController.java:292)
at com.zutubi.pulse.BuildController.handleFirstCommenced(BuildController.java:263)
at com.zutubi.pulse.BuildController.handleRecipeEvent(BuildController.java:235)
at com.zutubi.pulse.BuildController.handleEvent(BuildController.java:143)
at com.zutubi.pulse.events.AsynchronousDelegatingListener$1.run(AsynchronousDelegatingListener.java:34)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Users with the same issue

Samebug visitor profile picture
Unknown user
2 times, 10 months ago

Know the solutions? Share your knowledge to help other developers to debug faster.