Dubbo failed to register and consumer null pointer exception

Dubbo unable to register problem

error starting server:

Failed to register consumer:// 192.168.60.1/com. Duck. Service. The UserService?application=user-web& category=consumers& check=false& default.check=false& default.reference.filter=regerConsumerFilter& default.timeout=600000& Dubbo = server & amp; interface=com.atguigu.gmall.service.UserService& methods=getReceiveAddressByMemberId,getAllUser& pid=12648& side=consumer& Timestamp = 1583642177210 to zookeeper zookeeper:// 47.112.171.153:2181/com. Alibaba. Dubbo. Registry. RegistryService?application=user-web& client=zkclient& Dubbo = server & amp; interface=com.alibaba.dubbo.registry.RegistryService& pid=12648& timestamp=1583642177225, cause: Zookeeper is not connected yet!

problem, this is due to Linux firewall enabled, causing registration failure.

resolved: turn off the Linux (CentOS7 based) firewall

Service
systemctl stop firewaldeld. service
1
insert picture description

here

consumption null pointer exception problem

the reason is that the package name not consistent, do not agree the package name can lead to the provider and consumer is not a node, that consumers will never gain value!!!!!

dubbo could not register problem
consumer null pointer exception


Read More: