0 Replies Latest reply on Nov 26, 2007 5:24 AM by neetu Yadav

    org.hibernate.NonUniqueResultException: query did not return

    neetu Yadav Newbie

      I had deployed a portlet on portal server, Now created user suppose "jboss"on portal server. Logged in as jboss user and clicked on EDIT button of my portlet window,
      On "save" it executes required code of my portlet application, but throws exception.
      Please find the stackTrace below.
      org.hibernate.NonUniqueResultException: query did not return a unique result: 2
      at org.hibernate.impl.AbstractQueryImpl.uniqueElement(AbstractQueryImpl.java:765)
      at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:756)
      at org.jboss.portal.core.impl.model.instance.InstanceImpl.invoke(InstanceImpl.java:249)
      at org.jboss.portal.core.command.RenderWindowCommand.execute(RenderWindowCommand.java:109)
      at org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:84)
      at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:141)
      at org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:168)

      On checking database.script for hypersonic , found it creates 2 enteries for user "jboss", not sure why?
      If anyone has idea on it how to fix it.Please let me know.