调用DB.update(sqlpara)

代码:

                String id = UUIDKit.nextShortUUID();

long timeSheet = DateUtil.currentSeconds();

Kv cond = Kv.by("id", id).set("probe_id", probe_id);

cond.set("seg_type", 10).set("target_id", probe_id);

cond.set("status", 0).set("create_time", timeSheet);

cond.set("update_time", timeSheet);

SqlPara sqlPara = getSqlPara("probe.task.increment.save", cond);

Db.update(sqlPara);


错误信息如下:

2020-08-27 10:11:34,119 ERROR com.jfinal.core.ActionHandler  - com.eystar.probe.controller.ProbeController.updateAccesstype() : /probe/updateAccesstype

java.lang.RuntimeException: java.lang.reflect.InvocationTargetException

at com.jfinal.json.JFinalJsonKit$BeanToJson.toJson(JFinalJsonKit.java:521)

at com.jfinal.json.JFinalJsonKit$BeanToJson.toJson(JFinalJsonKit.java:514)

at com.jfinal.json.JFinalJsonKit$BeanToJson.toJson(JFinalJsonKit.java:514)

at com.jfinal.json.JFinalJsonKit$BeanToJson.toJson(JFinalJsonKit.java:514)

at com.jfinal.json.JFinalJsonKit$BeanToJson.toJson(JFinalJsonKit.java:514)

at com.jfinal.json.JFinalJsonKit$BeanToJson.toJson(JFinalJsonKit.java:514)

at com.jfinal.json.JFinalJsonKit$BeanToJson.toJson(JFinalJsonKit.java:514)

at com.jfinal.json.JFinalJsonKit$BeanToJson.toJson(JFinalJsonKit.java:514)

at com.jfinal.json.JFinalJsonKit$BeanToJson.toJson(JFinalJsonKit.java:514)

at com.jfinal.json.JFinalJsonKit$BeanToJson.toJson(JFinalJsonKit.java:514)

at com.jfinal.json.JFinalJsonKit$BeanToJson.toJson(JFinalJsonKit.java:514)

at com.jfinal.json.JFinalJsonKit$BeanToJson.toJson(JFinalJsonKit.java:514)

at com.jfinal.json.JFinalJsonKit$BeanToJson.toJson(JFinalJsonKit.java:514)

at com.jfinal.json.JFinalJsonKit$BeanToJson.toJson(JFinalJsonKit.java:514)

at com.jfinal.json.JFinalJsonKit$BeanToJson.toJson(JFinalJsonKit.java:514)

at com.jfinal.json.JFinalJsonKit$BeanToJson.toJson(JFinalJsonKit.java:514)

at com.jfinal.json.JFinalJsonKit.mapToJson(JFinalJsonKit.java:376)

at com.jfinal.json.JFinalJsonKit$MapToJson.toJson(JFinalJsonKit.java:348)

at com.jfinal.json.JFinalJsonKit$MapToJson.toJson(JFinalJsonKit.java:342)

at com.jfinal.json.JFinalJson.toJson(JFinalJson.java:68)

at com.jfinal.kit.JsonKit.toJson(JsonKit.java:28)

at com.jfinal.render.JsonRender.buildJsonText(JsonRender.java:167)

at com.jfinal.render.JsonRender.render(JsonRender.java:130)

at com.jfinal.core.ActionHandler.handle(ActionHandler.java:111)

at com.eystar.aop.WebSocketHandler.handle(WebSocketHandler.java:24)

at com.jfinal.ext.handler.ContextPathHandler.handle(ContextPathHandler.java:48)

at com.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:90)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)

at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)

at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:615)

at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)

at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:818)

at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1627)

at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

at java.lang.Thread.run(Thread.java:745)

Caused by: java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at com.jfinal.json.JFinalJsonKit$BeanToJson.toJson(JFinalJsonKit.java:496)

... 45 more

Caused by: javax.naming.OperationNotSupportedException: 无法为此命名空间生成绝对名称

at org.apache.naming.NamingContext.getNameInNamespace(NamingContext.java:785)

... 50 more


评论区

Null_Li

2020-08-28 18:29

probe 有多个?

yjdmw

2020-09-03 15:02

@Null_Li 已经解决了 是因为renderJson的问题 我没给null

热门反馈

扫码入社