GithubHelp home page GithubHelp logo

aliyun / alibabacloud-microservice-demo Goto Github PK

View Code? Open in Web Editor NEW
364.0 22.0 256.0 7.87 MB

An Alibaba Cloud native microservice demo powered by Apache Dubbo and Spring Cloud Alibaba

License: Apache License 2.0

Java 80.51% HTML 11.48% Dockerfile 2.07% Shell 2.47% CSS 0.15% JavaScript 1.91% Python 0.30% Makefile 0.24% Go 0.85%
dubbo springcloudalibaba microservice alibabacloud edas arms sae nacos mse sentinel

alibabacloud-microservice-demo's Introduction

Introduction

This is a demo project to showcase running microservices on Alibaba Cloud.

This demo is powered by the following projects and products:

  • Apache Dubbo for Remote Procedure Call
  • Spring Cloud Alibaba for Service to Service Call
  • Nacos for Service Discovery and Configuration management
  • Alibaba Cloud EDAS for deployment and hosting
  • Alibaba Cloud ARMS for monitoring
  • Alibaba Cloud SAE for deployment and hosting without being aware of the underlying infrastructure.

Architecture

This project contains the following applications (more applications are on the way):

  • frontend: A Java application with SpringMVC and thymeleaf as template engine.
  • cartservices: A Java application that provides basic operations to add products to shopping carts, which is powered by Apache Dubbo.
  • productservice: A Java application that provies basic operations to list all the products and query product by ID, which is powered by Spring Cloud Alibaba.

Build

Build docker image using docker-compose

You can use docker-compose to build docker images:

docker-compose build

Build docker image using scripts

You need to go to the src directory, for each sub module, there is a build.sh file, just run it to build the docker image for each module.

./build.sh

Deploy

Deploy with docker-compose

This project can be deployed to docker with the following command

docker-compose -f docker-compose.yml up

If you want to undeploy, use the following command

docker-compose -f docker-compose.yml down

Deploy to Kubernetes cluster

This project can be deployed to Kubernetes cluster with the following command:

cd kubernetes-manifests/
for i in *.yaml; do kubectl apply -f $i; done

If you want to delete the deployment, please use the following command:

for i in *.yaml; do kubectl delete -f $i; done

Deploy with helm

This project can be deployed to Kubernetes cluster with helm chart:

helm install ./helm-chart  --name  microservice-demo

If you want to delete the deployment with helm, use the following command:

helm delete microservice-demo

Collaborator

If you are a collaborator, please read the Collaborator to prepare for development.

Credit

This project is originiated from GoogleCloudPlatform/microservice-demo

alibabacloud-microservice-demo's People

Contributors

bdqfork avatar chenneal avatar claindoc avatar dependabot[bot] avatar flystar32 avatar icedsoul avatar kuangcp avatar learninggp avatar lebw avatar lexburner avatar luoxiner avatar lym-ifae avatar panxiaojun233 avatar ralf0131 avatar robberphex avatar satjd avatar steverao avatar sunxia0 avatar tdy218 avatar trevorlink avatar xinlunanxinlunan avatar ziyilin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alibabacloud-microservice-demo's Issues

Unable to deploy microservice-demo

someone@VMacPro ~ % helm repo update         
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "jenkinsci" chart repository
Update Complete. ⎈Happy Helming!⎈
someone@VMacPro ~ % helm install microservice-demo helm-chart --namespace default
Error: failed to download "helm-chart" (hint: running `helm repo update` may help)
someone@VMacPro ~ % helm install --devel microservice-demo helm-chart --namespace default
Error: failed to download "helm-chart" at version ">0.0.0-0" (hint: running `helm repo update` may help)
someone@VMacPro ~ % 

Even with sudo it fail.

docker-compose build error

我在执行 docker-compose build的时候显示以下error,有遇到过这个问题的同学吗?
环境:MacOS Catalina
docker desktop communtiy version 2.4.0.0 stable

