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

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 JIRA by Martin Boulanger, 1 year ago
query did not return a unique result: 4
via JIRA by Martin Boulanger, 1 year ago
query did not return a unique result: 4
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
org.hibernate.NonUniqueResultException: query did not return a unique result: 4
at org.hibernate.impl.AbstractQueryImpl.uniqueElement(AbstractQueryImpl.java:820)
at org.obiba.core.service.impl.hibernate.PersistenceManagerHibernateImpl.matchOne(PersistenceManagerHibernateImpl.java:82)
at sun.reflect.GeneratedMethodAccessor57.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.$Proxy74.matchOne(Unknown Source)
at org.obiba.onyx.quartz.core.service.impl.hibernate.QuestionnaireParticipantServiceHibernateImpl.isQuestionActive(QuestionnaireParticipantServiceHibernateImpl.java:85)
at sun.reflect.GeneratedMethodAccessor98.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 org.obiba.onyx.quartz.engine.variable.impl.DefaultQuestionToVariableMappingStrategy.getVariableData(DefaultQuestionToVariableMappingStrategy.java:205)
at org.obiba.onyx.quartz.engine.QuartzModule.getVariableData(QuartzModule.java:213)
at org.obiba.onyx.engine.variable.VariableDirectory.getVariableData(VariableDirectory.java:162)
at org.obiba.onyx.engine.VariableStageDependencyCondition.isDependencySatisfied(VariableStageDependencyCondition.java:74)
at org.obiba.onyx.engine.MultipleStageDependencyCondition.isDependencySatisfied(MultipleStageDependencyCondition.java:85)
at org.obiba.onyx.engine.state.AbstractStageState.areDependenciesCompleted(AbstractStageState.java:93)
at org.obiba.onyx.engine.state.AbstractStageState.onTransition(AbstractStageState.java:78)
at org.obiba.onyx.engine.state.StageExecutionContext.onTransition(StageExecutionContext.java:219)
at org.obiba.onyx.engine.state.StageExecutionContext.castEvent(StageExecutionContext.java:116)
at org.obiba.onyx.engine.state.AbstractStageState.castEvent(AbstractStageState.java:99)
at org.obiba.onyx.engine.state.AbstractStageState.onTransition(AbstractStageState.java:87)
at org.obiba.onyx.engine.state.StageExecutionContext.onTransition(StageExecutionContext.java:219)
at org.obiba.onyx.engine.state.StageExecutionContext.castEvent(StageExecutionContext.java:116)
at org.obiba.onyx.engine.state.AbstractStageState.castEvent(AbstractStageState.java:99)
at org.obiba.onyx.marble.engine.state.MarbleInProgressState.complete(MarbleInProgressState.java:47)
at org.obiba.onyx.engine.state.StageExecutionContext.complete(StageExecutionContext.java:173)
at org.obiba.onyx.engine.ActionType$2.act(ActionType.java:36)
at org.obiba.onyx.core.service.impl.DefaultActiveInterviewServiceImpl.doAction(DefaultActiveInterviewServiceImpl.java:143)
at sun.reflect.GeneratedMethodAccessor232.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.$Proxy130.doAction(Unknown Source)
at sun.reflect.GeneratedMethodAccessor232.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:149)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at undefined.$Proxy78.doAction(Unknown Source)
at sun.reflect.GeneratedMethodAccessor232.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke(LazyInitProxyFactory.java:416)
at org.obiba.onyx.wicket.action.ActionWindow$2.onClose(ActionWindow.java:59)
at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:297)
at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:100)
at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1175)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)
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.jstripe.tomcat.probe.Tomcat55AgentValve.invoke(Tomcat55AgentValve.java:20)
at org.jstripe.tomcat.probe.Tomcat55AgentValve.invoke(Tomcat55AgentValve.java:20)
at org.jstripe.tomcat.probe.Tomcat55AgentValve.invoke(Tomcat55AgentValve.java:20)
at org.jstripe.tomcat.probe.Tomcat55AgentValve.invoke(Tomcat55AgentValve.java:20)
at org.jstripe.tomcat.probe.Tomcat55AgentValve.invoke(Tomcat55AgentValve.java:20)
at org.jstripe.tomcat.probe.Tomcat55AgentValve.invoke(Tomcat55AgentValve.java:20)
at org.jstripe.tomcat.probe.Tomcat55AgentValve.invoke(Tomcat55AgentValve.java:20)
at org.jstripe.tomcat.probe.Tomcat55AgentValve.invoke(Tomcat55AgentValve.java:20)
at org.jstripe.tomcat.probe.Tomcat55AgentValve.invoke(Tomcat55AgentValve.java:20)
at org.jstripe.tomcat.probe.Tomcat55AgentValve.invoke(Tomcat55AgentValve.java:20)
at org.jstripe.tomcat.probe.Tomcat55AgentValve.invoke(Tomcat55AgentValve.java:20)
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, 10 months ago

Write tip

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