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 JIRA by Meryam Belhiah, 1 year ago
query did not return a unique result: 2
via JIRA by Meryam Belhiah, 1 year ago
query did not return a unique result: 2
via JIRA by Martin Boulanger, 1 year ago
query did not return a unique result: 2
via JIRA by Martin Boulanger, 1 year ago
query did not return a unique result: 2
via JIRA by Philippe Laflamme, 1 year ago
query did not return a unique result: 4
via JIRA by Philippe Laflamme, 1 year ago
query did not return a unique result: 4
org.hibernate.NonUniqueResultException: query did not return a unique result: 2
at org.hibernate.impl.AbstractQueryImpl.uniqueElement(AbstractQueryImpl.java:820)
at org.obiba.core.service.impl.hibernate.PersistenceManagerHibernateImpl.matchOne(PersistenceManagerHibernateImpl.java:86)
at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at undefined.$Proxy37.matchOne(Unknown Source)
at org.obiba.onyx.ruby.magma.TubeValueSetBeanResolver.resolveParticipantTubeRegistration(TubeValueSetBeanResolver.java:96)
at org.obiba.onyx.ruby.magma.TubeValueSetBeanResolver.resolveRegisteredParticipantTubes(TubeValueSetBeanResolver.java:106)
at org.obiba.onyx.ruby.magma.TubeValueSetBeanResolver.resolve(TubeValueSetBeanResolver.java:60)
at org.obiba.magma.beans.BeanValueTable.resolve(BeanValueTable.java:58)
at org.obiba.magma.beans.BeanValueTable.access$000(BeanValueTable.java:19)
at org.obiba.magma.beans.BeanValueTable$1.resolve(BeanValueTable.java:43)
at org.obiba.magma.beans.BeanPropertyVariableValueSource.getValue(BeanPropertyVariableValueSource.java:58)
at org.obiba.magma.support.AbstractValueTable.getValue(AbstractValueTable.java:85)
at org.obiba.magma.support.AbstractValueTableWrapper.getValue(AbstractValueTableWrapper.java:38)
at org.obiba.magma.datasource.fs.DatasourceCopier.copy(DatasourceCopier.java:106)
at org.obiba.onyx.engine.variable.export.OnyxDataExport.internalExport(OnyxDataExport.java:150)
at org.obiba.onyx.engine.variable.export.OnyxDataExport.exportInterviews(OnyxDataExport.java:105)
at org.obiba.onyx.engine.variable.export.OnyxDataExport$$FastClassByCGLIB$$c7571da3.invoke()
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.obiba.onyx.engine.variable.export.OnyxDataExport$$EnhancerByCGLIB$$615f3280.exportInterviews()
at org.obiba.onyx.engine.variable.export.OnyxDataExport$$FastClassByCGLIB$$c7571da3.invoke()
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at WICKET_org.obiba.onyx.engine.variable.export.OnyxDataExport$$EnhancerByCGLIB$$eea36e4f.exportInterviews()
at org.obiba.onyx.webapp.participant.page.ParticipantSearchPage$ActionFragment$3$1.onYesButtonClicked(ParticipantSearchPage.java:538)
at org.obiba.onyx.wicket.reusable.ConfirmationDialog$1.onClose(ConfirmationDialog.java:45)
at org.obiba.onyx.wicket.reusable.Dialog$7.onClose(Dialog.java:373)
at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:299)
at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:119)
at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at java.lang.Thread.run(Unknown Source)

Users with the same issue

Samebug visitor profile picture
Unknown user
2 times, 1 year ago

Write tip

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