New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[elasticsearch] Impossible to generate from template /es6x/index/log.ftl #1270

Closed
brasseld opened this Issue May 30, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@brasseld
Member

brasseld commented May 30, 2018

Stacktrace:

14:53:03.540 [reporter-disruptor-1] [] ERROR i.g.r.e.ElasticsearchReporter - An error occurs while indexing data into Elasticsearch 
14:53:03.835 [reporter-disruptor-1] [] ERROR i.g.e.t.f.FreeMarkerComponent - Impossible to generate from template /es6x/index/log.ftl 
freemarker.core.InvalidReferenceException: The following has evaluated to null or missing: 
==> value [in template "es6x/index/log.ftl" at line 35, column 12]

---- 
Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like 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 parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? 
----

---- 
FTL stack trace ("~" means nesting-related): 
- Failed at: ${value?j_string} [in template "es6x/index/log.ftl" at line 35, column 10] 
- Reached through: @compress single_line=true [in template "es6x/index/log.ftl" at line 2, column 1] 
---- 
at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:134) 
at freemarker.core.EvalUtil.coerceModelToTextualCommon(EvalUtil.java:465) 
at freemarker.core.EvalUtil.coerceModelToStringOrUnsupportedMarkup(EvalUtil.java:420) 
at freemarker.core.Expression.evalAndCoerceToStringOrUnsupportedMarkup(Expression.java:107) 
at freemarker.core.BuiltInForString.getTargetString(BuiltInForString.java:34) 
at freemarker.core.BuiltInForString._eval(BuiltInForString.java:29) 
at freemarker.core.Expression.eval(Expression.java:81) 
at freemarker.core.DollarVariable.calculateInterpolatedStringOrMarkup(DollarVariable.java:96) 
at freemarker.core.DollarVariable.accept(DollarVariable.java:59) 
at freemarker.core.Environment.visit(Environment.java:362) 
at freemarker.core.IteratorBlock$IterationContext.executedNestedContentForCollOrSeqListing(IteratorBlock.java:291) 
at freemarker.core.IteratorBlock$IterationContext.executeNestedContent(IteratorBlock.java:271) 
at freemarker.core.IteratorBlock$IterationContext.accept(IteratorBlock.java:242) 
at freemarker.core.Environment.visitIteratorBlock(Environment.java:595) 
at freemarker.core.IteratorBlock.acceptWithResult(IteratorBlock.java:107) 
at freemarker.core.IteratorBlock.accept(IteratorBlock.java:93) 
at freemarker.core.Environment.visit(Environment.java:362) 
at freemarker.core.IteratorBlock$IterationContext.executedNestedContentForHashListing(IteratorBlock.java:368) 
at freemarker.core.IteratorBlock$IterationContext.executeNestedContent(IteratorBlock.java:272) 
at freemarker.core.IteratorBlock$IterationContext.accept(IteratorBlock.java:242) 
at freemarker.core.Environment.visitIteratorBlock(Environment.java:595) 
at freemarker.core.IteratorBlock.acceptWithResult(IteratorBlock.java:107) 
at freemarker.core.IteratorBlock.accept(IteratorBlock.java:93) 
at freemarker.core.Environment.visit(Environment.java:326) 
at freemarker.core.Environment.visit(Environment.java:332) 
at freemarker.core.Environment.visit(Environment.java:368) 
at freemarker.core.Environment.visitAndTransform(Environment.java:460) 
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:103) 
at freemarker.core.Environment.visit(Environment.java:326) 
at freemarker.core.Environment.visit(Environment.java:332) 
at freemarker.core.Environment.process(Environment.java:305) 
at freemarker.template.Template.process(Template.java:378) 
at io.gravitee.elasticsearch.templating.freemarker.FreeMarkerComponent.generateFromTemplate(FreeMarkerComponent.java:71) 
at io.gravitee.reporter.elasticsearch.indexer.es6.ES6BulkIndexer.generateData(ES6BulkIndexer.java:30) 
at io.gravitee.reporter.elasticsearch.indexer.AbstractIndexer.getSource(AbstractIndexer.java:184) 
at io.gravitee.reporter.elasticsearch.indexer.AbstractIndexer$1.apply(AbstractIndexer.java:129) 
at io.gravitee.reporter.elasticsearch.indexer.AbstractIndexer$1.apply(AbstractIndexer.java:119) 
at io.reactivex.internal.operators.single.SingleMap$MapSingleObserver.onSuccess(SingleMap.java:57) 
at io.reactivex.internal.operators.single.SingleJust.subscribeActual(SingleJust.java:30) 
at io.reactivex.Single.subscribe(Single.java:3096) 
at io.reactivex.internal.operators.single.SingleMap.subscribeActual(SingleMap.java:34) 
at io.reactivex.Single.subscribe(Single.java:3096) 
at io.reactivex.internal.operators.single.SingleDoOnSuccess.subscribeActual(SingleDoOnSuccess.java:35) 
at io.reactivex.Single.subscribe(Single.java:3096) 
at io.reactivex.internal.operators.single.SingleDoOnError.subscribeActual(SingleDoOnError.java:35) 
at io.reactivex.Single.subscribe(Single.java:3096) 
at io.reactivex.Single.subscribe(Single.java:3082) 
at io.reactivex.Single.subscribe(Single.java:3003) 
at io.gravitee.reporter.elasticsearch.ElasticsearchReporter.report(ElasticsearchReporter.java:124) 
at io.gravitee.gateway.report.impl.lmax.ReporterEventHandler.onEvent(ReporterEventHandler.java:41) 
at io.gravitee.gateway.report.impl.lmax.ReporterEventHandler.onEvent(ReporterEventHandler.java:27) 
at com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:129) 
at java.lang.Thread.run(Thread.java:745) 

@brasseld brasseld self-assigned this May 30, 2018

@brasseld brasseld added the type: bug label May 30, 2018

@brasseld brasseld added this to the 1.15.4 milestone May 30, 2018

brasseld added a commit to gravitee-io/gravitee-elasticsearch that referenced this issue May 30, 2018

NicolasGeraud added a commit to gravitee-io/gravitee-elasticsearch that referenced this issue Jun 1, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment