org.apache.velocity.exception.ParseErrorException when attempting to add users to a group

I'm getting the following error when attempting to add users to a group:

org.apache.velocity.exception.ParseErrorException: Encountered "#end\n" at /templates/permissionmgmt/manage-users-basic.vm[line 113, column 9] Was expecting one of: <EOF> "(" ... <RPAREN> ... <ESCAPE_DIRECTIVE> ... <SET_DIRECTIVE> ... "##" ... "\\\\" ... "\\" ... <TEXT> ... "*#" ... "*#" ... <STRING_LITERAL> ... <IF_DIRECTIVE> ... <STOP_DIRECTIVE> ... <INTEGER_LITERAL> ... <FLOATING_POINT_LITERAL> ... <WORD> ... <BRACKETED_WORD> ... <IDENTIFIER> ... <DOT> ... "{" ... "}" ...

at org.apache.velocity.Template.process(Template.java:141)

Stack Trace:[hide]

org.apache.velocity.exception.ParseErrorException: Encountered "#end\n" at /templates/permissionmgmt/manage-users-basic.vm[line 113, column 9]

Was expecting one of:

<EOF>

"(" ...

<RPAREN> ...

<ESCAPE_DIRECTIVE> ...

<SET_DIRECTIVE> ...

"##" ...

"\\\\" ...

"\\" ...

<TEXT> ...

"*#" ...

"*#" ...

<STRING_LITERAL> ...

<IF_DIRECTIVE> ...

<STOP_DIRECTIVE> ...

<INTEGER_LITERAL> ...

<FLOATING_POINT_LITERAL> ...

<WORD> ...

<BRACKETED_WORD> ...

<IDENTIFIER> ...

<DOT> ...

"{" ...

"}" ...

at org.apache.velocity.Template.process(Template.java:141)

at com.atlassian.confluence.util.velocity.ConfigurableResourceManager.loadResource(ConfigurableResourceManager.java:364)

at com.atlassian.confluence.util.velocity.ConfigurableResourceManager.getResource(ConfigurableResourceManager.java:305)

at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1400)

at org.apache.velocity.runtime.directive.Parse.render(Parse.java:198)

at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)

at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)

at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)

at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)

at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)

at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)

at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)

at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)

at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)

at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)

at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)

at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)

at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:159)

at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)

at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)

at org.apache.velocity.Template.merge(Template.java:328)

at org.apache.velocity.Template.merge(Template.java:235)

1 answer

I am getting same kinda of problem in calling recursively a macro. Any help is appreciated.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Feb 07, 2019 in Marketplace Apps

A Timeless Love Story

It started as any story starts, on a normal, rainy day.   Admin meets App, and her name was Klok2, and like any first relationship we were both trying to make it work but neither one knew what...

441 views 8 26
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you