@JFinal Float price = Db.queryFloat("select retailPrice from store_stock where id=?",orderDetail.getSkuId()); if (price==null){ throw new SQLException("skuid对应的商家商品不存在"); }; 报va.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.aop.Invocation.invoke(Invocation.java:73) ... 27 more Caused by: java.sql.SQLException: skuid对应的商家商品不存在 at service.OrderService.orderCreate(OrderService.java:44) at controller.OrderController.orderCreate(OrderController.java:18) ... 32 more