On Wed, Apr 2, 2014 at 11:48 AM, Hamster <[email protected]> wrote:
> In our effort to increase the performance of our XWiki 5.4.3 we are noticing
> warnings in our logs:
>
> 2014-04-01 16:36:59,657
> [http://XXX.XXX.XXX:8080/xwiki/bin/view/Dashboard/WebHome?srid=tC0qENZU&f_type=DOCUMENT&f_locale=nl&f_locale=&r=1]
> WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of getter
> [com.xpn.xwiki.api.DeprecatedContext.getUser] in
> xwiki:Dashboard.WebHome@1,47
> 2014-04-01 16:36:59,657
> [http://XXX.XXX.XXX:8080/xwiki/bin/view/Dashboard/WebHome?srid=tC0qENZU&f_type=DOCUMENT&f_locale=nl&f_locale=&r=1]
> WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of getter
> [com.xpn.xwiki.api.DeprecatedContext.getUser] in
> xwiki:Dashboard.WebHome@2,46
> 2014-04-01 16:36:59,657
> [http://XXX.XXX.XXX:8080/xwiki/bin/view/Dashboard/WebHome?srid=tC0qENZU&f_type=DOCUMENT&f_locale=nl&f_locale=&r=1]
> WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of getter
> [com.xpn.xwiki.api.DeprecatedContext.getUser] in
> xwiki:Dashboard.WebHome@3,49
> 2014-04-01 16:36:59,657
> [http://XXX.XXX.XXX:8080/xwiki/bin/view/Dashboard/WebHome?srid=tC0qENZU&f_type=DOCUMENT&f_locale=nl&f_locale=&r=1]
> WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of getter
> [com.xpn.xwiki.api.DeprecatedContext.getUser] in
> xwiki:Dashboard.WebHome@4,52
> 2014-04-01 16:36:59,658
> [http://XXX.XXX.XXX:8080/xwiki/bin/view/Dashboard/WebHome?srid=tC0qENZU&f_type=DOCUMENT&f_locale=nl&f_locale=&r=1]
> WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of getter
> [com.xpn.xwiki.api.DeprecatedContext.getUser] in
> xwiki:Dashboard.WebHome@5,50
> 2014-04-01 16:36:59,658
> [http://XXX.XXX.XXX:8080/xwiki/bin/view/Dashboard/WebHome?srid=tC0qENZU&f_type=DOCUMENT&f_locale=nl&f_locale=&r=1]
> WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of getter
> [com.xpn.xwiki.api.DeprecatedContext.getUser] in
> xwiki:Dashboard.WebHome@6,49
>
> 2014-04-01 16:36:59,836
> [http://XXX.XXX.XXX:8080/xwiki/bin/ssx/SyntaxHighlighting/SyntaxHighlighting?language=nl]
> WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of method
> [com.xpn.xwiki.plugin.zipexplorer.ZipExplorerPluginAPI.getFileLink] in
> xwiki:SyntaxHighlighting.SyntaxHighlighting@5,62
> 2014-04-01 16:37:00,050
> [http://XXX.XXX.XXX:8080/xwiki/bin/jsx/SyntaxHighlighting/Autocomplete?language=nl]
> WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of method
> [com.xpn.xwiki.plugin.zipexplorer.ZipExplorerPluginAPI.getFileLink] in
> xwiki:SyntaxHighlighting.Autocomplete@5,62
> 2014-04-01 16:37:00,054
> [http://XXX.XXX.XXX:8080/xwiki/bin/jsx/SyntaxHighlighting/SyntaxHighlighting?language=nl]
> WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of method
> [com.xpn.xwiki.plugin.zipexplorer.ZipExplorerPluginAPI.getFileLink] in
> xwiki:SyntaxHighlighting.SyntaxHighlighting@5,62
>
> 2014-04-01 16:37:08,168
> [http://XXX.XXX.XXX:8080/xwiki/bin/view/Algemeen/Engineering] WARN
> o.x.v.i.DefaultVelocityEngine  - Deprecated usage of method
> [com.xpn.xwiki.api.XWiki.searchDocuments] in
> xwiki:Algemeen.Engineering@12,26
> 2014-04-01 16:37:32,109
> [http://XXX.XXX.XXX:8080/xwiki/bin/view/Algemeen/PersoneelInformatie] WARN
> o.x.v.i.DefaultVelocityEngine  - Deprecated usage of method
> [com.xpn.xwiki.api.XWiki.searchDocuments] in
> xwiki:Algemeen.PersoneelInformatie@12,26
>
> As far as I can see, there are 3 distinct warnings:
>
> 1) Deprecated usage of getter [com.xpn.xwiki.api.DeprecatedContext.getUser]
> in xwiki:Dashboard.WebHome@1,47
>
> 2) Deprecated usage of method
> [com.xpn.xwiki.plugin.zipexplorer.ZipExplorerPluginAPI.getFileLink] in
> xwiki:SyntaxHighlighting.SyntaxHighlighting@5,62
>
> 3) Deprecated usage of method [com.xpn.xwiki.api.XWiki.searchDocuments] in
> xwiki:Algemeen.Engineering@12,26
>
>
> (1) This is the warning I can't put my finger on at all. Where should I
> start looking?

This one means a Velocity script is using $context instead of $xcontext.

>
> (2) This looks like part of an Extension...but our Xwiki does NOT have the
> Syntax Highlighting Application
> <http://extensions.xwiki.org/xwiki/bin/view/Extension/Syntax+Highlighting+Application>
> installed.

Probably mean you imported it and not installed it as extension.

>
> (3) This error is probable related to an XWiki Macro I have written which
> indeed uses the $wiki.searchDocuments. What method should I use instead?

See 
http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/org/xwiki/platform/xwiki-platform-oldcore/6.0-milestone-1/xwiki-platform-oldcore-6.0-milestone-1-javadoc.jar/!/index.html
and http://extensions.xwiki.org/xwiki/bin/view/Extension/Query+Module

>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/DefaultVelocityEngine-Warnings-tp7589925.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to