Uploaded image for project: 'PicketLink'
  1. PicketLink
  2. PLINK-781

Unable to compile PicketLink with Java 10

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • PLINK_2.5.3.Beta1, PLINK_2.7.1.Final
    • BUILD
    • None

      mvn clean install -DskipTests on redhat-picketlink using Java 10 results in the following error:

      ...
      [ERROR] COMPILATION ERROR : 
      [INFO] -------------------------------------------------------------
      [ERROR] java.lang.NoClassDefFoundError: com/sun/codemodel/internal/JType
        	at org.jboss.logging.processor.model.ClassModelFactory.implementation(ClassModelFactory.java:62)
        	at org.jboss.logging.processor.apt.ImplementationClassGenerator.processTypeElement(ImplementationClassGenerator.java:62)
        	at org.jboss.logging.processor.apt.LoggingToolsProcessor.process(LoggingToolsProcessor.java:155)
        	at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:964)
        	at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:881)
        	at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.access$2100(JavacProcessingEnvironment.java:110)
        	at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1202)
        	at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1311)
        	at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1250)
        	at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:928)
        	at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.lambda$doCall$0(JavacTaskImpl.java:100)
        	at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.handleExceptions(JavacTaskImpl.java:142)
        	at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:96)
        	at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:90)
        	at org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(JavaxToolsCompiler.java:125)
        	at org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile(JavacCompiler.java:169)
        	at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:825)
        	at org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:129)
        	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
        	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
        	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
        	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
        	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
        	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
        	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
        	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
        	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
        	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
        	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
        	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
        	at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
        	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
        	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
        Caused by: java.lang.ClassNotFoundException: com.sun.codemodel.internal.JType
        	at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:466)
        	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:566)
        	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
        	... 40 more
      [ERROR] java.lang.NoClassDefFoundError: com/sun/codemodel/internal/JType
        	at org.jboss.logging.processor.model.ClassModelFactory.implementation(ClassModelFactory.java:60)
        	at org.jboss.logging.processor.apt.ImplementationClassGenerator.processTypeElement(ImplementationClassGenerator.java:62)
        	at org.jboss.logging.processor.apt.LoggingToolsProcessor.process(LoggingToolsProcessor.java:155)
        	at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:964)
        	at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:881)
        	at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.access$2100(JavacProcessingEnvironment.java:110)
        	at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1202)
        	at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1311)
        	at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1250)
        	at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:928)
        	at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.lambda$doCall$0(JavacTaskImpl.java:100)
        	at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.handleExceptions(JavacTaskImpl.java:142)
        	at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:96)
        	at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:90)
        	at org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(JavaxToolsCompiler.java:125)
        	at org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile(JavacCompiler.java:169)
        	at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:825)
        	at org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:129)
        	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
        	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
        	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
        	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
        	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
        	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
        	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
        	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
        	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
        	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
        	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
        	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
        	at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
        	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
        	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
        Caused by: java.lang.ClassNotFoundException: com.sun.codemodel.internal.JType
        	at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:466)
        	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:566)
        	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
        	... 40 more
      ...
      [INFO] PicketLink Parent .................................. SUCCESS [  0.681 s]
      [INFO] PicketLink Build Configuration ..................... SUCCESS [  0.785 s]
      [INFO] PicketLink Common .................................. SUCCESS [  4.337 s]
      [INFO] PicketLink IDM Parent .............................. SUCCESS [  0.026 s]
      [INFO] PicketLink Identity Management API ................. FAILURE [  0.689 s]
      [INFO] PicketLink Identity Management Implementation ...... SKIPPED
      ...
      

      In a similar way, several tests in redhat-picketlink-bindings are affected:

      • SOAPSAMLXACMLServletUnitTestCase
        java.lang.NoClassDefFoundError: javax/xml/soap/SOAPException
      • RedirectBindingSignatureUtilTestCase
        java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
      • RedirectBindingUtilTestCase
        java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException

      It is not a regression. It may affect productization process in future.

      It is just compilation issue. PicketLink works in CD13 on Java 10.

              psilva@redhat.com Pedro Igor Craveiro
              thofman Tomas Hofman
              Ondrej Kotek Ondrej Kotek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: