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

Running test generate many errors on my local pc e.g. ./run-tests.sh #1283

Open
ctoabidmaqbool opened this issue Sep 15, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@ctoabidmaqbool
Copy link

I have forked substrate-fork.

When I run test e.g. ./run-tests.sh it generated many errors, e.g. ERROR 403: Forbidden and location of system modules is not set in conjunction with -source 11 etc. let see them:

maqboolstudiopc@MSC-30:/mnt/d/GraalVM-Projects/gluonhq/substrate-fork$ ./run-tests.sh
Downloading JavaFX 13.0.1-linux jars...
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:3.1.1:get (default-cli) @ standalone-pom ---
[INFO] Resolving org.openjfx:javafx-base:jar:linux:13.0.1 with transitive dependencies
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  23.968 s
[INFO] Finished at: 2024-09-15T22:47:49+05:00
[INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:3.1.1:copy (default-cli) @ standalone-pom ---
[INFO] Configured Artifact: org.openjfx:javafx-base:linux:13.0.1:jar
[INFO] Copying javafx-base-13.0.1-linux.jar to /mnt/d/GraalVM-Projects/gluonhq/substrate-fork/libs/javafx/javafx-base-13.0.1-linux.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  16.048 s
[INFO] Finished at: 2024-09-15T22:48:18+05:00
[INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:3.1.1:get (default-cli) @ standalone-pom ---
[INFO] Resolving org.openjfx:javafx-controls:jar:linux:13.0.1 with transitive dependencies
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  34.301 s
[INFO] Finished at: 2024-09-15T22:49:16+05:00
[INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:3.1.1:copy (default-cli) @ standalone-pom ---
[INFO] Configured Artifact: org.openjfx:javafx-controls:linux:13.0.1:jar
[INFO] Copying javafx-controls-13.0.1-linux.jar to /mnt/d/GraalVM-Projects/gluonhq/substrate-fork/libs/javafx/javafx-controls-13.0.1-linux.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  14.173 s
[INFO] Finished at: 2024-09-15T22:49:44+05:00
[INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:3.1.1:get (default-cli) @ standalone-pom ---
[INFO] Resolving org.openjfx:javafx-graphics:jar:linux:13.0.1 with transitive dependencies
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  45.401 s
[INFO] Finished at: 2024-09-15T22:50:48+05:00
[INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:3.1.1:copy (default-cli) @ standalone-pom ---
[INFO] Configured Artifact: org.openjfx:javafx-graphics:linux:13.0.1:jar
[INFO] Copying javafx-graphics-13.0.1-linux.jar to /mnt/d/GraalVM-Projects/gluonhq/substrate-fork/libs/javafx/javafx-graphics-13.0.1-linux.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  14.056 s
[INFO] Finished at: 2024-09-15T22:51:18+05:00
[INFO] ------------------------------------------------------------------------
Downloading JavaFX jars completed!
Downloading JavaFX static SDK 14-ea+gvm1-linux-x86_64...
--2024-09-15 22:51:18--  https://download2.gluonhq.com/substrate/javafxstaticsdk/openjfx-14-ea+gvm1-linux-x86_64-static.zip
Resolving download2.gluonhq.com (download2.gluonhq.com)... 178.128.135.159
Connecting to download2.gluonhq.com (download2.gluonhq.com)|178.128.135.159|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2024-09-15 22:51:25 ERROR 403: Forbidden.

Archive:  libs/javafxstatic/openjfx-14-ea+gvm1-linux-x86_64-static.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
note:  libs/javafxstatic/openjfx-14-ea+gvm1-linux-x86_64-static.zip may be a plain executable, not an archive
unzip:  cannot find zipfile directory in one of libs/javafxstatic/openjfx-14-ea+gvm1-linux-x86_64-static.zip or
        libs/javafxstatic/openjfx-14-ea+gvm1-linux-x86_64-static.zip.zip, and cannot find libs/javafxstatic/openjfx-14-ea+gvm1-linux-x86_64-static.zip.ZIP, period.
Downloading JavaFX static SDK completed!
Downloading substrate dependencies...
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:3.1.1:get (default-cli) @ standalone-pom ---
[INFO] Resolving com.googlecode.plist:dd-plist:jar:1.22 with transitive dependencies
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  17.628 s
[INFO] Finished at: 2024-09-15T22:51:58+05:00
[INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:3.1.1:copy (default-cli) @ standalone-pom ---
[INFO] Configured Artifact: com.googlecode.plist:dd-plist:1.22:jar
[INFO] Copying dd-plist-1.22.jar to /mnt/d/GraalVM-Projects/gluonhq/substrate-fork/libs/substrate/dd-plist-1.22.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  19.032 s
[INFO] Finished at: 2024-09-15T22:52:31+05:00
[INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:3.1.1:get (default-cli) @ standalone-pom ---
[INFO] Resolving com.github.jnr:jnr-ffi:jar:2.1.11 with transitive dependencies
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  15.923 s
[INFO] Finished at: 2024-09-15T22:53:01+05:00
[INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:3.1.1:copy (default-cli) @ standalone-pom ---
[INFO] Configured Artifact: com.github.jnr:jnr-ffi:2.1.11:jar
[INFO] Copying jnr-ffi-2.1.11.jar to /mnt/d/GraalVM-Projects/gluonhq/substrate-fork/libs/substrate/jnr-ffi-2.1.11.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  17.398 s
[INFO] Finished at: 2024-09-15T22:53:34+05:00
[INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:3.1.1:get (default-cli) @ standalone-pom ---
[INFO] Resolving org.bouncycastle:bcpkix-jdk15on:jar:1.49 with transitive dependencies
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  27.460 s
[INFO] Finished at: 2024-09-15T22:54:16+05:00
[INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:3.1.1:copy (default-cli) @ standalone-pom ---
[INFO] Configured Artifact: org.bouncycastle:bcpkix-jdk15on:1.49:jar
[INFO] Copying bcpkix-jdk15on-1.49.jar to /mnt/d/GraalVM-Projects/gluonhq/substrate-fork/libs/substrate/bcpkix-jdk15on-1.49.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  18.455 s
[INFO] Finished at: 2024-09-15T22:54:53+05:00
[INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:3.1.1:get (default-cli) @ standalone-pom ---
[INFO] Resolving org.bouncycastle:bcprov-jdk15on:jar:1.49 with transitive dependencies
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  20.176 s
[INFO] Finished at: 2024-09-15T22:55:38+05:00
[INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:3.1.1:copy (default-cli) @ standalone-pom ---
[INFO] Configured Artifact: org.bouncycastle:bcprov-jdk15on:1.49:jar
[INFO] Copying bcprov-jdk15on-1.49.jar to /mnt/d/GraalVM-Projects/gluonhq/substrate-fork/libs/substrate/bcprov-jdk15on-1.49.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  26.132 s
[INFO] Finished at: 2024-09-15T22:56:20+05:00
[INFO] ------------------------------------------------------------------------
Downloading substrate dependencies completed!
Compiling substrate...
warning: [options] location of system modules is not set in conjunction with -source 11
  not setting the location of system modules may lead to class files that cannot run on JDK 11
    --release 11 is recommended instead of -source 11 -target 11 because it sets the location of system modules automatically
src/main/java/module-info.java:8: error: module not found: svm
    requires svm;
             ^
src/main/java/module-info.java:9: error: module not found: aot
    requires aot;
             ^
src/main/java/module-info.java:10: error: module not found: vm4brwsr
    requires vm4brwsr;
             ^
3 errors
1 warning
substrate compilation done!
Compiling test HelloWorld...
warning: [options] location of system modules is not set in conjunction with -source 11
  not setting the location of system modules may lead to class files that cannot run on JDK 11
    --release 11 is recommended instead of -source 11 -target 11 because it sets the location of system modules automatically
1 warning
test HelloWorld compilation done!
Running test HelloWorld...
Error: Could not find or load main class com.gluonhq.substrate.SubstrateDispatcher
Caused by: java.lang.ClassNotFoundException: com.gluonhq.substrate.SubstrateDispatcher
test HelloWorld completed
Compiling test HelloFX...
warning: [options] location of system modules is not set in conjunction with -source 11
  not setting the location of system modules may lead to class files that cannot run on JDK 11
    --release 11 is recommended instead of -source 11 -target 11 because it sets the location of system modules automatically
1 warning
test HelloFX compilation done!
Running test HelloFX
Error: Could not find or load main class com.gluonhq.substrate.SubstrateDispatcher
Caused by: java.lang.ClassNotFoundException: com.gluonhq.substrate.SubstrateDispatcher
test HelloFX completed
@ctoabidmaqbool ctoabidmaqbool added the bug Something isn't working label Sep 15, 2024
@credmond
Copy link

credmond commented Sep 16, 2024

This file hasn't changed in 5 years and it's trying to download some very old libs based off these variables:

JAVAFX_PLATFORM=linux
JAVAFX_VERSION=13.0.1

JAVAFX_STATIC_PLATFORM=linux-x86_64
JAVAFX_STATIC_VERSION=14-ea+gvm1

Have you tried updating them? Personally, when I change substrate, I just mvn install it and have a real project reference it while building a native image.

E.g., put this into your HelloWorld/other project's pom.xml:
<substrate.version>0.0.999-SNAPSHOT</substrate.version>

@jperedadnr: when you're working on substrate, do you still use this script?

If this file is no longer relevant / useful, it might be better to remove it to avoid confusion...?

@jperedadnr
Copy link
Contributor

jperedadnr commented Sep 16, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants