Log spam: warning generated by velocity

Hi. I noticed a lot of messages like the following:

/rest/timesheet-gadget/1.0/timesheet.json [velocity] Warning! The iterative  is an Iterator in the #foreach() loop at [0,0] in template templates/common/worklog-details-issue.vm. Because it's not resetable, if used in more than once, this may lead to unexpected results.

What do they mean? Are they important, should I be worried? How do I get rid of them?

3 answers

1 accepted

Thanks. This fixed it.

It's not important and harmless, just poor velocity code in some of third-party plugins. You can disable warnings in log4j.properties. More information about this https://confluence.atlassian.com/display/JIRA/Logging+and+Profiling

Thanks, but I would apreciate it if the affected plugin would just fix it. I don't want to disable warning log messages as they may contain something useful someday.

You can disable velocity warnings for this plugin only and this particular classes only but it's on you to decide.

Hi Igor,

"You can disable velocity warnings for this plugin only and this particular classes only but it's on you to decide."

How to do this ?

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

77 views 0 5
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