Building checkoutservice
Step 1/6 : FROM openjdk:8-jre-alpine
---> f7a292bbb70c
Step 2/6 : WORKDIR /app
---> Using cache
---> eb521812e776
Step 3/6 : COPY /checkoutservice-provider/target/checkoutservice-provider-0.0.1-SNAPSHOT.jar /app
ERROR: Service 'checkoutservice' failed to build : COPY failed: stat /var/lib/docker/tmp/docker-builder245776263/checkoutservice-provider/target/checkoutservice-provider-0.0.1-SNAPSHOT.jar: no such file or directory

docker-compose build error

我执行 docker-compose build命令时,显示如下的错误,有遇到过此问题的同学吗?

building 'zmq.backend.cython._device' extension
creating build/temp.linux-x86_64-3.9/zmq
creating build/temp.linux-x86_64-3.9/zmq/backend
creating build/temp.linux-x86_64-3.9/zmq/backend/cython
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAVE_SYS_UN_H=1 -Ibundled/zeromq/include -Izmq/utils -Izmq/backend/cython -Izmq/devices -I/usr/local/include/python3.9 -c zmq/backend/cython/_device.c -o build/temp.linux-x86_64-3.9/zmq/backend/cython/_device.o
zmq/backend/cython/_device.c: In function ‘__Pyx_ParseOptionalKeywords’:
zmq/backend/cython/_device.c:3075:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/_device.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
zmq/backend/cython/_device.c:3075:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/_device.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
^~~~~~~~~~~~~~~~~~~
zmq/backend/cython/_device.c:3075:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/_device.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
zmq/backend/cython/_device.c:3075:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/_device.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
zmq/backend/cython/_device.c:3075:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/_device.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
^~~~~~~~~~~~~~~~~~~
zmq/backend/cython/_device.c:3075:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/_device.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
zmq/backend/cython/_device.c:3091:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/_device.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
zmq/backend/cython/_device.c:3091:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/_device.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
^~~~~~~~~~~~~~~~~~~
zmq/backend/cython/_device.c:3091:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/_device.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
zmq/backend/cython/_device.c:3091:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/_device.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
zmq/backend/cython/_device.c:3091:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/_device.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
^~~~~~~~~~~~~~~~~~~
zmq/backend/cython/_device.c:3091:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/_device.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -pthread -shared -Wl,--strip-all build/temp.linux-x86_64-3.9/zmq/backend/cython/_device.o -L/usr/local/lib -o build/lib.linux-x86_64-3.9/zmq/backend/cython/_device.cpython-39-x86_64-linux-gnu.so
building 'zmq.backend.cython._poll' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAVE_SYS_UN_H=1 -Ibundled/zeromq/include -Izmq/utils -Izmq/backend/cython -Izmq/devices -I/usr/local/include/python3.9 -c zmq/backend/cython/_poll.c -o build/temp.linux-x86_64-3.9/zmq/backend/cython/_poll.o
zmq/backend/cython/_poll.c: In function ‘__Pyx_ParseOptionalKeywords’:
zmq/backend/cython/_poll.c:3982:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/_poll.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
zmq/backend/cython/_poll.c:3982:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/_poll.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
^~~~~~~~~~~~~~~~~~~
zmq/backend/cython/_poll.c:3982:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/_poll.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
zmq/backend/cython/_poll.c:3982:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/_poll.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
zmq/backend/cython/_poll.c:3982:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/_poll.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
^~~~~~~~~~~~~~~~~~~
zmq/backend/cython/_poll.c:3982:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/_poll.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
zmq/backend/cython/_poll.c:3998:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/_poll.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
zmq/backend/cython/_poll.c:3998:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/_poll.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
^~~~~~~~~~~~~~~~~~~
zmq/backend/cython/_poll.c:3998:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/_poll.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
zmq/backend/cython/_poll.c:3998:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/_poll.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
zmq/backend/cython/_poll.c:3998:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/_poll.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
^~~~~~~~~~~~~~~~~~~
zmq/backend/cython/_poll.c:3998:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/_poll.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -pthread -shared -Wl,--strip-all build/temp.linux-x86_64-3.9/zmq/backend/cython/_poll.o -L/usr/local/lib -o build/lib.linux-x86_64-3.9/zmq/backend/cython/_poll.cpython-39-x86_64-linux-gnu.so
building 'zmq.backend.cython._version' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAVE_SYS_UN_H=1 -Ibundled/zeromq/include -Izmq/utils -Izmq/backend/cython -Izmq/devices -I/usr/local/include/python3.9 -c zmq/backend/cython/_version.c -o build/temp.linux-x86_64-3.9/zmq/backend/cython/_version.o
gcc -pthread -shared -Wl,--strip-all build/temp.linux-x86_64-3.9/zmq/backend/cython/_version.o -L/usr/local/lib -o build/lib.linux-x86_64-3.9/zmq/backend/cython/_version.cpython-39-x86_64-linux-gnu.so
building 'zmq.backend.cython.constants' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAVE_SYS_UN_H=1 -Ibundled/zeromq/include -Izmq/utils -Izmq/backend/cython -Izmq/devices -I/usr/local/include/python3.9 -c zmq/backend/cython/constants.c -o build/temp.linux-x86_64-3.9/zmq/backend/cython/constants.o
gcc -pthread -shared -Wl,--strip-all build/temp.linux-x86_64-3.9/zmq/backend/cython/constants.o -L/usr/local/lib -o build/lib.linux-x86_64-3.9/zmq/backend/cython/constants.cpython-39-x86_64-linux-gnu.so
building 'zmq.backend.cython.context' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAVE_SYS_UN_H=1 -Ibundled/zeromq/include -Izmq/utils -Izmq/backend/cython -Izmq/devices -I/usr/local/include/python3.9 -c zmq/backend/cython/context.c -o build/temp.linux-x86_64-3.9/zmq/backend/cython/context.o
zmq/backend/cython/context.c: In function ‘PyInit_context’:
zmq/backend/cython/context.c:4483:53: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’; did you mean ‘tp_dict’?
__pyx_type_3zmq_7backend_6cython_7context_Context.tp_print = 0;
^~~~~~~~
tp_dict
zmq/backend/cython/context.c: In function ‘__Pyx_ParseOptionalKeywords’:
zmq/backend/cython/context.c:4767:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/context.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
zmq/backend/cython/context.c:4767:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/context.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
^~~~~~~~~~~~~~~~~~~
zmq/backend/cython/context.c:4767:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/context.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
zmq/backend/cython/context.c:4767:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/context.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
zmq/backend/cython/context.c:4767:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/context.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
^~~~~~~~~~~~~~~~~~~
zmq/backend/cython/context.c:4767:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/context.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
zmq/backend/cython/context.c:4783:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/context.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
zmq/backend/cython/context.c:4783:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/context.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
^~~~~~~~~~~~~~~~~~~
zmq/backend/cython/context.c:4783:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/context.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
zmq/backend/cython/context.c:4783:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/context.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
zmq/backend/cython/context.c:4783:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/context.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
^~~~~~~~~~~~~~~~~~~
zmq/backend/cython/context.c:4783:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
In file included from /usr/local/include/python3.9/unicodeobject.h:1026,
from /usr/local/include/python3.9/Python.h:97,
from zmq/backend/cython/context.c:4:
/usr/local/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
error: command '/usr/bin/gcc' failed with exit code 1

