org.springframework.dao.IncorrectResultSizeDataAccessException: query did not return a unique result: 12; nested exception is org.hibernate.NonUniqueResultException: query did not return a unique result: 12

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 The OpenNMS Issue Tracker by Antonio Russo, 1 year ago
query did not return a unique result: 12; nested exception is org.hibernate.NonUniqueResultException: query did not return a unique result: 12
via GitHub by smclaughlin520
, 2 months ago
query did not return a unique result: 2
via GitHub by smclaughlin520
, 2 months ago
query did not return a unique result: 2
via Google Groups by Unknown author, 10 months ago
query did not return a unique result: 2; nested exception is org.hibernate.NonUniqueResultException: query did not return a unique result: 2
via GitHub by dancornell
, 1 year ago
query did not return a unique result: 2; nested exception is org.hibernate.NonUniqueResultException: query did not return a unique result: 2
via libreplan.org by Unknown author, 1 year ago
query did not return a unique result: 2
org.springframework.dao.IncorrectResultSizeDataAccessException: query did not return a unique result: 12; nested exception is org.hibernate.NonUniqueResultException: query did not return a unique result: 12
at org.hibernate.impl.AbstractQueryImpl.uniqueElement(AbstractQueryImpl.java:899)
at org.opennms.netmgt.dao.hibernate.AbstractDaoHibernate$3.doInHibernate(AbstractDaoHibernate.java:193)
at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:406)
at org.opennms.netmgt.dao.hibernate.AbstractDaoHibernate.findUnique(AbstractDaoHibernate.java:198)
at org.opennms.netmgt.dao.hibernate.BridgeElementDaoHibernate.getByNodeIdVlan(BridgeElementDaoHibernate.java:65)
at org.opennms.netmgt.enlinkd.EnhancedLinkdServiceImpl$5.query(EnhancedLinkdServiceImpl.java:473)
at org.opennms.netmgt.enlinkd.EnhancedLinkdServiceImpl$5.query(EnhancedLinkdServiceImpl.java:469)
at org.opennms.netmgt.dao.support.UpsertTemplate.doUpsert(UpsertTemplate.java:157)
at org.opennms.netmgt.dao.support.UpsertTemplate.access$000(UpsertTemplate.java:123)
at org.opennms.netmgt.dao.support.UpsertTemplate$1.doInTransaction(UpsertTemplate.java:147)
at org.opennms.netmgt.dao.support.UpsertTemplate.execute(UpsertTemplate.java:143)
at org.opennms.netmgt.enlinkd.EnhancedLinkdServiceImpl.saveBridgeElement(EnhancedLinkdServiceImpl.java:469)
at org.opennms.netmgt.enlinkd.EnhancedLinkdServiceImpl.store(EnhancedLinkdServiceImpl.java:464)
at org.opennms.netmgt.enlinkd.EnhancedLinkdServiceImpl$$FastClassByCGLIB$$fe4d2451.invoke()
at org.opennms.netmgt.enlinkd.EnhancedLinkdServiceImpl$$EnhancerByCGLIB$$9f163303.store()
at org.opennms.netmgt.enlinkd.NodeDiscoveryBridge.walkDot1d(NodeDiscoveryBridge.java:225)
at org.opennms.netmgt.enlinkd.NodeDiscoveryBridge.runCollection(NodeDiscoveryBridge.java:95)
at org.opennms.netmgt.enlinkd.NodeDiscovery.run(NodeDiscovery.java:121)
at org.opennms.netmgt.linkd.scheduler.Scheduler$1.run(Scheduler.java:209)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at org.opennms.core.concurrent.LogPreservingThreadFactory$3.run(LogPreservingThreadFactory.java:124)
at java.lang.Thread.run(Thread.java:744)

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.