Issues in ListServiceProvidersTest in build 136
1. NullPointerException in CLI execution for all permutaion and combinations between (CLI, ANT, JAVA_API) and (EXE, MSI, IMAGE)
2. AccessDeniedException
3. Error is "Bundler EXE Installer failed because of java.lang.NullPointerException in ANT execution"
each of the above exception along with parameters passed to Javapackager are listed below:
=========================================================
CLI EXECUTION STARTS
=========================================================
javapackager -deploy -verbose -outdir D:\TEMP\testBundlerWorkDir2313925209720144667\bundles -outfile test -native image --module-path D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\jdk-9\jmods;D:\TEMP\testBundlerWorkDir2313925209720144667\modjars --module com.shape.serviceinterface/com.shape.serviceinterface.ShapeMainClass -name ListServiceProvidersTest --add-modules com.shape.serviceinterface,com.shape.serviceprovider.circle,com.shape.serviceprovider.rectangle
javapackager -deploy -verbose -outdir D:\TEMP\testBundlerWorkDir2313925209720144667\bundles -outfile test -native exe --module-path D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\jdk-9\jmods;D:\TEMP\testBundlerWorkDir2313925209720144667\modjars --module com.shape.serviceinterface/com.shape.serviceinterface.ShapeMainClass -name ListServiceProvidersTest --add-modules com.shape.serviceinterface,com.shape.serviceprovider.circle,com.shape.serviceprovider.rectangle
javapackager -deploy -verbose -outdir D:\TEMP\testBundlerWorkDir2313925209720144667\bundles -outfile test -native msi --module-path D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\jdk-9\jmods;D:\TEMP\testBundlerWorkDir2313925209720144667\modjars --module com.shape.serviceinterface/com.shape.serviceinterface.ShapeMainClass -name ListServiceProvidersTest --add-modules com.shape.serviceinterfacecom.shape.serviceprovider.circlecom.shape.serviceprovider.rectangle
javapackager -deploy -verbose -outdir D:\TEMP\testBundlerWorkDir2671713176714501357\bundles -outfile test -native image --module-path D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\jdk-9\jmods;D:\TEMP\testBundlerWorkDir2671713176714501357\bin --module com.shape.serviceinterface/com.shape.serviceinterface.ShapeMainClass -name ListServiceProvidersTest --add-modules com.shape.serviceinterface,com.shape.serviceprovider.circle,com.shape.serviceprovider.rectangle
javapackager -deploy -verbose -outdir D:\TEMP\testBundlerWorkDir2671713176714501357\bundles -outfile test -native exe --module-path D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\jdk-9\jmods;D:\TEMP\testBundlerWorkDir2671713176714501357\bin --module com.shape.serviceinterface/com.shape.serviceinterface.ShapeMainClass -name ListServiceProvidersTest--add-modules com.shape.serviceinterface,com.shape.serviceprovider.circle,com.shape.serviceprovider.rectangle
javapackager -deploy -verbose -outdir D:\TEMP\testBundlerWorkDir2671713176714501357\bundles -outfile test -native msi --module-path D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\jdk-9\jmods;D:\TEMP\testBundlerWorkDir2671713176714501357\bin --module com.shape.serviceinterface/com.shape.serviceinterface.ShapeMainClass -name ListServiceProvidersTest --add-modules com.shape.serviceinterface,com.shape.serviceprovider.circle,com.shape.serviceprovider.rectangle
javapackager -deploy -verbose -outdir D:\TEMP\testBundlerWorkDir1385134625408278395\bundles -outfile test -native image --module-path D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\jdk-9\jmods;D:\TEMP\testBundlerWorkDir1385134625408278395\jmods --module com.shape.serviceinterface/com.shape.serviceinterface.ShapeMainClass -name ListServiceProvidersTest --add-modules com.shape.serviceinterface,com.shape.serviceprovider.circle,com.shape.serviceprovider.rectangle
==============================================
CLI FAILURE LOG
==============================================
[STDERR]: Exception in thread "main" java.lang.NullPointerException
[STDERR]: at com.sun.javafx.tools.packager.Main.main(jdk.packager@9-ea/Main.java:341)
Sep 19 2016 2:29:32 PM com.oracle.appbundlers.utils.Utils runCommand
All the above CLI commands are throwing NullPointerException
=========================================================
ANT EXECUTION STARTS
=========================================================
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project xmlns:fx="javafx:com.sun.javafx.tools.ant" default="fx-deploy">
<taskdef classpath="D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\j
dk-9\lib\ant-javafx.jar" resource="com/sun/javafx/tools/ant/antlib.xml" uri="javafx:com.sun.javafx.t
ools.ant"/>
<target name="fx-deploy">
<fx:deploy nativeBundles="image" outdir="D:\TEMP\testBundlerWorkDir2313925209720144667\bundl
es" outfile="test" verbose="true">
<fx:platform/>
<fx:resources/>
<fx:preferences/>
<fx:application mainClass="com.shape.serviceinterface.ShapeMainClass" module="com.shape.
serviceinterface" name="ListServiceProvidersTest"/>
<fx:info/>
<fx:runtime>
<fx:module-path value="D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_wi
ndows-x64_bin\jdk-9\jmods;D:\TEMP\testBundlerWorkDir2313925209720144667\modjars"/>
<fx:add-modules value="com.shape.serviceinterface,com.shape.serviceprovider.circle,c
om.shape.serviceprovider.rectangle"/>
</fx:runtime>
</fx:deploy>
</target>
</project>
Sep 19, 2016 2:29:39 PM com.oracle.appbundlers.utils.Utils runCommand
INFO: Running command: [ant.bat, -f, D:\TEMP\build.xml]
[STDOUT]: Buildfile: D:\TEMP\build.xml
[STDOUT]:
[STDOUT]: fx-deploy:
[STDOUT]: Creating app bundle: ListServiceProvidersTest in D:\TEMP\testBundlerWorkDir231392520972014
4667\bundles
[STDOUT]: "Adding modules: [com.shape.serviceinterface, com.shape.serviceprovider.circle, com.shape.
serviceprovider.rectangle] to runtime image."
[STDOUT]: Exception: jdk.tools.jlink.plugin.PluginException: java.io.IOException: java.io.UncheckedI
OException: java.nio.file.AccessDeniedException: D:\TEMP\testBundlerWorkDir2313925209720144667\bundl
es\ListServiceProvidersTest\runtime\bin
[STDERR]:
[STDERR]: BUILD FAILED
[STDERR]: D:\TEMP\build.xml:5: Error: Bundler "Windows Application Image" (windows.app) failed to pr
oduce a bundle.
[STDERR]:
[STDERR]: Total time: 3 seconds
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project xmlns:fx="javafx:com.sun.javafx.tools.ant" default="fx-deploy">
<taskdef classpath="D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\j
dk-9\lib\ant-javafx.jar" resource="com/sun/javafx/tools/ant/antlib.xml" uri="javafx:com.sun.javafx.t
ools.ant"/>
<target name="fx-deploy">
<fx:deploy nativeBundles="image" outdir="D:\TEMP\testBundlerWorkDir2671713176714501357\bundl
es" outfile="test" verbose="true">
<fx:platform/>
<fx:resources/>
<fx:preferences/>
<fx:application mainClass="com.shape.serviceinterface.ShapeMainClass" module="com.shape.
serviceinterface" name="ListServiceProvidersTest"/>
<fx:info/>
<fx:runtime>
<fx:module-path value="D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_wi
ndows-x64_bin\jdk-9\jmods;D:\TEMP\testBundlerWorkDir2671713176714501357\bin"/>
<fx:add-modules value="com.shape.serviceinterface,com.shape.serviceprovider.circle,c
om.shape.serviceprovider.rectangle"/>
</fx:runtime>
</fx:deploy>
</target>
</project>
Sep 19, 2016 2:30:14 PM com.oracle.appbundlers.utils.Utils runCommand
INFO: Running command: [ant.bat, -f, D:\TEMP\build.xml]
[STDOUT]: Buildfile: D:\TEMP\build.xml
[STDOUT]:
[STDOUT]: fx-deploy:
[STDOUT]: Creating app bundle: ListServiceProvidersTest in D:\TEMP\testBundlerWorkDir267171317671450
1357\bundles
[STDOUT]: "Adding modules: [com.shape.serviceinterface, com.shape.serviceprovider.circle, com.shape.
serviceprovider.rectangle] to runtime image."
[STDOUT]: [Exception: jdk.tools.jlink.plugin.PluginException: java.io.IOException: java.io.Unchecked
IOException: java.nio.file.AccessDeniedException: D:\TEMP\testBundlerWorkDir2671713176714501357\bund
les\ListServiceProvidersTest\runtime\bin
STDERR]:
[STDERR]: BUILD FAILED
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project xmlns:fx="javafx:com.sun.javafx.tools.ant" default="fx-deploy">
<taskdef classpath="D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\j
dk-9\lib\ant-javafx.jar" resource="com/sun/javafx/tools/ant/antlib.xml" uri="javafx:com.sun.javafx.t
ools.ant"/>
<target name="fx-deploy">
<fx:deploy nativeBundles="image" outdir="D:\TEMP\testBundlerWorkDir1385134625408278395\bundl
es" outfile="test" verbose="true">
<fx:platform/>
<fx:resources/>
<fx:preferences/>
<fx:application mainClass="com.shape.serviceinterface.ShapeMainClass" module="com.shape.
serviceinterface" name="ListServiceProvidersTest"/>
<fx:info/>
<fx:runtime>
<fx:module-path value="D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_wi
ndows-x64_bin\jdk-9\jmods;D:\TEMP\testBundlerWorkDir1385134625408278395\jmods"/>
<fx:add-modules value="com.shape.serviceinterface,com.shape.serviceprovider.circle,c
om.shape.serviceprovider.rectangle"/>
</fx:runtime>
</fx:deploy>
</target>
</project>
Sep 19, 2016 2:31:08 PM com.oracle.appbundlers.utils.Utils runCommand
INFO: Running command: [ant.bat, -f, D:\TEMP\build.xml]
[STDOUT]: Buildfile: D:\TEMP\build.xml
[STDOUT]:
[STDOUT]: fx-deploy:
[STDOUT]: Creating app bundle: ListServiceProvidersTest in D:\TEMP\testBundlerWorkDir138513462540827
8395\bundles
[STDOUT]: "Adding modules: [com.shape.serviceinterface, com.shape.serviceprovider.circle, com.shape.
serviceprovider.rectangle] to runtime image."
[STDERR]:
[STDERR]: BUILD FAILED
[[STDOUT]: Exception: jdk.tools.jlink.plugin.PluginException: java.io.IOException: java.io.Unchecked
IOException: java.nio.file.AccessDeniedException: D:\TEMP\testBundlerWorkDir1385134625408278395\bund
les\ListServiceProvidersTest\runtime\bin
STDERR]: D:\TEMP\build.xml:5: Error: Bundler "Windows Application Image" (windows.app) failed to pro
duce a bundle.
===========================================================================================================
ACCESS DENIED EXCEPTION
===========================================================================================================
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project xmlns:fx="javafx:com.sun.javafx.tools.ant" default="fx-deploy">
<taskdef classpath="D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\j
dk-9\lib\ant-javafx.jar" resource="com/sun/javafx/tools/ant/antlib.xml" uri="javafx:com.sun.javafx.t
ools.ant"/>
<target name="fx-deploy">
<fx:deploy nativeBundles="exe" outdir="D:\TEMP\testBundlerWorkDir2671713176714501357\bundles
" outfile="test" verbose="true">
<fx:platform/>
<fx:resources/>
<fx:preferences/>
<fx:application mainClass="com.shape.serviceinterface.ShapeMainClass" module="com.shape.
serviceinterface" name="ListServiceProvidersTest"/>
<fx:info/>
<fx:runtime>
<fx:module-path value="D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_wi
ndows-x64_bin\jdk-9\jmods;D:\TEMP\testBundlerWorkDir2671713176714501357\bin"/>
<fx:add-modules value="com.shape.serviceinterface,com.shape.serviceprovider.circle,c
om.shape.serviceprovider.rectangle"/>
</fx:runtime>
</fx:deploy>
</target>
</project>
Sep 19, 2016 2:30:19 PM com.oracle.appbundlers.utils.Utils runCommand
INFO: Running command: [ant.bat, -f, D:\TEMP\build.xml]
[STDOUT]: Buildfile: D:\TEMP\build.xml
[STDOUT]:
[STDOUT]: fx-deploy:
[STDOUT]: "Adding modules: [com.shape.serviceinterface, com.shape.serviceprovider.circle, com.shape.
serviceprovider.rectangle] to runtime image."
[STDOUT]: Kept working directory for debug: D:\TEMP\fxbundler3517408743144440626\images\win-exe.imag
e
[STDOUT]: Bundler EXE Installer failed because of java.lang.NullPointerException
[STDOUT]:
[STDOUT]: BUILD SUCCESSFUL
[STDOUT]: Total time: 4 seconds
=================================================================================
JAVA_API ISSUES
=================================================================================
Null Pointer Exception in JAVA-API
1. INFO: Starting test "com.oracle.appbundlers.tests.functionality.jdk9test.ListServiceProvidersTest::r
unTest$JAVA-API-ModularJar-exe".
params are {module-path=D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\j
dk-9\jmods;D:\TEMP\testBundlerWorkDir65283242026784720\modjars, appResources=RelativeFileSet{basedir
:D:\TEMP\testBundlerWorkDir65283242026784720\modjars, files:[com.shape.serviceprovider.circle.jar, c
om.shape.serviceprovider.rectangle.jar, com.shape.serviceinterface.jar]}, module=com.shape.servicein
terface/com.shape.serviceinterface.ShapeMainClass}
Running [D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\jdk-9\bin\java,
-version]
Sep 19, 2016 5:45:59 PM com.oracle.appbundlers.tests.functionality.TestBase runTest
SEVERE: Configuration error: com.oracle.tools.packager.ConfigException: java.lang.NullPointerExcepti
on.
FAILED: runTest(JAVA-API-ModularJar-exe)
com.oracle.tools.packager.ConfigException: java.lang.NullPointerException
at com.oracle.tools.packager.windows.WinExeBundler.validate(jdk.packager@9-ea/WinExeBundler.
java:288)
at com.oracle.appbundlers.utils.JavaApiBundlingManager.validate(JavaApiBundlingManager.java:
36)
at com.oracle.appbundlers.tests.functionality.TestBase.validate(TestBase.java:304)
at com.oracle.appbundlers.tests.functionality.TestBase.runTest(TestBase.java:192)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorI
mpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodA
ccessorImpl.java:43)
at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:535)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
2. INFO: Starting test "com.oracle.appbundlers.tests.functionality.jdk9test.ListServiceProvidersTest::r
unTest$JAVA-API-ExplodedModules-exe".
params are {module-path=D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\j
dk-9\jmods;D:\TEMP\testBundlerWorkDir6597633561256789136\bin, appResources=RelativeFileSet{basedir:D
:\TEMP\testBundlerWorkDir6597633561256789136\bin, files:[com.shape.serviceinterface, com.shape.servi
ceprovider.circle, com.shape.serviceprovider.rectangle]}, module=com.shape.serviceinterface/com.shap
e.serviceinterface.ShapeMainClass}
Running [D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\jdk-9\bin\java,
-version]
Sep 19, 2016 5:45:59 PM com.oracle.appbundlers.tests.functionality.TestBase runTest
SEVERE: Configuration error: com.oracle.tools.packager.ConfigException: java.lang.NullPointerExcepti
on.
FAILED: runTest(JAVA-API-ExplodedModules-exe)
com.oracle.tools.packager.ConfigException: java.lang.NullPointerException
at com.oracle.tools.packager.windows.WinExeBundler.validate(jdk.packager@9-ea/WinExeBundler.
java:288)
at com.oracle.appbundlers.utils.JavaApiBundlingManager.validate(JavaApiBundlingManager.java:
36)
at com.oracle.appbundlers.tests.functionality.TestBase.validate(TestBase.java:304)
at com.oracle.appbundlers.tests.functionality.TestBase.runTest(TestBase.java:192)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorI
mpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodA
ccessorImpl.java:43)
at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:535)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
3. INFO: Starting test "com.oracle.appbundlers.tests.functionality.jdk9test.ListServiceProvidersTest::r
unTest$JAVA-API-Jmods-exe".
params are {module-path=D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\j
dk-9\jmods;D:\TEMP\testBundlerWorkDir8560979128597753772\jmods, appResources=RelativeFileSet{basedir
:D:\TEMP\testBundlerWorkDir8560979128597753772\jmods, files:[com.shape.serviceinterface.jmod, com.sh
ape.serviceprovider.circle.jmod, com.shape.serviceprovider.rectangle.jmod]}, module=com.shape.servic
einterface/com.shape.serviceinterface.ShapeMainClass}
Running [D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\jdk-9\bin\java,
-version]
Sep 19, 2016 5:46:00 PM com.oracle.appbundlers.tests.functionality.TestBase runTest
SEVERE: Configuration error: com.oracle.tools.packager.ConfigException: java.lang.NullPointerExcepti
on.
FAILED: runTest(JAVA-API-Jmods-exe)
com.oracle.tools.packager.ConfigException: java.lang.NullPointerException
at com.oracle.tools.packager.windows.WinExeBundler.validate(jdk.packager@9-ea/WinExeBundler.
java:288)
at com.oracle.appbundlers.utils.JavaApiBundlingManager.validate(JavaApiBundlingManager.java:
36)
at com.oracle.appbundlers.tests.functionality.TestBase.validate(TestBase.java:304)
at com.oracle.appbundlers.tests.functionality.TestBase.runTest(TestBase.java:192)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorI
mpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodA
ccessorImpl.java:43)
at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:535)
1. NullPointerException in CLI execution for all permutaion and combinations between (CLI, ANT, JAVA_API) and (EXE, MSI, IMAGE)
2. AccessDeniedException
3. Error is "Bundler EXE Installer failed because of java.lang.NullPointerException in ANT execution"
each of the above exception along with parameters passed to Javapackager are listed below:
=========================================================
CLI EXECUTION STARTS
=========================================================
javapackager -deploy -verbose -outdir D:\TEMP\testBundlerWorkDir2313925209720144667\bundles -outfile test -native image --module-path D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\jdk-9\jmods;D:\TEMP\testBundlerWorkDir2313925209720144667\modjars --module com.shape.serviceinterface/com.shape.serviceinterface.ShapeMainClass -name ListServiceProvidersTest --add-modules com.shape.serviceinterface,com.shape.serviceprovider.circle,com.shape.serviceprovider.rectangle
javapackager -deploy -verbose -outdir D:\TEMP\testBundlerWorkDir2313925209720144667\bundles -outfile test -native exe --module-path D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\jdk-9\jmods;D:\TEMP\testBundlerWorkDir2313925209720144667\modjars --module com.shape.serviceinterface/com.shape.serviceinterface.ShapeMainClass -name ListServiceProvidersTest --add-modules com.shape.serviceinterface,com.shape.serviceprovider.circle,com.shape.serviceprovider.rectangle
javapackager -deploy -verbose -outdir D:\TEMP\testBundlerWorkDir2313925209720144667\bundles -outfile test -native msi --module-path D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\jdk-9\jmods;D:\TEMP\testBundlerWorkDir2313925209720144667\modjars --module com.shape.serviceinterface/com.shape.serviceinterface.ShapeMainClass -name ListServiceProvidersTest --add-modules com.shape.serviceinterfacecom.shape.serviceprovider.circlecom.shape.serviceprovider.rectangle
javapackager -deploy -verbose -outdir D:\TEMP\testBundlerWorkDir2671713176714501357\bundles -outfile test -native image --module-path D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\jdk-9\jmods;D:\TEMP\testBundlerWorkDir2671713176714501357\bin --module com.shape.serviceinterface/com.shape.serviceinterface.ShapeMainClass -name ListServiceProvidersTest --add-modules com.shape.serviceinterface,com.shape.serviceprovider.circle,com.shape.serviceprovider.rectangle
javapackager -deploy -verbose -outdir D:\TEMP\testBundlerWorkDir2671713176714501357\bundles -outfile test -native exe --module-path D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\jdk-9\jmods;D:\TEMP\testBundlerWorkDir2671713176714501357\bin --module com.shape.serviceinterface/com.shape.serviceinterface.ShapeMainClass -name ListServiceProvidersTest--add-modules com.shape.serviceinterface,com.shape.serviceprovider.circle,com.shape.serviceprovider.rectangle
javapackager -deploy -verbose -outdir D:\TEMP\testBundlerWorkDir2671713176714501357\bundles -outfile test -native msi --module-path D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\jdk-9\jmods;D:\TEMP\testBundlerWorkDir2671713176714501357\bin --module com.shape.serviceinterface/com.shape.serviceinterface.ShapeMainClass -name ListServiceProvidersTest --add-modules com.shape.serviceinterface,com.shape.serviceprovider.circle,com.shape.serviceprovider.rectangle
javapackager -deploy -verbose -outdir D:\TEMP\testBundlerWorkDir1385134625408278395\bundles -outfile test -native image --module-path D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\jdk-9\jmods;D:\TEMP\testBundlerWorkDir1385134625408278395\jmods --module com.shape.serviceinterface/com.shape.serviceinterface.ShapeMainClass -name ListServiceProvidersTest --add-modules com.shape.serviceinterface,com.shape.serviceprovider.circle,com.shape.serviceprovider.rectangle
==============================================
CLI FAILURE LOG
==============================================
[STDERR]: Exception in thread "main" java.lang.NullPointerException
[STDERR]: at com.sun.javafx.tools.packager.Main.main(jdk.packager@9-ea/Main.java:341)
Sep 19 2016 2:29:32 PM com.oracle.appbundlers.utils.Utils runCommand
All the above CLI commands are throwing NullPointerException
=========================================================
ANT EXECUTION STARTS
=========================================================
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project xmlns:fx="javafx:com.sun.javafx.tools.ant" default="fx-deploy">
<taskdef classpath="D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\j
dk-9\lib\ant-javafx.jar" resource="com/sun/javafx/tools/ant/antlib.xml" uri="javafx:com.sun.javafx.t
ools.ant"/>
<target name="fx-deploy">
<fx:deploy nativeBundles="image" outdir="D:\TEMP\testBundlerWorkDir2313925209720144667\bundl
es" outfile="test" verbose="true">
<fx:platform/>
<fx:resources/>
<fx:preferences/>
<fx:application mainClass="com.shape.serviceinterface.ShapeMainClass" module="com.shape.
serviceinterface" name="ListServiceProvidersTest"/>
<fx:info/>
<fx:runtime>
<fx:module-path value="D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_wi
ndows-x64_bin\jdk-9\jmods;D:\TEMP\testBundlerWorkDir2313925209720144667\modjars"/>
<fx:add-modules value="com.shape.serviceinterface,com.shape.serviceprovider.circle,c
om.shape.serviceprovider.rectangle"/>
</fx:runtime>
</fx:deploy>
</target>
</project>
Sep 19, 2016 2:29:39 PM com.oracle.appbundlers.utils.Utils runCommand
INFO: Running command: [ant.bat, -f, D:\TEMP\build.xml]
[STDOUT]: Buildfile: D:\TEMP\build.xml
[STDOUT]:
[STDOUT]: fx-deploy:
[STDOUT]: Creating app bundle: ListServiceProvidersTest in D:\TEMP\testBundlerWorkDir231392520972014
4667\bundles
[STDOUT]: "Adding modules: [com.shape.serviceinterface, com.shape.serviceprovider.circle, com.shape.
serviceprovider.rectangle] to runtime image."
[STDOUT]: Exception: jdk.tools.jlink.plugin.PluginException: java.io.IOException: java.io.UncheckedI
OException: java.nio.file.AccessDeniedException: D:\TEMP\testBundlerWorkDir2313925209720144667\bundl
es\ListServiceProvidersTest\runtime\bin
[STDERR]:
[STDERR]: BUILD FAILED
[STDERR]: D:\TEMP\build.xml:5: Error: Bundler "Windows Application Image" (windows.app) failed to pr
oduce a bundle.
[STDERR]:
[STDERR]: Total time: 3 seconds
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project xmlns:fx="javafx:com.sun.javafx.tools.ant" default="fx-deploy">
<taskdef classpath="D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\j
dk-9\lib\ant-javafx.jar" resource="com/sun/javafx/tools/ant/antlib.xml" uri="javafx:com.sun.javafx.t
ools.ant"/>
<target name="fx-deploy">
<fx:deploy nativeBundles="image" outdir="D:\TEMP\testBundlerWorkDir2671713176714501357\bundl
es" outfile="test" verbose="true">
<fx:platform/>
<fx:resources/>
<fx:preferences/>
<fx:application mainClass="com.shape.serviceinterface.ShapeMainClass" module="com.shape.
serviceinterface" name="ListServiceProvidersTest"/>
<fx:info/>
<fx:runtime>
<fx:module-path value="D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_wi
ndows-x64_bin\jdk-9\jmods;D:\TEMP\testBundlerWorkDir2671713176714501357\bin"/>
<fx:add-modules value="com.shape.serviceinterface,com.shape.serviceprovider.circle,c
om.shape.serviceprovider.rectangle"/>
</fx:runtime>
</fx:deploy>
</target>
</project>
Sep 19, 2016 2:30:14 PM com.oracle.appbundlers.utils.Utils runCommand
INFO: Running command: [ant.bat, -f, D:\TEMP\build.xml]
[STDOUT]: Buildfile: D:\TEMP\build.xml
[STDOUT]:
[STDOUT]: fx-deploy:
[STDOUT]: Creating app bundle: ListServiceProvidersTest in D:\TEMP\testBundlerWorkDir267171317671450
1357\bundles
[STDOUT]: "Adding modules: [com.shape.serviceinterface, com.shape.serviceprovider.circle, com.shape.
serviceprovider.rectangle] to runtime image."
[STDOUT]: [Exception: jdk.tools.jlink.plugin.PluginException: java.io.IOException: java.io.Unchecked
IOException: java.nio.file.AccessDeniedException: D:\TEMP\testBundlerWorkDir2671713176714501357\bund
les\ListServiceProvidersTest\runtime\bin
STDERR]:
[STDERR]: BUILD FAILED
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project xmlns:fx="javafx:com.sun.javafx.tools.ant" default="fx-deploy">
<taskdef classpath="D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\j
dk-9\lib\ant-javafx.jar" resource="com/sun/javafx/tools/ant/antlib.xml" uri="javafx:com.sun.javafx.t
ools.ant"/>
<target name="fx-deploy">
<fx:deploy nativeBundles="image" outdir="D:\TEMP\testBundlerWorkDir1385134625408278395\bundl
es" outfile="test" verbose="true">
<fx:platform/>
<fx:resources/>
<fx:preferences/>
<fx:application mainClass="com.shape.serviceinterface.ShapeMainClass" module="com.shape.
serviceinterface" name="ListServiceProvidersTest"/>
<fx:info/>
<fx:runtime>
<fx:module-path value="D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_wi
ndows-x64_bin\jdk-9\jmods;D:\TEMP\testBundlerWorkDir1385134625408278395\jmods"/>
<fx:add-modules value="com.shape.serviceinterface,com.shape.serviceprovider.circle,c
om.shape.serviceprovider.rectangle"/>
</fx:runtime>
</fx:deploy>
</target>
</project>
Sep 19, 2016 2:31:08 PM com.oracle.appbundlers.utils.Utils runCommand
INFO: Running command: [ant.bat, -f, D:\TEMP\build.xml]
[STDOUT]: Buildfile: D:\TEMP\build.xml
[STDOUT]:
[STDOUT]: fx-deploy:
[STDOUT]: Creating app bundle: ListServiceProvidersTest in D:\TEMP\testBundlerWorkDir138513462540827
8395\bundles
[STDOUT]: "Adding modules: [com.shape.serviceinterface, com.shape.serviceprovider.circle, com.shape.
serviceprovider.rectangle] to runtime image."
[STDERR]:
[STDERR]: BUILD FAILED
[[STDOUT]: Exception: jdk.tools.jlink.plugin.PluginException: java.io.IOException: java.io.Unchecked
IOException: java.nio.file.AccessDeniedException: D:\TEMP\testBundlerWorkDir1385134625408278395\bund
les\ListServiceProvidersTest\runtime\bin
STDERR]: D:\TEMP\build.xml:5: Error: Bundler "Windows Application Image" (windows.app) failed to pro
duce a bundle.
===========================================================================================================
ACCESS DENIED EXCEPTION
===========================================================================================================
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project xmlns:fx="javafx:com.sun.javafx.tools.ant" default="fx-deploy">
<taskdef classpath="D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\j
dk-9\lib\ant-javafx.jar" resource="com/sun/javafx/tools/ant/antlib.xml" uri="javafx:com.sun.javafx.t
ools.ant"/>
<target name="fx-deploy">
<fx:deploy nativeBundles="exe" outdir="D:\TEMP\testBundlerWorkDir2671713176714501357\bundles
" outfile="test" verbose="true">
<fx:platform/>
<fx:resources/>
<fx:preferences/>
<fx:application mainClass="com.shape.serviceinterface.ShapeMainClass" module="com.shape.
serviceinterface" name="ListServiceProvidersTest"/>
<fx:info/>
<fx:runtime>
<fx:module-path value="D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_wi
ndows-x64_bin\jdk-9\jmods;D:\TEMP\testBundlerWorkDir2671713176714501357\bin"/>
<fx:add-modules value="com.shape.serviceinterface,com.shape.serviceprovider.circle,c
om.shape.serviceprovider.rectangle"/>
</fx:runtime>
</fx:deploy>
</target>
</project>
Sep 19, 2016 2:30:19 PM com.oracle.appbundlers.utils.Utils runCommand
INFO: Running command: [ant.bat, -f, D:\TEMP\build.xml]
[STDOUT]: Buildfile: D:\TEMP\build.xml
[STDOUT]:
[STDOUT]: fx-deploy:
[STDOUT]: "Adding modules: [com.shape.serviceinterface, com.shape.serviceprovider.circle, com.shape.
serviceprovider.rectangle] to runtime image."
[STDOUT]: Kept working directory for debug: D:\TEMP\fxbundler3517408743144440626\images\win-exe.imag
e
[STDOUT]: Bundler EXE Installer failed because of java.lang.NullPointerException
[STDOUT]:
[STDOUT]: BUILD SUCCESSFUL
[STDOUT]: Total time: 4 seconds
=================================================================================
JAVA_API ISSUES
=================================================================================
Null Pointer Exception in JAVA-API
1. INFO: Starting test "com.oracle.appbundlers.tests.functionality.jdk9test.ListServiceProvidersTest::r
unTest$JAVA-API-ModularJar-exe".
params are {module-path=D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\j
dk-9\jmods;D:\TEMP\testBundlerWorkDir65283242026784720\modjars, appResources=RelativeFileSet{basedir
:D:\TEMP\testBundlerWorkDir65283242026784720\modjars, files:[com.shape.serviceprovider.circle.jar, c
om.shape.serviceprovider.rectangle.jar, com.shape.serviceinterface.jar]}, module=com.shape.servicein
terface/com.shape.serviceinterface.ShapeMainClass}
Running [D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\jdk-9\bin\java,
-version]
Sep 19, 2016 5:45:59 PM com.oracle.appbundlers.tests.functionality.TestBase runTest
SEVERE: Configuration error: com.oracle.tools.packager.ConfigException: java.lang.NullPointerExcepti
on.
FAILED: runTest(JAVA-API-ModularJar-exe)
com.oracle.tools.packager.ConfigException: java.lang.NullPointerException
at com.oracle.tools.packager.windows.WinExeBundler.validate(jdk.packager@9-ea/WinExeBundler.
java:288)
at com.oracle.appbundlers.utils.JavaApiBundlingManager.validate(JavaApiBundlingManager.java:
36)
at com.oracle.appbundlers.tests.functionality.TestBase.validate(TestBase.java:304)
at com.oracle.appbundlers.tests.functionality.TestBase.runTest(TestBase.java:192)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorI
mpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodA
ccessorImpl.java:43)
at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:535)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
2. INFO: Starting test "com.oracle.appbundlers.tests.functionality.jdk9test.ListServiceProvidersTest::r
unTest$JAVA-API-ExplodedModules-exe".
params are {module-path=D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\j
dk-9\jmods;D:\TEMP\testBundlerWorkDir6597633561256789136\bin, appResources=RelativeFileSet{basedir:D
:\TEMP\testBundlerWorkDir6597633561256789136\bin, files:[com.shape.serviceinterface, com.shape.servi
ceprovider.circle, com.shape.serviceprovider.rectangle]}, module=com.shape.serviceinterface/com.shap
e.serviceinterface.ShapeMainClass}
Running [D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\jdk-9\bin\java,
-version]
Sep 19, 2016 5:45:59 PM com.oracle.appbundlers.tests.functionality.TestBase runTest
SEVERE: Configuration error: com.oracle.tools.packager.ConfigException: java.lang.NullPointerExcepti
on.
FAILED: runTest(JAVA-API-ExplodedModules-exe)
com.oracle.tools.packager.ConfigException: java.lang.NullPointerException
at com.oracle.tools.packager.windows.WinExeBundler.validate(jdk.packager@9-ea/WinExeBundler.
java:288)
at com.oracle.appbundlers.utils.JavaApiBundlingManager.validate(JavaApiBundlingManager.java:
36)
at com.oracle.appbundlers.tests.functionality.TestBase.validate(TestBase.java:304)
at com.oracle.appbundlers.tests.functionality.TestBase.runTest(TestBase.java:192)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorI
mpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodA
ccessorImpl.java:43)
at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:535)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
3. INFO: Starting test "com.oracle.appbundlers.tests.functionality.jdk9test.ListServiceProvidersTest::r
unTest$JAVA-API-Jmods-exe".
params are {module-path=D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\j
dk-9\jmods;D:\TEMP\testBundlerWorkDir8560979128597753772\jmods, appResources=RelativeFileSet{basedir
:D:\TEMP\testBundlerWorkDir8560979128597753772\jmods, files:[com.shape.serviceinterface.jmod, com.sh
ape.serviceprovider.circle.jmod, com.shape.serviceprovider.rectangle.jmod]}, module=com.shape.servic
einterface/com.shape.serviceinterface.ShapeMainClass}
Running [D:\Downloads\jdk-9-ea+136_windows-x64_bin.tar\jdk-9-ea+136_windows-x64_bin\jdk-9\bin\java,
-version]
Sep 19, 2016 5:46:00 PM com.oracle.appbundlers.tests.functionality.TestBase runTest
SEVERE: Configuration error: com.oracle.tools.packager.ConfigException: java.lang.NullPointerExcepti
on.
FAILED: runTest(JAVA-API-Jmods-exe)
com.oracle.tools.packager.ConfigException: java.lang.NullPointerException
at com.oracle.tools.packager.windows.WinExeBundler.validate(jdk.packager@9-ea/WinExeBundler.
java:288)
at com.oracle.appbundlers.utils.JavaApiBundlingManager.validate(JavaApiBundlingManager.java:
36)
at com.oracle.appbundlers.tests.functionality.TestBase.validate(TestBase.java:304)
at com.oracle.appbundlers.tests.functionality.TestBase.runTest(TestBase.java:192)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorI
mpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodA
ccessorImpl.java:43)
at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:535)