Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-19115

Platform Mail TCK tests fail on Java 21

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 32.0.0.Final
    • None
    • Mail
    • None
    • ---
    • ---

      The platform Mail TCK gets the following failure that needs to be investigated:

      populateMailbox:
      [java] java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
      [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:194)
      [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:891)
      [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:231)
      [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
      [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
      [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
      [java] at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      [java] at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
      [java] at org.apache.tools.ant.Task.perform(Task.java:350)
      [java] at org.apache.tools.ant.Target.execute(Target.java:449)
      [java] at org.apache.tools.ant.Target.performTasks(Target.java:470)
      [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
      [java] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36)
      [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1264)
      [java] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437)
      [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
      [java] at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      [java] at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
      [java] at org.apache.tools.ant.Task.perform(Task.java:350)
      [java] at org.apache.tools.ant.Target.execute(Target.java:449)
      [java] at org.apache.tools.ant.Target.performTasks(Target.java:470)
      [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
      [java] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36)
      [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1264)
      [java] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437)
      [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
      [java] at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      [java] at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
      [java] at org.apache.tools.ant.Task.perform(Task.java:350)
      [java] at org.apache.tools.ant.Target.execute(Target.java:449)
      [java] at org.apache.tools.ant.Target.performTasks(Target.java:470)
      [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
      [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1374)
      [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
      [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1264)
      [java] at org.apache.tools.ant.Main.runBuild(Main.java:818)
      [java] at org.apache.tools.ant.Main.startAnt(Main.java:223)
      [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
      [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)
      [java] Caused by: java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
      [java] at java.base/java.lang.System.setSecurityManager(System.java:429)
      [java] at org.apache.tools.ant.types.Permissions.setSecurityManager(Permissions.java:103)
      [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:216)
      [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:155)
      [java] ... 41 more
      [java] Java Result: -1
      [echo]
      [java] java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
      [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:194)
      [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:891)
      [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:231)
      [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
      [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
      [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
      [java] at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      [java] at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
      [java] at org.apache.tools.ant.Task.perform(Task.java:350)
      [java] at org.apache.tools.ant.Target.execute(Target.java:449)
      [java] at org.apache.tools.ant.Target.performTasks(Target.java:470)
      [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
      [java] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36)
      [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1264)
      [java] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437)
      [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
      [java] at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      [java] at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
      [java] at org.apache.tools.ant.Task.perform(Task.java:350)
      [java] at org.apache.tools.ant.Target.execute(Target.java:449)
      [java] at org.apache.tools.ant.Target.performTasks(Target.java:470)
      [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
      [java] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36)
      [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1264)
      [java] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437)
      [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
      [java] at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      [java] at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
      [java] at org.apache.tools.ant.Task.perform(Task.java:350)
      [java] at org.apache.tools.ant.Target.execute(Target.java:449)
      [java] at org.apache.tools.ant.Target.performTasks(Target.java:470)
      [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
      [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1374)
      [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
      [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1264)
      [java] at org.apache.tools.ant.Main.runBuild(Main.java:818)
      [java] at org.apache.tools.ant.Main.startAnt(Main.java:223)
      [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
      [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)
      [java] Caused by: java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
      [java] at java.base/java.lang.System.setSecurityManager(System.java:429)
      [java] at org.apache.tools.ant.types.Permissions.setSecurityManager(Permissions.java:103)
      [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:216)
      [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:155)
      [java] ... 41 more
      [java] Java Result: -1
      [echo]
      [java] java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
      [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:194)
      [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:891)
      [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:231)
      [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
      [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
      [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
      [java] at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      [java] at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
      [java] at org.apache.tools.ant.Task.perform(Task.java:350)
      [java] at org.apache.tools.ant.Target.execute(Target.java:449)
      [java] at org.apache.tools.ant.Target.performTasks(Target.java:470)
      [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
      [java] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36)
      [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1264)
      [java] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437)
      [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
      [java] at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      [java] at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
      [java] at org.apache.tools.ant.Task.perform(Task.java:350)
      [java] at org.apache.tools.ant.Target.execute(Target.java:449)
      [java] at org.apache.tools.ant.Target.performTasks(Target.java:470)
      [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
      [java] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36)
      [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1264)
      [java] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437)
      [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
      [java] at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      [java] at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
      [java] at org.apache.tools.ant.Task.perform(Task.java:350)
      [java] at org.apache.tools.ant.Target.execute(Target.java:449)
      [java] at org.apache.tools.ant.Target.performTasks(Target.java:470)
      [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
      [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1374)
      [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
      [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1264)
      [java] at org.apache.tools.ant.Main.runBuild(Main.java:818)
      [java] at org.apache.tools.ant.Main.startAnt(Main.java:223)
      [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
      [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)
      [java] Caused by: java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
      [java] at java.base/java.lang.System.setSecurityManager(System.java:429)
      [java] at org.apache.tools.ant.types.Permissions.setSecurityManager(Permissions.java:103)
      [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:216)
      [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:155)
      [java] ... 41 more
      [java] Java Result: -1

      At first glance, we need to add -DnoSecurityManager=true to the WildFly equivalent of the changes done for ts.jte mentioned in https://github.com/jakartaee/platform-tck/pull/1163/files#diff-638b2f9a66e195ddd8eaa6a4d16e1962cf28e61e33bbb4f7cc61bb19265594a0R1149.

      Or something like that.

            smarlow1@redhat.com Scott Marlow
            yborgess1@redhat.com Yeray Borges Santana
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: