freemarker.core.InvalidReferenceException: constant.value is undefined.

Appcelerator JIRA | Jeff English | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Building the BrightCove 2.0 modules for Android throws a series of errors. I have isolated the issue to the definition of the Kroll.Constant values in the module class: {code} // // Constants // @Kroll.constant public static final int SORT_BY_PUBLISH_DATE = SortByTypeEnum.PUBLISH_DATE.ordinal(); @Kroll.constant public static final int SORT_BY_CREATION_DATE = SortByTypeEnum.CREATION_DATE.ordinal(); @Kroll.constant public static final int SORT_BY_MODIFIED_DATE = SortByTypeEnum.MODIFIED_DATE.ordinal(); @Kroll.constant public static final int SORT_BY_PLAYS_TOTAL = SortByTypeEnum.PLAYS_TOTAL.ordinal(); @Kroll.constant public static final int SORT_BY_PLAYS_TRAILING_WEEK = SortByTypeEnum.PLAYS_TRAILING_WEEK.ordinal(); @Kroll.constant public static final int ORDER_ASCENDING = SortOrderTypeEnum.ASC.ordinal(); @Kroll.constant public static final int ORDER_DESCENDING = SortOrderTypeEnum.DESC.ordinal(); @Kroll.constant public static final int STATE_ACTIVE = VideoStateFilterEnum.PLAYABLE.ordinal(); @Kroll.constant public static final int STATE_INACTIVE = VideoStateFilterEnum.INACTIVE.ordinal(); @Kroll.constant public static final int STATE_DELETED = VideoStateFilterEnum.DELETED.ordinal(); @Kroll.constant public static final int PLAYLIST_OLDEST_TO_NEWEST = PlaylistTypeEnum.OLDEST_TO_NEWEST.ordinal(); @Kroll.constant public static final int PLAYLIST_NEWEST_TO_OLDEST = PlaylistTypeEnum.NEWEST_TO_OLDEST.ordinal(); @Kroll.constant public static final int PLAYLIST_START_OLDEST_TO_NEWEST = PlaylistTypeEnum.OLDEST_TO_NEWEST.ordinal(); @Kroll.constant public static final int PLAYLIST_START_NEWEST_TO_OLDEST = PlaylistTypeEnum.NEWEST_TO_OLDEST.ordinal(); @Kroll.constant public static final int PLAYLIST_ALPHABETICAL = PlaylistTypeEnum.ALPHABETICAL.ordinal(); @Kroll.constant public static final int PLAYLIST_PLAYS_TOTAL = PlaylistTypeEnum.PLAYSTOTAL.ordinal(); @Kroll.constant public static final int PLAYLIST_PLAYS_TRAILING_WEEK = PlaylistTypeEnum.PLAYS_TRAILING_WEEK.ordinal(); @Kroll.constant public static final int PLAYLIST_EXPLICIT = PlaylistTypeEnum.EXPLICIT.ordinal(); @Kroll.constant public static final int REGION_US = RegionEnum.US.ordinal(); @Kroll.constant public static final int REGION_JP = RegionEnum.JP.ordinal(); @Kroll.constant public static final int DELIVERY_DEFAULT = MediaDeliveryTypeEnum.DEFAULT.ordinal(); @Kroll.constant public static final int DELIVERY_HTTP = MediaDeliveryTypeEnum.HTTP.ordinal(); {code} The use of the ".ordinal()" method on the enumerated type is what triggers the errors. If I comment out the declaration of these Kroll.constant values then the build errors are not generated. The build output is as follows: {code} JEnglish-MBP:brightcove jenglish$ ant Buildfile: /Users/jenglish/titanium_mobile_modules/android/brightcove/build.xml init: [mkdir] Created dir: /Users/jenglish/titanium_mobile_modules/android/brightcove/build/classes [mkdir] Created dir: /Users/jenglish/titanium_mobile_modules/android/brightcove/dist process.annotations: [mkdir] Created dir: /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/json [javac] Compiling 7 source files to /Users/jenglish/titanium_mobile_modules/android/brightcove/build/classes [javac] Note: [KrollBindingGen] Running Kroll binding generator. [javac] Note: [KrollBindingGen] No binding data found, creating new data file: org.appcelerator.titanium.bindings/brightcove.json [javac] Note: [KrollBindingGen] Found binding for module Brightcove [javac] Note: [KrollBindingGen] Found binding for proxy Playlist [javac] Note: [KrollBindingGen] Found binding for proxy VideoPlayer [javac] Note: [KrollBindingGen] Found binding for proxy Video [javac] Note: [KrollBindingGen] Generating JSON: /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/json/org/appcelerator/titanium/bindings/brightcove.json [javac] warning: The following options were not recognized by any processor: '[kroll.checkTiContext]' [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. generate.rhino.bindings: [java] Generating /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/java/ti/brightcove/PlaylistProxyPrototype.java [java] Generating /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/java/ti/brightcove/VideoPlayerProxyPrototype.java [java] Generating /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/java/ti/brightcove/VideoProxyPrototype.java [java] Generating /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/java/ti/brightcove/BrightcoveModulePrototype.java [java] Dec 9, 2011 7:35:28 PM freemarker.log.JDK14LoggerFactory$JDK14Logger error [java] SEVERE: constant.value is undefined. [java] [java] constant.value is undefined. [java] The problematic instruction: [java] ---------- [java] ==> ${constant.value?c} [on line 85, column 43 in ProxyBindingRhino.java.fm] [java] in user-directive Proxy.listConstants [on line 81, column 17 in ProxyBindingRhino.java.fm] [java] ---------- [java] [java] Java backtrace for programmers: [java] ---------- [java] freemarker.core.InvalidReferenceException: constant.value is undefined. [java] at freemarker.core.EvaluationUtil.getNumber(EvaluationUtil.java:104) [java] at freemarker.core.NumericalBuiltins$cBI._getAsTemplateModel(NumericalBuiltins.java:157) [java] at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) [java] at freemarker.core.Expression.getStringValue(Expression.java:93) [java] at freemarker.core.DollarVariable.accept(DollarVariable.java:76) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.MixedContent.accept(MixedContent.java:92) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.IfBlock.accept(IfBlock.java:82) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.Environment.visit(Environment.java:395) [java] at freemarker.core.BodyInstruction.accept(BodyInstruction.java:93) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.MixedContent.accept(MixedContent.java:92) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:167) [java] at freemarker.core.Environment.visit(Environment.java:417) [java] at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.Macro$Context.runMacro(Macro.java:172) [java] at freemarker.core.Environment.visit(Environment.java:603) [java] at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.MixedContent.accept(MixedContent.java:92) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.Environment.process(Environment.java:190) [java] at freemarker.template.Template.process(Template.java:237) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.saveTypeTemplate(KrollBindingGenerator.java:129) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.generateBindings(KrollBindingGenerator.java:296) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.main(KrollBindingGenerator.java:359) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:771) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.Target.execute(Target.java:390) [java] at org.apache.tools.ant.Target.performTasks(Target.java:411) [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1368) [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1251) [java] at org.apache.tools.ant.Main.runBuild(Main.java:809) [java] at org.apache.tools.ant.Main.startAnt(Main.java:217) [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) [java] [java] constant.value is undefined. [java] The problematic instruction: [java] ---------- [java] ==> ${constant.value?c} [on line 85, column 43 in ProxyBindingRhino.java.fm] [java] in user-directive Proxy.listConstants [on line 81, column 17 in ProxyBindingRhino.java.fm] [java] ---------- [java] [java] Java backtrace for programmers: [java] ---------- [java] freemarker.core.InvalidReferenceException: constant.value is undefined. [java] at freemarker.core.EvaluationUtil.getNumber(EvaluationUtil.java:104) [java] at freemarker.core.NumericalBuiltins$cBI._getAsTemplateModel(NumericalBuiltins.java:157) [java] at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) [java] at freemarker.core.Expression.getStringValue(Expression.java:93) [java] at freemarker.core.DollarVariable.accept(DollarVariable.java:76) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.MixedContent.accept(MixedContent.java:92) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.IfBlock.accept(IfBlock.java:82) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.Environment.visit(Environment.java:395) [java] at freemarker.core.BodyInstruction.accept(BodyInstruction.java:93) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.MixedContent.accept(MixedContent.java:92) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:167) [java] at freemarker.core.Environment.visit(Environment.java:417) [java] at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.Macro$Context.runMacro(Macro.java:172) [java] at freemarker.core.Environment.visit(Environment.java:603) [java] at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.MixedContent.accept(MixedContent.java:92) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.Environment.process(Environment.java:190) [java] at freemarker.template.Template.process(Template.java:237) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.saveTypeTemplate(KrollBindingGenerator.java:129) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.generateBindings(KrollBindingGenerator.java:296) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.main(KrollBindingGenerator.java:359) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:771) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.Target.execute(Target.java:390) [java] at org.apache.tools.ant.Target.performTasks(Target.java:411) [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1368) [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1251) [java] at org.apache.tools.ant.Main.runBuild(Main.java:809) [java] at org.apache.tools.ant.Main.startAnt(Main.java:217) [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) [java] Generating /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/java/brightcoveGeneratedBindings.java generate.rhino.idswitch: [echo] Generating IDs for /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/java/brightcoveGeneratedBindings.java [echo] Generating IDs for /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/java/ti/brightcove/BrightcoveModulePrototype.java [echo] Generating IDs for /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/java/ti/brightcove/PlaylistProxyPrototype.java [echo] Generating IDs for /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/java/ti/brightcove/VideoPlayerProxyPrototype.java [echo] Generating IDs for /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/java/ti/brightcove/VideoProxyPrototype.java generate.v8.bindings: [java] Generating /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/jni/ti.brightcove.PlaylistProxy.h [java] Generating /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/jni/ti.brightcove.PlaylistProxy.cpp [java] Generating /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/jni/ti.brightcove.VideoPlayerProxy.h [java] Generating /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/jni/ti.brightcove.VideoPlayerProxy.cpp [java] Generating /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/jni/ti.brightcove.VideoProxy.h [java] Generating /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/jni/ti.brightcove.VideoProxy.cpp [java] Generating /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/jni/ti.brightcove.BrightcoveModule.h [java] Generating /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/jni/ti.brightcove.BrightcoveModule.cpp [java] Dec 9, 2011 7:35:29 PM freemarker.log.JDK14LoggerFactory$JDK14Logger error [java] SEVERE: constant.value is undefined. [java] [java] constant.value is undefined. [java] The problematic instruction: [java] ---------- [java] ==> ${constant.value?c} [on line 134, column 58 in ProxyBindingV8.cpp.fm] [java] in user-directive Proxy.listConstants [on line 130, column 9 in ProxyBindingV8.cpp.fm] [java] ---------- [java] [java] Java backtrace for programmers: [java] ---------- [java] freemarker.core.InvalidReferenceException: constant.value is undefined. [java] at freemarker.core.EvaluationUtil.getNumber(EvaluationUtil.java:104) [java] at freemarker.core.NumericalBuiltins$cBI._getAsTemplateModel(NumericalBuiltins.java:157) [java] at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) [java] at freemarker.core.Expression.getStringValue(Expression.java:93) [java] at freemarker.core.DollarVariable.accept(DollarVariable.java:76) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.MixedContent.accept(MixedContent.java:92) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.IfBlock.accept(IfBlock.java:82) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.Environment.visit(Environment.java:395) [java] at freemarker.core.BodyInstruction.accept(BodyInstruction.java:93) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.MixedContent.accept(MixedContent.java:92) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:167) [java] at freemarker.core.Environment.visit(Environment.java:417) [java] at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.Macro$Context.runMacro(Macro.java:172) [java] at freemarker.core.Environment.visit(Environment.java:603) [java] at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.MixedContent.accept(MixedContent.java:92) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.MixedContent.accept(MixedContent.java:92) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.Environment.process(Environment.java:190) [java] at freemarker.template.Template.process(Template.java:237) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.saveTypeTemplate(KrollBindingGenerator.java:129) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.generateBindings(KrollBindingGenerator.java:290) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.main(KrollBindingGenerator.java:359) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:771) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.Target.execute(Target.java:390) [java] at org.apache.tools.ant.Target.performTasks(Target.java:411) [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1368) [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1251) [java] at org.apache.tools.ant.Main.runBuild(Main.java:809) [java] at org.apache.tools.ant.Main.startAnt(Main.java:217) [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) [java] [java] constant.value is undefined. [java] The problematic instruction: [java] ---------- [java] ==> ${constant.value?c} [on line 134, column 58 in ProxyBindingV8.cpp.fm] [java] in user-directive Proxy.listConstants [on line 130, column 9 in ProxyBindingV8.cpp.fm] [java] ---------- [java] [java] Java backtrace for programmers: [java] ---------- [java] freemarker.core.InvalidReferenceException: constant.value is undefined. [java] at freemarker.core.EvaluationUtil.getNumber(EvaluationUtil.java:104) [java] at freemarker.core.NumericalBuiltins$cBI._getAsTemplateModel(NumericalBuiltins.java:157) [java] at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) [java] at freemarker.core.Expression.getStringValue(Expression.java:93) [java] at freemarker.core.DollarVariable.accept(DollarVariable.java:76) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.MixedContent.accept(MixedContent.java:92) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.IfBlock.accept(IfBlock.java:82) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.Environment.visit(Environment.java:395) [java] at freemarker.core.BodyInstruction.accept(BodyInstruction.java:93) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.MixedContent.accept(MixedContent.java:92) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:167) [java] at freemarker.core.Environment.visit(Environment.java:417) [java] at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.Macro$Context.runMacro(Macro.java:172) [java] at freemarker.core.Environment.visit(Environment.java:603) [java] at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.MixedContent.accept(MixedContent.java:92) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.MixedContent.accept(MixedContent.java:92) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.Environment.process(Environment.java:190) [java] at freemarker.template.Template.process(Template.java:237) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.saveTypeTemplate(KrollBindingGenerator.java:129) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.generateBindings(KrollBindingGenerator.java:290) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.main(KrollBindingGenerator.java:359) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:771) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.Target.execute(Target.java:390) [java] at org.apache.tools.ant.Target.performTasks(Target.java:411) [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1368) [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1251) [java] at org.apache.tools.ant.Main.runBuild(Main.java:809) [java] at org.apache.tools.ant.Main.startAnt(Main.java:217) [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) generate.bindings: pre.compile: ndk.build: [copy] Copying 1 file to /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated [copy] Copying 1 file to /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/jni [exec] Compile++ thumb : ti.brightcove <= ti.brightcove.BrightcoveModule.cpp [exec] jni/Android.mk:24: warning: overriding commands for target `/Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/KrollGeneratedBindings.cpp' [exec] jni/Android.mk:24: warning: ignoring old commands for target `/Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/KrollGeneratedBindings.cpp' [exec] jni/Android.mk:27: warning: overriding commands for target `/Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/BootstrapJS.cpp' [exec] jni/Android.mk:27: warning: ignoring old commands for target `/Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/BootstrapJS.cpp' [exec] jni/ti.brightcove.BrightcoveModule.cpp:202:1: error: unterminated argument list invoking macro "DEFINE_INT_CONSTANT" [exec] jni/ti.brightcove.BrightcoveModule.cpp: In static member function 'static v8::Handle<v8::FunctionTemplate> ti::brightcove::BrightcoveModule::getProxyTemplate()': [exec] jni/ti.brightcove.BrightcoveModule.cpp:116: error: 'DEFINE_INT_CONSTANT' was not declared in this scope [exec] jni/ti.brightcove.BrightcoveModule.cpp:116: error: expected ';' at end of input [exec] jni/ti.brightcove.BrightcoveModule.cpp:116: error: expected '}' at end of input [exec] jni/ti.brightcove.BrightcoveModule.cpp: At global scope: [exec] jni/ti.brightcove.BrightcoveModule.cpp:116: error: expected '}' at end of input [exec] jni/ti.brightcove.BrightcoveModule.cpp:116: error: expected '}' at end of input [exec] make: *** [/Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/obj/local/armeabi/objs/ti.brightcove/ti.brightcove.BrightcoveModule.o] Error 1 BUILD FAILED /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/module/android/build.xml:226: exec returned: 2 {code}

    Appcelerator JIRA | 5 years ago | Jeff English
    freemarker.core.InvalidReferenceException: constant.value is undefined.
  2. 0

    Building the BrightCove 2.0 modules for Android throws a series of errors. I have isolated the issue to the definition of the Kroll.Constant values in the module class: {code} // // Constants // @Kroll.constant public static final int SORT_BY_PUBLISH_DATE = SortByTypeEnum.PUBLISH_DATE.ordinal(); @Kroll.constant public static final int SORT_BY_CREATION_DATE = SortByTypeEnum.CREATION_DATE.ordinal(); @Kroll.constant public static final int SORT_BY_MODIFIED_DATE = SortByTypeEnum.MODIFIED_DATE.ordinal(); @Kroll.constant public static final int SORT_BY_PLAYS_TOTAL = SortByTypeEnum.PLAYS_TOTAL.ordinal(); @Kroll.constant public static final int SORT_BY_PLAYS_TRAILING_WEEK = SortByTypeEnum.PLAYS_TRAILING_WEEK.ordinal(); @Kroll.constant public static final int ORDER_ASCENDING = SortOrderTypeEnum.ASC.ordinal(); @Kroll.constant public static final int ORDER_DESCENDING = SortOrderTypeEnum.DESC.ordinal(); @Kroll.constant public static final int STATE_ACTIVE = VideoStateFilterEnum.PLAYABLE.ordinal(); @Kroll.constant public static final int STATE_INACTIVE = VideoStateFilterEnum.INACTIVE.ordinal(); @Kroll.constant public static final int STATE_DELETED = VideoStateFilterEnum.DELETED.ordinal(); @Kroll.constant public static final int PLAYLIST_OLDEST_TO_NEWEST = PlaylistTypeEnum.OLDEST_TO_NEWEST.ordinal(); @Kroll.constant public static final int PLAYLIST_NEWEST_TO_OLDEST = PlaylistTypeEnum.NEWEST_TO_OLDEST.ordinal(); @Kroll.constant public static final int PLAYLIST_START_OLDEST_TO_NEWEST = PlaylistTypeEnum.OLDEST_TO_NEWEST.ordinal(); @Kroll.constant public static final int PLAYLIST_START_NEWEST_TO_OLDEST = PlaylistTypeEnum.NEWEST_TO_OLDEST.ordinal(); @Kroll.constant public static final int PLAYLIST_ALPHABETICAL = PlaylistTypeEnum.ALPHABETICAL.ordinal(); @Kroll.constant public static final int PLAYLIST_PLAYS_TOTAL = PlaylistTypeEnum.PLAYSTOTAL.ordinal(); @Kroll.constant public static final int PLAYLIST_PLAYS_TRAILING_WEEK = PlaylistTypeEnum.PLAYS_TRAILING_WEEK.ordinal(); @Kroll.constant public static final int PLAYLIST_EXPLICIT = PlaylistTypeEnum.EXPLICIT.ordinal(); @Kroll.constant public static final int REGION_US = RegionEnum.US.ordinal(); @Kroll.constant public static final int REGION_JP = RegionEnum.JP.ordinal(); @Kroll.constant public static final int DELIVERY_DEFAULT = MediaDeliveryTypeEnum.DEFAULT.ordinal(); @Kroll.constant public static final int DELIVERY_HTTP = MediaDeliveryTypeEnum.HTTP.ordinal(); {code} The use of the ".ordinal()" method on the enumerated type is what triggers the errors. If I comment out the declaration of these Kroll.constant values then the build errors are not generated. The build output is as follows: {code} JEnglish-MBP:brightcove jenglish$ ant Buildfile: /Users/jenglish/titanium_mobile_modules/android/brightcove/build.xml init: [mkdir] Created dir: /Users/jenglish/titanium_mobile_modules/android/brightcove/build/classes [mkdir] Created dir: /Users/jenglish/titanium_mobile_modules/android/brightcove/dist process.annotations: [mkdir] Created dir: /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/json [javac] Compiling 7 source files to /Users/jenglish/titanium_mobile_modules/android/brightcove/build/classes [javac] Note: [KrollBindingGen] Running Kroll binding generator. [javac] Note: [KrollBindingGen] No binding data found, creating new data file: org.appcelerator.titanium.bindings/brightcove.json [javac] Note: [KrollBindingGen] Found binding for module Brightcove [javac] Note: [KrollBindingGen] Found binding for proxy Playlist [javac] Note: [KrollBindingGen] Found binding for proxy VideoPlayer [javac] Note: [KrollBindingGen] Found binding for proxy Video [javac] Note: [KrollBindingGen] Generating JSON: /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/json/org/appcelerator/titanium/bindings/brightcove.json [javac] warning: The following options were not recognized by any processor: '[kroll.checkTiContext]' [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. generate.rhino.bindings: [java] Generating /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/java/ti/brightcove/PlaylistProxyPrototype.java [java] Generating /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/java/ti/brightcove/VideoPlayerProxyPrototype.java [java] Generating /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/java/ti/brightcove/VideoProxyPrototype.java [java] Generating /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/java/ti/brightcove/BrightcoveModulePrototype.java [java] Dec 9, 2011 7:35:28 PM freemarker.log.JDK14LoggerFactory$JDK14Logger error [java] SEVERE: constant.value is undefined. [java] [java] constant.value is undefined. [java] The problematic instruction: [java] ---------- [java] ==> ${constant.value?c} [on line 85, column 43 in ProxyBindingRhino.java.fm] [java] in user-directive Proxy.listConstants [on line 81, column 17 in ProxyBindingRhino.java.fm] [java] ---------- [java] [java] Java backtrace for programmers: [java] ---------- [java] freemarker.core.InvalidReferenceException: constant.value is undefined. [java] at freemarker.core.EvaluationUtil.getNumber(EvaluationUtil.java:104) [java] at freemarker.core.NumericalBuiltins$cBI._getAsTemplateModel(NumericalBuiltins.java:157) [java] at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) [java] at freemarker.core.Expression.getStringValue(Expression.java:93) [java] at freemarker.core.DollarVariable.accept(DollarVariable.java:76) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.MixedContent.accept(MixedContent.java:92) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.IfBlock.accept(IfBlock.java:82) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.Environment.visit(Environment.java:395) [java] at freemarker.core.BodyInstruction.accept(BodyInstruction.java:93) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.MixedContent.accept(MixedContent.java:92) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:167) [java] at freemarker.core.Environment.visit(Environment.java:417) [java] at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.Macro$Context.runMacro(Macro.java:172) [java] at freemarker.core.Environment.visit(Environment.java:603) [java] at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.MixedContent.accept(MixedContent.java:92) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.Environment.process(Environment.java:190) [java] at freemarker.template.Template.process(Template.java:237) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.saveTypeTemplate(KrollBindingGenerator.java:129) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.generateBindings(KrollBindingGenerator.java:296) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.main(KrollBindingGenerator.java:359) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:771) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.Target.execute(Target.java:390) [java] at org.apache.tools.ant.Target.performTasks(Target.java:411) [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1368) [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1251) [java] at org.apache.tools.ant.Main.runBuild(Main.java:809) [java] at org.apache.tools.ant.Main.startAnt(Main.java:217) [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) [java] [java] constant.value is undefined. [java] The problematic instruction: [java] ---------- [java] ==> ${constant.value?c} [on line 85, column 43 in ProxyBindingRhino.java.fm] [java] in user-directive Proxy.listConstants [on line 81, column 17 in ProxyBindingRhino.java.fm] [java] ---------- [java] [java] Java backtrace for programmers: [java] ---------- [java] freemarker.core.InvalidReferenceException: constant.value is undefined. [java] at freemarker.core.EvaluationUtil.getNumber(EvaluationUtil.java:104) [java] at freemarker.core.NumericalBuiltins$cBI._getAsTemplateModel(NumericalBuiltins.java:157) [java] at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) [java] at freemarker.core.Expression.getStringValue(Expression.java:93) [java] at freemarker.core.DollarVariable.accept(DollarVariable.java:76) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.MixedContent.accept(MixedContent.java:92) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.IfBlock.accept(IfBlock.java:82) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.Environment.visit(Environment.java:395) [java] at freemarker.core.BodyInstruction.accept(BodyInstruction.java:93) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.MixedContent.accept(MixedContent.java:92) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:167) [java] at freemarker.core.Environment.visit(Environment.java:417) [java] at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.Macro$Context.runMacro(Macro.java:172) [java] at freemarker.core.Environment.visit(Environment.java:603) [java] at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.MixedContent.accept(MixedContent.java:92) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.Environment.process(Environment.java:190) [java] at freemarker.template.Template.process(Template.java:237) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.saveTypeTemplate(KrollBindingGenerator.java:129) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.generateBindings(KrollBindingGenerator.java:296) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.main(KrollBindingGenerator.java:359) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:771) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.Target.execute(Target.java:390) [java] at org.apache.tools.ant.Target.performTasks(Target.java:411) [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1368) [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1251) [java] at org.apache.tools.ant.Main.runBuild(Main.java:809) [java] at org.apache.tools.ant.Main.startAnt(Main.java:217) [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) [java] Generating /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/java/brightcoveGeneratedBindings.java generate.rhino.idswitch: [echo] Generating IDs for /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/java/brightcoveGeneratedBindings.java [echo] Generating IDs for /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/java/ti/brightcove/BrightcoveModulePrototype.java [echo] Generating IDs for /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/java/ti/brightcove/PlaylistProxyPrototype.java [echo] Generating IDs for /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/java/ti/brightcove/VideoPlayerProxyPrototype.java [echo] Generating IDs for /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/java/ti/brightcove/VideoProxyPrototype.java generate.v8.bindings: [java] Generating /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/jni/ti.brightcove.PlaylistProxy.h [java] Generating /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/jni/ti.brightcove.PlaylistProxy.cpp [java] Generating /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/jni/ti.brightcove.VideoPlayerProxy.h [java] Generating /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/jni/ti.brightcove.VideoPlayerProxy.cpp [java] Generating /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/jni/ti.brightcove.VideoProxy.h [java] Generating /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/jni/ti.brightcove.VideoProxy.cpp [java] Generating /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/jni/ti.brightcove.BrightcoveModule.h [java] Generating /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/jni/ti.brightcove.BrightcoveModule.cpp [java] Dec 9, 2011 7:35:29 PM freemarker.log.JDK14LoggerFactory$JDK14Logger error [java] SEVERE: constant.value is undefined. [java] [java] constant.value is undefined. [java] The problematic instruction: [java] ---------- [java] ==> ${constant.value?c} [on line 134, column 58 in ProxyBindingV8.cpp.fm] [java] in user-directive Proxy.listConstants [on line 130, column 9 in ProxyBindingV8.cpp.fm] [java] ---------- [java] [java] Java backtrace for programmers: [java] ---------- [java] freemarker.core.InvalidReferenceException: constant.value is undefined. [java] at freemarker.core.EvaluationUtil.getNumber(EvaluationUtil.java:104) [java] at freemarker.core.NumericalBuiltins$cBI._getAsTemplateModel(NumericalBuiltins.java:157) [java] at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) [java] at freemarker.core.Expression.getStringValue(Expression.java:93) [java] at freemarker.core.DollarVariable.accept(DollarVariable.java:76) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.MixedContent.accept(MixedContent.java:92) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.IfBlock.accept(IfBlock.java:82) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.Environment.visit(Environment.java:395) [java] at freemarker.core.BodyInstruction.accept(BodyInstruction.java:93) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.MixedContent.accept(MixedContent.java:92) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:167) [java] at freemarker.core.Environment.visit(Environment.java:417) [java] at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.Macro$Context.runMacro(Macro.java:172) [java] at freemarker.core.Environment.visit(Environment.java:603) [java] at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.MixedContent.accept(MixedContent.java:92) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.MixedContent.accept(MixedContent.java:92) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.Environment.process(Environment.java:190) [java] at freemarker.template.Template.process(Template.java:237) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.saveTypeTemplate(KrollBindingGenerator.java:129) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.generateBindings(KrollBindingGenerator.java:290) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.main(KrollBindingGenerator.java:359) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:771) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.Target.execute(Target.java:390) [java] at org.apache.tools.ant.Target.performTasks(Target.java:411) [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1368) [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1251) [java] at org.apache.tools.ant.Main.runBuild(Main.java:809) [java] at org.apache.tools.ant.Main.startAnt(Main.java:217) [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) [java] [java] constant.value is undefined. [java] The problematic instruction: [java] ---------- [java] ==> ${constant.value?c} [on line 134, column 58 in ProxyBindingV8.cpp.fm] [java] in user-directive Proxy.listConstants [on line 130, column 9 in ProxyBindingV8.cpp.fm] [java] ---------- [java] [java] Java backtrace for programmers: [java] ---------- [java] freemarker.core.InvalidReferenceException: constant.value is undefined. [java] at freemarker.core.EvaluationUtil.getNumber(EvaluationUtil.java:104) [java] at freemarker.core.NumericalBuiltins$cBI._getAsTemplateModel(NumericalBuiltins.java:157) [java] at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) [java] at freemarker.core.Expression.getStringValue(Expression.java:93) [java] at freemarker.core.DollarVariable.accept(DollarVariable.java:76) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.MixedContent.accept(MixedContent.java:92) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.IfBlock.accept(IfBlock.java:82) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.Environment.visit(Environment.java:395) [java] at freemarker.core.BodyInstruction.accept(BodyInstruction.java:93) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.MixedContent.accept(MixedContent.java:92) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:167) [java] at freemarker.core.Environment.visit(Environment.java:417) [java] at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.Macro$Context.runMacro(Macro.java:172) [java] at freemarker.core.Environment.visit(Environment.java:603) [java] at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.MixedContent.accept(MixedContent.java:92) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.MixedContent.accept(MixedContent.java:92) [java] at freemarker.core.Environment.visit(Environment.java:210) [java] at freemarker.core.Environment.process(Environment.java:190) [java] at freemarker.template.Template.process(Template.java:237) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.saveTypeTemplate(KrollBindingGenerator.java:129) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.generateBindings(KrollBindingGenerator.java:290) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.main(KrollBindingGenerator.java:359) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:771) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.Target.execute(Target.java:390) [java] at org.apache.tools.ant.Target.performTasks(Target.java:411) [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1368) [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1251) [java] at org.apache.tools.ant.Main.runBuild(Main.java:809) [java] at org.apache.tools.ant.Main.startAnt(Main.java:217) [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) generate.bindings: pre.compile: ndk.build: [copy] Copying 1 file to /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated [copy] Copying 1 file to /Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/jni [exec] Compile++ thumb : ti.brightcove <= ti.brightcove.BrightcoveModule.cpp [exec] jni/Android.mk:24: warning: overriding commands for target `/Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/KrollGeneratedBindings.cpp' [exec] jni/Android.mk:24: warning: ignoring old commands for target `/Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/KrollGeneratedBindings.cpp' [exec] jni/Android.mk:27: warning: overriding commands for target `/Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/BootstrapJS.cpp' [exec] jni/Android.mk:27: warning: ignoring old commands for target `/Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/BootstrapJS.cpp' [exec] jni/ti.brightcove.BrightcoveModule.cpp:202:1: error: unterminated argument list invoking macro "DEFINE_INT_CONSTANT" [exec] jni/ti.brightcove.BrightcoveModule.cpp: In static member function 'static v8::Handle<v8::FunctionTemplate> ti::brightcove::BrightcoveModule::getProxyTemplate()': [exec] jni/ti.brightcove.BrightcoveModule.cpp:116: error: 'DEFINE_INT_CONSTANT' was not declared in this scope [exec] jni/ti.brightcove.BrightcoveModule.cpp:116: error: expected ';' at end of input [exec] jni/ti.brightcove.BrightcoveModule.cpp:116: error: expected '}' at end of input [exec] jni/ti.brightcove.BrightcoveModule.cpp: At global scope: [exec] jni/ti.brightcove.BrightcoveModule.cpp:116: error: expected '}' at end of input [exec] jni/ti.brightcove.BrightcoveModule.cpp:116: error: expected '}' at end of input [exec] make: *** [/Users/jenglish/titanium_mobile_modules/android/brightcove/build/generated/obj/local/armeabi/objs/ti.brightcove/ti.brightcove.BrightcoveModule.o] Error 1 BUILD FAILED /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/module/android/build.xml:226: exec returned: 2 {code}

    Appcelerator JIRA | 5 years ago | Jeff English
    freemarker.core.InvalidReferenceException: constant.value is undefined.
  3. 0

    Access RequestParameters inside Camel Freemarker ftl

    Stack Overflow | 3 years ago | amate
    freemarker.core.InvalidReferenceException: Expression RequestParameters is undefined on line 216, column 40 in ftl/META-INF/spring/route-context.xml.ftl.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    FreeMarker Template Error

    oreports | 9 years ago | jenwheel
    freemarker.core.InvalidReferenceException: Expression error is undefined on line 4, column 50 in template/simple/actionerror.ftl.
  6. 0

    VCF to HTML conversion is throwing exception with partial conversion

    GitHub | 2 years ago | GoogleCodeExporter
    freemarker.core.InvalidReferenceException: The following has evaluated to null or missing: ==> org [in template "hcard-template.html" at line 407, column 107] Tip: If the failing expression is known to be legally null/missing, either specify a default value with myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthessis: (myOptionVar.foo)!myDefault, (myOptionVar.foo)?? The failing instruction (print stack trace for 1 more): ==> ${org} [in template "hcard-template.html" at line 407, column 105]

  1. asdasd 485 times, last 7 months ago
  2. dafman 1 times, last 8 months ago
  3. abrazeneb 3 times, last 9 months ago
  4. Adarro 2 times, last 10 months ago
11 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. freemarker.core.InvalidReferenceException

    constant.value is undefined.

    at freemarker.core.EvaluationUtil.getNumber()
  2. FreeMarker
    Template.process
    1. freemarker.core.EvaluationUtil.getNumber(EvaluationUtil.java:104)
    2. freemarker.core.NumericalBuiltins$cBI._getAsTemplateModel(NumericalBuiltins.java:157)
    3. freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
    4. freemarker.core.Expression.getStringValue(Expression.java:93)
    5. freemarker.core.DollarVariable.accept(DollarVariable.java:76)
    6. freemarker.core.Environment.visit(Environment.java:210)
    7. freemarker.core.MixedContent.accept(MixedContent.java:92)
    8. freemarker.core.Environment.visit(Environment.java:210)
    9. freemarker.core.IfBlock.accept(IfBlock.java:82)
    10. freemarker.core.Environment.visit(Environment.java:210)
    11. freemarker.core.Environment.visit(Environment.java:395)
    12. freemarker.core.BodyInstruction.accept(BodyInstruction.java:93)
    13. freemarker.core.Environment.visit(Environment.java:210)
    14. freemarker.core.MixedContent.accept(MixedContent.java:92)
    15. freemarker.core.Environment.visit(Environment.java:210)
    16. freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:167)
    17. freemarker.core.Environment.visit(Environment.java:417)
    18. freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
    19. freemarker.core.Environment.visit(Environment.java:210)
    20. freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
    21. freemarker.core.Environment.visit(Environment.java:210)
    22. freemarker.core.Macro$Context.runMacro(Macro.java:172)
    23. freemarker.core.Environment.visit(Environment.java:603)
    24. freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
    25. freemarker.core.Environment.visit(Environment.java:210)
    26. freemarker.core.MixedContent.accept(MixedContent.java:92)
    27. freemarker.core.Environment.visit(Environment.java:210)
    28. freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
    29. freemarker.core.Environment.visit(Environment.java:210)
    30. freemarker.core.MixedContent.accept(MixedContent.java:92)
    31. freemarker.core.Environment.visit(Environment.java:210)
    32. freemarker.core.Environment.process(Environment.java:190)
    33. freemarker.template.Template.process(Template.java:237)
    33 frames
  3. org.appcelerator.kroll
    KrollBindingGenerator.main
    1. org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.saveTypeTemplate(KrollBindingGenerator.java:129)
    2. org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.generateBindings(KrollBindingGenerator.java:290)
    3. org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.main(KrollBindingGenerator.java:359)
    3 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  5. Ant
    UnknownElement.execute
    1. org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
    2. org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
    3. org.apache.tools.ant.taskdefs.Java.run(Java.java:771)
    4. org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221)
    5. org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
    6. org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
    7. org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    7 frames
  6. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:597)
    3 frames
  7. Ant
    UnknownElement.execute
    1. org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    2. org.apache.tools.ant.Task.perform(Task.java:348)
    3. org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
    4. org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    4 frames
  8. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:597)
    3 frames
  9. Ant
    UnknownElement.execute
    1. org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    2. org.apache.tools.ant.Task.perform(Task.java:348)
    3. org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)
    4. org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    4 frames
  10. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:597)
    3 frames
  11. Ant
    Main.startAnt
    1. org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    2. org.apache.tools.ant.Task.perform(Task.java:348)
    3. org.apache.tools.ant.Target.execute(Target.java:390)
    4. org.apache.tools.ant.Target.performTasks(Target.java:411)
    5. org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    6. org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    7. org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    8. org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    9. org.apache.tools.ant.Main.runBuild(Main.java:809)
    10. org.apache.tools.ant.Main.startAnt(Main.java:217)
    10 frames
  12. Apache Ant Launcher
    Launcher.main
    1. org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
    2. org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
    2 frames