当前位置:网站首页>报错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);
边栏推荐
猜你喜欢
SocialFi 何以成就 Web3 去中心化社交未来
归一化与标准化
DTSE Tech Talk丨第2期:1小时深度解读SaaS应用系统设计
论文阅读 (63):Get To The Point: Summarization with Pointer-Generator Networks
DTSE Tech Talk丨第2期:1小时深度解读SaaS应用系统设计
【Linux操作系统】 虚拟文件系统 | 文件缓存
【SOC FPGA】外设KEY点LED
第一次用debug查询,发现这个为空,是不是代表还没获得数据库的意思?求帮助。
Moonbeam创始人解读多链新概念Connected Contract
Large-scale integrated office management system source code (OA+HR+CRM) source code sharing for free
随机推荐
【HMS core】【FAQ】A collection of typical questions about Account, IAP, Location Kit and HarmonyOS 1
新人学习小熊派网络应用开发
SocialFi 何以成就 Web3 去中心化社交未来
rhce笔记3
第5章 SQL高级处理
【SOC FPGA】Peripheral KEY LED
数组和指针(2)
基于STM32F407使用ADC采集电压实验
Invalid or corrupt jarfile xxx.jar
探究CSAPP实验二-bomb lab-第一节
MySQL超详细安装教程 手把手教你安装MySQL到使用MySQL 最简单的MySQL安装方式,这种方式装,卸载也简单
3D激光SLAM:LeGO-LOAM论文解读---特征提取部分
vivo announced to extend the product warranty period, the system launched a variety of functional services
[HMS core] [FAQ] A collection of typical questions about push kit, analysis services, and video editing services 3
vivo宣布延长产品保修期限 系统上线多种功能服务
The service already exists!解决办法
Rounding out the most practical way of several DLL injection
rhce笔记1
Leetcode 119. Yang Hui's Triangle II
Visual Studio编辑器 2019:scanf函数返回值被忽略(C4996)报错及解决办法