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

> Anyway, you can try with the latest version: 1.7.6. maybe your issue is already solved. #439

Open
fubb-github opened this issue Oct 25, 2024 · 11 comments
Labels
feedback Waiting for feedback

Comments

@fubb-github
Copy link

          > Anyway, you can try with the latest version: 1.7.6. maybe your issue is already solved.

I am using version 1.7.6 for packaging, but I cannot start after installing the deb package

Originally posted by @fubb-github in #393 (comment)

@fvarrui
Copy link
Owner

fvarrui commented Oct 25, 2024

Hi @fubb-github!
Is nothing shown in console when it's running from BASH?

@fubb-github
Copy link
Author

fubb-github commented Oct 29, 2024

你好@fubb-github! 从 BASH 运行时控制台中没有显示任何内容吗?

This is my packaging error message:

[INFO] Building jar: D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\kdew-protocol-vpn-client-1.0-SNAPSHOT-runnable.jar
[INFO]     Runnable jar created in D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\kdew-protocol-vpn-client-1.0-SNAPSHOT-runnable.jar!
[INFO]     
[INFO]     Bundling JRE ... with D:\JDK\jdk17\jdk-17.0.7
[INFO]         Creating customized JRE ...
[INFO]         Getting required modules ... 
[INFO]             Executing command: cmd.exe /s /c "D:\JDK\jdk17\jdk-17.0.7\bin\jdeps -q --multi-release 17 --ignore-missing-deps --print-module-deps --add-modules=ALL-MODULE-PATH --module-path=D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\kdew-protocol-vpn-client-1.0-SNAPSHOT-runnable.jar;D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\udun\libs"
[INFO]             错误: Modules io.netty.codec.xml and io.netty.codec export package io.netty.handler.codec.xml to module spring.aop
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 35.640 s
[INFO] Finished at: 2024-10-29T11:45:32+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.github.fvarrui:javapackager:1.7.6:package (default) on project kdew-protocol-vpn-client: Command execution failed: D:\JDK\jdk17\jdk-17.0.7\bin\jdeps -q --multi-release 17 --ignore-missing-deps --print-module-deps --add-modules=ALL-MODULE-PATH --module-path=D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\kdew-protocol-vpn-client-1.0-SNAPSHOT-runnable.jar;D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\udun\libs -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

@fvarrui
Copy link
Owner

fvarrui commented Oct 29, 2024

Hi @fubb-github !
JP 1.7.6 fails sometimes when trying to figure out which modules have to be included in your customize JRE.
There's a patch for this in 1.7.7-SNAPSHOT, but until it's released, I encourage you to set customizedJre=false, so a full JRE will be generated for your app.
This is a workaround.
I hope it helps!

@fvarrui fvarrui added the feedback Waiting for feedback label Oct 29, 2024
@fvarrui
Copy link
Owner

fvarrui commented Oct 29, 2024

Oh! you also can try this snapshot version: 1.7.7-20240703.192610-1.

@fubb-github
Copy link
Author

哦!您也可以尝试这个快照版本1.7.7-20240703.192610-1

After using version 1.7.7-snapshot, the same error still persists

@fvarrui
Copy link
Owner

fvarrui commented Oct 30, 2024

哦!您也可以尝试这个快照版本1.7.7-20240703.192610-1

After using version 1.7.7-snapshot, the same error still persists

Please, could you share Maven execution output?

BTW, if you are in a hurry and can't wait, you can set customizedJre=false and skip this issue.

@fubb-github
Copy link
Author

哦!您也可以尝试这个快照版本1.7.7-20240703.192610-1

After using version 1.7.7-snapshot, the same error still persists

Please, could you share Maven execution output?

BTW, if you are in a hurry and can't wait, you can set customizedJre=false and skip this issue.

Thank you for you reply,this is my packaging error message:

[INFO] Bundling JRE ... with D:\JDK\jdk17\jdk-17.0.7
[INFO] Creating customized JRE ...
[INFO] Getting required modules ...
[INFO] Executing command: cmd.exe /s /c "D:\JDK\jdk17\jdk-17.0.7\bin\jdeps -q --multi-release 17 --ignore-missing-deps --print-module-deps --add-modules=ALL-MODULE-PATH --module-path=D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\kdew-protocol-vpn-client-1.0-SNAPSHOT-runnable.jar;D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\udun\libs D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\udun\libs D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\kdew-protocol-vpn-client-1.0-SNAPSHOT-runnable.jar"
[INFO] 错误: Modules io.netty.handler and io.netty.handler.ssl.ocsp export package io.netty.handler.ssl.ocsp to module io.netty.codec.stomp
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26.513 s
[INFO] Finished at: 2024-10-31T09:16:14+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.github.fvarrui:javapackager:1.7.7-SNAPSHOT:package (default) on project kdew-protocol-vpn-client: Command execution failed: D:\JDK\jdk17\jdk-17.0.7\bin\jdeps -q --multi-release 17 --ignore-missing-deps --print-module-deps --add-modules=ALL-MODULE-PATH --module-path=D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\kdew-protocol-vpn-client-1.0-SNAPSHOT-runnable.jar;D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\udun\libs D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\udun\libs D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\kdew-protocol-vpn-client-1.0-SNAPSHOT-runnable.jar -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

@fvarrui
Copy link
Owner

fvarrui commented Nov 4, 2024

Hi @fubb-github!
Please, could you run this command just after building process fails?

D:\JDK\jdk17\jdk-17.0.7\bin\jdeps -q --multi-release 17 --ignore-missing-deps --print-module-deps --add-modules=ALL-MODULE-PATH --module-path=D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\kdew-protocol-vpn-client-1.0-SNAPSHOT-runnable.jar;D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\udun\libs D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\udun\libs D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\kdew-protocol-vpn-client-1.0-SNAPSHOT-runnable.jar

@fvarrui
Copy link
Owner

fvarrui commented Nov 4, 2024

Hi @fubb-github! Please, could you run this command just after building process fails?

D:\JDK\jdk17\jdk-17.0.7\bin\jdeps -q --multi-release 17 --ignore-missing-deps --print-module-deps --add-modules=ALL-MODULE-PATH --module-path=D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\kdew-protocol-vpn-client-1.0-SNAPSHOT-runnable.jar;D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\udun\libs D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\udun\libs D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\kdew-protocol-vpn-client-1.0-SNAPSHOT-runnable.jar

Ok, forgot last comment, I've just seen the error message:

[INFO] 错误: Modules io.netty.handler and io.netty.handler.ssl.ocsp export package io.netty.handler.ssl.ocsp to module io.netty.codec.stomp

I've been researching a little bit about this issue, and it seems to be caused by netty ... 2 modules are exporting the same package. AFAIK, it's not caused by JP, but you can try to do this:

<dependency>
    <groupId>io.netty</groupId>
    <artifactId>netty-codec</artifactId>
    <version>{VERSION}</version>
    <exclusions>
        <exclusion>
            <groupId>io.netty</groupId>
            <artifactId>netty-codec-xml</artifactId>
        </exclusion>
    </exclusions>
</dependency>

@fubb-github
Copy link
Author

Hi @fubb-github! Please, could you run this command just after building process fails?

D:\JDK\jdk17\jdk-17.0.7\bin\jdeps -q --multi-release 17 --ignore-missing-deps --print-module-deps --add-modules=ALL-MODULE-PATH --module-path=D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\kdew-protocol-vpn-client-1.0-SNAPSHOT-runnable.jar;D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\udun\libs D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\udun\libs D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\kdew-protocol-vpn-client-1.0-SNAPSHOT-runnable.jar

Ok, forgot last comment, I've just seen the error message:

[INFO] 错误: Modules io.netty.handler and io.netty.handler.ssl.ocsp export package io.netty.handler.ssl.ocsp to module io.netty.codec.stomp

I've been researching a little bit about this issue, and it seems to be caused by netty ... 2 modules are exporting the same package. AFAIK, it's not caused by JP, but you can try to do this:

<dependency>
    <groupId>io.netty</groupId>
    <artifactId>netty-codec</artifactId>
    <version>{VERSION}</version>
    <exclusions>
        <exclusion>
            <groupId>io.netty</groupId>
            <artifactId>netty-codec-xml</artifactId>
        </exclusion>
    </exclusions>
</dependency>

@fubb-github
Copy link
Author

Hi @fubb-github! Please, could you run this command just after building process fails?

D:\JDK\jdk17\jdk-17.0.7\bin\jdeps -q --multi-release 17 --ignore-missing-deps --print-module-deps --add-modules=ALL-MODULE-PATH --module-path=D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\kdew-protocol-vpn-client-1.0-SNAPSHOT-runnable.jar;D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\udun\libs D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\udun\libs D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\kdew-protocol-vpn-client-1.0-SNAPSHOT-runnable.jar

Ok, forgot last comment, I've just seen the error message:

[INFO] 错误: Modules io.netty.handler and io.netty.handler.ssl.ocsp export package io.netty.handler.ssl.ocsp to module io.netty.codec.stomp

I've been researching a little bit about this issue, and it seems to be caused by netty ... 2 modules are exporting the same package. AFAIK, it's not caused by JP, but you can try to do this:

<dependency>
    <groupId>io.netty</groupId>
    <artifactId>netty-codec</artifactId>
    <version>{VERSION}</version>
    <exclusions>
        <exclusion>
            <groupId>io.netty</groupId>
            <artifactId>netty-codec-xml</artifactId>
        </exclusion>
    </exclusions>
</dependency>

I have tried to remove it, but it still reports this type of error. Using version 1.7.5 does not have this problem

@fubb-github fubb-github reopened this Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feedback Waiting for feedback
Projects
None yet
Development

No branches or pull requests

2 participants