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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via baidu.com by Unknown author, 1 year ago
via hibernate.org by Unknown author, 1 year ago
query did not return a unique result: 27
via soso.io by Unknown author, 1 year ago
via triboard.ca by Unknown author, 1 year ago
query did not return a unique result: 3
org.hibernate.NonUniqueResultException: query did not return a unique result: 2
at org.hibernate.impl.AbstractQueryImpl.uniqueElement(AbstractQueryImpl.java:844)
at org.springside.modules.orm.hibernate.SimpleHibernateDao.findUnique(SimpleHibernateDao.java:273)
at org.syaccp.approve.service.security.SecurityEntityManager.findUserByDeptAndManager(SecurityEntityManager.java:145)
at org.syaccp.approve.service.security.SecurityEntityManager$$FastClassByCGLIB$$7b0a7ec5.invoke()
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.syaccp.approve.service.security.SecurityEntityManager$$EnhancerByCGLIB$$edbf3bb2.findUserByDeptAndManager()
at org.syaccp.approve.service.jbpm.ApproveConfirmAction.execute(ApproveConfirmAction.java:45)
at org.springmodules.workflow.jbpm31.JbpmHandlerProxy.execute(JbpmHandlerProxy.java:133)
at org.jbpm.graph.def.Action.execute(Action.java:122)
at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:259)

Users with the same issue

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

Write tip

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