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 Google Groups by soma srikanth, 1 year ago
Expected one result (or null) to be returned by selectOne(), but found: 2
via gmane.org by Unknown author, 2 years ago
Expected one result (or null) to be returned by selectOne(), but found: 2
via GitHub by GoogleCodeExporter
, 2 years ago
Expected one result (or null) to be returned by selectOne(), but found: 74
via Stack Overflow by Sourabh
, 1 year ago
Expected one result (or null) to be returned by selectOne(), but found: 2
via Stack Overflow by gbenmansour
, 4 months ago
Expected one result (or null) to be returned by selectOne(), but found: 2
via Stack Overflow by AmitP
, 1 year ago
Expected one result (or null) to be returned by selectOne(), but found: 2
org.apache.ibatis.exceptions.TooManyResultsException: Expected one result 
(or null) to be returned by selectOne(), but found: 2	at org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:70)	at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:68)	at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:52)	at com.sun.proxy.$Proxy86.selectByKey(Unknown Source)	at org.sonar.server.component.db.ComponentDao.doGetNullableByKey(ComponentDao.java:145)	at org.sonar.server.component.db.ComponentDao.doGetNullableByKey(ComponentDao.java:47)	at org.sonar.server.db.BaseDao.getNullableByKey(BaseDao.java:158)	at org.sonar.server.batch.ProjectRepositoryLoader.load(ProjectRepositoryLoader.java:91)	at org.sonar.server.batch.ProjectRepositoryAction.handle(ProjectRepositoryAction.java:70)	at org.sonar.server.ws.WebServiceEngine.execute(WebServiceEngine.java:84)	at sun.reflect.GeneratedMethodAccessor201.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:425)	at org.jruby.javasupport.JavaMethod.invokeDirect(JavaMethod.java:292)	at org.jruby.java.invokers.InstanceMethodInvoker.call(InstanceMethodInvoker.java:44)	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:70)