大神解答一下什么原因被 在线等 急!!!!!!!!!!!!!!!
java.sql.SQLException:Cannotsetordertime:incompatibletypes.Query:select*fromorderswhe...
java.sql.SQLException: Cannot set ordertime: incompatible types. Query: select * from orders where user_id = ? Parameters: [17]
at org.apache.commons.dbutils.AbstractQueryRunner.rethrow(AbstractQueryRunner.java:320)
at org.apache.commons.dbutils.QueryRunner.query(QueryRunner.java:349)
at org.apache.commons.dbutils.QueryRunner.query(QueryRunner.java:287)
at com.itheima.dao.OrderDaoImpl.findOrderByUserId(OrderDaoImpl.java:35)
at com.itheima.service.OrderServiceImpl.findOrders(OrderServiceImpl.java:53)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.itheima.factory.BasicFactory$1.invoke(BasicFactory.java:91)
at com.sun.proxy.$Proxy3.findOrders(Unknown Source)
at com.itheima.web.OrderListServlet.doGet(OrderListServlet.java:27) 展开
at org.apache.commons.dbutils.AbstractQueryRunner.rethrow(AbstractQueryRunner.java:320)
at org.apache.commons.dbutils.QueryRunner.query(QueryRunner.java:349)
at org.apache.commons.dbutils.QueryRunner.query(QueryRunner.java:287)
at com.itheima.dao.OrderDaoImpl.findOrderByUserId(OrderDaoImpl.java:35)
at com.itheima.service.OrderServiceImpl.findOrders(OrderServiceImpl.java:53)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.itheima.factory.BasicFactory$1.invoke(BasicFactory.java:91)
at com.sun.proxy.$Proxy3.findOrders(Unknown Source)
at com.itheima.web.OrderListServlet.doGet(OrderListServlet.java:27) 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询