This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
After upgrading to JDK 8 update 101. The build scripts successfully build only the first time. From the second build it always fails with IO Exception. On the bamboo build server it fails every time. Below is the log. if you need any further info please let me know ant -f C:\\Users\\venkata_bhagavatula\\Documents\\NetBeansProjects\\xref_maintenance2\\CrossReference jfx-rebuild init: deps-clean: Updating property file: C:\Users\venkata_bhagavatula\Documents\NetBeansProjects\xref_maintenance2\CrossReference\build\built-clean.properties Deleting directory C:\Users\venkata_bhagavatula\Documents\NetBeansProjects\xref_maintenance2\CrossReference\build clean: init: deps-jar: Created dir: C:\Users\venkata_bhagavatula\Documents\NetBeansProjects\xref_maintenance2\CrossReference\build Updating property file: C:\Users\venkata_bhagavatula\Documents\NetBeansProjects\xref_maintenance2\CrossReference\build\built-jar.properties Created dir: C:\Users\venkata_bhagavatula\Documents\NetBeansProjects\xref_maintenance2\CrossReference\build\classes Created dir: C:\Users\venkata_bhagavatula\Documents\NetBeansProjects\xref_maintenance2\CrossReference\build\empty Created dir: C:\Users\venkata_bhagavatula\Documents\NetBeansProjects\xref_maintenance2\CrossReference\build\generated-sources\ap-source-output Compiling 146 source files to C:\Users\venkata_bhagavatula\Documents\NetBeansProjects\xref_maintenance2\CrossReference\build\classes Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Copying 35 files to C:\Users\venkata_bhagavatula\Documents\NetBeansProjects\xref_maintenance2\CrossReference\build\classes compile: Copying 16 files to C:\Users\venkata_bhagavatula\Documents\NetBeansProjects\xref_maintenance2\CrossReference\dist\lib Detected JavaFX Ant API version 1.3 Launching <fx:jar> task from C:\Program Files\Java\jdk1.8.0_101\jre\..\lib\ant-javafx.jar Warning: From JDK7u25 the Codebase manifest attribute should be used to restrict JAR repurposing. Please set manifest.custom.codebase property to override the current default non-secure value '*'. Launching <fx:deploy> task from C:\Program Files\Java\jdk1.8.0_101\jre\..\lib\ant-javafx.jar No base JDK. Package will use system JRE. No base JDK. Package will use system JRE. Could not load definitions from resource com/sun/javafx/tools/ant/antlib.xml. It could not be found. Using base JDK at: C:\Program Files\Java\jdk1.8.0_101\jre Using base JDK at: C:\Program Files\Java\jdk1.8.0_101\jre Creating app bundle: CrossReference in C:\Users\venkata_bhagavatula\Documents\NetBeansProjects\xref_maintenance2\CrossReference\dist\bundles Exception: java.io.IOException: Access is denied C:\Users\venkata_bhagavatula\Documents\NetBeansProjects\xref_maintenance2\CrossReference\nbproject\jfx-impl.xml:3479: The following error occurred while executing this line: C:\Users\venkata_bhagavatula\Documents\NetBeansProjects\xref_maintenance2\CrossReference\nbproject\jfx-impl.xml:1487: The following error occurred while executing this line: C:\Users\venkata_bhagavatula\Documents\NetBeansProjects\xref_maintenance2\CrossReference\nbproject\jfx-impl.xml:3134: The following error occurred while executing this line: C:\Users\venkata_bhagavatula\Documents\NetBeansProjects\xref_maintenance2\CrossReference\nbproject\jfx-impl.xml:2503: The following error occurred while executing this line: C:\Users\venkata_bhagavatula\Documents\NetBeansProjects\xref_maintenance2\CrossReference\build.xml:70: Error: Bundler "Windows Application Image" (windows.app) failed to produce a bundle. BUILD FAILED (total time: 6 seconds)
Here is the modified build.xml <?xml version="1.0" encoding="UTF-8"?> <!-- You may freely edit this file. See commented blocks below for --> <!-- some examples of how to customize the build. --> <!-- (If you delete it and reopen the project it will be recreated.) --> <!-- By default, only the Clean and Build commands use this build script. --> <!-- Commands such as Run, Debug, and Test only use this build script if --> <!-- the Compile on Save feature is turned off for the project. --> <!-- You can turn off the Compile on Save (or Deploy on Save) setting --> <!-- in the project's Project Properties dialog box.--> <project name="CrossReference" default="default" basedir="." xmlns:fx="javafx:com.sun.javafx.tools.ant"> <description>Builds, tests, and runs the project CrossReference.</description> <import file="nbproject/build-impl.xml"/> <!-- There exist several targets which are by default empty and which can be used for execution of your tasks. These targets are usually executed before and after some main targets. They are: -pre-init: called before initialization of project properties -post-init: called after initialization of project properties -pre-compile: called before javac compilation -post-compile: called after javac compilation -pre-compile-single: called before javac compilation of single file -post-compile-single: called after javac compilation of single file -pre-compile-test: called before javac compilation of JUnit tests -post-compile-test: called after javac compilation of JUnit tests -pre-compile-test-single: called before javac compilation of single JUnit test -post-compile-test-single: called after javac compilation of single JUunit test -pre-jar: called before JAR building -post-jar: called after JAR building -post-clean: called after cleaning build products (Targets beginning with '-' are not intended to be called on their own.) Example of inserting an obfuscator after compilation could look like this: <target name="-post-compile"> <obfuscate> <fileset dir="${build.classes.dir}"/> </obfuscate> </target> For list of available properties check the imported nbproject/build-impl.xml file. Another way to customize the build is by overriding existing main targets. The targets of interest are: -init-macrodef-javac: defines macro for javac compilation -init-macrodef-junit: defines macro for junit execution -init-macrodef-debug: defines macro for class debugging -init-macrodef-java: defines macro for class execution -do-jar: JAR building run: execution of project -javadoc-build: Javadoc generation test-report: JUnit report generation An example of overriding the target for project execution could look like this: --> <target name="-post-jfx-deploy"> <taskdef resource="com/sun/javafx/tools/ant/antlib.xml" uri="javafx:com.sun.javafx.tools.ant" classpath=".:path/to/sdk/lib/ant-javafx.jar"/> <fx:deploy width="${javafx.run.width}" height="${javafx.run.height}" nativeBundles="image" outdir="${basedir}/${dist.dir}" outfile="${application.title}"> <fx:application name="${application.title}" mainClass="${javafx.main.class}"> </fx:application> <fx:platform > <fx:jvmarg value="-Djava.util.logging.config.file=${APPDIR}\app\logConfig.properties" /> <fx:jvmarg value="Djava.library.path=src\dll" /> <fx:jvmarg value="-XX:InitiatingHeapOccupancyPercent=0" /> <fx:jvmarg value="-XX:MaxHeapFreeRatio=40" /> <fx:jvmarg value="-XX:+HeapDumpOnOutOfMemoryError" /> <fx:jvmarg value="-XX:-UseParallelGC" /> <fx:jvmarg value="-XX:+UseG1GC" /> <fx:jvmarg value="-Xmx8G" /> </fx:platform> <!-- install='true' for installation at Program Files (System level) , install='false' will install per user %appdata%' --> <fx:preferences shortcut="true" install="false" menu="true"/> <fx:resources> <fx:fileset dir="${basedir}/${dist.dir}" includes="*.jar"/> <fx:fileset dir="dist" includes="lib/*.*"/> <fx:fileset dir="${basedir}/properties" includes="logConfig.properties" /> </fx:resources> </fx:deploy> </target> <!-- Notice that the overridden target depends on the jar target and not only on the compile target as the regular run target does. Again, for a list of available properties which you can use, check the target you are overriding in the nbproject/build-impl.xml file. --> </project>
is there any update on this issue ?
Have the same issue. Any news on this?
Cannot be reproduced in 8.2 on Windows & Linux. JDK 8 Upd 131.
I am able to do it every time.What more can I do to help? it would be nice if you redesigned the build script to have no javascript in it. and made fx:deploy editable. Is there a way for me to add on to fx:deploy from within build.xml, because If I meddle with jfx-impl or build-impl netbeans overwrites it.
Also this issues is reproducible on windows 10. When we switched the build agent from Bamboo to TFS 2016 the builds started failing even on update 45.
Have the same issue - any updates?
J have the same issue. Is there some simple solution?
I have the same issue. Is there some simple solution?