[B135] Linux - Can't show Metatrader4 source code

[B135] Can't show Metatrader4 source code

What I did:
1: Start GUI
2: Open Custom projects
3: Select 'Results' tab
4: Select 'Source Code' tab
5: Double click 'Strategy 10.29.131'

System:
StrategyQuant X Pro build 135

OS:
Ubuntu 21.10

Log:
23:26:18.837 [qtp470051986-556] DEBUG c.s.w.servlet.HttpJSONServlet - Incoming command: /project /getDataItems
23:26:18.837 [qtp470051986-556] DEBUG c.s.w.servlet.AbstractServlet - reportName: Strategy 10.29.131
23:26:18.837 [qtp470051986-556] DEBUG c.s.w.servlet.AbstractServlet - projectName: USDJPY H1 v3
23:26:18.837 [qtp470051986-556] DEBUG c.s.w.servlet.AbstractServlet - databankName: Build
23:26:18.837 [qtp470051986-556] DEBUG c.s.w.servlet.HttpJSONServlet - Chromium browser detected
23:26:18.910 [qtp470051986-521] DEBUG c.s.w.servlet.HttpJSONServlet - Incoming command: /sourcecode /print
23:26:18.910 [qtp470051986-521] DEBUG c.s.w.servlet.HttpJSONServlet - Chromium browser detected
23:26:18.925 [qtp470051986-521] DEBUG c.s.p.R.i.S.SourceCodeServlet - Generating Expert Advisor for MetaTrader4 (*.MQ4)
Feb 14, 2022 2:26:19 PM freemarker.log._JULLoggerFactory$JULLogger error
SEVERE: Error executing FreeMarker template
FreeMarker template error:
Template inclusion failed (for parameter value "blocks/WoodiesTrendDown.tpl"):
Template not found for name "MetaTrader4/blocks/WoodiesTrendDown.tpl".
The name was interpreted by this TemplateLoader: MultiTemplateLoader(loader1 = FileTemplateLoader(baseDir="/home/virusmaster/StrategyQuantX_135_linux/internal/extend/Code"), loader2 = FileTemplateLoader(baseDir="/home/virusmaster/StrategyQuantX_135_linux/user/extend/Code")).

----
FTL stack trace ("~" means nesting-related):
    - Failed at: #include "blocks/" + blockKey + ".tpl"  [in template "MetaTrader4/mt4Blocks.inc" in macro "printBlock" at line 235, column 19]
    - Reached through: @printBlock block  [in template "MetaTrader4/blocks/AND.tpl" at line 5, column 37]
    ~ Reached through: #nested  [in template "global/globalFunctions.inc" in macro "compress_single_line" at line 2, column 47]
    ~ Reached through: @compress_single_line  [in template "MetaTrader4/blocks/AND.tpl" at line 1, column 1]
    - Reached through: #include "blocks/" + blockKey + ".tpl"  [in template "MetaTrader4/mt4Blocks.inc" in macro "printBlock" at line 235, column 19]
    - Reached through: @printBlock block  [in template "MetaTrader4/blocks/AND.tpl" at line 5, column 37]
    ~ Reached through: #nested  [in template "global/globalFunctions.inc" in macro "compress_single_line" at line 2, column 47]
    ~ Reached through: @compress_single_line  [in template "MetaTrader4/blocks/AND.tpl" at line 1, column 1]
    - Reached through: #include "blocks/" + blockKey + ".tpl"  [in template "MetaTrader4/mt4Blocks.inc" in macro "printBlock" at line 235, column 19]
    - Reached through: @printBlock signal?children[0]  [in template "MetaTrader4/mt4Blocks.inc" in macro "printRule" at line 150, column 74]
    ~ Reached through: #nested  [in template "MetaTrader4/Functions.inc" in macro "replaceBr" at line 4, column 18]
    ~ Reached through: @replaceBr  [in template "MetaTrader4/mt4Blocks.inc" in macro "printRule" at line 77, column 1]
    - Reached through: @printRule rule  [in template "MetaTrader4/mt4Blocks.inc" in macro "printRulesForEvent" at line 66, column 1]
    - Reached through: @printRulesForEvent "OnBarUpdate"  [in template "MetaTrader4/Main.tpl" at line 149, column 1]
----

Java stack trace (for programmers):
----
freemarker.core._MiscTemplateException: [... Exception message was already printed; see it above ...]
    at freemarker.core.Include.accept(Include.java:164)
    at freemarker.core.Environment.visit(Environment.java:330)
    at freemarker.core.Environment.visit(Environment.java:336)
    at freemarker.core.Environment.visit(Environment.java:336)
    at freemarker.core.Environment.visit(Environment.java:336)
    at freemarker.core.Environment.visit(Environment.java:336)
    at freemarker.core.Environment.visit(Environment.java:336)
    at freemarker.core.Environment.visit(Environment.java:372)
    at freemarker.core.Environment.invoke(Environment.java:775)
    at freemarker.core.UnifiedCall.accept(UnifiedCall.java:83)
    at freemarker.core.Environment.visit(Environment.java:366)
    at freemarker.core.IteratorBlock$IterationContext.executedNestedContentForCollOrSeqListing(IteratorBlock.java:317)
    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:642)
    at freemarker.core.IteratorBlock.acceptWithResult(IteratorBlock.java:107)
    at freemarker.core.IteratorBlock.accept(IteratorBlock.java:93)
    at freemarker.core.Environment.visit(Environment.java:366)
    at freemarker.core.Environment.invokeNestedContent(Environment.java:618)
    at freemarker.core.BodyInstruction.accept(BodyInstruction.java:60)
    at freemarker.core.Environment.visit(Environment.java:366)
    at freemarker.core.Environment.visit(Environment.java:393)
    at freemarker.core.BlockAssignment.accept(BlockAssignment.java:55)
    at freemarker.core.Environment.visit(Environment.java:366)
    at freemarker.core.Environment.invoke(Environment.java:775)
    at freemarker.core.UnifiedCall.accept(UnifiedCall.java:83)
    at freemarker.core.Environment.visit(Environment.java:330)
    at freemarker.core.Environment.include(Environment.java:2582)
    at freemarker.core.Include.accept(Include.java:171)
    at freemarker.core.Environment.visit(Environment.java:330)
    at freemarker.core.Environment.visit(Environment.java:336)
    at freemarker.core.Environment.visit(Environment.java:336)
    at freemarker.core.Environment.visit(Environment.java:336)
    at freemarker.core.Environment.visit(Environment.java:336)
    at freemarker.core.Environment.visit(Environment.java:336)
    at freemarker.core.Environment.visit(Environment.java:372)
    at freemarker.core.Environment.invoke(Environment.java:775)
    at freemarker.core.UnifiedCall.accept(UnifiedCall.java:83)
    at freemarker.core.Environment.visit(Environment.java:366)
    at freemarker.core.IteratorBlock$IterationContext.executedNestedContentForCollOrSeqListing(IteratorBlock.java:317)
    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:642)
    at freemarker.core.IteratorBlock.acceptWithResult(IteratorBlock.java:107)
    at freemarker.core.IteratorBlock.accept(IteratorBlock.java:93)
    at freemarker.core.Environment.visit(Environment.java:366)
    at freemarker.core.Environment.invokeNestedContent(Environment.java:618)
    at freemarker.core.BodyInstruction.accept(BodyInstruction.java:60)
    at freemarker.core.Environment.visit(Environment.java:366)
    at freemarker.core.Environment.visit(Environment.java:393)
    at freemarker.core.BlockAssignment.accept(BlockAssignment.java:55)
    at freemarker.core.Environment.visit(Environment.java:366)
    at freemarker.core.Environment.invoke(Environment.java:775)
    at freemarker.core.UnifiedCall.accept(UnifiedCall.java:83)
    at freemarker.core.Environment.visit(Environment.java:330)
    at freemarker.core.Environment.include(Environment.java:2582)
    at freemarker.core.Include.accept(Include.java:171)
    at freemarker.core.Environment.visit(Environment.java:330)
    at freemarker.core.Environment.visit(Environment.java:336)
    at freemarker.core.Environment.visit(Environment.java:336)
    at freemarker.core.Environment.visit(Environment.java:336)
    at freemarker.core.Environment.visit(Environment.java:336)
    at freemarker.core.Environment.visit(Environment.java:336)
    at freemarker.core.Environment.visit(Environment.java:372)
    at freemarker.core.Environment.invoke(Environment.java:775)
    at freemarker.core.UnifiedCall.accept(UnifiedCall.java:83)
    at freemarker.core.Environment.visit(Environment.java:330)
    at freemarker.core.Environment.visit(Environment.java:372)
    at freemarker.core.IteratorBlock$IterationContext.executedNestedContentForCollOrSeqListing(IteratorBlock.java:317)
    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:642)
    at freemarker.core.IteratorBlock.acceptWithResult(IteratorBlock.java:107)
    at freemarker.core.IteratorBlock.accept(IteratorBlock.java:93)
    at freemarker.core.Environment.visit(Environment.java:330)
    at freemarker.core.Environment.visit(Environment.java:336)
    at freemarker.core.Environment.visit(Environment.java:372)
    at freemarker.core.Environment.invokeNestedContent(Environment.java:618)
    at freemarker.core.BodyInstruction.accept(BodyInstruction.java:60)
    at freemarker.core.Environment.visit(Environment.java:366)
    at freemarker.core.Environment.visit(Environment.java:393)
    at freemarker.core.BlockAssignment.accept(BlockAssignment.java:55)
    at freemarker.core.Environment.visit(Environment.java:366)
    at freemarker.core.Environment.invoke(Environment.java:775)
    at freemarker.core.UnifiedCall.accept(UnifiedCall.java:83)
    at freemarker.core.Environment.visit(Environment.java:366)
    at freemarker.core.Environment.invoke(Environment.java:775)
    at freemarker.core.UnifiedCall.accept(UnifiedCall.java:83)
    at freemarker.core.Environment.visit(Environment.java:366)
    at freemarker.core.IteratorBlock$IterationContext.executedNestedContentForCollOrSeqListing(IteratorBlock.java:317)
    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:642)
    at freemarker.core.IteratorBlock.acceptWithResult(IteratorBlock.java:107)
    at freemarker.core.IteratorBlock.accept(IteratorBlock.java:93)
    at freemarker.core.Environment.visit(Environment.java:330)
    at freemarker.core.Environment.visit(Environment.java:372)
    at freemarker.core.IteratorBlock$IterationContext.executedNestedContentForCollOrSeqListing(IteratorBlock.java:317)
    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:642)
    at freemarker.core.IteratorBlock.acceptWithResult(IteratorBlock.java:107)
    at freemarker.core.IteratorBlock.accept(IteratorBlock.java:93)
    at freemarker.core.Environment.visit(Environment.java:366)
    at freemarker.core.Environment.invoke(Environment.java:775)
    at freemarker.core.UnifiedCall.accept(UnifiedCall.java:83)
    at freemarker.core.Environment.visit(Environment.java:330)
    at freemarker.core.Environment.visit(Environment.java:336)
    at freemarker.core.Environment.visit(Environment.java:336)
    at freemarker.core.Environment.visit(Environment.java:336)
    at freemarker.core.Environment.process(Environment.java:309)
    at freemarker.template.Template.process(Template.java:384)
    at com.strategyquant.lib.sourcecode.SourceCodeGenerator.getSource(Unknown Source)
    at com.strategyquant.plugin.Results.impl.SourceCode.SourceCodeServlet.getSourceCode(Unknown Source)
    at com.strategyquant.plugin.Results.impl.SourceCode.SourceCodeServlet.onPrint(Unknown Source)
    at com.strategyquant.plugin.Results.impl.SourceCode.SourceCodeServlet.execute(Unknown Source)
    at com.strategyquant.webguilib.servlet.HttpJSONServlet.doGet(Unknown Source)
    at com.strategyquant.webguilib.servlet.AbstractServlet.doPost(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:876)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:542)
    at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1711)
    at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1347)
    at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1678)
    at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1249)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
    at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:753)
    at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:61)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
    at org.eclipse.jetty.server.Server.handle(Server.java:505)
    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:370)
    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:267)
    at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)
    at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
    at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)
    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)
    at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:781)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:917)
    at java.base/java.lang.Thread.run(Thread.java:832)
Caused by: freemarker.template.TemplateNotFoundException: Template not found for name "MetaTrader4/blocks/WoodiesTrendDown.tpl".
The name was interpreted by this TemplateLoader: MultiTemplateLoader(loader1 = FileTemplateLoader(baseDir="/home/virusmaster/StrategyQuantX_135_linux/internal/extend/Code"), loader2 = FileTemplateLoader(baseDir="/home/virusmaster/StrategyQuantX_135_linux/user/extend/Code")).
    at freemarker.template.Configuration.getTemplate(Configuration.java:2797)
    at freemarker.core.Environment.getTemplateForInclusion(Environment.java:2540)
    at freemarker.core.Include.accept(Include.java:162)
    ... 148 more

23:26:25.766 [qtp470051986-558] DEBUG c.s.w.servlet.HttpJSONServlet - Incoming command: /main /alive
23:26:25.766 [qtp470051986-558] DEBUG c.s.w.servlet.HttpJSONServlet - Chromium browser detected

Attachments
USDJPY H1 v3 custom project config.cfx
(55.41 KiB)
Strategy 1029131.sqx
(128.48 KiB)
error-log
(14.38 KiB)
Screenshot from 2022-02-14 23-29-39.png
(869.50 KiB)
  • Votes +1
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

HS
#1

NAPA

14.02.2022 15:35

Task created

E
#2

Emmanuel

21.02.2022 09:20
Voted for this task.
TT
#3

Tamas

25.03.2022 10:42

Subject changed from [B135] Can't show Metatrader4 source code to [B135] Linux - Can't show Metatrader4 source code


Votes: +1

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please