环境:
Dubble版本:2.7.0-SNAPSHOT
Netty版本:4
做一个最简单的Dubbo+Zookeeper Demo,Follow的是Apache Dubbo的官方例子
搭建编写好Provider和Consumer的类和配置文件后,启动报了以下错误。
Provider启动:
Exception in thread "main" org.apache.dubbo.rpc.RpcException: Unsupported server type: netty, url: dubbo://192.168.1.101:20880/org.apache.dubbo.demo.DemoService?anyhost=true&application=demo-provider&bind.ip=192.168.1.101&bind.port=20880&channel.readonly.sent=true&dubbo=2.0.2&generic=false&heartbeat=60000&interface=org.apache.dubbo.demo.DemoService&methods=sayHello&pid=12144&qos.port=22222&side=provider×tamp=1536248469908
at org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol.createServer(DubboProtocol.java:301)
at org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol.openServer(DubboProtocol.java:283)
at org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol.export(DubboProtocol.java:267)
at org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:57)
at org.apache