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 runawfe by erickv
, 1 year ago
query did not return a unique result: 2
via atlassian.com by Unknown author, 1 year ago
via GitHub by obrienben
, 7 months ago
query did not return a unique result: 2
via The OpenNMS Issue Tracker by Antonio Russo, 1 year ago
query did not return a unique result: 12
org.hibernate.NonUniqueResultException: query did not return a unique result: 2
at org.hibernate.impl.AbstractQueryImpl.uniqueElement(AbstractQueryImpl.java:820)
at ru.runa.wf.logic.JbpmExecutionLogic.getTaskDeadline(JbpmExecutionLogic.java:1285)
at ru.runa.wf.logic.JbpmExecutionLogic.fillTokenVariableMap(JbpmExecutionLogic.java:1190)
at ru.runa.wf.logic.JbpmExecutionLogic.getStateVariableMap(JbpmExecutionLogic.java:841)
at ru.runa.wf.service.impl.ejb.JbpmExecutionServiceBean.getStateVariableMap(JbpmExecutionServiceBean.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
at org.jboss.ejb.plugins.AbstractInterceptor.invoke(AbstractInterceptor.java:111)
at ru.runa.jboss.interceptor.CachingLogicInterceptor.invoke(CachingLogicInterceptor.java:23)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
at org.jboss.ejb.Container.invoke(Container.java:960)
at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)

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.