|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册账号
×
新建了一个MDE工程。
在public中新建了一个接口,在private写好这个接口的实现类,在client中用NCLocater定位到这个接口实例。
应该可以正常使用这个对象了吧?
让我不理解的是以下的异常提示:
==================================================================
nc.bs.framework.exception.ConnectorIOException: Remote request error
at nc.bs.framework.comn.cli.JavaURLCommunicator.request(JavaURLCommunicator.java:106)
at nc.bs.framework.comn.cli.ClientProxyImpl.urlCall(ClientProxyImpl.java:201)
at nc.bs.framework.comn.cli.ClientProxyImpl.invoke(ClientProxyImpl.java:148)
at $Proxy1.sqlQueryDt(Unknown Source)
at com.tools.zhengyu.db.client.Client.test(Client.java:11)
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 junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: java.io.EOFException
at nc.bs.framework.comn.NetObjectInputStream.readInt(NetObjectInputStream.java:312)
at nc.bs.framework.comn.NetObjectInputStream.readObject(NetObjectInputStream.java:278)
at nc.bs.framework.comn.cli.JavaURLCommunicator.request(JavaURLCommunicator.java:88)
... 22 more
|
|