org.hibernate.NonUniqueResultException

query did not return a unique result: 4

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web39

  • via Unknown by Philippe Laflamme,
  • via Unknown by Philippe Laflamme,
  • via Unknown by Martin Boulanger,
  • Stack trace

    • org.hibernate.NonUniqueResultException: query did not return a unique result: 4 at org.hibernate.impl.AbstractQueryImpl.uniqueElement(AbstractQueryImpl.java:820) at org.hibernate.impl.CriteriaImpl.uniqueResult(CriteriaImpl.java:305) at org.obiba.core.service.impl.hibernate.PersistenceManagerHibernateImpl.matchOne(PersistenceManagerHibernateImpl.java:82) at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy30.matchOne(Unknown Source) at org.obiba.onyx.quartz.core.service.impl.hibernate.QuestionnaireParticipantServiceHibernateImpl.isQuestionActive(QuestionnaireParticipantServiceHibernateImpl.java:85) 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.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.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy39.isQuestionActive(Unknown Source) 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.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.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.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy45.doAction(Unknown Source) 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.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 org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy34.doAction(Unknown Source) 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.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke(LazyInitProxyFactory.java:416) at org.apache.wicket.proxy.$Proxy43.doAction(Unknown Source) at org.obiba.onyx.wicket.action.ActionWindow$2.onClose(ActionWindow.java:59)[...]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitor2 times, last one