You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2023/01/10 21:02:27 UTC

[Bug 66416] New: issue with ant-launcher 1.10.13 JPM module

https://bz.apache.org/bugzilla/show_bug.cgi?id=66416

            Bug ID: 66416
           Summary: issue with ant-launcher 1.10.13 JPM module
           Product: Ant
           Version: 1.10.13
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
          Assignee: notifications@ant.apache.org
          Reporter: fanningpj@yahoo.com
  Target Milestone: ---

When testing Apache POI with the ant 1.10.13 release, the build failed with
this error:

> Task :poi-excelant:test
        at
org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:415)
Error occurred during initialization of boot layer
        at
org.gradle.process.internal.worker.DefaultWorkerProcess.onProcessStop(DefaultWorkerProcess.java:145)
java.lang.module.FindException: Unable to derive module descriptor for
/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.ant/ant-launcher/1.10.13/331234763210702757a5780437844c6aef5d2bdf/ant-launcher-1.10.13.jar
        at
org.gradle.process.internal.worker.DefaultWorkerProcess.access$000(DefaultWorkerProcess.java:42)
Caused by: java.lang.module.InvalidModuleDescriptorException: allow.class found
in top-level directory (unnamed package not allowed in module)
        at
org.gradle.process.internal.worker.DefaultWorkerProcess$1.executionFinished(DefaultWorkerProcess.java:98)
Error occurred during initialization of boot layer

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 66416] issue with ant-launcher 1.10.13 JPM module

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66416

Jaikiran Pai <ja...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from Jaikiran Pai <ja...@apache.org> ---
Hello @PJ Fanning, could you tell us how you trigger/launch the Ant build? Is
there a project that is accessible (perhaps on github) that we can try to
reproduce this issue with?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 66416] issue with ant-launcher 1.10.13 JPM module

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66416

--- Comment #2 from Jaikiran Pai <ja...@apache.org> ---
I just realized that you are part of the Apache POI project. In future, would
there be a better way of informing the POI project of an upcoming Ant release
and having it tested against the POI project for any basic issues like this
one? The current Ant release 1.10.13 has had to do a change around the
SecurityManager setting for Java and given the nature of this change, we
expected there might be users who might run into issues. So we had been asking
users to test a pre-release version against their projects. Of course, those
discussions happened only on Ant's user and dev mailing lists. So I am just
checking if in future, there's a better way we can communicate with some of
well known projects that use Ant and have them test pre-release versions.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 66416] issue with ant-launcher 1.10.13 JPM module

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66416

Jaikiran Pai <ja...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 66416] issue with ant-launcher 1.10.13 JPM module

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66416

--- Comment #3 from PJ Fanning <fa...@yahoo.com> ---
Our Gradle build does not like the class called 'allow.class'. This is because
it will not accept classes that are not in the 'unnamed' package.

Archive:  ant-launcher-1.10.13.jar
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  01-04-2023 15:03   META-INF/
      154  01-04-2023 15:03   META-INF/MANIFEST.MF
        0  01-04-2023 15:01   org/
        0  01-04-2023 15:01   org/apache/
        0  01-04-2023 15:01   org/apache/tools/
        0  01-04-2023 15:01   org/apache/tools/ant/
        0  01-04-2023 15:01   org/apache/tools/ant/launch/
     4639  01-04-2023 15:01   allow.class
      212  01-04-2023 15:01   org/apache/tools/ant/launch/AntMain.class
      457  01-04-2023 15:01   org/apache/tools/ant/launch/LaunchException.class
    10428  01-04-2023 15:01   org/apache/tools/ant/launch/Launcher.class
     9741  01-04-2023 15:01   org/apache/tools/ant/launch/Locator.class
    15291  01-04-2023 15:00   META-INF/LICENSE.txt
      306  01-04-2023 15:00   META-INF/NOTICE.txt
      134  01-04-2023 15:03   META-INF/INDEX.LIST
---------                     -------
    41362                     15 files

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 66416] issue with ant-launcher 1.10.13 JPM module

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66416

Jaikiran Pai <ja...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |1.10.14

--- Comment #4 from Jaikiran Pai <ja...@apache.org> ---
The changes we had introduced in Ant 1.10.13, related to SecurityManager have
all been reverted. In the upcoming release of Ant, it will no longer
use/support Java SecurityManager when Ant is used in Java 18+ versions. This
should get us past all these issues.

It would be very helpful if you could try out our nightly build which contains
these fixes and see if it helps you with this issue
https://ci-builds.apache.org/job/Ant/job/Ant_Nightly/lastSuccessfulBuild/artifact/distribution/

-- 
You are receiving this mail because:
You are the assignee for the bug.