ERROR: Failed building wheel for pyzmq
Running setup.py clean for pyzmq
Successfully built geventhttpclient-wheels markupsafe msgpack-python
Failed to build gevent greenlet pyzmq
Installing collected packages: certifi, chardet, click, markupsafe, jinja2, itsdangerous, werkzeug, flask, greenlet, gevent, six, geventhttpclient-wheels, idna, urllib3, requests, msgpack-python, pyzmq, locustio
WARNING: The script chardetect is installed in '/install/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script flask is installed in '/install/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Running setup.py install for greenlet: started
Running setup.py install for greenlet: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-g4gd0_cf/greenlet/setup.py'"'"'; file='"'"'/tmp/pip-install-g4gd0_cf/greenlet/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-c13z_ecw/install-record.txt --single-version-externally-managed --prefix /install --compile --install-headers /install/include/python3.9/greenlet
cwd: /tmp/pip-install-g4gd0_cf/greenlet/
Complete output (24 lines):
running install
running build
running build_ext
building 'greenlet' extension
creating build
creating build/temp.linux-x86_64-3.9
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include/python3.9 -c greenlet.c -o build/temp.linux-x86_64-3.9/greenlet.o
greenlet.c: In function ‘g_initialstub’:
greenlet.c:823:4: warning: ‘PyEval_CallObjectWithKeywords’ is deprecated [-Wdeprecated-declarations]
result = PyEval_CallObjectWithKeywords(
^~~~~~
In file included from /usr/local/include/python3.9/Python.h:145,
from greenlet.h:8,
from greenlet.c:5:
/usr/local/include/python3.9/ceval.h:17:43: note: declared here
Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords(
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
greenlet.c: In function ‘green_dealloc’:
greenlet.c:1046:4: error: ‘_Py_DEC_REFTOTAL’ undeclared (first use in this function); did you mean ‘_Py_DECREF’?
_Py_DEC_REFTOTAL;
^~~~~~~~~~~~~~~~
_Py_DECREF
greenlet.c:1046:4: note: each undeclared identifier is reported only once for each function it appears in
error: command '/usr/bin/gcc' failed with exit code 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-g4gd0_cf/greenlet/setup.py'"'"'; file='"'"'/tmp/pip-install-g4gd0_cf/greenlet/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-c13z_ecw/install-record.txt --single-version-externally-managed --prefix /install --compile --install-headers /install/include/python3.9/greenlet Check the logs for full command output.
ERROR: Service 'loadgenerator' failed to build : The command '/bin/sh -c pip install --prefix=/install -r requirements.txt' returned a non-zero code: 1

hsf-pandora-boot-consumer调用报错

执行http://localhost:8086/hsf-echo/helloworld请求,代码走com.alibaba.edas.SimpleController的echo方法,发现helloService为空。
java.lang.NullPointerException: null
at com.alibaba.edas.SimpleController.echo(SimpleController.java:19) ~[classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_281]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_281]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_281]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_281]
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:197) ~[spring-web-5.3.8.jar:5.3.8]
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:141) ~[spring-web-5.3.8.jar:5.3.8]
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106) ~[spring-webmvc-5.3.8.jar:5.3.8]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:894) ~[spring-webmvc-5.3.8.jar:5.3.8]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808) ~[spring-webmvc-5.3.8.jar:5.3.8]
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.3.8.jar:5.3.8]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1063) ~[spring-webmvc-5.3.8.jar:5.3.8]
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963) ~[spring-webmvc-5.3.8.jar:5.3.8]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) ~[spring-webmvc-5.3.8.jar:5.3.8]
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898) ~[spring-webmvc-5.3.8.jar:5.3.8]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:626) ~[tomcat-embed-core-9.0.46.jar:4.0.FR]
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) ~[spring-webmvc-5.3.8.jar:5.3.8]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:733) ~[tomcat-embed-core-9.0.46.jar:4.0.FR]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227) ~[tomcat-embed-core-9.0.46.jar:9.0.46]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.46.jar:9.0.46]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) ~[tomcat-embed-websocket-9.0.46.jar:9.0.46]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.46.jar:9.0.46]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.46.jar:9.0.46]
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) ~[spring-web-5.3.8.jar:5.3.8]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.3.8.jar:5.3.8]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.46.jar:9.0.46]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.46.jar:9.0.46]
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) ~[spring-web-5.3.8.jar:5.3.8]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.3.8.jar:5.3.8]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.46.jar:9.0.46]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.46.jar:9.0.46]
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) ~[spring-web-5.3.8.jar:5.3.8]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.3.8.jar:5.3.8]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.46.jar:9.0.46]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.46.jar:9.0.46]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) ~[tomcat-embed-core-9.0.46.jar:9.0.46]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) [tomcat-embed-core-9.0.46.jar:9.0.46]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542) [tomcat-embed-core-9.0.46.jar:9.0.46]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143) [tomcat-embed-core-9.0.46.jar:9.0.46]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) [tomcat-embed-core-9.0.46.jar:9.0.46]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) [tomcat-embed-core-9.0.46.jar:9.0.46]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357) [tomcat-embed-core-9.0.46.jar:9.0.46]
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374) [tomcat-embed-core-9.0.46.jar:9.0.46]
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) [tomcat-embed-core-9.0.46.jar:9.0.46]
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893) [tomcat-embed-core-9.0.46.jar:9.0.46]
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1707) [tomcat-embed-core-9.0.46.jar:9.0.46]
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-9.0.46.jar:9.0.46]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_281]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_281]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-9.0.46.jar:9.0.46]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_281]

