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

Qulice crashes on Java 8 #1292

Open
volodya-lombrozo opened this issue Jun 11, 2024 · 4 comments
Open

Qulice crashes on Java 8 #1292

volodya-lombrozo opened this issue Jun 11, 2024 · 4 comments

Comments

@volodya-lombrozo
Copy link

I'm trying to run qulice on Java 8 runtime using the following command:

JAVA_HOME="/Users/user/Library/Java/JavaVirtualMachines/azul-1.8.0_352/Contents/Home" mvn qulice:check -Pqulice

And get the following error:

 Execution default-cli of goal com.qulice:qulice-maven-plugin:0.22.2:check failed: An API incompatibility was encountered while executing com.qulice:qulice-maven-plugin:0.22.2:check: java.lang.UnsupportedClassVersionError: com/puppycrawl/tools/checkstyle/api/CheckstyleException has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>com.qulice:qulice-maven-plugin:0.22.2
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/Users/lombrozo/.m2/repository/com/qulice/qulice-maven-plugin/0.22.2/qulice-maven-plugin-0.22.2.jar
[ERROR] urls[1] = file:/Users/lombrozo/.m2/repository/org/cactoos/cactoos/0.55.0/cactoos-0.55.0.jar
[ERROR] urls[2] = file:/Users/lombrozo/.m2/repository/com/qulice/qulice-spi/0.22.2/qulice-spi-0.22.2.jar
[ERROR] urls[3] = file:/Users/lombrozo/.m2/repository/com/qulice/qulice-checkstyle/0.22.2/qulice-checkstyle-0.22.2.jar
[ERROR] urls[4] = file:/Users/lombrozo/.m2/repository/com/google/guava/guava/33.0.0-jre/guava-33.0.0-jre.jar
[ERROR] urls[5] = file:/Users/lombrozo/.m2/repository/com/google/guava/failureaccess/1.0.2/failureaccess-1.0.2.jar
[ERROR] urls[6] = file:/Users/lombrozo/.m2/repository/com/google/guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
[ERROR] urls[7] = file:/Users/lombrozo/.m2/repository/org/checkerframework/checker-qual/3.41.0/checker-qual-3.41.0.jar
[ERROR] urls[8] = file:/Users/lombrozo/.m2/repository/com/google/errorprone/error_prone_annotations/2.23.0/error_prone_annotations-2.23.0.jar
[ERROR] urls[9] = file:/Users/lombrozo/.m2/repository/com/google/j2objc/j2objc-annotations/2.8/j2objc-annotations-2.8.jar
[ERROR] urls[10] = file:/Users/lombrozo/.m2/repository/com/puppycrawl/tools/checkstyle/10.14.1/checkstyle-10.14.1.jar
[ERROR] urls[11] = file:/Users/lombrozo/.m2/repository/info/picocli/picocli/4.7.5/picocli-4.7.5.jar
[ERROR] urls[12] = file:/Users/lombrozo/.m2/repository/commons-beanutils/commons-beanutils/1.9.4/commons-beanutils-1.9.4.jar
[ERROR] urls[13] = file:/Users/lombrozo/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar
[ERROR] urls[14] = file:/Users/lombrozo/.m2/repository/org/reflections/reflections/0.10.2/reflections-0.10.2.jar
[ERROR] urls[15] = file:/Users/lombrozo/.m2/repository/org/javassist/javassist/3.28.0-GA/javassist-3.28.0-GA.jar
[ERROR] urls[16] = file:/Users/lombrozo/.m2/repository/org/apache/maven/doxia/doxia-core/1.12.0/doxia-core-1.12.0.jar
[ERROR] urls[17] = file:/Users/lombrozo/.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.12.0/doxia-logging-api-1.12.0.jar
[ERROR] urls[18] = file:/Users/lombrozo/.m2/repository/org/apache/xbean/xbean-reflect/3.7/xbean-reflect-3.7.jar
[ERROR] urls[19] = file:/Users/lombrozo/.m2/repository/org/apache/commons/commons-text/1.11.0/commons-text-1.11.0.jar
[ERROR] urls[20] = file:/Users/lombrozo/.m2/repository/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar
[ERROR] urls[21] = file:/Users/lombrozo/.m2/repository/org/apache/httpcomponents/httpcore/4.4.14/httpcore-4.4.14.jar
[ERROR] urls[22] = file:/Users/lombrozo/.m2/repository/org/apache/maven/doxia/doxia-module-xdoc/1.12.0/doxia-module-xdoc-1.12.0.jar
[ERROR] urls[23] = file:/Users/lombrozo/.m2/repository/net/sourceforge/saxon/saxon/9.1.0.8/saxon-9.1.0.8.jar
[ERROR] urls[24] = file:/Users/lombrozo/.m2/repository/org/apache/maven/reporting/maven-reporting-exec/1.6.0/maven-reporting-exec-1.6.0.jar
[ERROR] urls[25] = file:/Users/lombrozo/.m2/repository/org/apache/maven/reporting/maven-reporting-api/3.1.0/maven-reporting-api-3.1.0.jar
[ERROR] urls[26] = file:/Users/lombrozo/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.11.1/doxia-sink-api-1.11.1.jar
[ERROR] urls[27] = file:/Users/lombrozo/.m2/repository/org/sonatype/sisu/sisu-guice/3.2.3/sisu-guice-3.2.3-no_aop.jar
[ERROR] urls[28] = file:/Users/lombrozo/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
[ERROR] urls[29] = file:/Users/lombrozo/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.21/plexus-interpolation-1.21.jar
[ERROR] urls[30] = file:/Users/lombrozo/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[31] = file:/Users/lombrozo/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[32] = file:/Users/lombrozo/.m2/repository/org/apache/maven/shared/maven-shared-utils/3.3.4/maven-shared-utils-3.3.4.jar
[ERROR] urls[33] = file:/Users/lombrozo/.m2/repository/javax/enterprise/cdi-api/1.2/cdi-api-1.2.jar
[ERROR] urls[34] = file:/Users/lombrozo/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.5/org.eclipse.sisu.inject-0.3.5.jar
[ERROR] urls[35] = file:/Users/lombrozo/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[36] = file:/Users/lombrozo/.m2/repository/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar
[ERROR] urls[37] = file:/Users/lombrozo/.m2/repository/com/qulice/qulice-pmd/0.22.2/qulice-pmd-0.22.2.jar
[ERROR] urls[38] = file:/Users/lombrozo/.m2/repository/net/sourceforge/pmd/pmd-java/6.55.0/pmd-java-6.55.0.jar
[ERROR] urls[39] = file:/Users/lombrozo/.m2/repository/org/ow2/asm/asm/9.6/asm-9.6.jar
[ERROR] urls[40] = file:/Users/lombrozo/.m2/repository/net/sourceforge/pmd/pmd-jsp/6.55.0/pmd-jsp-6.55.0.jar
[ERROR] urls[41] = file:/Users/lombrozo/.m2/repository/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar
[ERROR] urls[42] = file:/Users/lombrozo/.m2/repository/commons-io/commons-io/2.11.0/commons-io-2.11.0.jar
[ERROR] urls[43] = file:/Users/lombrozo/.m2/repository/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar
[ERROR] urls[44] = file:/Users/lombrozo/.m2/repository/com/jcabi/jcabi-log/0.24.1/jcabi-log-0.24.1.jar
[ERROR] urls[45] = file:/Users/lombrozo/.m2/repository/com/jcabi/jcabi-xml/0.29.0/jcabi-xml-0.29.0.jar
[ERROR] urls[46] = file:/Users/lombrozo/.m2/repository/com/jcabi/jcabi-maven-slf4j/0.12.2/jcabi-maven-slf4j-0.12.2.jar
[ERROR] urls[47] = file:/Users/lombrozo/.m2/repository/org/apache/maven/shared/maven-dependency-analyzer/1.13.2/maven-dependency-analyzer-1.13.2.jar
[ERROR] urls[48] = file:/Users/lombrozo/.m2/repository/org/codehaus/plexus/plexus-utils/3.5.1/plexus-utils-3.5.1.jar
[ERROR] urls[49] = file:/Users/lombrozo/.m2/repository/org/sonatype/sisu/sisu-inject-bean/2.6.0/sisu-inject-bean-2.6.0.jar
[ERROR] urls[50] = file:/Users/lombrozo/.m2/repository/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0.jar
[ERROR] urls[51] = file:/Users/lombrozo/.m2/repository/org/hibernate/validator/hibernate-validator/8.0.1.Final/hibernate-validator-8.0.1.Final.jar
[ERROR] urls[52] = file:/Users/lombrozo/.m2/repository/jakarta/validation/jakarta.validation-api/3.0.2/jakarta.validation-api-3.0.2.jar
[ERROR] urls[53] = file:/Users/lombrozo/.m2/repository/org/jboss/logging/jboss-logging/3.4.3.Final/jboss-logging-3.4.3.Final.jar
[ERROR] urls[54] = file:/Users/lombrozo/.m2/repository/com/fasterxml/classmate/1.5.1/classmate-1.5.1.jar
[ERROR] urls[55] = file:/Users/lombrozo/.m2/repository/net/sourceforge/pmd/pmd-core/6.55.0/pmd-core-6.55.0.jar
[ERROR] urls[56] = file:/Users/lombrozo/.m2/repository/org/antlr/antlr4-runtime/4.13.1/antlr4-runtime-4.13.1.jar
[ERROR] urls[57] = file:/Users/lombrozo/.m2/repository/com/beust/jcommander/1.48/jcommander-1.48.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[project>org.eolang:jeo-maven-plugin:1.0-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]
[ERROR] 
[ERROR] -----------------------------------------------------
[ERROR] 
[ERROR] -> [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/PluginContainerException

I'm using 0.22.2 version of qulice. The 0.22.1 version works well.

@volodya-lombrozo
Copy link
Author

@yegor256 Could you take a look, please?

Copy link

@volodya-lombrozo thanks for the report, here is a feedback:

Problems

  • Expected Result: The report does not mention what the expected outcome should be when running the provided command.
  • Environment Details: The report lacks specific details about the environment like the operating system, its version, and other related software versions (apart from Java and Qulice). These details are crucial in ensuring the bug can be reproduced accurately by anyone reading the report.
  • Severity and Impact: The report does not provide an assessment of the severity of the bug, or how it impacts the user or system.

I would recommend adding a section "Expected Result" to clarify what the outcome should be when running the provided command.

Please fix the bug report in order it to get resolved faster.
Analyzed with gpt-4

@yegor256
Copy link
Owner

@volodya-lombrozo I don't think Java 8 is still supported by Qulice. We migrated to Java 11 some time ago. It seems impossible to support Java 8, since Checkstyle and PMD also don't support it anymore (as far as I understand).

@volodya-lombrozo
Copy link
Author

@yegor256 Maybe we need to say about it in the README then? Something like:

qulice 0.22.1 supports Java 8,
but starting from 0.22.2 qulice supports only Java 11

What do you think?

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