spark

spark

95M Downloads

spark-sponge7 makes SpongeVanilla not launch

44trent3 opened this issue ยท 1 comments

commented

When I try to use spark-sponge7, my SpongeVanilla server simply will not launch. I've tried compiling it myself, same issue. I'm attaching my latest.log.

latest.log

System information/server information:
OS: Windows 10 Home
SpongeVanilla version: 7.4.7
Spark version: latest from Git
Java version: jdk1.8.0_301

I can also say this is happening on another server running the same SpongeVanilla but on Debian, we wanted to update Spark but were unable to. The one they're on is outdated by several months. The error they're receiving when trying to launch with the latest version is the same as the one I am. They are also using jdk8, although I am not sure which update.

I'm quite positive this is not on our end, so any insight would be appreciated, thanks.

commented

Update: After investigation in SpongePowered Discord, I was able to resolve the issue. The issue being module-info.class files, they're compiled for Java 9+...Sponge uses a version of ASM which won't recognize these module-info.class files, and causes the error in my log file I attached.

While the build.gradle for the spark-sponge7 module excludes shading module-info.class, it doesn't do it for all of them. There is also one in META-INF/versions/N/module.info.class -- the solution being to just exclude everything under META-INF/versions. I am opening a PR with this fix shortly.