org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 2

Google Groups | soma srikanth | 2 months ago
  1. 0

    Sonar Response Code 500

    Google Groups | 2 months ago | soma srikanth
    org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 2
  2. 0

    Sonar - an open source entreprise quality control tool user list

    gmane.org | 1 year ago
    org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 2
  3. 0

    SonarQube service not starting

    Stack Overflow | 7 months ago | AmitP
    org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 2
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to fetch a map with value as list in mybatis

    Stack Overflow | 3 years ago | Sourabh
    org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 2
  6. 0

    Sonar - an open source entreprise quality control tool user list

    gmane.org | 1 year ago
    org.sonar.runner.impl.RunnerException: Unable to execute Sonar

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. MyBatis
      MapperProxy.invoke
      1. org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:70)[mybatis-3.2.7.jar:3.2.7]
      2. org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:68)[mybatis-3.2.7.jar:3.2.7]
      3. org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:52)[mybatis-3.2.7.jar:3.2.7]
      3 frames
    3. com.sun.proxy
      $Proxy86.selectByKey
      1. com.sun.proxy.$Proxy86.selectByKey(Unknown Source)[na:na]
      1 frame
    4. org.sonar.server
      WebServiceEngine.execute
      1. org.sonar.server.component.db.ComponentDao.doGetNullableByKey(ComponentDao.java:145)[sonar-server-5.1.2.jar:na]
      2. org.sonar.server.component.db.ComponentDao.doGetNullableByKey(ComponentDao.java:47)[sonar-server-5.1.2.jar:na]
      3. org.sonar.server.db.BaseDao.getNullableByKey(BaseDao.java:158)[sonar-server-5.1.2.jar:na]
      4. org.sonar.server.batch.ProjectRepositoryLoader.load(ProjectRepositoryLoader.java:91)[sonar-server-5.1.2.jar:na]
      5. org.sonar.server.batch.ProjectRepositoryAction.handle(ProjectRepositoryAction.java:70)[sonar-server-5.1.2.jar:na]
      6. org.sonar.server.ws.WebServiceEngine.execute(WebServiceEngine.java:84)[sonar-server-5.1.2.jar:na]
      6 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor201.invoke(Unknown Source)[na:na]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_74]
      3. java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_74]
      3 frames
    6. JRuby Main Maven Artifact
      CachingCallSite.call
      1. org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:425)[jruby-complete-1.7.9.jar:na]
      2. org.jruby.javasupport.JavaMethod.invokeDirect(JavaMethod.java:292)[jruby-complete-1.7.9.jar:na]
      3. org.jruby.java.invokers.InstanceMethodInvoker.call(InstanceMethodInvoker.java:44)[jruby-complete-1.7.9.jar:na]
      4. org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:70)[jruby-complete-1.7.9.jar:na]
      4 frames