-
Notifications
You must be signed in to change notification settings - Fork 4
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
native打包后执行报错 #1
Comments
上下文描述详细点,或者提供个 demo |
|
quarkus-apollo-config 需要以 root 项目打包,不能作为其他项目的子模块 |
清理下之前的 build ,重新打包 |
idea 启动没问题, 打包成native 执行文件不行 |
这个当前可能还不支持,受限于 apollo-client 本身有其他的依赖,有反射序列化等代码。当前这个库只支持 jvm 模式运行 |
好的 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
7月 21, 2021 8:29:47 下午 org.github.keking.apollo.ApolloConfigSourceProvider
INFO: 加载apollo的namespaces:application,datasource,GLP.xxl-job-common,bootstrap
7月 21, 2021 8:29:47 下午 io.quarkus.runtime.ApplicationLifecycleManager run
ERROR: Failed to start application (with profile prod)
java.lang.IllegalStateException: No implementation defined in /META-INF/services/com.ctrip.framework.apollo.internals.Injector, please check whether the file exists and has the right implementation class!
at com.ctrip.framework.foundation.internals.ServiceBootstrap.loadFirst(ServiceBootstrap.java:15)
at com.ctrip.framework.apollo.build.ApolloInjector.getInjector(ApolloInjector.java:20)
at com.ctrip.framework.apollo.build.ApolloInjector.getInstance(ApolloInjector.java:35)
at com.ctrip.framework.apollo.ConfigService.getManager(ConfigService.java:25)
at com.ctrip.framework.apollo.ConfigService.getConfig(ConfigService.java:61)
at org.github.keking.apollo.ApolloConfigSourceProvider.getConfigSources(ApolloConfigSourceProvider.java:37)
at io.quarkus.runtime.configuration.ConfigUtils.addSourceProvider(ConfigUtils.java:167)
at io.quarkus.runtime.configuration.ConfigUtils.addSourceProviders(ConfigUtils.java:181)
at io.quarkus.runtime.generated.Config.readConfig(Config.zig:1522)
at io.quarkus.deployment.steps.RuntimeConfigSetup.deploy(RuntimeConfigSetup.zig:60)
at io.quarkus.runner.ApplicationImpl.doStart(ApplicationImpl.zig:403)
at io.quarkus.runtime.Application.start(Application.java:101)
at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:101)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:66)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:42)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:119)
at io.quarkus.runner.GeneratedMain.main(GeneratedMain.zig:29)
The text was updated successfully, but these errors were encountered: