Server(tcp://localhost) connect fail
金蝶云社区-云社区用户74O54807
云社区用户74O54807
0人赞赏了该文章 2,464次浏览 未经作者许可,禁止转载编辑于2015年04月15日 10:14:55

就一句很正常的代码啊,怎么一到这句就报错啊。Server(tcp://localhost) connect fail 是不是什么地方有配置问题啊
XlsImportSetCollection collection =
XlsImportSetFactory.getRemoteInstance().getXlsImportSetCollection(" where Number = '"+tablename+"' ");
报错信息:
2015-04-15 09:38:12 错误 [apusic.ejb.eas.ear.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:152)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean.INVOKE_SUPPORTS(TxInvokerBean.java:61)
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 $Proxy74.read07File(Unknown Source)
at com.kingdee.eas.custom.excelimport1.XlsImportUtil.read07File(XlsImportUtil.java:86)
at rpc_generate._PROXY_com_1_kingdee_1_eas_1_custom_1_excelimport1_1_IXlsImportUtil.pi6(Unknown Source)
at rpc_generate._PROXY_com_1_kingdee_1_eas_1_custom_1_excelimport1_1_IXlsImportUtil.processInvoke(Unknown Source)
at com.kingdee.bos.rpc.impl.ObjectProxy.processInvoke(ObjectProxy.java:177)
at com.kingdee.bos.rpc.impl.RPCService.serviceCreateObjectAndInvoke(RPCService.java:611)
at com.kingdee.bos.rpc.impl.RPCService.service(RPCService.java:122)
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: (type:6002) (errorCode:500) com.kingdee.bos.rpc.ce.RPCConnectException: Server(tcp://localhost) connect fail.
at com.kingdee.bos.rpc.io.Connector.newInvokeHelper(Connector.java:136)
at com.kingdee.bos.rpc.io.Connector.newInvokeHelper(Connector.java:81)
at com.kingdee.bos.rpc.impl.RPCInvoke.createSession(RPCInvoke.java:843)
at com.kingdee.bos.rpc.io.Connector.createSession(Connector.java:267)
at com.kingdee.bos.rpc.RPCEngine.createSession(RPCEngine.java:242)
at com.kingdee.bos.rpc.RPCEngine.createSession(RPCEngine.java:258)
at com.kingdee.bos.rpc.RPCEngine.createSession(RPCEngine.java:251)
at com.kingdee.bos.rpcwrapper.RPCEngineWrapper.createSession(RPCEngineWrapper.java:41)
at com.kingdee.bos.RemoteBOSObjectFactory$ReconnectableSession.initialize(RemoteBOSObjectFactory.java:551)
at com.kingdee.bos.RemoteBOSObjectFactory$ReconnectableSession.createObject(RemoteBOSObjectFactory.java:626)
at com.kingdee.bos.RemoteBOSObjectFactory.createBOSObject(RemoteBOSObjectFactory.java:227)
at com.kingdee.bos.GeniusBOSFactory.createRemoteBOSObject(GeniusBOSFactory.java:176)
at com.kingdee.bos.BOSObjectFactory.createRemoteBOSObject(BOSObjectFactory.java:47)
at com.kingdee.eas.custom.excelimport1.XlsImportSetFactory.getRemoteInstance(XlsImportSetFactory.java:15)
at com.kingdee.eas.custom.excelimport1.app.XlsImportUtilControllerBean.insertDB07(XlsImportUtilControllerBean.java:296)
at com.kingdee.eas.custom.excelimport1.app.XlsImportUtilControllerBean._read07File(XlsImportUtilControllerBean.java:252)
at com.kingdee.eas.custom.excelimport1.app.AbstractXlsImportUtilControllerBean.read07File(AbstractXlsImportUtilControllerBean.java:109)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean.invoke(TxInvokerBean.java:116)
... 14 more