org.apache.ibatis.builder.IncompleteElementException: Could not find parameter map java.lang.Integer

Stack Overflow | edagarli | 1 year ago
  1. 0

    Could not find parameter map java.lang.Integer

    Stack Overflow | 1 year ago | edagarli
    org.apache.ibatis.builder.IncompleteElementException: Could not find parameter map java.lang.Integer

    Root Cause Analysis

    1. org.apache.ibatis.builder.IncompleteElementException

      Could not find parameter map java.lang.Integer

      at org.apache.ibatis.builder.MapperBuilderAssistant.setStatementParameterMap()
    2. MyBatis
      MapperProxy.invoke
      1. org.apache.ibatis.builder.MapperBuilderAssistant.setStatementParameterMap(MapperBuilderAssistant.java:319)
      2. org.apache.ibatis.builder.MapperBuilderAssistant.addMappedStatement(MapperBuilderAssistant.java:283)
      3. org.apache.ibatis.builder.xml.XMLStatementBuilder.parseStatementNode(XMLStatementBuilder.java:107)
      4. org.apache.ibatis.session.Configuration.buildAllStatements(Configuration.java:698)
      5. org.apache.ibatis.session.Configuration.hasStatement(Configuration.java:668)
      6. org.apache.ibatis.session.Configuration.hasStatement(Configuration.java:663)
      7. org.apache.ibatis.binding.MapperMethod$SqlCommand.<init>(MapperMethod.java:180)
      8. org.apache.ibatis.binding.MapperMethod.<init>(MapperMethod.java:43)
      9. org.apache.ibatis.binding.MapperProxy.cachedMapperMethod(MapperProxy.java:58)
      10. org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:51)
      10 frames
    3. com.sun.proxy
      $Proxy57.selectListForType
      1. com.sun.proxy.$Proxy57.selectListForType(Unknown Source)
      1 frame
    4. com.jhp.service
      DocumentServiceImpl.getListForType
      1. com.jhp.service.impl.DocumentServiceImpl.getListForType(DocumentServiceImpl.java:23)
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    6. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      3 frames
    7. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:98)
      2. org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:262)
      3. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:95)
      3 frames
    8. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
      2 frames
    9. com.sun.proxy
      $Proxy58.getListForType
      1. com.sun.proxy.$Proxy58.getListForType(Unknown Source)
      1 frame
    10. com.jhp.service
      DocumentServiceImplTest.getListForType
      1. com.jhp.service.Impl.DocumentServiceImplTest.getListForType(DocumentServiceImplTest.java:20)
      1 frame
    11. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    12. TestNG
      MethodInvocationHelper$1.runTestMethod
      1. org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
      2. org.testng.internal.MethodInvocationHelper$1.runTestMethod(MethodInvocationHelper.java:200)
      2 frames
    13. Spring TestContext
      AbstractTestNGSpringContextTests.run
      1. org.springframework.test.context.testng.AbstractTestNGSpringContextTests.run(AbstractTestNGSpringContextTests.java:172)
      1 frame
    14. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    15. TestNG
      RemoteTestNG.main
      1. org.testng.internal.MethodInvocationHelper.invokeHookable(MethodInvocationHelper.java:212)
      2. org.testng.internal.Invoker.invokeMethod(Invoker.java:707)
      3. org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
      4. org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
      5. org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
      6. org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
      7. org.testng.TestRunner.privateRun(TestRunner.java:767)
      8. org.testng.TestRunner.run(TestRunner.java:617)
      9. org.testng.SuiteRunner.runTest(SuiteRunner.java:335)
      10. org.testng.SuiteRunner.runSequentially(SuiteRunner.java:330)
      11. org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
      12. org.testng.SuiteRunner.run(SuiteRunner.java:240)
      13. org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      14. org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      15. org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
      16. org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
      17. org.testng.TestNG.run(TestNG.java:1057)
      18. org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
      19. org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
      20. org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)
      20 frames