[xwiki-users] Activity stream app: failed to execute [velocity] macro
Hi, I already looked at similar topics but none of them allowed me to solve the issue. I'm having the bellowing issue in the http://my.domain/xwiki/bin/view/Main/WebHome page, i.e. where the activity stream is displayed by default. I'm running the XWIKI ENTERPRISE 5.2.4 WAR inside a Tomcat 7.0.47 container and behind an Apache HTTP server acting as a reverse proxy. OS: CentOS 6.4 Any help would be appreciated. Let me know if you need more information. Regards, Thibault -- View this message in context: http://xwiki.475771.n2.nabble.com/Activity-stream-app-failed-to-execute-velo... Sent from the XWiki- Users mailing list archive at Nabble.com.
What do you get for http://pastebin.com/w5dtq0F1 ? From the stack trace it seem there is something wrong with the activity stream results. The problem seems to be in the displayActivity Velocity macro (Main.Activity), around: #set ($pageName = $page.get(0)) Hope this helps, Marius On Fri, Apr 4, 2014 at 2:08 PM, tduchateau <[email protected]> wrote:
Hi,
I already looked at similar topics but none of them allowed me to solve the issue. I'm having the bellowing issue in the http://my.domain/xwiki/bin/view/Main/WebHome page, i.e. where the activity stream is displayed by default.
I'm running the XWIKI ENTERPRISE 5.2.4 WAR inside a Tomcat 7.0.47 container and behind an Apache HTTP server acting as a reverse proxy. OS: CentOS 6.4
Any help would be appreciated. Let me know if you need more information.
Regards, Thibault
-- View this message in context: http://xwiki.475771.n2.nabble.com/Activity-stream-app-failed-to-execute-velo... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi Marius, Thanks for your help. I just added your script in a new velocity widget, on the WebHome page and it works well. <http://xwiki.475771.n2.nabble.com/file/n7590032/ScreenShot060.png> I tried to add your script -- View this message in context: http://xwiki.475771.n2.nabble.com/Activity-stream-app-failed-to-execute-velo... Sent from the XWiki- Users mailing list archive at Nabble.com.
/Sorry for the double post but it seems my edit wouldn't have been seen by the mailing list :-// Hi Marius, Thanks for your help. I just added your script in a new velocity widget, on the WebHome page and it works well. <http://xwiki.475771.n2.nabble.com/file/n7590033/ScreenShot060.png> Lots of links are generated. But I'm not sure to understand how I can use it to debug my issue. :-)
From what I understand, the issue would come from the #displayActivity() part? If so, where can I find the corresponding velocity macro?
Thanks! Regards, Thibault. -- View this message in context: http://xwiki.475771.n2.nabble.com/Activity-stream-app-failed-to-execute-velo... Sent from the XWiki- Users mailing list archive at Nabble.com.
The image doesn't show too much.. but from what I can see in it you're missing the wiki name after the date. Here's what I get: Sandbox.Foo, 2014-04-08 18:15:17.0, xwiki, Main.Sheet, 2014-04-08 16:56:54.0, xwiki, Sandbox.WebHome, 2014-04-08 13:26:14.0, xwiki, Sandbox.123, 2014-04-07 17:10:43.0, xwiki, ... so this #set ($pageWiki = $page.get(2)) probably fails. You could also display $page.size() in the "foreach" from the snippet I gave you. #displayActivity() is in Main.Activity, as I said, but you need to edit in object mode and look at the WikiMacroClass object, the "Macro code" property. Hope this helps, Marius On Tue, Apr 8, 2014 at 6:07 PM, tduchateau <[email protected]> wrote:
Hi Marius,
Thanks for your help. I just added your script in a new velocity widget, on the WebHome page and it works well.
<http://xwiki.475771.n2.nabble.com/file/n7590032/ScreenShot060.png> I tried to add your script
-- View this message in context: http://xwiki.475771.n2.nabble.com/Activity-stream-app-failed-to-execute-velo... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi Marius, Indeed, when displaying the $page.size() in the "foreach", it always display 2 instead of 3. Any idea why? Thanks! Regards, Thibault. -- View this message in context: http://xwiki.475771.n2.nabble.com/Activity-stream-app-failed-to-execute-velo... Sent from the XWiki- Users mailing list archive at Nabble.com.
The third item, the wiki, has been introduced in 5.4RC1 by https://github.com/xwiki/xwiki-platform/commit/129d2c652c3305cbd0c8c77533953... . @Guillaume, any idea why the returned results don't have the wiki? Thanks, Marius On Fri, Apr 11, 2014 at 10:11 AM, tduchateau <[email protected]> wrote:
Hi Marius,
Indeed, when displaying the $page.size() in the "foreach", it always display 2 instead of 3. Any idea why?
Thanks!
Regards, Thibault.
-- View this message in context: http://xwiki.475771.n2.nabble.com/Activity-stream-app-failed-to-execute-velo... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Weird. :-/ I just double-checked, I'm using the XWiki Enterprise 5.2.4 WAR. Regards, Thibault. -- View this message in context: http://xwiki.475771.n2.nabble.com/Activity-stream-app-failed-to-execute-velo... Sent from the XWiki- Users mailing list archive at Nabble.com.
It seem the wiki pages you have don't correspond with the version of the WAR. Importing the Activity Stream UI XAR from here http://maven.xwiki.org/releases/org/xwiki/platform/xwiki-platform-activityst... should fix the problem (at least for the Activity Stream). Hope this helps, Marius On Fri, Apr 11, 2014 at 1:53 PM, tduchateau <[email protected]> wrote:
Weird. :-/ I just double-checked, I'm using the XWiki Enterprise 5.2.4 WAR.
Regards, Thibault.
-- View this message in context: http://xwiki.475771.n2.nabble.com/Activity-stream-app-failed-to-execute-velo... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Importing the XAR you mentioned and re-adding the Activity Stream fixed the issue! Thanks Marius! Regards, Thibault. -- View this message in context: http://xwiki.475771.n2.nabble.com/Activity-stream-app-failed-to-execute-velo... Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (2)
-
Marius Dumitru Florea -
tduchateau