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

自编译 Secretpad 镜像,无法连接 kusica #193

Open
yewq opened this issue Jan 9, 2025 · 3 comments
Open

自编译 Secretpad 镜像,无法连接 kusica #193

yewq opened this issue Jan 9, 2025 · 3 comments

Comments

@yewq
Copy link

yewq commented Jan 9, 2025

自己基于 v0.12.0b0 tag 编译 Secretpad 镜像后,无法对接 kuscia

查看 /app/log/secrtpad.log,可看到如下错误:

2025-01-09 16:01:01 [] [SimpleAsyncTaskExecutor-1] ERROR o.s.a.i.SimpleAsyncUncaughtExceptionHandler - Unexpected exception occurred invoking async method: public void org.secretflow.secretpad.service.listene
r.KusciaRegisterListener.onApplicationEvent(org.secretflow.secretpad.kuscia.v1alpha1.event.RegisterKusciaEvent)
java.lang.Error: Unresolved compilation problem: 
        The annotation @NotNull is disallowed for this location

        at org.secretflow.secretpad.kuscia.v1alpha1.DynamicKusciaChannelProvider.getServiceName(DynamicKusciaChannelProvider.java:86)
        at org.secretflow.secretpad.kuscia.v1alpha1.DynamicKusciaChannelProvider.createStub(DynamicKusciaChannelProvider.java:184)

编译环境为 Ubuntu 24.04 发行版自带的 openjdk-17-jdkmaven

$ java --version
openjdk 17.0.13 2024-10-15
OpenJDK Runtime Environment (build 17.0.13+11-Ubuntu-2ubuntu124.04)
OpenJDK 64-Bit Server VM (build 17.0.13+11-Ubuntu-2ubuntu124.04, mixed mode, sharing)
$ mvn --version
Apache Maven 3.8.7
Maven home: /usr/share/maven
Java version: 17.0.13, vendor: Ubuntu, runtime: /usr/lib/jvm/java-17-openjdk-amd64
Default locale: zh_CN, platform encoding: UTF-8
OS name: "linux", version: "6.8.0-51-generic", arch: "amd64", family: "unix"
@wangzul
Copy link

wangzul commented Jan 9, 2025

方便讲一下你的部署方法吗?怎么部署了,做了什么出现的错误。

@yewq
Copy link
Author

yewq commented Jan 9, 2025

删除 private static @NotNull String getServiceName(Class clazz) 中的 @NotNull 后,问题消失,可正常对接 kuscia

编译器参数的区别?

@wangzul
Copy link

wangzul commented Jan 10, 2025

请问您有对源代码做调整吗?
是否有调整镜像内部的运行环境,看下镜像内部的JDK环境是否宿主机环境差异。
如果方便话,说明一下您的整个构建镜像+部署运行的过程,这样有助于解决问题。

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

2 participants