具体代码可以访问 http://svn.thankjava.com/!/#ShareTJ/view/head/zhaoxy/Case 帐号密码 guest guest java/thrift是服务端 script/thrift-case.js 是客户端 在java中实现了两种service启动服务, 但是在nodejs中,第二种通过TMultiplexed协议去调用的不知道怎么弄,有没有大神可以解答一下。 如果使用默认的方式去访问java使用的TMultiplexed协议协议会提示明确错误信息: org.apache.thrift.TException: Service name not found in message name: ping. Did you forget to use a TMultiplexProtocol in your client? at org.apache.thrift.TMultiplexedProcessor.process(TMultiplexedProcessor.java:103) ~[libthrift-0.9.2.jar:0.9.2] at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:285) ~[libthrift-0.9.2.jar:0.9.2] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_71] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_71] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_71]
跪求答案,百度翻烂了。