Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-9896

Stunner - svg is not compiling in Java 11 for Java 8

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.60.0.Final
    • 7.59.0.Final
    • Designer
    • 2021 Week 37-39 (from Sep 13)

      When stunner compilation started under Java 11 but for Java 8 bytecode there is an issue during compilation:

      2021-09-09T00:46:00.895Z] [INFO] BUILD FAILURE
      [2021-09-09T00:46:00.895Z] [INFO] ------------------------------------------------------------------------
      [2021-09-09T00:46:00.895Z] [INFO] Total time:  59:01 min
      [2021-09-09T00:46:00.895Z] [INFO] Finished at: 2021-09-08T20:46:00-04:00
      [2021-09-09T00:46:00.895Z] [INFO] ------------------------------------------------------------------------
      [2021-09-09T00:46:00.895Z] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project kie-wb-common-stunner-svg-gen: Compilation failure: Compilation failure: 
      [2021-09-09T00:46:00.895Z] [ERROR] /home/jenkins/workspace/KIE/7.59.x/daily-build-jdk11/daily-build-jdk11-pipeline-7.59.x/kie-wb-common/kie-wb-common-stunner/kie-wb-common-stunner-extensions/kie-wb-common-stunner-svg/kie-wb-common-stunner-svg-gen/src/main/java/org/kie/workbench/common/stunner/svg/gen/translator/css/SVGStyleTranslator.java:[45,23] package org.w3c.dom.css does not exist
      [2021-09-09T00:46:00.895Z] [ERROR] /home/jenkins/workspace/KIE/7.59.x/daily-build-jdk11/daily-build-jdk11-pipeline-7.59.x/kie-wb-common/kie-wb-common-stunner/kie-wb-common-stunner-extensions/kie-wb-common-stunner-svg/kie-wb-common-stunner-svg-gen/src/main/java/org/kie/workbench/common/stunner/svg/gen/translator/css/SVGStyleTranslator.java:[46,23] package org.w3c.dom.css does not exist
      [2021-09-09T00:46:00.895Z] [ERROR] /home/jenkins/workspace/KIE/7.59.x/daily-build-jdk11/daily-build-jdk11-pipeline-7.59.x/kie-wb-common/kie-wb-common-stunner/kie-wb-common-stunner-extensions/kie-wb-common-stunner-svg/kie-wb-common-stunner-svg-gen/src/main/java/org/kie/workbench/common/stunner/svg/gen/translator/css/SVGStyleTranslator.java:[47,23] package org.w3c.dom.css does not exist
      [2021-09-09T00:46:00.895Z] [ERROR] /home/jenkins/workspace/KIE/7.59.x/daily-build-jdk11/daily-build-jdk11-pipeline-7.59.x/kie-wb-common/kie-wb-common-stunner/kie-wb-common-stunner-extensions/kie-wb-common-stunner-svg/kie-wb-common-stunner-svg-gen/src/main/java/org/kie/workbench/common/stunner/svg/gen/translator/css/SVGStyleTranslator.java:[216,63] cannot find symbol
      [2021-09-09T00:46:00.895Z] [ERROR]   symbol:   class CSSStyleDeclaration
      [2021-09-09T00:46:00.895Z] [ERROR]   location: class org.kie.workbench.common.stunner.svg.gen.translator.css.SVGStyleTranslator
      [2021-09-09T00:46:00.895Z] [ERROR] /home/jenkins/workspace/KIE/7.59.x/daily-build-jdk11/daily-build-jdk11-pipeline-7.59.x/kie-wb-common/kie-wb-common-stunner/kie-wb-common-stunner-extensions/kie-wb-common-stunner-svg/kie-wb-common-stunner-svg-gen/src/main/java/org/kie/workbench/common/stunner/svg/gen/translator/css/SVGStyleTranslator.java:[91,15] cannot find symbol
      [2021-09-09T00:46:00.895Z] [ERROR]   symbol:   class CSSRuleList
      [2021-09-09T00:46:00.895Z] [ERROR]   location: class org.kie.workbench.common.stunner.svg.gen.translator.css.SVGStyleTranslator
      [2021-09-09T00:46:00.896Z] [ERROR] /home/jenkins/workspace/KIE/7.59.x/daily-build-jdk11/daily-build-jdk11-pipeline-7.59.x/kie-wb-common/kie-wb-common-stunner/kie-wb-common-stunner-extensions/kie-wb-common-stunner-svg/kie-wb-common-stunner-svg-gen/src/main/java/org/kie/workbench/common/stunner/svg/gen/translator/css/SVGStyleTranslator.java:[91,43] cannot access org.w3c.dom.css.CSSStyleSheet
      [2021-09-09T00:46:00.896Z] [ERROR]   class file for org.w3c.dom.css.CSSStyleSheet not found
      [2021-09-09T00:46:00.896Z] [ERROR] /home/jenkins/workspace/KIE/7.59.x/daily-build-jdk11/daily-build-jdk11-pipeline-7.59.x/kie-wb-common/kie-wb-common-stunner/kie-wb-common-stunner-extensions/kie-wb-common-stunner-svg/kie-wb-common-stunner-svg-gen/src/main/java/org/kie/workbench/common/stunner/svg/gen/translator/css/SVGStyleTranslator.java:[94,19] cannot find symbol
      [2021-09-09T00:46:00.896Z] [ERROR]   symbol:   class CSSRule
      [2021-09-09T00:46:00.896Z] [ERROR]   location: class org.kie.workbench.common.stunner.svg.gen.translator.css.SVGStyleTranslator
      [2021-09-09T00:46:00.896Z] [ERROR] /home/jenkins/workspace/KIE/7.59.x/daily-build-jdk11/daily-build-jdk11-pipeline-7.59.x/kie-wb-common/kie-wb-common-stunner/kie-wb-common-stunner-extensions/kie-wb-common-stunner-svg/kie-wb-common-stunner-svg-gen/src/main/java/org/kie/workbench/common/stunner/svg/gen/translator/css/SVGStyleTranslator.java:[95,17] cannot find symbol
      [2021-09-09T00:46:00.896Z] [ERROR]   symbol:   variable CSSRule
      [2021-09-09T00:46:00.896Z] [ERROR]   location: class org.kie.workbench.common.stunner.svg.gen.translator.css.SVGStyleTranslator
      [2021-09-09T00:46:00.896Z] [ERROR] /home/jenkins/workspace/KIE/7.59.x/daily-build-jdk11/daily-build-jdk11-pipeline-7.59.x/kie-wb-common/kie-wb-common-stunner/kie-wb-common-stunner-extensions/kie-wb-common-stunner-svg/kie-wb-common-stunner-svg-gen/src/main/java/org/kie/workbench/common/stunner/svg/gen/translator/css/SVGStyleTranslator.java:[97,49] cannot access org.w3c.dom.css.CSSStyleRule
      [2021-09-09T00:46:00.896Z] [ERROR]   class file for org.w3c.dom.css.CSSStyleRule not found
      [2021-09-09T00:46:00.896Z] [ERROR] /home/jenkins/workspace/KIE/7.59.x/daily-build-jdk11/daily-build-jdk11-pipeline-7.59.x/kie-wb-common/kie-wb-common-stunner/kie-wb-common-stunner-extensions/kie-wb-common-stunner-svg/kie-wb-common-stunner-svg-gen/src/main/java/org/kie/workbench/common/stunner/svg/gen/translator/css/SVGStyleTranslator.java:[98,23] cannot find symbol
      [2021-09-09T00:46:00.896Z] [ERROR]   symbol:   class CSSStyleDeclaration
      [2021-09-09T00:46:00.896Z] [ERROR]   location: class org.kie.workbench.common.stunner.svg.gen.translator.css.SVGStyleTranslator
      [2021-09-09T00:46:00.896Z] [ERROR] /home/jenkins/workspace/KIE/7.59.x/daily-build-jdk11/daily-build-jdk11-pipeline-7.59.x/kie-wb-common/kie-wb-common-stunner/kie-wb-common-stunner-extensions/kie-wb-common-stunner-svg/kie-wb-common-stunner-svg-gen/src/main/java/org/kie/workbench/common/stunner/svg/gen/translator/css/SVGStyleTranslator.java:[187,15] cannot find symbol
      [2021-09-09T00:46:00.896Z] [ERROR]   symbol:   class CSSRuleList
      [2021-09-09T00:46:00.896Z] [ERROR]   location: class org.kie.workbench.common.stunner.svg.gen.translator.css.SVGStyleTranslator
      [2021-09-09T00:46:00.896Z] [ERROR] /home/jenkins/workspace/KIE/7.59.x/daily-build-jdk11/daily-build-jdk11-pipeline-7.59.x/kie-wb-common/kie-wb-common-stunner/kie-wb-common-stunner-extensions/kie-wb-common-stunner-svg/kie-wb-common-stunner-svg-gen/src/main/java/org/kie/workbench/common/stunner/svg/gen/translator/css/SVGStyleTranslator.java:[189,19] cannot find symbol
      [2021-09-09T00:46:00.896Z] [ERROR]   symbol:   class CSSRule
      [2021-09-09T00:46:00.896Z] [ERROR]   location: class org.kie.workbench.common.stunner.svg.gen.translator.css.SVGStyleTranslator
      [2021-09-09T00:46:00.896Z] [ERROR] /home/jenkins/workspace/KIE/7.59.x/daily-build-jdk11/daily-build-jdk11-pipeline-7.59.x/kie-wb-common/kie-wb-common-stunner/kie-wb-common-stunner-extensions/kie-wb-common-stunner-svg/kie-wb-common-stunner-svg-gen/src/main/java/org/kie/workbench/common/stunner/svg/gen/translator/css/SVGStyleTranslator.java:[190,17] cannot find symbol
      [2021-09-09T00:46:00.896Z] [ERROR]   symbol:   variable CSSRule
      [2021-09-09T00:46:00.896Z] [ERROR]   location: class org.kie.workbench.common.stunner.svg.gen.translator.css.SVGStyleTranslator
      [2021-09-09T00:46:00.896Z] [ERROR] /home/jenkins/workspace/KIE/7.59.x/daily-build-jdk11/daily-build-jdk11-pipeline-7.59.x/kie-wb-common/kie-wb-common-stunner/kie-wb-common-stunner-extensions/kie-wb-common-stunner-svg/kie-wb-common-stunner-svg-gen/src/main/java/org/kie/workbench/common/stunner/svg/gen/translator/css/SVGStyleTranslator.java:[192,23] cannot find symbol
      [2021-09-09T00:46:00.896Z] [ERROR]   symbol:   class CSSStyleDeclaration
      [2021-09-09T00:46:00.896Z] [ERROR]   location: class org.kie.workbench.common.stunner.svg.gen.translator.css.SVGStyleTranslator
      [2021-09-09T00:46:00.896Z] [ERROR] /home/jenkins/workspace/KIE/7.59.x/daily-build-jdk11/daily-build-jdk11-pipeline-7.59.x/kie-wb-common/kie-wb-common-stunner/kie-wb-common-stunner-extensions/kie-wb-common-stunner-svg/kie-wb-common-stunner-svg-gen/src/main/java/org/kie/workbench/common/stunner/svg/gen/translator/css/SVGStyleTranslator.java:[207,62] incompatible types: org.w3c.dom.css.CSSStyleSheet cannot be converted to com.steadystate.css.dom.CSSStyleSheetImpl
      [2021-09-09T00:46:00.896Z] [ERROR] -> [Help 1]
      [2021-09-09T00:46:00.896Z] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project kie-wb-common-stunner-svg-gen: Compilation failure
      [2021-09-09T00:46:00.896Z]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
      [2021-09-09T00:46:00.896Z]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
      [2021-09-09T00:46:00.896Z]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
      [2021-09-09T00:46:00.896Z]     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
      [2021-09-09T00:46:00.896Z]     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
      [2021-09-09T00:46:00.896Z]     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
      [2021-09-09T00:46:00.896Z]     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
      [2021-09-09T00:46:00.896Z]     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
      [2021-09-09T00:46:00.896Z]     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
      [2021-09-09T00:46:00.896Z]     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
      [2021-09-09T00:46:00.896Z]     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
      [2021-09-09T00:46:00.896Z]     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
      [2021-09-09T00:46:00.896Z]     at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
      [2021-09-09T00:46:00.896Z]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
      [2021-09-09T00:46:00.896Z]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
      [2021-09-09T00:46:00.896Z]     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
      [2021-09-09T00:46:00.896Z]     at java.lang.reflect.Method.invoke (Method.java:566)
      [2021-09-09T00:46:00.896Z]     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
      [2021-09-09T00:46:00.896Z]     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
      [2021-09-09T00:46:00.896Z]     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
      [2021-09-09T00:46:00.896Z]     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
      [2021-09-09T00:46:00.896Z] Caused by: org.apache.maven.plugin.compiler.CompilationFailureException: Compilation failure
      [2021-09-09T00:46:00.896Z]     at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:1220)
      [2021-09-09T00:46:00.896Z]     at org.apache.maven.plugin.compiler.CompilerMojo.execute (CompilerMojo.java:187)
      [2021-09-09T00:46:00.896Z]     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
      [2021-09-09T00:46:00.896Z]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
      [2021-09-09T00:46:00.896Z]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
      [2021-09-09T00:46:00.896Z]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
      [2021-09-09T00:46:00.896Z]     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
      [2021-09-09T00:46:00.896Z]     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
      [2021-09-09T00:46:00.896Z]     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
      [2021-09-09T00:46:00.896Z]     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
      [2021-09-09T00:46:00.896Z]     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
      [2021-09-09T00:46:00.896Z]     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
      [2021-09-09T00:46:00.896Z]     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
      [2021-09-09T00:46:00.896Z]     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
      [2021-09-09T00:46:00.896Z]     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
      [2021-09-09T00:46:00.896Z]     at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
      [2021-09-09T00:46:00.896Z]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
      [2021-09-09T00:46:00.896Z]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
      [2021-09-09T00:46:00.896Z]     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
      [2021-09-09T00:46:00.896Z]     at java.lang.reflect.Method.invoke (Method.java:566)
      [2021-09-09T00:46:00.896Z]     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
      [2021-09-09T00:46:00.896Z]     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
      [2021-09-09T00:46:00.896Z]     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
      [2021-09-09T00:46:00.896Z]     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
      [2021-09-09T00:46:00.896Z] [ERROR] 
      [2021-09-09T00:46:00.896Z] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [2021-09-09T00:46:00.896Z] [ERROR] 
      [2021-09-09T00:46:00.896Z] [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [2021-09-09T00:46:00.896Z] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
      [2021-09-09T00:46:00.896Z] [ERROR] 
      [2021-09-09T00:46:00.896Z] [ERROR] After correcting the problems, you can resume the build with the command
      [2021-09-09T00:46:00.896Z] [ERROR]   mvn <args> -rf :kie-wb-common-stunner-svg-gen
      

              kgaevski@redhat.com Kirill Gaevskii
              kgaevski@redhat.com Kirill Gaevskii
              Jozef Marko Jozef Marko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: