This discussion is archived
3 Replies Latest reply: Apr 4, 2013 5:26 PM by KonradZuse RSS

Netbeans Ant Errors when building/running Fx on Java 8 build 81/82

KonradZuse Explorer
Currently Being Moderated
So I've been coding and running my application with no problem for days, and today I was doing some changes, and try to run my application.

I tried to run other applications as well and I get the same errors. I was able to get passed these "errors" when I tried cleaning, then building, then clean and build, and then running and it got me to get an error(because I didn't do something with a label correctly) but I was only able to do it once... I tried a few more times with no luck, so I restarted netbeans to try again. I tried clean, then build worked again, so I tried to run and it failed, so not too sur what's going on :(.

The only thing I've changed was installing MYSQL and trying to run the DataApp application, also having an error.... I wonder if the 2 are related, which I hope so, so maybe I can get both working :D.

Clean and Build:
ant -f C:\\Users\\Konrad\\Documents\\NetBeansProjects\\CountdownTimer jfx-rebuild
init:
deps-clean:
Updating property file: C:\Users\Konrad\Documents\NetBeansProjects\CountdownTimer\build\built-clean.properties
Deleting directory C:\Users\Konrad\Documents\NetBeansProjects\CountdownTimer\build
clean:
init:
deps-jar:
Created dir: C:\Users\Konrad\Documents\NetBeansProjects\CountdownTimer\build
Updating property file: C:\Users\Konrad\Documents\NetBeansProjects\CountdownTimer\build\built-jar.properties
Created dir: C:\Users\Konrad\Documents\NetBeansProjects\CountdownTimer\build\classes
Created dir: C:\Users\Konrad\Documents\NetBeansProjects\CountdownTimer\build\empty
Created dir: C:\Users\Konrad\Documents\NetBeansProjects\CountdownTimer\build\generated-sources\ap-source-output
Compiling 3 source files to C:\Users\Konrad\Documents\NetBeansProjects\CountdownTimer\build\classes
compile:
Created dir: C:\Users\Konrad\Documents\NetBeansProjects\CountdownTimer\dist
Detected JavaFX Ant API version 1.3
Launching <fx:jar> task from C:\Program Files\Java\jdk1.8.0\lib\ant-javafx.jar
C:\Users\Konrad\Documents\NetBeansProjects\CountdownTimer\nbproject\jfx-impl.xml:2821: The following error occurred while executing this line:
C:\Users\Konrad\Documents\NetBeansProjects\CountdownTimer\nbproject\jfx-impl.xml:1428: The following error occurred while executing this line:
C:\Users\Konrad\Documents\NetBeansProjects\CountdownTimer\nbproject\jfx-impl.xml:2544: The following error occurred while executing this line:
C:\Users\Konrad\Documents\NetBeansProjects\CountdownTimer\nbproject\jfx-impl.xml:1568: 
javax.script.ScriptException: ReferenceError: "org" is not defined in <eval> at line number 140
     at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:424)
     at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:408)
     at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:379)
     at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:134)
     at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
     at sun.reflect.GeneratedMethodAccessor226.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:487)
     at org.apache.tools.ant.util.ReflectUtil.invoke(ReflectUtil.java:108)
     at org.apache.tools.ant.util.ReflectWrapper.invoke(ReflectWrapper.java:81)
     at org.apache.tools.ant.util.optional.JavaxScriptRunner.evaluateScript(JavaxScriptRunner.java:103)
     at org.apache.tools.ant.util.optional.JavaxScriptRunner.executeScript(JavaxScriptRunner.java:67)
     at org.apache.tools.ant.taskdefs.optional.Script.execute(Script.java:52)
     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
     at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:487)
     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
     at org.apache.tools.ant.Task.perform(Task.java:348)
     at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
     at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:487)
     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
     at org.apache.tools.ant.Task.perform(Task.java:348)
     at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)
     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
     at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:487)
     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
     at org.apache.tools.ant.Task.perform(Task.java:348)
     at org.apache.tools.ant.Target.execute(Target.java:392)
     at org.apache.tools.ant.Target.performTasks(Target.java:413)
     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
     at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
     at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
     at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:487)
     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
     at org.apache.tools.ant.Task.perform(Task.java:348)
     at org.apache.tools.ant.Target.execute(Target.java:392)
     at org.apache.tools.ant.Target.performTasks(Target.java:413)
     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
     at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
     at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
     at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:487)
     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
     at org.apache.tools.ant.Task.perform(Task.java:348)
     at org.apache.tools.ant.Target.execute(Target.java:392)
     at org.apache.tools.ant.Target.performTasks(Target.java:413)
     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
     at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
     at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:283)
     at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:541)
     at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
Caused by: <eval>:140 ReferenceError: "org" is not defined
     at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:66)
     at jdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.java:328)
     at jdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.java:300)
     at jdk.nashorn.api.scripting.NashornScriptEngine.__noSuchProperty__(NashornScriptEngine.java:242)
     at jdk.nashorn.internal.scripts.Script$engine._L36(nashorn:engine/resources/engine.js:38)
     at jdk.nashorn.internal.scripts.Script$\^eval\_.runScript(<eval>:140)
     at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:362)
     at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:201)
     at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:345)
     at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:405)
     ... 66 more
BUILD FAILED (total time: 3 seconds)
RUN:
ant -f C:\\Users\\Konrad\\Documents\\NetBeansProjects\\CountdownTimer jfx-rebuild
init:
deps-clean:
Updating property file: C:\Users\Konrad\Documents\NetBeansProjects\CountdownTimer\build\built-clean.properties
Deleting directory C:\Users\Konrad\Documents\NetBeansProjects\CountdownTimer\build
clean:
init:
deps-jar:
Created dir: C:\Users\Konrad\Documents\NetBeansProjects\CountdownTimer\build
Updating property file: C:\Users\Konrad\Documents\NetBeansProjects\CountdownTimer\build\built-jar.properties
Created dir: C:\Users\Konrad\Documents\NetBeansProjects\CountdownTimer\build\classes
Created dir: C:\Users\Konrad\Documents\NetBeansProjects\CountdownTimer\build\empty
Created dir: C:\Users\Konrad\Documents\NetBeansProjects\CountdownTimer\build\generated-sources\ap-source-output
Compiling 3 source files to C:\Users\Konrad\Documents\NetBeansProjects\CountdownTimer\build\classes
compile:
Created dir: C:\Users\Konrad\Documents\NetBeansProjects\CountdownTimer\dist
C:\Users\Konrad\Documents\NetBeansProjects\CountdownTimer\nbproject\jfx-impl.xml:2821: The following error occurred while executing this line:
C:\Users\Konrad\Documents\NetBeansProjects\CountdownTimer\nbproject\jfx-impl.xml:1119: The following error occurred while executing this line:
C:\Users\Konrad\Documents\NetBeansProjects\CountdownTimer\nbproject\jfx-impl.xml:1139: 
java.lang.AssertionError: stacks [] is not equivalent with [double] at join point
     at jdk.nashorn.internal.codegen.MethodEmitter.mergeStackTo(MethodEmitter.java:1605)
     at jdk.nashorn.internal.codegen.MethodEmitter.label(MethodEmitter.java:1627)
     at jdk.nashorn.internal.codegen.CodeGenerator.enter(CodeGenerator.java:802)
     at jdk.nashorn.internal.ir.ForNode.accept(ForNode.java:79)
     at jdk.nashorn.internal.ir.Block.accept(Block.java:264)
     at jdk.nashorn.internal.codegen.CodeGenerator.enter(CodeGenerator.java:733)
     at jdk.nashorn.internal.ir.ExecuteNode.accept(ExecuteNode.java:88)
     at jdk.nashorn.internal.ir.Block.accept(Block.java:264)
     at jdk.nashorn.internal.codegen.CodeGenerator.enter(CodeGenerator.java:1034)
     at jdk.nashorn.internal.ir.IfNode.accept(IfNode.java:78)
     at jdk.nashorn.internal.ir.Block.accept(Block.java:264)
     at jdk.nashorn.internal.codegen.CodeGenerator.enter(CodeGenerator.java:1034)
     at jdk.nashorn.internal.ir.IfNode.accept(IfNode.java:78)
     at jdk.nashorn.internal.ir.Block.accept(Block.java:264)
     at jdk.nashorn.internal.codegen.CodeGenerator.enter(CodeGenerator.java:795)
     at jdk.nashorn.internal.ir.ForNode.accept(ForNode.java:79)
     at jdk.nashorn.internal.ir.Block.accept(Block.java:264)
     at jdk.nashorn.internal.codegen.CodeGenerator.enter(CodeGenerator.java:733)
     at jdk.nashorn.internal.ir.ExecuteNode.accept(ExecuteNode.java:88)
     at jdk.nashorn.internal.ir.Block.accept(Block.java:264)
     at jdk.nashorn.internal.codegen.CodeGenerator.enter(CodeGenerator.java:1034)
     at jdk.nashorn.internal.ir.IfNode.accept(IfNode.java:78)
     at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:336)
     at jdk.nashorn.internal.codegen.CompilationPhase$7.transform(CompilationPhase.java:239)
     at jdk.nashorn.internal.codegen.CompilationPhase.apply(CompilationPhase.java:372)
     at jdk.nashorn.internal.codegen.Compiler.compile(Compiler.java:263)
     at jdk.nashorn.internal.runtime.Context.compile(Context.java:758)
     at jdk.nashorn.internal.runtime.Context.compileScript(Context.java:720)
     at jdk.nashorn.internal.runtime.Context.compileScript(Context.java:358)
     at jdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:463)
     at jdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:451)
     at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:379)
     at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:134)
     at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
     at sun.reflect.GeneratedMethodAccessor226.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:487)
     at org.apache.tools.ant.util.ReflectUtil.invoke(ReflectUtil.java:108)
     at org.apache.tools.ant.util.ReflectWrapper.invoke(ReflectWrapper.java:81)
     at org.apache.tools.ant.util.optional.JavaxScriptRunner.evaluateScript(JavaxScriptRunner.java:103)
     at org.apache.tools.ant.util.optional.JavaxScriptRunner.executeScript(JavaxScriptRunner.java:67)
     at org.apache.tools.ant.taskdefs.optional.Script.execute(Script.java:52)
     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
     at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:487)
     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
     at org.apache.tools.ant.Task.perform(Task.java:348)
     at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
     at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:487)
     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
     at org.apache.tools.ant.Task.perform(Task.java:348)
     at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)
     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
     at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:487)
     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
     at org.apache.tools.ant.Task.perform(Task.java:348)
     at org.apache.tools.ant.Target.execute(Target.java:392)
     at org.apache.tools.ant.Target.performTasks(Target.java:413)
     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
     at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
     at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
     at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:487)
     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
     at org.apache.tools.ant.Task.perform(Task.java:348)
     at org.apache.tools.ant.Target.execute(Target.java:392)
     at org.apache.tools.ant.Target.performTasks(Target.java:413)
     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
     at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
     at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:283)
     at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:541)
     at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
BUILD FAILED (total time: 3 seconds)
Edited by: KonradZuse on Mar 27, 2013 5:48 PM

Edited by: KonradZuse on Mar 27, 2013 5:48 PM

Edited by: KonradZuse on Mar 29, 2013 9:30 AM

Edited by: KonradZuse on Mar 29, 2013 1:35 PM

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points