当前位置:网站首页>报错500,“message“: “nested exception is org.apache.ibatis.binding.BindingException: 解决记录
报错500,“message“: “nested exception is org.apache.ibatis.binding.BindingException: 解决记录
2022-07-30 16:28:00 【Cyril-zxy】
{
"timestamp": "2022-07-27 19:55:51",
"status": 500,
"error": "Internal Server Error",
"trace": "org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter 'list' not found. Available parameters are [arg1, arg0, param1, param2]\n\tat org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:92)\n\tat org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:440)\n\tat com.sun.proxy.$Proxy68.update(Unknown Source)\n\tat org.mybatis.spring.SqlSessionTemplate.update(SqlSessionTemplate.java:287)\n\tat org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:67)\n\tat org.apache.ibatis.binding.MapperProxy$PlainMethodInvoker.invoke(MapperProxy.java:152)\n\tat org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:85)\n\tat com.sun.proxy.$Proxy69.updateBatch(Unknown Source)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n\tat org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:137)\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n\tat org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)\n\tat com.sun.proxy.$Proxy70.updateBatch(Unknown Source)\n\tat com.xes.pts.modules.test.service.impl.SlaveServiceImpl.batchReloadStatus(SlaveServiceImpl.java:85)\n\tat com.xes.pts.modules.test.controller.SlaveController.test(SlaveController.java:115)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)\n\tat org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)\n\tat org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)\n\tat org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)\n\tat org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)\n\tat org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n\tat org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1070)\n\tat org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963)\n\tat org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)\n\tat org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:681)\n\tat org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:764)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n\tat org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n\tat org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n\tat org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n\tat org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)\n\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)\n\tat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)\n\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)\n\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)\n\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)\n\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)\n\tat org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)\n\tat org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)\n\tat org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:890)\n\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)\n\tat org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n\tat org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)\n\tat org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)\n\tat org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n\tat java.lang.Thread.run(Thread.java:748)\nCaused by: org.apache.ibatis.binding.BindingException: Parameter 'list' not found. Available parameters are [arg1, arg0, param1, param2]\n\tat org.apache.ibatis.binding.MapperMethod$ParamMap.get(MapperMethod.java:212)\n\tat org.apache.ibatis.scripting.xmltags.DynamicContext$ContextAccessor.getProperty(DynamicContext.java:120)\n\tat org.apache.ibatis.ognl.OgnlRuntime.getProperty(OgnlRuntime.java:3338)\n\tat org.apache.ibatis.ognl.ASTProperty.getValueBody(ASTProperty.java:121)\n\tat org.apache.ibatis.ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)\n\tat org.apache.ibatis.ognl.SimpleNode.getValue(SimpleNode.java:258)\n\tat org.apache.ibatis.ognl.Ognl.getValue(Ognl.java:560)\n\tat org.apache.ibatis.ognl.Ognl.getValue(Ognl.java:524)\n\tat org.apache.ibatis.scripting.xmltags.OgnlCache.getValue(OgnlCache.java:46)\n\tat org.apache.ibatis.scripting.xmltags.ExpressionEvaluator.evaluateIterable(ExpressionEvaluator.java:43)\n\tat org.apache.ibatis.scripting.xmltags.ForEachSqlNode.apply(ForEachSqlNode.java:54)\n\tat org.apache.ibatis.scripting.xmltags.MixedSqlNode.lambda$apply$0(MixedSqlNode.java:32)\n\tat java.util.ArrayList.forEach(ArrayList.java:1259)\n\tat org.apache.ibatis.scripting.xmltags.MixedSqlNode.apply(MixedSqlNode.java:32)\n\tat org.apache.ibatis.scripting.xmltags.DynamicSqlSource.getBoundSql(DynamicSqlSource.java:39)\n\tat org.apache.ibatis.mapping.MappedStatement.getBoundSql(MappedStatement.java:305)\n\tat org.apache.ibatis.executor.statement.BaseStatementHandler.<init>(BaseStatementHandler.java:64)\n\tat org.apache.ibatis.executor.statement.PreparedStatementHandler.<init>(PreparedStatementHandler.java:41)\n\tat org.apache.ibatis.executor.statement.RoutingStatementHandler.<init>(RoutingStatementHandler.java:46)\n\tat org.apache.ibatis.session.Configuration.newStatementHandler(Configuration.java:636)\n\tat org.apache.ibatis.executor.SimpleExecutor.doUpdate(SimpleExecutor.java:48)\n\tat org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:117)\n\tat org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:76)\n\tat org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:197)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:426)\n\t... 69 more\n",
"message": "nested exception is org.apache.ibatis.binding.BindingException: Parameter 'list' not found. Available parameters are [arg1, arg0, param1, param2]",
"path": "/test/slave/test"
}
错误写法
int updateBatch(List<Long> list,Integer status);
正确写法
import org.apache.ibatis.annotations.Param;
int updateBatch(@Param("list") List<Long> list, @Param("status") Integer status);
边栏推荐
- Goland 开启文件保存自动进行格式化
- 23. Please talk about the difference between IO synchronization, asynchronous, blocking and non-blocking
- Leetcode 119. Yang Hui's Triangle II
- [NCTF2019]Fake XML cookbook-1|XXE漏洞|XXE信息介绍
- 李沐d2l(七)kaggle房价预测+数值稳定性+模型初始化和激活函数
- 3D激光SLAM:LeGO-LOAM论文解读---实验对比
- Why is there no data reported when the application is connected to Huawei Analytics in the application debugging mode?
- How does the new retail saas applet explore the way to break the digital store?
- [flutter] What is MaterialApp and Material design
- 【HMS core】【FAQ】push kit, WisePlay DRM, Location Kit, Health Kit, 3D Modeling Kit, SignPal Kit Typical Questions Collection 4
猜你喜欢
【SOC FPGA】外设KEY点LED
Leetcode 119. 杨辉三角 II
The first time I used debug query and found that this was empty, does it mean that the database has not been obtained yet?please help.
Public Key Retrieval is not allowed error solution
李沐d2l(七)kaggle房价预测+数值稳定性+模型初始化和激活函数
[HMS core] [FAQ] A collection of typical questions about push kit, analysis services, and video editing services 3
Scheduling_Channel_Access_Based_on_Target_Wake_Time_Mechanism_in_802.11ax_WLANs
Discuz magazine/news report template (jeavi_line) UTF8-GBK template
归一化与标准化
Pytorch 训练技巧
随机推荐
Large-scale integrated office management system source code (OA+HR+CRM) source code sharing for free
C语言学习之旅 【函数(二)】
04、Activity的基本使用
完美绕开CRC32检测的无痕hook
Nervegrowold d2l (7) kaggle housing forecast model, numerical stability and the initialization and activation function
Goland 开启文件保存自动进行格式化
How to use Redis for distributed applications in Golang
Visual Studio编辑器 2019:scanf函数返回值被忽略(C4996)报错及解决办法
huato hot update environment construction (DLL method hot update C# code)
【SOC】Classic output hello world
Pytorch 训练技巧
Gvim order record
JVM学习----垃圾回收
Login Module Debugging - Getting Started with Software Debugging
The case of five little pigs (five little pigs compare the size of the body weight)
你是一流的输家,你因此成为一流的赢家
华为云WeLink携手伙伴,共建协同办公生态
Array element inverse
How to implement timing tasks for distributed applications in Golang
MySql 和 PostgreSQL 数据库 根据一张表update另一张表数据