cxf项目异常

来源:互联网 发布:网络销售渠道有哪2种 编辑:程序博客网 时间:2024/06/03 20:14

报错信息如下:

java.sql.SQLException: 无法从套接字读取更多的数据; nested exception is javax.persistence.PersistenceException: java.sql.SQLException:无法从套接字读取更多的数据

at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:163)

at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.createFault(AbstractJAXWSMethodInvoker.java:267)

at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:129)

at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.invoke(AbstractJAXWSMethodInvoker.java:232)

产生错误的原因:

先启动的客户端后启动的服务端。

解决问题的方法:

必须先启动服务端再启动客户端。