[PANDORA WARNING] Can NOT find pandora.sar or taobao-hsf.sar. Init available components Scanning for available components in the runtime Starting available components

In submodule microservice-doc-demo/hsf-pandora-boot/hsf-pandora-boot-provider, build the package with following command:

mvn clean package

A jar with name of target/hsf-pandora-boot-provider-1.0.jar will be generated as expected. Just start it as:

java -jar target/hsf-pandora-boot-provider-1.0.jar

Following logging information will be printed:

[PANDORA WARNING] Can NOT find pandora.sar or taobao-hsf.sar. (1st line)
......
Caused by: java.lang.RuntimeException: com.taobao.hsf.app.spring.util.HSFSpringProviderBean was loaded by com.taobao.pandora.boot.loader.LaunchedURLClassLoader@5cb0d902, it should be loaded by Pandora Container. Can not load this fake sdk class. please refer to http://gitlab.alibaba-inc.com/middleware-container/pandora-boot/wikis/faq for the solution.
    at com.taobao.hsf.app.spring.util.HSFSpringProviderBean.<init>(HSFSpringProviderBean.java)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:172)
    ... 27 more

How to fix this problem?

With each Step I following, after all images built, I got a error for productservice, showing UnknownHost nacos-server when I entered docker-compose -f docker-compose.yml up

