Expression doc["//opengraphSeo_fetcher/document[position() = last()]"][0] is undefined on line 34, column 18 in hub.ftl. The problematic instruction: ---------- ==> assignment: model=doc["//opengraphSeo_fetcher/document[position() = last()]"][0].@name!"" [on line 34, column 1 in hub.ftl] ---------- Java backtrace for programmers: ---------- freemarker.core.InvalidReferenceException: Expression doc["//opengraphSeo_fetcher/document[position() = last()]"][0] is undefined on line 34, column 18 in hub.ftl. at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:125) at freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:135) at freemarker.core.Dot._getAsTemplateModel(Dot.java:78) at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at freemarker.core.DefaultToExpression._getAsTemplateModel(DefaultToExpression.java:100) at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at freemarker.core.Assignment.accept(Assignment.java:90) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.Environment.process(Environment.java:199) at com.fullsix.edito.template.FreemarkerTemplateProcessor.process(FreemarkerTemplateProcessor.java:225) at com.fullsix.edito.template.FreemarkerTemplateProcessor.process(FreemarkerTemplateProcessor.java:122) at com.fullsix.edito.manager.impl.InternalContentManagerImpl.dumpNodeVersion(InternalContentManagerImpl.java:3145) at com.fullsix.edito.manager.impl.InternalContentManagerImpl.dumpNodeVersion(InternalContentManagerImpl.java:3288) at com.fullsix.edito.manager.impl.InternalContentManagerImpl.dumpNodes(InternalContentManagerImpl.java:3404) at com.fullsix.edito.manager.impl.ContentManagerImpl.dumpNodes(ContentManagerImpl.java:1073) at sun.reflect.GeneratedMethodAccessor613.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy91.dumpNodes(Unknown Source) at com.fullsix.edito.jobs.PublishJob.process(PublishJob.java:59) at com.fullsix.edito.jobs.PublishJob.execute(PublishJob.java:88) at sun.reflect.GeneratedMethodAccessor612.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:111) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy131.execute(Unknown Source) at org.quartz.core.JobRunShell.run(JobRunShell.java:216) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)