BOS webservice开发
1人赞赏了该文章
2,977次浏览
编辑于2016年08月18日 19:24:40
EAS版本为7.5汽车行业版,BOS开发工具为7.5版本
现在一个项目需要做webservice的开发,以json的格式进行数据传输,我在webCs1FacadeControllerBean里面 使用了 com.kingdee.bos.webframework.json.JSONUtils 这个工具,可以导入这个包,并没有报错,但是在客户端调用的时候 报
2016-08-18 19:03:04 ERROR [apusic.ejb.EAS.Tx_Broker_EJB] java.lang.reflect.UndeclaredThrowableException: TxEJB wrap a Not_BaseException while Reflect Invoke ControllerBean.
java.lang.reflect.UndeclaredThrowableException: TxEJB wrap a Not_BaseException while Reflect Invoke ControllerBean.
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean.invoke(TxInvokerBean.java:161)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean.INVOKE_SUPPORTS(TxInvokerBean.java:64)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean_LocalObjectImpl_2.INVOKE_SUPPORTS(Unknown Source)
at com.kingdee.bos.transaction.EJBTransactionProxy.invoke(EJBTransactionProxy.java:179)
at com.kingdee.bos.transaction.EJBTransactionProxy.invoke(EJBTransactionProxy.java:324)
at $Proxy151.test1(Unknown Source)
at com.kingdee.eas.custom.myWebService.webCs1Facade.test1(webCs1Facade.java:44)
at rpc_generate._PROXY_com_1_kingdee_1_eas_1_custom_1_myWebService_1_IwebCs1Facade.pi7(Unknown Source)
at rpc_generate._PROXY_com_1_kingdee_1_eas_1_custom_1_myWebService_1_IwebCs1Facade.processInvoke(Unknown Source)
at com.kingdee.bos.rpc.impl.ObjectProxy.processInvoke(ObjectProxy.java:177)
at com.kingdee.bos.rpc.impl.RPCService.serviceInvoke(RPCService.java:780)
at com.kingdee.bos.rpc.impl.RPCService.service(RPCService.java:139)
at com.kingdee.bos.rpc.impl.ServiceDispatcher.run(ServiceDispatcher.java:153)
at com.kingdee.bos.rpc.impl.ThreadJob.run(ThreadJob.java:27)
at com.kingdee.bos.rpc.impl.ThreadPool2$Worker.run(ThreadPool2.java:140)
Caused by: java.lang.NoClassDefFoundError: com.kingdee.bos.webframework.json.JSONUtils
at com.kingdee.eas.custom.myWebService.app.webCs1FacadeControllerBean._test1(webCs1FacadeControllerBean.java:44)
at com.kingdee.eas.custom.myWebService.app.AbstractwebCs1FacadeControllerBean.test1(AbstractwebCs1FacadeControllerBean.java:44)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean.invoke(TxInvokerBean.java:125)
... 14 more
2016-08-18 19:03:04 INFO [con.out] [2016-08-18 19:03:04,826 ERROR RPC-6]Met a NonApplicationException, Maybe throw by EJBSTUB. Exception Type is [javax.ejb.EJBException]
javax.ejb.EJBException: Unexpected system failure, see server log for details.; nested exception is: java.lang.reflect.UndeclaredThrowableException: TxEJB wrap a Not_BaseException while Reflect Invoke ControllerBean.
的错误。
另外,请问 BOS调用别人的webservice怎么调用,代码放在哪个包下?
现在一个项目需要做webservice的开发,以json的格式进行数据传输,我在webCs1FacadeControllerBean里面 使用了 com.kingdee.bos.webframework.json.JSONUtils 这个工具,可以导入这个包,并没有报错,但是在客户端调用的时候 报
2016-08-18 19:03:04 ERROR [apusic.ejb.EAS.Tx_Broker_EJB] java.lang.reflect.UndeclaredThrowableException: TxEJB wrap a Not_BaseException while Reflect Invoke ControllerBean.
java.lang.reflect.UndeclaredThrowableException: TxEJB wrap a Not_BaseException while Reflect Invoke ControllerBean.
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean.invoke(TxInvokerBean.java:161)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean.INVOKE_SUPPORTS(TxInvokerBean.java:64)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean_LocalObjectImpl_2.INVOKE_SUPPORTS(Unknown Source)
at com.kingdee.bos.transaction.EJBTransactionProxy.invoke(EJBTransactionProxy.java:179)
at com.kingdee.bos.transaction.EJBTransactionProxy.invoke(EJBTransactionProxy.java:324)
at $Proxy151.test1(Unknown Source)
at com.kingdee.eas.custom.myWebService.webCs1Facade.test1(webCs1Facade.java:44)
at rpc_generate._PROXY_com_1_kingdee_1_eas_1_custom_1_myWebService_1_IwebCs1Facade.pi7(Unknown Source)
at rpc_generate._PROXY_com_1_kingdee_1_eas_1_custom_1_myWebService_1_IwebCs1Facade.processInvoke(Unknown Source)
at com.kingdee.bos.rpc.impl.ObjectProxy.processInvoke(ObjectProxy.java:177)
at com.kingdee.bos.rpc.impl.RPCService.serviceInvoke(RPCService.java:780)
at com.kingdee.bos.rpc.impl.RPCService.service(RPCService.java:139)
at com.kingdee.bos.rpc.impl.ServiceDispatcher.run(ServiceDispatcher.java:153)
at com.kingdee.bos.rpc.impl.ThreadJob.run(ThreadJob.java:27)
at com.kingdee.bos.rpc.impl.ThreadPool2$Worker.run(ThreadPool2.java:140)
Caused by: java.lang.NoClassDefFoundError: com.kingdee.bos.webframework.json.JSONUtils
at com.kingdee.eas.custom.myWebService.app.webCs1FacadeControllerBean._test1(webCs1FacadeControllerBean.java:44)
at com.kingdee.eas.custom.myWebService.app.AbstractwebCs1FacadeControllerBean.test1(AbstractwebCs1FacadeControllerBean.java:44)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean.invoke(TxInvokerBean.java:125)
... 14 more
2016-08-18 19:03:04 INFO [con.out] [2016-08-18 19:03:04,826 ERROR RPC-6]Met a NonApplicationException, Maybe throw by EJBSTUB. Exception Type is [javax.ejb.EJBException]
javax.ejb.EJBException: Unexpected system failure, see server log for details.; nested exception is: java.lang.reflect.UndeclaredThrowableException: TxEJB wrap a Not_BaseException while Reflect Invoke ControllerBean.
的错误。
另外,请问 BOS调用别人的webservice怎么调用,代码放在哪个包下?
推荐阅读