Skip to content
This repository has been archived by the owner on Jul 29, 2021. It is now read-only.

启动sofastack-guides / kc-sofastack-dynamic-demo工程失败 #7

Open
ivanljc2017 opened this issue May 8, 2020 · 1 comment
Open

Comments

@ivanljc2017
Copy link

sofastack-guides / kc-sofastack-dynamic-demo导入eclipse,按步骤生成jar后,执行 java -jar dynamic-stock-mng/target/dynamic-stock-mng-1.0.0.jar时出错如下:
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.alipay.sofa.ark.bootstrap.MainMethodRunner.run(MainMethodRunner.java:48)
at com.alipay.sofa.ark.bootstrap.AbstractLauncher.launch(AbstractLauncher.java:97)
at com.alipay.sofa.ark.bootstrap.AbstractLauncher.launch(AbstractLauncher.java:49)
at com.alipay.sofa.ark.bootstrap.ArkLauncher.main(ArkLauncher.java:35)
Caused by: com.alipay.sofa.ark.exception.ArkRuntimeException: com.alipay.sofa.ark.exception.ArkRuntimeException: Master biz should be configured when deploy multi biz.
at com.alipay.sofa.ark.container.pipeline.StandardPipeline.process(StandardPipeline.java:81)
at com.alipay.sofa.ark.container.ArkContainer.start(ArkContainer.java:135)
at com.alipay.sofa.ark.container.ArkContainer.main(ArkContainer.java:91)
... 8 more
Caused by: com.alipay.sofa.ark.exception.ArkRuntimeException: Master biz should be configured when deploy multi biz.
at com.alipay.sofa.ark.container.pipeline.HandleArchiveStage.process(HandleArchiveStage.java:133)
at com.alipay.sofa.ark.container.pipeline.StandardPipeline.process(StandardPipeline.java:75)
... 10 more
Caused by: java.lang.IllegalArgumentException: Master biz should be configured when deploy multi biz.
at com.alipay.sofa.ark.common.util.AssertUtils.isFalse(AssertUtils.java:84)
at com.alipay.sofa.ark.container.pipeline.HandleArchiveStage.process(HandleArchiveStage.java:121)
... 11 more

@Crotion
Copy link

Crotion commented May 27, 2021

If you got error Master biz should be configured when deploy multi biz, please add jvm parameter -Dcom.alipay.sofa.ark.master.biz=sample-bundle.

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

No branches or pull requests

2 participants