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

java21,springBoot3.2 打 jar 后使用异常 #211

Closed
iohao opened this issue Mar 31, 2024 · 0 comments
Closed

java21,springBoot3.2 打 jar 后使用异常 #211

iohao opened this issue Mar 31, 2024 · 0 comments

Comments

@iohao
Copy link
Contributor

iohao commented Mar 31, 2024

idea 中启动正常,打 jar 后使用时报异常

java.lang.RuntimeException: nested:x.jar not exist
        at com.baidu.bjf.remoting.protobuf.utils.ZipUtils.unZip(ZipUtils.java:55) ~[jprotobuf-2.4.22.jar!/:na]
        at com.baidu.bjf.remoting.protobuf.utils.compiler.JdkCompiler.<init>(JdkCompiler.java:161) ~[jprotobuf-2.4.22.jar!/:na]
        at com.baidu.bjf.remoting.protobuf.utils.compiler.JdkCompiler.<init>(JdkCompiler.java:103) ~[jprotobuf-2.4.22.jar!/:na]
        at com.baidu.bjf.remoting.protobuf.utils.JDKCompilerHelper.<clinit>(JDKCompilerHelper.java:33) ~[jprotobuf-2.4.22.jar!/:na]
        at com.baidu.bjf.remoting.protobuf.ProtobufProxy.doCreate(ProtobufProxy.java:263) ~[jprotobuf-2.4.22.jar!/:na]
        at com.baidu.bjf.remoting.protobuf.ProtobufProxy.create(ProtobufProxy.java:174) ~[jprotobuf-2.4.22.jar!/:na]
        at com.baidu.bjf.remoting.protobuf.ProtobufProxy.create(ProtobufProxy.java:155) ~[jprotobuf-2.4.22.jar!/:na]
        at com.baidu.bjf.remoting.protobuf.ProtobufProxy.create(ProtobufProxy.java:128) ~[jprotobuf-2.4.22.jar!/:na]
        at com.baidu.bjf.remoting.protobuf.ProtobufProxy.create(ProtobufProxy.java:116) ~[jprotobuf-2.4.22.jar!/:na]
        at com.iohao.game.example.application.OneApp.toBytes(OneApp.java:69) ~[!/:1.0-SNAPSHOT]
        at com.iohao.game.example.application.OneApp.getBytes(OneApp.java:61) ~[!/:1.0-SNAPSHOT]
        at com.iohao.game.example.application.OneApp.notice(OneApp.java:50) ~[!/:1.0-SNAPSHOT]
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[na:na]
        at java.base/java.lang.reflect.Method.invoke(Method.java:580) ~[na:na]
        at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:255) ~[spring-web-6.1.5.jar!/:6.1.5]
        at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:188) ~[spring-web-6.1.5.jar!/:6.1.5]
        at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:118) ~[spring-webmvc-6.1.5.jar!/:6.1.5]

java version

java -version
java version "21" 2023-09-19 LTS
Java(TM) SE Runtime Environment (build 21+35-LTS-2513)

复现步骤,打 jar 后访问 url
http://localhost:8080/one/notice

demo32.zip

jhunters added a commit that referenced this issue May 21, 2024
fix #211 jar error.evn:java21,springBoot3.2.
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