2022-03-11 15:46:31.064  WARN 7 --- [           main] com.alibaba.nacos.client.naming          : failed to request http://nacos-server:8848/nacos/v1/ns/instance?app=unknown&metadata=%7B%22dubbo.metadata-service.urls%22%3A%22%5B+%5D%22%2C%22preserved.register.source%22%3A%22SPRING_CLOUD%22%7D&ip=172.18.0.9&weight=1.0&ephemeral=true&serviceName=DEFAULT_GROUP%40%40productservice&encoding=UTF-8&groupName=DEFAULT_GROUP&namespaceId=public&port=8080&enable=true&healthy=true&clusterName=DEFAULT from 172.17.0.1
2022-03-11 15:46:31.064 ERROR 7 --- [           main] com.alibaba.nacos.client.naming          : [NA] failed to request 

java.net.SocketException: Unexpected end of file from server
	at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:851) ~[na:1.8.0_262]
	at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:678) ~[na:1.8.0_262]
	at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:848) ~[na:1.8.0_262]
	at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:678) ~[na:1.8.0_262]
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1593) ~[na:1.8.0_262]
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498) ~[na:1.8.0_262]
	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480) ~[na:1.8.0_262]
	at com.alibaba.nacos.client.naming.net.HttpClient.getResult(HttpClient.java:111) ~[nacos-client-1.2.1.jar!/:na]
	at com.alibaba.nacos.client.naming.net.HttpClient.request(HttpClient.java:90) ~[nacos-client-1.2.1.jar!/:na]
	at com.alibaba.nacos.client.naming.net.NamingProxy.callServer(NamingProxy.java:433) [nacos-client-1.2.1.jar!/:na]
	at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:482) [nacos-client-1.2.1.jar!/:na]
	at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:401) [nacos-client-1.2.1.jar!/:na]
	at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:397) [nacos-client-1.2.1.jar!/:na]
	at com.alibaba.nacos.client.naming.net.NamingProxy.registerService(NamingProxy.java:212) [nacos-client-1.2.1.jar!/:na]
	at com.alibaba.nacos.client.naming.NacosNamingService.registerInstance(NacosNamingService.java:207) [nacos-client-1.2.1.jar!/:na]
	at com.alibaba.cloud.nacos.registry.NacosServiceRegistry.register(NacosServiceRegistry.java:64) [spring-cloud-starter-alibaba-nacos-discovery-2.2.1.RELEASE.jar!/:2.2.1.RELEASE]
	at com.alibaba.cloud.nacos.registry.NacosServiceRegistry$$FastClassBySpringCGLIB$$ca3a8dbd.invoke(<generated>) [spring-cloud-starter-alibaba-nacos-discovery-2.2.1.RELEASE.jar!/:2.2.1.RELEASE]
	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) [spring-core-5.2.4.RELEASE.jar!/:5.2.4.RELEASE]
	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:769) [spring-aop-5.2.4.RELEASE.jar!/:5.2.4.RELEASE]
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) [spring-aop-5.2.4.RELEASE.jar!/:5.2.4.RELEASE]

