package mains;import pojo.ObjectFactory;
import pojo.ZwBmdm;
import dao.Test22Client;
import dao.Test22PortType;public class Clints {
public static void main(String[] args) {
Test22Client tc = new Test22Client();
Test22PortType tp = tc.getTest22HttpPort();
//这个类是服务器端 的pojo类
ZwBmdm zm = new ZwBmdm();
//这样做对么?因为直接传String 进去不行,所以,用了ObjectFactory
ObjectFactory jx = new ObjectFactory();
zm.setBmbh(jx.createZwBmdmBmbh("10"));
zm.setBmmc(jx.createZwBmdmBmmc("3"));
zm.setJc(jx.createZwBmdmJc("1"));
zm.setMx(jx.createZwBmdmMx("3"));
//这个是服务器端 提供的,可以将对象插入数据库
tp.getInsert(zm);
}}
===============
执行之后报错:
Exception in thread "main" org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Could not execute JDBC batch update
org.codehaus.xfire.fault.XFireFault: Could not execute JDBC batch update
at org.codehaus.xfire.fault.Soap11FaultSerializer.readMessage(Soap11FaultSerializer.java:31)
at org.codehaus.xfire.fault.SoapFaultSerializer.readMessage(SoapFaultSerializer.java:28)
at org.codehaus.xfire.soap.handler.ReadHeadersHandler.checkForFault(ReadHeadersHandler.java:111)
at org.codehaus.xfire.soap.handler.ReadHeadersHandler.invoke(ReadHeadersHandler.java:67)
at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
at org.codehaus.xfire.client.Client.onReceive(Client.java:406)
at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:139)
at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)
at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
at org.codehaus.xfire.client.Client.invoke(Client.java:336)
at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
at $Proxy11.getInsert(Unknown Source)
at mains.Clints.main(Clints.java:23)======================
帮帮我吧!!
import pojo.ZwBmdm;
import dao.Test22Client;
import dao.Test22PortType;public class Clints {
public static void main(String[] args) {
Test22Client tc = new Test22Client();
Test22PortType tp = tc.getTest22HttpPort();
//这个类是服务器端 的pojo类
ZwBmdm zm = new ZwBmdm();
//这样做对么?因为直接传String 进去不行,所以,用了ObjectFactory
ObjectFactory jx = new ObjectFactory();
zm.setBmbh(jx.createZwBmdmBmbh("10"));
zm.setBmmc(jx.createZwBmdmBmmc("3"));
zm.setJc(jx.createZwBmdmJc("1"));
zm.setMx(jx.createZwBmdmMx("3"));
//这个是服务器端 提供的,可以将对象插入数据库
tp.getInsert(zm);
}}
===============
执行之后报错:
Exception in thread "main" org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Could not execute JDBC batch update
org.codehaus.xfire.fault.XFireFault: Could not execute JDBC batch update
at org.codehaus.xfire.fault.Soap11FaultSerializer.readMessage(Soap11FaultSerializer.java:31)
at org.codehaus.xfire.fault.SoapFaultSerializer.readMessage(SoapFaultSerializer.java:28)
at org.codehaus.xfire.soap.handler.ReadHeadersHandler.checkForFault(ReadHeadersHandler.java:111)
at org.codehaus.xfire.soap.handler.ReadHeadersHandler.invoke(ReadHeadersHandler.java:67)
at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
at org.codehaus.xfire.client.Client.onReceive(Client.java:406)
at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:139)
at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)
at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
at org.codehaus.xfire.client.Client.invoke(Client.java:336)
at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
at $Proxy11.getInsert(Unknown Source)
at mains.Clints.main(Clints.java:23)======================
帮帮我吧!!
解决方案 »
- 请教关于hibernate的视图映射?
- 菜鸟级
- hibernate 里写sql的问题
- java里面有开源的快速建站工具没有
- 先问下朋友们,我明年想去上海做JAVA,不知道可以值几个银子啊!
- 一个session监听的问题
- Eclipse3.0.1 + Lomboz3.0.1 + emf-sdo-runtime-2.0.1 + JBoss 4.0.1的配置问题?
- Root exception is java.lang.ClassNotFoundException: com.ibm.websphere.naming.WsnInitialContextFactory
- 如何配置EJB服务器
- EJB中实体BEAN只能对于一条记录,请问能不能返回记录集形式的对象呢?
- logic:iterate标签内的javabean值的提交问题
- 关于Tomcat中url-pattern标签无效,请大虾进来看看。
有没有启用游标?