Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-10907

Lots of warnings in the logs: Deprecated usage of method [org.apache.velocity.tools.generic.ListTool.get]

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      Since we switched to Velocity Tools 2.0 we're now getting a lot of these which we need to fix:

      2014-09-01 09:14:16,131 [http://localhost:8080/xwiki/bin/view/Main/] WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of method [org.apache.velocity.tools.generic.ListTool.get] in @101,40 
      2014-09-01 09:14:38,763 [http://localhost:8080/xwiki/bin/export/Main/WebHome?format=html] WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of method [org.apache.velocity.tools.generic.ListTool.get] in @101,40 
      2014-09-01 10:07:34,734 [http://localhost:8080/xwiki/bin/view/Panels/Applications] WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of method [org.apache.velocity.tools.generic.ListTool.get] in @101,40 
      2014-09-01 10:07:40,275 [http://localhost:8080/xwiki/bin/edit/Panels/Applications?editor=object] WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of method [org.apache.velocity.tools.generic.ListTool.size] in @123,38 
      2014-09-01 11:32:48,862 [http://localhost:8080/xwiki/bin/view/Main/] WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of method [org.apache.velocity.tools.generic.ListTool.get] in @101,40 
      2014-09-01 11:32:54,212 [http://localhost:8080/xwiki/bin/view/Blog/] WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of method [org.apache.velocity.tools.generic.ListTool.get] in @101,40 
      2014-09-01 11:32:58,615 [http://localhost:8080/xwiki/bin/view/Main/SpaceIndex?space=Blog] WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of method [org.apache.velocity.tools.generic.ListTool.get] in @101,40 
      2014-09-01 11:32:59,245 [http://localhost:8080/xwiki/bin/get/XWiki/LiveTableResults?outputSyntax=plain&transprefix=platform.index.&classname=&collist=doc.name%2Cdoc.space%2Cdoc.date%2Cdoc.author&queryFilters=currentlanguage%2Chidden&&space=Blog&offset=1&limit=15&reqNo=1&sort=doc.name&dir=asc] WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of method [org.apache.velocity.tools.generic.ListTool.contains] in xwiki:XWiki.LiveTableResults@525,29 
      2014-09-01 11:33:01,494 [http://localhost:8080/xwiki/bin/get/XWiki/LiveTableResults?outputSyntax=plain&transprefix=platform.index.&classname=&collist=doc.name%2Cdoc.space%2Cdoc.date%2Cdoc.author&queryFilters=currentlanguage%2Chidden&&space=Blog&offset=1&limit=15&reqNo=2&doc.name=app&sort=doc.name&dir=asc] WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of method [org.apache.velocity.tools.generic.ListTool.contains] in xwiki:XWiki.LiveTableResults@525,29 
      2014-09-01 11:33:06,330 [http://localhost:8080/xwiki/bin/view/XWiki/Admin?category=preferences] WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of method [org.apache.velocity.tools.generic.ListTool.get] in @101,40 
      2014-09-01 11:33:19,355 [http://localhost:8080/xwiki/bin/XWiki/Admin?category=preferences] WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of method [org.apache.velocity.tools.generic.ListTool.get] in @101,40 
      2014-09-01 11:33:22,895 [http://localhost:8080/xwiki/bin/get/XWiki/LiveTableResults?outputSyntax=plain&transprefix=platform.index.&classname=&collist=doc.name%2Cdoc.space%2Cdoc.date%2Cdoc.author&queryFilters=currentlanguage%2Chidden&&space=Blog&offset=1&limit=15&reqNo=1&doc.name=app&sort=doc.name&dir=asc] WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of method [org.apache.velocity.tools.generic.ListTool.contains] in xwiki:XWiki.LiveTableResults@525,29 
      2014-09-01 11:33:25,445 [http://localhost:8080/xwiki/bin/view/Blog/ApplicationsPanelEntry] WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of method [org.apache.velocity.tools.generic.ListTool.get] in @101,40 
      2014-09-01 11:33:29,223 [http://localhost:8080/xwiki/bin/edit/Blog/ApplicationsPanelEntry?editor=object] WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of method [org.apache.velocity.tools.generic.ListTool.size] in @123,38 
      2014-09-01 11:34:30,316 [http://localhost:8080/xwiki/bin/view/Main/] WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of method [org.apache.velocity.tools.generic.ListTool.get] in @101,40 
      2014-09-01 11:34:52,961 [http://localhost:8080/xwiki/bin/export/Main/WebHome?format=html] WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of method [org.apache.velocity.tools.generic.ListTool.get] in @101,40 
      

      There are 2 issues with them:

      • It fills the logs and makes xwiki slower
      • It casts a doubt in the head of admins since a Warning is never a good thing
      • It's a regression since we didn't have any such warning in the default XE before this change.

      Attachments

        Activity

          People

            vmassol Vincent Massol
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: