(JDK11) NullPointerException

Description

> Task :izPackCreateInstaller
CLASSPATH element C:\Users\emmah\.gradle\caches\modules-2\files-2.1\com.sun.media\jai_imageio\1.1\5afbe66309ae30a3775537d63a13f617119ecc99\jai_imageio-1.1.pom is not a JAR.
CLASSPATH element C:\Users\emmah\.gradle\caches\modules-2\files-2.1\com.sun.media\jai_imageio\1.1\5afbe66309ae30a3775537d63a13f617119ecc99\jai_imageio-1.1.pom is not a JAR.

[ant:izpack] Exception in thread "Thread-165" java.lang.NullPointerException
[ant:izpack] at com.izforge.izpack.ant.IzpackAntRunnable.run(IzpackAntRunnable.java:82)
[ant:izpack] at java.base/java.lang.Thread.run(Thread.java:834)
[ant:izpack] Caused by: java.lang.NullPointerException
[ant:izpack] at com.izforge.izpack.util.IoHelper.copyStreamToJar(IoHelper.java:465)
[ant:izpack] at com.izforge.izpack.merge.jar.JarMerge.mergeImpl(JarMerge.java:217)
[ant:izpack] at com.izforge.izpack.merge.jar.JarMerge.merge(JarMerge.java:172)
[ant:izpack] at com.izforge.izpack.merge.MergeManagerImpl.merge(MergeManagerImpl.java:73)
[ant:izpack] at com.izforge.izpack.compiler.packager.impl.PackagerBase.writeSkeletonInstaller(PackagerBase.java:484)
[ant:izpack] at com.izforge.izpack.compiler.packager.impl.PackagerBase.writeInstaller(PackagerBase.java:407)
[ant:izpack] at com.izforge.izpack.compiler.packager.impl.PackagerBase.createInstaller(PackagerBase.java:354)
[ant:izpack] at com.izforge.izpack.compiler.Compiler.createInstaller(Compiler.java:161)
[ant:izpack] at com.izforge.izpack.compiler.CompilerConfig.executeCompiler(CompilerConfig.java:365)
[ant:izpack] at com.izforge.izpack.ant.IzpackAntRunnable.run(IzpackAntRunnable.java:78)
[ant:izpack] ... 1 more

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.

Environment

  • Openjdk version "11.0.7" 2020-04-14

  • Gradle 6.3

  • Window 10

Activity

Show:
Andrea Rizzini
June 25, 2020, 10:28 AM

Seems to be working when you specify a gradle configuration using full paths.

David Glasser
July 11, 2020, 12:21 AM

I’m not getting a NPE, but I’m seeing the warning that jai_imageio-1.1.pom is not a JAR. Is that to be expected? I’m using

  • Java(TM) SE Runtime Environment (build 1.8.0_152-b16)

  • Gradle 6.4,

  • izPack 5.1.3

Assignee

Unassigned

Reporter

Andrea Rizzini

Impact

Functional - may break existing environments

Components

Affects versions

Priority

Highest
Configure