maven-compiler-plugin version missing

When loading the project for the first time with maven the console reports an error
Cannot resolve plugin org.apache.maven.plugins:maven-compiler-plugin:<unknown>
It seems that the complier plugins in pom.xml of some modules does not have their version declaration

hsf-pandora-boot-provider 启动报错

Stopping available components
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.taobao.pandora.boot.loader.MainMethodRunner.run(MainMethodRunner.java:54)
	at com.taobao.pandora.boot.loader.Launcher.launch(Launcher.java:87)
	at com.taobao.pandora.boot.loader.Launcher.launch(Launcher.java:50)
	at com.taobao.pandora.boot.loader.SarLauncher.main(SarLauncher.java:171)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'helloServiceImpl#HSFProvider': Invocation of init method failed; nested exception is java.lang.RuntimeException: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.lang.NullPointerException
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1778)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:845)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:742)
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:389)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:311)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1213)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1202)
	at com.alibaba.edas.HSFProviderApplication.main(HSFProviderApplication.java:14)
	... 8 more
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.lang.NullPointerException
	at com.taobao.hsf.app.api.util.HSFApiProviderBean.publish(HSFApiProviderBean.java:552)
	at com.taobao.hsf.app.spring.util.HSFSpringProviderBean.doPublish(HSFSpringProviderBean.java:83)

help me: 不能下载 hsf-pandora-boot 项目内 pandora 相关的依赖

example
alibabacloud-microservice-demo/microservice-doc-demo/hsf-pandora-boot/

  1. 不能下载com.taobao.pandora:pandora-boot-maven-plugin:2.1.11.8
  2. 不能下载com.alibaba.boot:pandora-hsf-spring-boot-starter
  3. 不能下载com.taobao.pandora:taobao-hsf.sar:unknown
  4. 不能下载com.taobao.pandora:pandora-boot-test

我已经按照配置 EDAS 的私服地址配置了 maven 私服,但是我仍然不能下载相关依赖!

please help me.

hsf-pandora-boot-provider project Error creating bean with name 'echoServiceImpl#HSFProvider': Invocation of init method failed;

java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.taobao.pandora.boot.loader.LaunchRunner.run(LaunchRunner.java:38)
	at java.lang.Thread.run(Thread.java:748)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'echoServiceImpl#HSFProvider': Invocation of init method failed; nested exception is java.lang.RuntimeException: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.lang.NullPointerException
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1778)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:845)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:742)
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:389)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:311)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1213)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1202)
	at com.alibaba.edas.HSFProviderApplication.main(HSFProviderApplication.java:17)
	... 6 more

Add CI/CD

Make sure once the code is committed, it can be deployed to a Alibaba EDAS/SAE cluster.

pandoraboot 单元测试报错问题

当springboot集成pandoraboot做单元测试时,会出现报错,设置idea中的VM options参数-Dhsf.server.ip可以解决,但是单元测试不能每次执行都要设置该参数,请问是否有更好的解决方式。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.