Hi,
I have the kind of same problem with statistics that are not displayed on my main wiki or that crashes in any virtual wiki.
The Joda time plugin is enabled but when i follow the advice from Sergiu in a virtual wiki by editing the Current Month Activity panel i can see that the plugin is installed, is available but when i call the getDateTime method it throws a null pointer exception as if the getProtectedPlugin().getDateTime() (line 67 of JodaTimePluginApi) is not working as expected in virtual mode (what ever is the parameter value).
In the main wiki, it works but does not display any activity (always 0 values) despite values in the database (Oracle 10)
What is strange is that the problem occured only in graphical statistics (not stats like most edited pages for example)
-----Message d'origine-----
2. The Joda time plugin might be disabled
I see that the line com.xpn.xwiki.plugin.jodatime.JodaTimePlugin is in
my xwiki.cfg properties
Also, joda-time-1.4.jar is available in WEB_INF > lib folder
> Message: 7
> Date: Sun, 8 Mar 2009 10:51:34 +0100
> From: Thomas Mortagne <thomas.mortagne(a)xwiki.com>
> Subject: Re: [xwiki-users] Stats module configuration
> To: XWiki Users <users(a)xwiki.org>
> Message-ID:
> Â Â Â Â <a8e97d9c0903080151t75b2a7b6l202fa944df5170ac(a)mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> Hi,
>
> On Sat, Mar 7, 2009 at 16:59, Dilipkumar Jadhav
> <jadhav.dilipkumar(a)gmail.com> wrote:
>> Hello friends,
>> My wiki has grown considerably now and we are at a phase where we
>> would like to measure and analyze contributors and their
>> contributions. ?I am using XWiki 1.7.2.
>>
>> I followed the instructions at
>> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration and
>> set the following in the ?xwiki.cfg file.
>>
>> xwiki.stats=1
>> xwiki.stats.default=1
>>
>> Now, I can see that the stats are being recorded in the database (mysql) tables.
>> However, when i visit the stats home in my wiki all i see is "No
>> statistics have been recorded" for all statistics panels. All the
>> graphs show no activity. Also, i have enabled the stats module about 2
>> weeks back during which course there has been a lot of activity on the
>> wiki.
>>
>> Also, the stats seems to work on the XWiki installed on my home pc.
>> However, at my office ?instance of XWiki the stats module does not
>> work. Could it have something to do with the proxy server that we have
>> setup in office.
>
> "No statistics have been recorded" is printed when statistics are
> disabled so I doubt it has anything to do with proxy (it does not
> really check if there is something recorded or not, even if nothing
> was in the database it should generate en empty graph). Maybe you have
> a "statistics" field set to 0 in XWiki.XWikiPreferences (edit in
> object mode to check)
>
>>
>> Did i miss out on some crucial steps...
>> Any help will be greatly appreciated.
>>
>> Thank you...
>> _______________________________________________
>> users mailing list
>> users(a)xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>
>
>
> --
> Thomas Mortagne
>
>
> ------------------------------
>
> Message: 8
> Date: Sun, 08 Mar 2009 11:40:58 +0100
> From: Sergiu Dumitriu <sergiu(a)xwiki.com>
> Subject: Re: [xwiki-users] Stats module configuration
> To: XWiki Users <users(a)xwiki.org>
> Message-ID: <49B3A0BA.3070603(a)xwiki.com>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> Thomas Mortagne wrote:
>> Hi,
>>
>> On Sat, Mar 7, 2009 at 16:59, Dilipkumar Jadhav
>> <jadhav.dilipkumar(a)gmail.com> wrote:
>>> Hello friends,
>>> My wiki has grown considerably now and we are at a phase where we
>>> would like to measure and analyze contributors and their
>>> contributions. Â I am using XWiki 1.7.2.
>>>
>>> I followed the instructions at
>>> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration and
>>> set the following in the  xwiki.cfg file.
>>>
>>> xwiki.stats=1
>>> xwiki.stats.default=1
>>>
>>> Now, I can see that the stats are being recorded in the database (mysql) tables.
>>> However, when i visit the stats home in my wiki all i see is "No
>>> statistics have been recorded" for all statistics panels. All the
>>> graphs show no activity. Also, i have enabled the stats module about 2
>>> weeks back during which course there has been a lot of activity on the
>>> wiki.
>>>
>>> Also, the stats seems to work on the XWiki installed on my home pc.
>>> However, at my office  instance of XWiki the stats module does not
>>> work. Could it have something to do with the proxy server that we have
>>> setup in office.
>>
>> "No statistics have been recorded" is printed when statistics are
>> disabled so I doubt it has anything to do with proxy (it does not
>> really check if there is something recorded or not, even if nothing
>> was in the database it should generate en empty graph). Maybe you have
>> a "statistics" field set to 0 in XWiki.XWikiPreferences (edit in
>> object mode to check)
>>
>
> No Thomas, the message when statistics are disabled is "The statistics
> module is disabled by default for improved performance. For more
> details, see ..". This message means that nothing was retrieved from the
> database.
>
> There might be a problem with another component, the best thing to do is
> to debug each statement in one of the panels. Take for example the
> Stats.CurrentMonthActivity document, edit the panel, and after each #set
> line print the newly set variable, and see which one is wrong. A
> possible problem is that the jodatime plugin is disabled.
>
> --
> Sergiu Dumitriu
> http://purl.org/net/sergiu/
>
>
> ------------------------------
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
>
> End of users Digest, Vol 20, Issue 16
> *************************************
>
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--------------------------------------------------------------------------------
This e-mail is intended only for the addressee named above. It does not bind the sender, except in the case of an existing written convention with the addressee. This e-mail may contain material that is confidential and privileged for the sole use of the intended recipient. Any review, reliance or distribution by others or forwarding without express permission is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender and delete all copies.
While reasonable precautions have been taken to ensure that this e-mail and any attachments are free from any computer virus or similar defect, no liability will be accepted in that respect. Anyone accessing this e-mail must take their own precautions as to security and virus protection.
KBL European Private Bankers S.A., 43 boulevard Royal L-2955 Luxembourg, R.C.S. Luxembourg B 6395, T (352) 47 97 1
Dear all,
Thank you so much for your prompt response.
I've tried to check all the things you have suggested. This is where i
stand now:
1. Debug each line of the stats panel
I printed out the values at the end of each #set line in the most
edited pages panel. This is what i got as a result:
com.xpn.xwiki.criteria.impl.Scope@19fd285
com.xpn.xwiki.criteria.impl.Period@11ff313
com.xpn.xwiki.criteria.impl.Range@4348c6
[]
The final [] in the fourth line above is the value for $stats
2. The Joda time plugin might be disabled
I see that the line com.xpn.xwiki.plugin.jodatime.JodaTimePlugin is in
my xwiki.cfg properties
Also, joda-time-1.4.jar is available in WEB_INF > lib folder
3. "Maybe you have a "statistics" field set to 0 in
XWiki.XWikiPreferences (edit in object mode to check)"
I went to the XWiki.XwikiPreferences page and checked it in the object
mode. Unfortunately, i do not see any "statistics" field in there.
Could you please provide me with some exact example that i should look
for in this page. I see info about panels & skins et al. But nothing
about the statistics field.
4. I read the line in the user guide that says - "When statistics are
globally enabled, storage can be enabled/disabled by wiki using the
XWikiPreference property "statistics"
Is this the same statistics field that we are talking about in point 3
above...If so, i really need some more clarity on looking up
XWikipreferences in the object mode.
5. I have disabled the module and enabled it again. But there is still
no data being displayed on the panels. All it says is - "No statistics
recorded"
Please help...thank you friends.
> Message: 7
> Date: Sun, 8 Mar 2009 10:51:34 +0100
> From: Thomas Mortagne <thomas.mortagne(a)xwiki.com>
> Subject: Re: [xwiki-users] Stats module configuration
> To: XWiki Users <users(a)xwiki.org>
> Message-ID:
> Â Â Â Â <a8e97d9c0903080151t75b2a7b6l202fa944df5170ac(a)mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> Hi,
>
> On Sat, Mar 7, 2009 at 16:59, Dilipkumar Jadhav
> <jadhav.dilipkumar(a)gmail.com> wrote:
>> Hello friends,
>> My wiki has grown considerably now and we are at a phase where we
>> would like to measure and analyze contributors and their
>> contributions. ?I am using XWiki 1.7.2.
>>
>> I followed the instructions at
>> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration and
>> set the following in the ?xwiki.cfg file.
>>
>> xwiki.stats=1
>> xwiki.stats.default=1
>>
>> Now, I can see that the stats are being recorded in the database (mysql) tables.
>> However, when i visit the stats home in my wiki all i see is "No
>> statistics have been recorded" for all statistics panels. All the
>> graphs show no activity. Also, i have enabled the stats module about 2
>> weeks back during which course there has been a lot of activity on the
>> wiki.
>>
>> Also, the stats seems to work on the XWiki installed on my home pc.
>> However, at my office ?instance of XWiki the stats module does not
>> work. Could it have something to do with the proxy server that we have
>> setup in office.
>
> "No statistics have been recorded" is printed when statistics are
> disabled so I doubt it has anything to do with proxy (it does not
> really check if there is something recorded or not, even if nothing
> was in the database it should generate en empty graph). Maybe you have
> a "statistics" field set to 0 in XWiki.XWikiPreferences (edit in
> object mode to check)
>
>>
>> Did i miss out on some crucial steps...
>> Any help will be greatly appreciated.
>>
>> Thank you...
>> _______________________________________________
>> users mailing list
>> users(a)xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>
>
>
> --
> Thomas Mortagne
>
>
> ------------------------------
>
> Message: 8
> Date: Sun, 08 Mar 2009 11:40:58 +0100
> From: Sergiu Dumitriu <sergiu(a)xwiki.com>
> Subject: Re: [xwiki-users] Stats module configuration
> To: XWiki Users <users(a)xwiki.org>
> Message-ID: <49B3A0BA.3070603(a)xwiki.com>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> Thomas Mortagne wrote:
>> Hi,
>>
>> On Sat, Mar 7, 2009 at 16:59, Dilipkumar Jadhav
>> <jadhav.dilipkumar(a)gmail.com> wrote:
>>> Hello friends,
>>> My wiki has grown considerably now and we are at a phase where we
>>> would like to measure and analyze contributors and their
>>> contributions. Â I am using XWiki 1.7.2.
>>>
>>> I followed the instructions at
>>> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration and
>>> set the following in the  xwiki.cfg file.
>>>
>>> xwiki.stats=1
>>> xwiki.stats.default=1
>>>
>>> Now, I can see that the stats are being recorded in the database (mysql) tables.
>>> However, when i visit the stats home in my wiki all i see is "No
>>> statistics have been recorded" for all statistics panels. All the
>>> graphs show no activity. Also, i have enabled the stats module about 2
>>> weeks back during which course there has been a lot of activity on the
>>> wiki.
>>>
>>> Also, the stats seems to work on the XWiki installed on my home pc.
>>> However, at my office  instance of XWiki the stats module does not
>>> work. Could it have something to do with the proxy server that we have
>>> setup in office.
>>
>> "No statistics have been recorded" is printed when statistics are
>> disabled so I doubt it has anything to do with proxy (it does not
>> really check if there is something recorded or not, even if nothing
>> was in the database it should generate en empty graph). Maybe you have
>> a "statistics" field set to 0 in XWiki.XWikiPreferences (edit in
>> object mode to check)
>>
>
> No Thomas, the message when statistics are disabled is "The statistics
> module is disabled by default for improved performance. For more
> details, see ..". This message means that nothing was retrieved from the
> database.
>
> There might be a problem with another component, the best thing to do is
> to debug each statement in one of the panels. Take for example the
> Stats.CurrentMonthActivity document, edit the panel, and after each #set
> line print the newly set variable, and see which one is wrong. A
> possible problem is that the jodatime plugin is disabled.
>
> --
> Sergiu Dumitriu
> http://purl.org/net/sergiu/
>
>
> ------------------------------
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
>
> End of users Digest, Vol 20, Issue 16
> *************************************
>
I'm using this query now: #set($sql = ", BaseObject as obj, $proptype as
prop where obj.className='${ISDclassname}' and obj.id=prop.id.id and
prop.name='${viewby}' and doc.fullName=obj.name and doc.fullName!='$
{ISDclasstemplate}' and $xwiki.getDate()-doc.contentUpdateDate<15 order by
prop.value")
And I am getting this error: Error number 4001 in 4: Error while parsing
velocity page ISDCenter.WebHome Wrapped Exception: Failed to evaluate
content with id Web Home
Let me guess: subtracting doc.contentUpdateDate from $xwiki.getDate() is
invalid? Is there another way that I should manipulate the dates so that I
can determine if a document is too old to display?
Thanks!
Mary Ellen Coleman
Hello friends,
My wiki has grown considerably now and we are at a phase where we
would like to measure and analyze contributors and their
contributions. I am using XWiki 1.7.2.
I followed the instructions at
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration and
set the following in the xwiki.cfg file.
xwiki.stats=1
xwiki.stats.default=1
Now, I can see that the stats are being recorded in the database (mysql) tables.
However, when i visit the stats home in my wiki all i see is "No
statistics have been recorded" for all statistics panels. All the
graphs show no activity. Also, i have enabled the stats module about 2
weeks back during which course there has been a lot of activity on the
wiki.
Also, the stats seems to work on the XWiki installed on my home pc.
However, at my office instance of XWiki the stats module does not
work. Could it have something to do with the proxy server that we have
setup in office.
Did i miss out on some crucial steps...
Any help will be greatly appreciated.
Thank you...
Hi,
I'm starting to have a look at groovy scripting in xwiki and I have o
problem that I don't understand it.
More exactly:
When I write the following code (it is from a book, "Programming Groovy") it
doesn't display anything. It doesn't display the message from my function.
If I write a simple instruction println "a text" then it display the text.
It is something wrong with iterationDetails function ?
enum Methodologies
{
Evo(5),
XP(21),
Scrum(30);
final int daysInIteration
Methodologies(days) { daysInIteration = days }
def iterationDetails()
{
println "${this} recommends $daysInIteration days for iteration"
}
}
for(methodology in Methodologies.values())
{
methodology.iterationDetails()
}
--
View this message in context: http://n2.nabble.com/Groovy-problem-tp2440947p2440947.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
I've improved slightly the translation app at http://l10n.xwiki.org
It now supports sorting per the translation keys both for the output
(the file will be nicer looking) and when translating, which will make
it easier to translate keys that correspond to the same module together.
In terms of status the great news is that we have the following language
completed:
- English (obviously)
- French
- German
- Romanian
Translators might want to have a look at the "outdated" translations.
These are the already translated keys that have in the mean time changed
in the english language.
Outdated translations are available from the OutDated link of your language.
Review is also important. It gives a second chance to check
translations. Also an already translated key that has been changed and
not reviewed will not be taken into account until it is reviewed.
Review is accessible from the Review link of your language.
In any case I'm really happy with what we have achieve. We now have 4
complete languages and we can keep track of the changes.
We'll make sure this hard work is going to make it in 1.8 final release.
Thanks to all for the contribution and we welcome other volunteers to
tackle the other languages.
Ludovic
--
Ludovic Dubost
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost