English 中文(简体)
在对档案中一条线进行评论时,有缺陷
原标题:Velocity lexical error when commenting out a line at file end

I have the following Velocity template in JIRA (note, extra lines kept in):

NOTE: Please REPLY-TO this email when replying to this issue.

##parse("templates/email/includes/issueplugins.vm")
#if($comment.getId())[ ${baseurl}/browse/${issue.getKey()} ] #end ##?page=${tabpanel-comment}&focusedCommentId=${comment.getId()}#action_${comment.getId()} ] #end


#if($remoteUser.fullName)
$i18n.getText("template.issue.commented.on", $remoteUser.fullName, $issue.getKey())
#dashes($!remoteUser.fullName)--------------#dashes($issue.getKey())-
#end
#if($changelog)

#changes([])
#end
#comment()
#visibility()

#parse("templates/email/text/includes/issuesummary.vm")

#parse("templates/email/text/includes/footer.vm")

There is no line following that last line. When do I this on the very last line:

##parse("templates/email/text/includes/footer.vm")

我有以下错误:

An error occurred whilst rendering this message.  Please contact the administrators, and inform them of this bug.

Details:
-------
org.apache.velocity.exception.ParseErrorException: Lexical error:
    org.apache.velocity.runtime.parser.TokenMgrError: 
        Lexical error at line 20, column 51.  Encountered: <EOF> after : ""
    at org.apache.velocity.app.VelocityEngine.evaluate(VelocityEngine.java:272)
    at org.apache.velocity.app.VelocityEngine.evaluate(VelocityEngine.java:202)
...

I found the following issue from 2004:

看来,这似乎在1.5处是固定的。 在我联合执行认证系统Info的检查中,我看到,联合执行监督委员会4.2.1似乎建议使用1.6版本:

Atlassian Template Renderer Velocity 1.6 Plugin - 1.1.1

当我把“<代码>#if($comment.getId()移至尾时,该错误就消失了。 我在模板结尾处做了一些错误的事情,还是这ug?

http://www.ohchr.org。

Hmm. 当我这样做时:

#if($comment.getId())[ ${baseurl}/browse/${issue.getKey()} ] #end ##?page=${tabpanel-comment}&focusedCommentId=${comment.getId()}#action_${comment.getId()} ] #end

作为最后一行,没有一条空线,我有同样的错误。 然而,如果在这条线之后添加一条线(一旦打上<条码>ENTER),则行文。

磁性模板是否需要一个结束的空间? 我很混淆。

最佳回答
问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签