Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cloorc opened this issue Jan 1, 2021 · 0 comments

Comments

@cloorc
Copy link

cloorc commented Jan 1, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant