我现在觉得也是。现在我就感觉到了这一点。因为我现在保存数据有时会出错,现在正在找原因,郁闷了一下午了。:<
出错信息如下:
java.lang.ArrayIndexOutOfBoundsException//数组越界?
at java.lang.System.arraycopy(Native Method)
at com.microsoft.jdbc.sqlserver.tds.TDSRPCParameter.write(Unknown Source
)
at $Proxy5.addShipment(Unknown Source)//我在action(control)中调用了DAO中的方法,Unknown Source不知是为会什么?因为在action的类中我用了一个这样一方法,shipmentDAO.addShipment(this),this代表了本身的对象,用来(获取)传送页面请求的数据到DAO中。不知前辈们是怎么处理这个地方的?
at com.legend.shipment.web.Shipment2Action.saveShipment(Shipment2Action.
java:196)//这个出错的类的方法出错的语句, shipmentDAO.addShipment(this);
还有就是:
org.springframework.transaction.TransactionSystemException: Could not roll back
Hibernate transaction; nested exception is org.hibernate.TransactionException: J
DBC rollback failed
org.hibernate.TransactionException: JDBC rollback failed
WARN - DefaultActionInvocation.executeResult(260) | No result defined for action
com.legend.shipment.web.Shipment2Action and result null
下面这个不知会不会有问题出现呢?
at com.legend.shipment.dao.hibernate.ShipmentDAOHibernate.generateShipNu
m(ShipmentDAOHibernate.java:198)
//Query query = session.createQuery(sql);
// query.setLong("jftJsId",jsoId.longValue());它们有可能会出现上面出现的错误吗?
回复 更多评论