Re: [xwiki-users] Timeline and snippets

2010-12-09 Thread Sergiu Dumitriu
On 12/09/2010 02:49 AM, Paul Harris wrote:
> I think there is still a bug in there.  See this line:
>
>#set($hqlQuery = ", XWikiRCSNodeInfo as ni where doc.id=ni.id.docId and
> ni.id.version2=1 group by doc.space, doc.name order by max(ni.date) desc")
>
> With this, I was only seeing the XWiki* page changes (which date back a few
> years), and none of mine.
>
> I changed version2=1 to version2<>  1  and now i can see my pages.
>
> Is this correct?  What is "version2" ?

Document versions are in the format X.Y, where X is the major version 
number, and Y is the minor version number. version2 is Y. Save and 
Continue or checking the "Minor edit" checkbox creates a minor version, 
X.(Y+1). The query is not quite correct, since it tries to ignore minor 
edits in a sub optimal way.

> Also, I was looking through the sql db, and noticed that in xwikircs, there
> are a lot of negative IDs in xwr_docid ... is this correct?  sounds weird to
> me.

Yes it is, the IDs are not sequential, but hashCodes. The negative 
numbers aren't a problem, but the hash collisions sometimes are.

> thanks
> Paul
>
> On 9 December 2010 00:19, Marius Dumitru Florea<
> mariusdumitru.flo...@xwiki.com>  wrote:
>
>> Hi Paul,
>>
>> I fixed the problem and I updated
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline . Please
>> check the new code snippet.
>>
>> Thanks,
>> Marius
>>
>> On 12/08/2010 10:38 AM, Paul Harris wrote:
>>> Hi again,
>>>
>>> I would like to get this working:
>>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline
>>>
>>> I've looked through the documentation and can't figure out what I'm
>> supposed
>>> to do with all that # code...
>>>
>>> Is there something obvious I'm missing?
>>>
>>> * I've added the javascript line to the bottom of the HTTP Meta info
>> (which,
>>> by the way - i only want to do on the page that has the timeline!),
>>>
>>> * i've copy-pasted that code onto a page, but all i see is the code... no
>>> timeline
>>>
>>> thanks
>>> Paul


-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-09 Thread Sergiu Dumitriu
On 12/09/2010 09:03 AM, Paul Harris wrote:
> On 9 December 2010 14:46, Paul Harris  wrote:
>
>> Still more problems,
>>
>> I just created a new space (called "space to delete" - i'm trying to figure
>> out how to delete a space, is it enough to just delete all of the content?
>> do i need to delete something else to clear the Rights settings for the
>> space out of the database?)
>>
>> Then, first problem, I noticed on the "Recent Changes" section of the front
>> page that the space was created 6 hours ago.  Is this a UTC/GMT thing?  But
>> that doesn't make any sense either, because local time is 2pm, UTC is
>> earlier at 6am.
>>
>> So I went across to check Timeline, and it gave me the "v1 is null" error
>> again.
>>
>> I watched in Firebug and identified that point of failure, see attached
>> screenshots.
>>
>> In short, it checks typeof v1 == "object"  before it calls n1=v1.getTime()
>> HOWEVER, when v1 is null, v1 is also an object!  So this test is invalid.
>>
>> Yes, this is a fault with the timeline javascript, however why is there
>> null date/times being passed to the javascript in the first place?
>>
>> thanks
>> Paul
>>
>>
>>
> I discovered the source of this problem...
>
> Timeline requests this document:
> http://domain.com/xwiki/Website+Admin/Timeline?action=xml&xpage=plain&outputSyntax=plain&changesNb=200
>
> And this is the top of the response (from Firebug):
>
> 
> 
>  isDuration="false" title="Setting up the "feature" Import in whatever">
>
>   When converted to XML, there is a parser error:
> XML Parsing Error: not well-formed Location:
> moz-nullprincipal:{fa165dd4-2c64-4d46-bc4f-d1764daf2b60} Line Number 3,
> Column 112:
>
> ...4 GMT" isDuration="false" title="Setting up the "feature" Import...
>
> ...-^
>
>
> So, this is not handling the case where the title of the page has a " in it.
>
> There was another email today about a page with a / in the name, eg
> "up/down"
> it sounds like XWiki is not escaping the names of the pages in all the
> places it should be.

No, XWiki shouldn't escape anything at all unless it is told to. This is 
the application's fault, and the application is written by the 
community, it's not bundled in the core.

>
> I managed to fix it this time, i added an escape-xml call in this line:
>  isDuration="false" title="$escapetool.xml($rcDoc.getDisplayTitle())">
>
> I'm fiddling with the size of fonts etc now, once thats done I'll adjust the
> wiki page about it
>
> cheers
> Paul


-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-09 Thread Paul Harris
On 9 December 2010 21:00, Paul Harris  wrote:

>
>
> On 9 December 2010 17:29, Marius Dumitru Florea <
> mariusdumitru.flo...@xwiki.com> wrote:
>
>> On 12/09/2010 11:06 AM, Paul Harris wrote:
>> > On 9 December 2010 17:02, Marius Dumitru Florea<
>> > mariusdumitru.flo...@xwiki.com>  wrote:
>> >
>> >> On 12/09/2010 10:43 AM, Paul Harris wrote:
>> >>> On 9 December 2010 16:13, Marius Dumitru Florea<
>> >>> mariusdumitru.flo...@xwiki.com>   wrote:
>> >>>
>>  Hi Paul,
>> 
>>  On 12/09/2010 04:45 AM, Paul Harris wrote:
>> > On 9 December 2010 10:02, Paul Harris
>>  wrote:
>> >
>> >> On 9 December 2010 09:49, Paul Harris
>>  wrote:
>> >>
>> >>> I think there is still a bug in there.  See this line:
>> >>>
>> >>>  #set($hqlQuery = ", XWikiRCSNodeInfo as ni where doc.id
>> >> =ni.id.docId
>>  and
>> >>> ni.id.version2=1 group by doc.space, doc.name order by
>> max(ni.date)
>> >>> desc")
>> >>>
>> >>> With this, I was only seeing the XWiki* page changes (which date
>> back
>> >> a
>> >>> few years), and none of mine.
>> >>>
>> >>> I changed version2=1 to version2<>1  and now i can see my
>> pages.
>> >>>
>> >>> Is this correct?  What is "version2" ?
>> >>>
>> >>> Also, I was looking through the sql db, and noticed that in
>> xwikircs,
>> >>> there are a lot of negative IDs in xwr_docid ... is this correct?
>> sounds
>> >>> weird to me.
>> >>>
>> >>> thanks
>> >>> Paul
>> >>>
>> >>>
>> >>
>> >> I also added:  and ni.author<>'superadmin'
>> >> otherwise you get a lot of "Watchlist" changes in the timeline...
>> >>
>> >>
>> >>
>> >
>> >
>> > I'm getting this message in the webserver logs:
>> > 2010-12-09 10:29:40,366 [
>> >
>> 
>> >>
>> http://domain.com/xwiki/Website+Admin/Timeline?action=xml&xpage=plain&outputSyntax=plain&changesNb=200
>>  ]
>> > WARN  internal.DefaultVelocityEngine  - Deprecated usage of method
>> > [java.util.Date.toGMTString] in xwiki:Website admin.timel...@16,27
>> >
>> > I had a go at fixing it, but I don't know enough Java yet.
>> 
>>  See
>> 
>> 
>> >>
>> http://download.oracle.com/javase/1.5.0/docs/api/java/util/Date.html#toGMTString%28%29
>>  it's deprecated.
>> 
>>  Hope this helps,
>>  Marius
>> 
>> 
>> >>> Can you tell me what it is supposed to be changed to?  I tried
>> changing
>> >> it
>> >>> to DateFormat but I am not familiar with the API and it wouldn't work.
>> >>
>> >> I updated the code snippet. I used $datetool to format the date. It
>> >> doesn't use GMT timezone but I hope it's fine. Let me know if you have
>> >> problems. I haven't found a way to create a GTM timezone in velocity so
>> >> far.
>> >>
>> >>>
>> >>> also, I have adjusted the Timeline page, and added a comment.
>>  Timeline
>> >> is
>> >>> now nicer to use :) (IMHO)
>> >>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline
>> >>
>> >> Thanks,
>> >> Marius
>> >>
>> >>
>> > Thanks for that.
>> >
>> > There is another problem that you might have missed buried in this email
>> > thread, here it is again:
>> >
>> > I just created a new space,
>> >
>> > Then, I noticed on the "Recent Changes" section of the front page that
>> the
>> > space was created 6 hours ago.  Is this a UTC/GMT thing?  But that
>> doesn't
>> > make any sense either, because local time is 2pm, UTC is earlier at 6am
>> > (which is 8 hours ago).
>>
>> All dates are formatted in the timezone of the server, not the timezone
>> of the machine where the web browser runs. There should be a way to
>> configure the timezone of the server to match, as much as possible, the
>> timezone of the common clients.
>>
>> Hope this helps,
>> Marius
>>
>>
> Hi, sorry this doesn't help for two reasons:
> 1) timezone of server is the same as timezone of web client
> 2) it said "6 hours ago" which in any timezone is not correct... it was
> only minutes ago
>
> any ideas?
> cheers
> Paul
>
>
by the way, how can I check what timezone the (jetty) server thinks its in,
and what timezone it thinks the client is in?  in terms of linux's time, it
is in the correct time zone.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-09 Thread Paul Harris
On 9 December 2010 17:29, Marius Dumitru Florea <
mariusdumitru.flo...@xwiki.com> wrote:

> On 12/09/2010 11:06 AM, Paul Harris wrote:
> > On 9 December 2010 17:02, Marius Dumitru Florea<
> > mariusdumitru.flo...@xwiki.com>  wrote:
> >
> >> On 12/09/2010 10:43 AM, Paul Harris wrote:
> >>> On 9 December 2010 16:13, Marius Dumitru Florea<
> >>> mariusdumitru.flo...@xwiki.com>   wrote:
> >>>
>  Hi Paul,
> 
>  On 12/09/2010 04:45 AM, Paul Harris wrote:
> > On 9 December 2010 10:02, Paul Harriswrote:
> >
> >> On 9 December 2010 09:49, Paul Harris
>  wrote:
> >>
> >>> I think there is still a bug in there.  See this line:
> >>>
> >>>  #set($hqlQuery = ", XWikiRCSNodeInfo as ni where doc.id
> >> =ni.id.docId
>  and
> >>> ni.id.version2=1 group by doc.space, doc.name order by
> max(ni.date)
> >>> desc")
> >>>
> >>> With this, I was only seeing the XWiki* page changes (which date
> back
> >> a
> >>> few years), and none of mine.
> >>>
> >>> I changed version2=1 to version2<>1  and now i can see my
> pages.
> >>>
> >>> Is this correct?  What is "version2" ?
> >>>
> >>> Also, I was looking through the sql db, and noticed that in
> xwikircs,
> >>> there are a lot of negative IDs in xwr_docid ... is this correct?
> sounds
> >>> weird to me.
> >>>
> >>> thanks
> >>> Paul
> >>>
> >>>
> >>
> >> I also added:  and ni.author<>'superadmin'
> >> otherwise you get a lot of "Watchlist" changes in the timeline...
> >>
> >>
> >>
> >
> >
> > I'm getting this message in the webserver logs:
> > 2010-12-09 10:29:40,366 [
> >
> 
> >>
> http://domain.com/xwiki/Website+Admin/Timeline?action=xml&xpage=plain&outputSyntax=plain&changesNb=200
>  ]
> > WARN  internal.DefaultVelocityEngine  - Deprecated usage of method
> > [java.util.Date.toGMTString] in xwiki:Website admin.timel...@16,27
> >
> > I had a go at fixing it, but I don't know enough Java yet.
> 
>  See
> 
> 
> >>
> http://download.oracle.com/javase/1.5.0/docs/api/java/util/Date.html#toGMTString%28%29
>  it's deprecated.
> 
>  Hope this helps,
>  Marius
> 
> 
> >>> Can you tell me what it is supposed to be changed to?  I tried changing
> >> it
> >>> to DateFormat but I am not familiar with the API and it wouldn't work.
> >>
> >> I updated the code snippet. I used $datetool to format the date. It
> >> doesn't use GMT timezone but I hope it's fine. Let me know if you have
> >> problems. I haven't found a way to create a GTM timezone in velocity so
> >> far.
> >>
> >>>
> >>> also, I have adjusted the Timeline page, and added a comment.  Timeline
> >> is
> >>> now nicer to use :) (IMHO)
> >>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline
> >>
> >> Thanks,
> >> Marius
> >>
> >>
> > Thanks for that.
> >
> > There is another problem that you might have missed buried in this email
> > thread, here it is again:
> >
> > I just created a new space,
> >
> > Then, I noticed on the "Recent Changes" section of the front page that
> the
> > space was created 6 hours ago.  Is this a UTC/GMT thing?  But that
> doesn't
> > make any sense either, because local time is 2pm, UTC is earlier at 6am
> > (which is 8 hours ago).
>
> All dates are formatted in the timezone of the server, not the timezone
> of the machine where the web browser runs. There should be a way to
> configure the timezone of the server to match, as much as possible, the
> timezone of the common clients.
>
> Hope this helps,
> Marius
>
>
Hi, sorry this doesn't help for two reasons:
1) timezone of server is the same as timezone of web client
2) it said "6 hours ago" which in any timezone is not correct... it was only
minutes ago

any ideas?
cheers
Paul
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-09 Thread Marius Dumitru Florea
On 12/09/2010 11:06 AM, Paul Harris wrote:
> On 9 December 2010 17:02, Marius Dumitru Florea<
> mariusdumitru.flo...@xwiki.com>  wrote:
>
>> On 12/09/2010 10:43 AM, Paul Harris wrote:
>>> On 9 December 2010 16:13, Marius Dumitru Florea<
>>> mariusdumitru.flo...@xwiki.com>   wrote:
>>>
 Hi Paul,

 On 12/09/2010 04:45 AM, Paul Harris wrote:
> On 9 December 2010 10:02, Paul Harriswrote:
>
>> On 9 December 2010 09:49, Paul Harriswrote:
>>
>>> I think there is still a bug in there.  See this line:
>>>
>>>  #set($hqlQuery = ", XWikiRCSNodeInfo as ni where doc.id
>> =ni.id.docId
 and
>>> ni.id.version2=1 group by doc.space, doc.name order by max(ni.date)
>>> desc")
>>>
>>> With this, I was only seeing the XWiki* page changes (which date back
>> a
>>> few years), and none of mine.
>>>
>>> I changed version2=1 to version2<>1  and now i can see my pages.
>>>
>>> Is this correct?  What is "version2" ?
>>>
>>> Also, I was looking through the sql db, and noticed that in xwikircs,
>>> there are a lot of negative IDs in xwr_docid ... is this correct?
sounds
>>> weird to me.
>>>
>>> thanks
>>> Paul
>>>
>>>
>>
>> I also added:  and ni.author<>'superadmin'
>> otherwise you get a lot of "Watchlist" changes in the timeline...
>>
>>
>>
>
>
> I'm getting this message in the webserver logs:
> 2010-12-09 10:29:40,366 [
>

>> http://domain.com/xwiki/Website+Admin/Timeline?action=xml&xpage=plain&outputSyntax=plain&changesNb=200
 ]
> WARN  internal.DefaultVelocityEngine  - Deprecated usage of method
> [java.util.Date.toGMTString] in xwiki:Website admin.timel...@16,27
>
> I had a go at fixing it, but I don't know enough Java yet.

 See


>> http://download.oracle.com/javase/1.5.0/docs/api/java/util/Date.html#toGMTString%28%29
 it's deprecated.

 Hope this helps,
 Marius


>>> Can you tell me what it is supposed to be changed to?  I tried changing
>> it
>>> to DateFormat but I am not familiar with the API and it wouldn't work.
>>
>> I updated the code snippet. I used $datetool to format the date. It
>> doesn't use GMT timezone but I hope it's fine. Let me know if you have
>> problems. I haven't found a way to create a GTM timezone in velocity so
>> far.
>>
>>>
>>> also, I have adjusted the Timeline page, and added a comment.  Timeline
>> is
>>> now nicer to use :) (IMHO)
>>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline
>>
>> Thanks,
>> Marius
>>
>>
> Thanks for that.
>
> There is another problem that you might have missed buried in this email
> thread, here it is again:
>
> I just created a new space,
>
> Then, I noticed on the "Recent Changes" section of the front page that the
> space was created 6 hours ago.  Is this a UTC/GMT thing?  But that doesn't
> make any sense either, because local time is 2pm, UTC is earlier at 6am
> (which is 8 hours ago).

All dates are formatted in the timezone of the server, not the timezone 
of the machine where the web browser runs. There should be a way to 
configure the timezone of the server to match, as much as possible, the 
timezone of the common clients.

Hope this helps,
Marius

> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-09 Thread Paul Harris
On 9 December 2010 17:02, Marius Dumitru Florea <
mariusdumitru.flo...@xwiki.com> wrote:

> On 12/09/2010 10:43 AM, Paul Harris wrote:
> > On 9 December 2010 16:13, Marius Dumitru Florea<
> > mariusdumitru.flo...@xwiki.com>  wrote:
> >
> >> Hi Paul,
> >>
> >> On 12/09/2010 04:45 AM, Paul Harris wrote:
> >>> On 9 December 2010 10:02, Paul Harris   wrote:
> >>>
>  On 9 December 2010 09:49, Paul Harris   wrote:
> 
> > I think there is still a bug in there.  See this line:
> >
> > #set($hqlQuery = ", XWikiRCSNodeInfo as ni where doc.id
> =ni.id.docId
> >> and
> > ni.id.version2=1 group by doc.space, doc.name order by max(ni.date)
> > desc")
> >
> > With this, I was only seeing the XWiki* page changes (which date back
> a
> > few years), and none of mine.
> >
> > I changed version2=1 to version2<>   1  and now i can see my pages.
> >
> > Is this correct?  What is "version2" ?
> >
> > Also, I was looking through the sql db, and noticed that in xwikircs,
> > there are a lot of negative IDs in xwr_docid ... is this correct?
> >>   sounds
> > weird to me.
> >
> > thanks
> > Paul
> >
> >
> 
>  I also added:  and ni.author<>   'superadmin'
>  otherwise you get a lot of "Watchlist" changes in the timeline...
> 
> 
> 
> >>>
> >>>
> >>> I'm getting this message in the webserver logs:
> >>> 2010-12-09 10:29:40,366 [
> >>>
> >>
> http://domain.com/xwiki/Website+Admin/Timeline?action=xml&xpage=plain&outputSyntax=plain&changesNb=200
> >> ]
> >>> WARN  internal.DefaultVelocityEngine  - Deprecated usage of method
> >>> [java.util.Date.toGMTString] in xwiki:Website admin.timel...@16,27
> >>>
> >>> I had a go at fixing it, but I don't know enough Java yet.
> >>
> >> See
> >>
> >>
> http://download.oracle.com/javase/1.5.0/docs/api/java/util/Date.html#toGMTString%28%29
> >> it's deprecated.
> >>
> >> Hope this helps,
> >> Marius
> >>
> >>
> > Can you tell me what it is supposed to be changed to?  I tried changing
> it
> > to DateFormat but I am not familiar with the API and it wouldn't work.
>
> I updated the code snippet. I used $datetool to format the date. It
> doesn't use GMT timezone but I hope it's fine. Let me know if you have
> problems. I haven't found a way to create a GTM timezone in velocity so
> far.
>
> >
> > also, I have adjusted the Timeline page, and added a comment.  Timeline
> is
> > now nicer to use :) (IMHO)
> > http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline
>
> Thanks,
> Marius
>
>
Thanks for that.

There is another problem that you might have missed buried in this email
thread, here it is again:

I just created a new space,

Then, I noticed on the "Recent Changes" section of the front page that the
space was created 6 hours ago.  Is this a UTC/GMT thing?  But that doesn't
make any sense either, because local time is 2pm, UTC is earlier at 6am
(which is 8 hours ago).
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-09 Thread Marius Dumitru Florea
On 12/09/2010 10:43 AM, Paul Harris wrote:
> On 9 December 2010 16:13, Marius Dumitru Florea<
> mariusdumitru.flo...@xwiki.com>  wrote:
>
>> Hi Paul,
>>
>> On 12/09/2010 04:45 AM, Paul Harris wrote:
>>> On 9 December 2010 10:02, Paul Harris   wrote:
>>>
 On 9 December 2010 09:49, Paul Harris   wrote:

> I think there is still a bug in there.  See this line:
>
> #set($hqlQuery = ", XWikiRCSNodeInfo as ni where doc.id=ni.id.docId
>> and
> ni.id.version2=1 group by doc.space, doc.name order by max(ni.date)
> desc")
>
> With this, I was only seeing the XWiki* page changes (which date back a
> few years), and none of mine.
>
> I changed version2=1 to version2<>   1  and now i can see my pages.
>
> Is this correct?  What is "version2" ?
>
> Also, I was looking through the sql db, and noticed that in xwikircs,
> there are a lot of negative IDs in xwr_docid ... is this correct?
>>   sounds
> weird to me.
>
> thanks
> Paul
>
>

 I also added:  and ni.author<>   'superadmin'
 otherwise you get a lot of "Watchlist" changes in the timeline...



>>>
>>>
>>> I'm getting this message in the webserver logs:
>>> 2010-12-09 10:29:40,366 [
>>>
>> http://domain.com/xwiki/Website+Admin/Timeline?action=xml&xpage=plain&outputSyntax=plain&changesNb=200
>> ]
>>> WARN  internal.DefaultVelocityEngine  - Deprecated usage of method
>>> [java.util.Date.toGMTString] in xwiki:Website admin.timel...@16,27
>>>
>>> I had a go at fixing it, but I don't know enough Java yet.
>>
>> See
>>
>> http://download.oracle.com/javase/1.5.0/docs/api/java/util/Date.html#toGMTString%28%29
>> it's deprecated.
>>
>> Hope this helps,
>> Marius
>>
>>
> Can you tell me what it is supposed to be changed to?  I tried changing it
> to DateFormat but I am not familiar with the API and it wouldn't work.

I updated the code snippet. I used $datetool to format the date. It 
doesn't use GMT timezone but I hope it's fine. Let me know if you have 
problems. I haven't found a way to create a GTM timezone in velocity so far.

>
> also, I have adjusted the Timeline page, and added a comment.  Timeline is
> now nicer to use :) (IMHO)
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline

Thanks,
Marius

> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-09 Thread Paul Harris
On 9 December 2010 16:13, Marius Dumitru Florea <
mariusdumitru.flo...@xwiki.com> wrote:

> Hi Paul,
>
> On 12/09/2010 04:45 AM, Paul Harris wrote:
> > On 9 December 2010 10:02, Paul Harris  wrote:
> >
> >> On 9 December 2010 09:49, Paul Harris  wrote:
> >>
> >>> I think there is still a bug in there.  See this line:
> >>>
> >>>#set($hqlQuery = ", XWikiRCSNodeInfo as ni where doc.id=ni.id.docId
> and
> >>> ni.id.version2=1 group by doc.space, doc.name order by max(ni.date)
> >>> desc")
> >>>
> >>> With this, I was only seeing the XWiki* page changes (which date back a
> >>> few years), and none of mine.
> >>>
> >>> I changed version2=1 to version2<>  1  and now i can see my pages.
> >>>
> >>> Is this correct?  What is "version2" ?
> >>>
> >>> Also, I was looking through the sql db, and noticed that in xwikircs,
> >>> there are a lot of negative IDs in xwr_docid ... is this correct?
>  sounds
> >>> weird to me.
> >>>
> >>> thanks
> >>> Paul
> >>>
> >>>
> >>
> >> I also added:  and ni.author<>  'superadmin'
> >> otherwise you get a lot of "Watchlist" changes in the timeline...
> >>
> >>
> >>
> >
> >
> > I'm getting this message in the webserver logs:
> > 2010-12-09 10:29:40,366 [
> >
> http://domain.com/xwiki/Website+Admin/Timeline?action=xml&xpage=plain&outputSyntax=plain&changesNb=200
> ]
> > WARN  internal.DefaultVelocityEngine  - Deprecated usage of method
> > [java.util.Date.toGMTString] in xwiki:Website admin.timel...@16,27
> >
> > I had a go at fixing it, but I don't know enough Java yet.
>
> See
>
> http://download.oracle.com/javase/1.5.0/docs/api/java/util/Date.html#toGMTString%28%29
> it's deprecated.
>
> Hope this helps,
> Marius
>
>
Can you tell me what it is supposed to be changed to?  I tried changing it
to DateFormat but I am not familiar with the API and it wouldn't work.

also, I have adjusted the Timeline page, and added a comment.  Timeline is
now nicer to use :) (IMHO)
http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-09 Thread Marius Dumitru Florea
Hi Paul,

On 12/09/2010 04:45 AM, Paul Harris wrote:
> On 9 December 2010 10:02, Paul Harris  wrote:
>
>> On 9 December 2010 09:49, Paul Harris  wrote:
>>
>>> I think there is still a bug in there.  See this line:
>>>
>>>#set($hqlQuery = ", XWikiRCSNodeInfo as ni where doc.id=ni.id.docId and
>>> ni.id.version2=1 group by doc.space, doc.name order by max(ni.date)
>>> desc")
>>>
>>> With this, I was only seeing the XWiki* page changes (which date back a
>>> few years), and none of mine.
>>>
>>> I changed version2=1 to version2<>  1  and now i can see my pages.
>>>
>>> Is this correct?  What is "version2" ?
>>>
>>> Also, I was looking through the sql db, and noticed that in xwikircs,
>>> there are a lot of negative IDs in xwr_docid ... is this correct?  sounds
>>> weird to me.
>>>
>>> thanks
>>> Paul
>>>
>>>
>>
>> I also added:  and ni.author<>  'superadmin'
>> otherwise you get a lot of "Watchlist" changes in the timeline...
>>
>>
>>
>
>
> I'm getting this message in the webserver logs:
> 2010-12-09 10:29:40,366 [
> http://domain.com/xwiki/Website+Admin/Timeline?action=xml&xpage=plain&outputSyntax=plain&changesNb=200]
> WARN  internal.DefaultVelocityEngine  - Deprecated usage of method
> [java.util.Date.toGMTString] in xwiki:Website admin.timel...@16,27
>
> I had a go at fixing it, but I don't know enough Java yet.

See 
http://download.oracle.com/javase/1.5.0/docs/api/java/util/Date.html#toGMTString%28%29
 
it's deprecated.

Hope this helps,
Marius

>
>
>
>
>
>>
>>> On 9 December 2010 00:19, Marius Dumitru Florea<
>>> mariusdumitru.flo...@xwiki.com>  wrote:
>>>
 Hi Paul,

 I fixed the problem and I updated
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline . Please
 check the new code snippet.

 Thanks,
 Marius

 On 12/08/2010 10:38 AM, Paul Harris wrote:
> Hi again,
>
> I would like to get this working:
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline
>
> I've looked through the documentation and can't figure out what I'm
 supposed
> to do with all that # code...
>
> Is there something obvious I'm missing?
>
> * I've added the javascript line to the bottom of the HTTP Meta info
 (which,
> by the way - i only want to do on the page that has the timeline!),
>
> * i've copy-pasted that code onto a page, but all i see is the code...
 no
> timeline
>
> thanks
> Paul
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

>>>
>>>
>>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-09 Thread Paul Harris
On 9 December 2010 14:46, Paul Harris  wrote:

> Still more problems,
>
> I just created a new space (called "space to delete" - i'm trying to figure
> out how to delete a space, is it enough to just delete all of the content?
> do i need to delete something else to clear the Rights settings for the
> space out of the database?)
>
> Then, first problem, I noticed on the "Recent Changes" section of the front
> page that the space was created 6 hours ago.  Is this a UTC/GMT thing?  But
> that doesn't make any sense either, because local time is 2pm, UTC is
> earlier at 6am.
>
> So I went across to check Timeline, and it gave me the "v1 is null" error
> again.
>
> I watched in Firebug and identified that point of failure, see attached
> screenshots.
>
> In short, it checks typeof v1 == "object"  before it calls n1=v1.getTime()
> HOWEVER, when v1 is null, v1 is also an object!  So this test is invalid.
>
> Yes, this is a fault with the timeline javascript, however why is there
> null date/times being passed to the javascript in the first place?
>
> thanks
> Paul
>
>
>
I discovered the source of this problem...

Timeline requests this document:
http://domain.com/xwiki/Website+Admin/Timeline?action=xml&xpage=plain&outputSyntax=plain&changesNb=200

And this is the top of the response (from Firebug):





 When converted to XML, there is a parser error:
XML Parsing Error: not well-formed Location:
moz-nullprincipal:{fa165dd4-2c64-4d46-bc4f-d1764daf2b60} Line Number 3,
Column 112:

...4 GMT" isDuration="false" title="Setting up the "feature" Import...

...-^


So, this is not handling the case where the title of the page has a " in it.

There was another email today about a page with a / in the name, eg
"up/down"
it sounds like XWiki is not escaping the names of the pages in all the
places it should be.


I managed to fix it this time, i added an escape-xml call in this line:
   

I'm fiddling with the size of fonts etc now, once thats done I'll adjust the
wiki page about it

cheers
Paul
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-08 Thread Paul Harris
Still more problems,

I just created a new space (called "space to delete" - i'm trying to figure
out how to delete a space, is it enough to just delete all of the content?
do i need to delete something else to clear the Rights settings for the
space out of the database?)

Then, first problem, I noticed on the "Recent Changes" section of the front
page that the space was created 6 hours ago.  Is this a UTC/GMT thing?  But
that doesn't make any sense either, because local time is 2pm, UTC is
earlier at 6am.

So I went across to check Timeline, and it gave me the "v1 is null" error
again.

I watched in Firebug and identified that point of failure, see attached
screenshots.

In short, it checks typeof v1 == "object"  before it calls n1=v1.getTime()
HOWEVER, when v1 is null, v1 is also an object!  So this test is invalid.

Yes, this is a fault with the timeline javascript, however why is there null
date/times being passed to the javascript in the first place?

thanks
Paul
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-08 Thread Paul Harris
On 9 December 2010 10:02, Paul Harris  wrote:

> On 9 December 2010 09:49, Paul Harris  wrote:
>
>> I think there is still a bug in there.  See this line:
>>
>>   #set($hqlQuery = ", XWikiRCSNodeInfo as ni where doc.id=ni.id.docId and
>> ni.id.version2=1 group by doc.space, doc.name order by max(ni.date)
>> desc")
>>
>> With this, I was only seeing the XWiki* page changes (which date back a
>> few years), and none of mine.
>>
>> I changed version2=1 to version2 <> 1  and now i can see my pages.
>>
>> Is this correct?  What is "version2" ?
>>
>> Also, I was looking through the sql db, and noticed that in xwikircs,
>> there are a lot of negative IDs in xwr_docid ... is this correct?  sounds
>> weird to me.
>>
>> thanks
>> Paul
>>
>>
>
> I also added:  and ni.author <> 'superadmin'
> otherwise you get a lot of "Watchlist" changes in the timeline...
>
>
>


I'm getting this message in the webserver logs:
2010-12-09 10:29:40,366 [
http://domain.com/xwiki/Website+Admin/Timeline?action=xml&xpage=plain&outputSyntax=plain&changesNb=200]
WARN  internal.DefaultVelocityEngine  - Deprecated usage of method
[java.util.Date.toGMTString] in xwiki:Website admin.timel...@16,27

I had a go at fixing it, but I don't know enough Java yet.





>
>> On 9 December 2010 00:19, Marius Dumitru Florea <
>> mariusdumitru.flo...@xwiki.com> wrote:
>>
>>> Hi Paul,
>>>
>>> I fixed the problem and I updated
>>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline . Please
>>> check the new code snippet.
>>>
>>> Thanks,
>>> Marius
>>>
>>> On 12/08/2010 10:38 AM, Paul Harris wrote:
>>> > Hi again,
>>> >
>>> > I would like to get this working:
>>> > http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline
>>> >
>>> > I've looked through the documentation and can't figure out what I'm
>>> supposed
>>> > to do with all that # code...
>>> >
>>> > Is there something obvious I'm missing?
>>> >
>>> > * I've added the javascript line to the bottom of the HTTP Meta info
>>> (which,
>>> > by the way - i only want to do on the page that has the timeline!),
>>> >
>>> > * i've copy-pasted that code onto a page, but all i see is the code...
>>> no
>>> > timeline
>>> >
>>> > thanks
>>> > Paul
>>> > ___
>>> > users mailing list
>>> > users@xwiki.org
>>> > http://lists.xwiki.org/mailman/listinfo/users
>>> ___
>>> users mailing list
>>> users@xwiki.org
>>> http://lists.xwiki.org/mailman/listinfo/users
>>>
>>
>>
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-08 Thread Paul Harris
On 9 December 2010 09:49, Paul Harris  wrote:

> I think there is still a bug in there.  See this line:
>
>   #set($hqlQuery = ", XWikiRCSNodeInfo as ni where doc.id=ni.id.docId and
> ni.id.version2=1 group by doc.space, doc.name order by max(ni.date) desc")
>
> With this, I was only seeing the XWiki* page changes (which date back a few
> years), and none of mine.
>
> I changed version2=1 to version2 <> 1  and now i can see my pages.
>
> Is this correct?  What is "version2" ?
>
> Also, I was looking through the sql db, and noticed that in xwikircs, there
> are a lot of negative IDs in xwr_docid ... is this correct?  sounds weird to
> me.
>
> thanks
> Paul
>
>

I also added:  and ni.author <> 'superadmin'
otherwise you get a lot of "Watchlist" changes in the timeline...



>
> On 9 December 2010 00:19, Marius Dumitru Florea <
> mariusdumitru.flo...@xwiki.com> wrote:
>
>> Hi Paul,
>>
>> I fixed the problem and I updated
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline . Please
>> check the new code snippet.
>>
>> Thanks,
>> Marius
>>
>> On 12/08/2010 10:38 AM, Paul Harris wrote:
>> > Hi again,
>> >
>> > I would like to get this working:
>> > http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline
>> >
>> > I've looked through the documentation and can't figure out what I'm
>> supposed
>> > to do with all that # code...
>> >
>> > Is there something obvious I'm missing?
>> >
>> > * I've added the javascript line to the bottom of the HTTP Meta info
>> (which,
>> > by the way - i only want to do on the page that has the timeline!),
>> >
>> > * i've copy-pasted that code onto a page, but all i see is the code...
>> no
>> > timeline
>> >
>> > thanks
>> > Paul
>> > ___
>> > users mailing list
>> > users@xwiki.org
>> > http://lists.xwiki.org/mailman/listinfo/users
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-08 Thread Paul Harris
I think there is still a bug in there.  See this line:

  #set($hqlQuery = ", XWikiRCSNodeInfo as ni where doc.id=ni.id.docId and
ni.id.version2=1 group by doc.space, doc.name order by max(ni.date) desc")

With this, I was only seeing the XWiki* page changes (which date back a few
years), and none of mine.

I changed version2=1 to version2 <> 1  and now i can see my pages.

Is this correct?  What is "version2" ?

Also, I was looking through the sql db, and noticed that in xwikircs, there
are a lot of negative IDs in xwr_docid ... is this correct?  sounds weird to
me.

thanks
Paul

On 9 December 2010 00:19, Marius Dumitru Florea <
mariusdumitru.flo...@xwiki.com> wrote:

> Hi Paul,
>
> I fixed the problem and I updated
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline . Please
> check the new code snippet.
>
> Thanks,
> Marius
>
> On 12/08/2010 10:38 AM, Paul Harris wrote:
> > Hi again,
> >
> > I would like to get this working:
> > http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline
> >
> > I've looked through the documentation and can't figure out what I'm
> supposed
> > to do with all that # code...
> >
> > Is there something obvious I'm missing?
> >
> > * I've added the javascript line to the bottom of the HTTP Meta info
> (which,
> > by the way - i only want to do on the page that has the timeline!),
> >
> > * i've copy-pasted that code onto a page, but all i see is the code... no
> > timeline
> >
> > thanks
> > Paul
> > ___
> > users mailing list
> > users@xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-08 Thread Marius Dumitru Florea
Hi Paul,

I fixed the problem and I updated 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline . Please 
check the new code snippet.

Thanks,
Marius

On 12/08/2010 10:38 AM, Paul Harris wrote:
> Hi again,
>
> I would like to get this working:
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline
>
> I've looked through the documentation and can't figure out what I'm supposed
> to do with all that # code...
>
> Is there something obvious I'm missing?
>
> * I've added the javascript line to the bottom of the HTTP Meta info (which,
> by the way - i only want to do on the page that has the timeline!),
>
> * i've copy-pasted that code onto a page, but all i see is the code... no
> timeline
>
> thanks
> Paul
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-08 Thread Sergiu Dumitriu
On 12/08/2010 02:37 PM, Paul Harris wrote:
> On 8 December 2010 21:26, Paul Harris  wrote:
>
>>
>>
>> On 8 December 2010 21:24, Paul Harris  wrote:
>>
>>>
>>>
>>> On 8 December 2010 21:09, Marius Dumitru Florea<
>>> mariusdumitru.flo...@xwiki.com>  wrote:
>>>
 Hi Paul,

 On 12/08/2010 02:06 PM, Paul Harris wrote:
> On 8 December 2010 18:09, Marius Dumitru Florea<
> mariusdumitru.flo...@xwiki.com>   wrote:
>
>> On 12/08/2010 11:47 AM, Jerome Velociter wrote:
>>> Hi Paul,
>>>
>>> The second part is a velocity snippet. It has been written at a time
>> there
>>> was only one syntax in XWiki (what we call now syntax xwiki/1.0). In
 the
>> new
>>> syntaxes (xwiki/2.0 or xwiki/2.1), you need to surround velocity code
>> blocks
>>> by the {{velocity}} macro to get it executed. See
>>> http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax for more
 on
>> this.
>>
>>> If you get the snippet working, it would be great you update it to
 add
>> the
>>> information you've missed in the first place.
>>
>> I just did it.
>>
>> Hope this helps,
>> Marius
>>
>>
> I got half-way...
>
> I copy-pasted the new text into the editor (in 'source' mode),
>
> in Chrome, I can see the chart but then it pops up an error:
> Caught exception: TypeError: Cannot read property 'documentElement' of
 null
>

> in Firefox:
> Caught exception: TypeError: v1 is null

 You get this exception when you're not logged in right? The current code
 uses this URL
 /xwiki/bin/view/Main/TimeLine?action=xml&xpage=rdf&changesNb=200 to get
 the list of events. It seems that the response is bad when you're not
 logged in. I'll try to debug this later today.


>>> It happens when I'm logged in, or not logged in.
>>>
>>> Note that I'm using ShortURLs so the url above should condense down to
>>> /Timeline?action etc etc
>>>
>>>
>>
>> whoops, forgot to mention that i'm currently using URL of format
>> domain.com/xwiki
>> but when I am finished setting up the website, i'll get rid of that /xwiki
>> bit and it'll just be domain.com
>> eg domain.com/Timeline
>>
>>
>>
>
> I just looked at the stdout log, and found a heap of error messages.

I think this is the important error that triggers the failure. Something 
doesn't have a proper date.

> java.lang.NullPointerException
>  at java.util.Calendar.setTime(Calendar.java:1075)


-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-08 Thread Marius Dumitru Florea
On 12/08/2010 03:26 PM, Paul Harris wrote:
> On 8 December 2010 21:24, Paul Harris  wrote:
>
>>
>>
>> On 8 December 2010 21:09, Marius Dumitru Florea<
>> mariusdumitru.flo...@xwiki.com>  wrote:
>>
>>> Hi Paul,
>>>
>>> On 12/08/2010 02:06 PM, Paul Harris wrote:
 On 8 December 2010 18:09, Marius Dumitru Florea<
 mariusdumitru.flo...@xwiki.com>   wrote:

> On 12/08/2010 11:47 AM, Jerome Velociter wrote:
>> Hi Paul,
>>
>> The second part is a velocity snippet. It has been written at a time
> there
>> was only one syntax in XWiki (what we call now syntax xwiki/1.0). In
>>> the
> new
>> syntaxes (xwiki/2.0 or xwiki/2.1), you need to surround velocity code
> blocks
>> by the {{velocity}} macro to get it executed. See
>> http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax for more on
> this.
>
>> If you get the snippet working, it would be great you update it to add
> the
>> information you've missed in the first place.
>
> I just did it.
>
> Hope this helps,
> Marius
>
>
 I got half-way...

 I copy-pasted the new text into the editor (in 'source' mode),

 in Chrome, I can see the chart but then it pops up an error:
 Caught exception: TypeError: Cannot read property 'documentElement' of
>>> null

>>>
 in Firefox:
 Caught exception: TypeError: v1 is null
>>>
>>> You get this exception when you're not logged in right? The current code
>>> uses this URL
>>> /xwiki/bin/view/Main/TimeLine?action=xml&xpage=rdf&changesNb=200 to get
>>> the list of events. It seems that the response is bad when you're not
>>> logged in. I'll try to debug this later today.
>>>
>>>
>> It happens when I'm logged in, or not logged in.
>>
>> Note that I'm using ShortURLs so the url above should condense down to
>> /Timeline?action etc etc
>>
>>
>
> whoops, forgot to mention that i'm currently using URL of format
> domain.com/xwiki
> but when I am finished setting up the website, i'll get rid of that /xwiki
> bit and it'll just be domain.com
> eg domain.com/Timeline

You can look with Firebug (Console tab) at what AJAX request is made 
when the timeline page is loaded. There should be a request to the same 
page (URL), with this query string:

?action=xml&xpage=rdf&changesNb=200

Check the response. Most probably there is an exception thrown while 
serving the response. The response is expected to be XML, but it is HTML 
instead, with the stack trace.

Hope this helps,
Marius

> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-08 Thread Paul Harris
On 8 December 2010 21:26, Paul Harris  wrote:

>
>
> On 8 December 2010 21:24, Paul Harris  wrote:
>
>>
>>
>> On 8 December 2010 21:09, Marius Dumitru Florea <
>> mariusdumitru.flo...@xwiki.com> wrote:
>>
>>> Hi Paul,
>>>
>>> On 12/08/2010 02:06 PM, Paul Harris wrote:
>>> > On 8 December 2010 18:09, Marius Dumitru Florea<
>>> > mariusdumitru.flo...@xwiki.com>  wrote:
>>> >
>>> >> On 12/08/2010 11:47 AM, Jerome Velociter wrote:
>>> >>> Hi Paul,
>>> >>>
>>> >>> The second part is a velocity snippet. It has been written at a time
>>> >> there
>>> >>> was only one syntax in XWiki (what we call now syntax xwiki/1.0). In
>>> the
>>> >> new
>>> >>> syntaxes (xwiki/2.0 or xwiki/2.1), you need to surround velocity code
>>> >> blocks
>>> >>> by the {{velocity}} macro to get it executed. See
>>> >>> http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax for more
>>> on
>>> >> this.
>>> >>
>>> >>> If you get the snippet working, it would be great you update it to
>>> add
>>> >> the
>>> >>> information you've missed in the first place.
>>> >>
>>> >> I just did it.
>>> >>
>>> >> Hope this helps,
>>> >> Marius
>>> >>
>>> >>
>>> > I got half-way...
>>> >
>>> > I copy-pasted the new text into the editor (in 'source' mode),
>>> >
>>> > in Chrome, I can see the chart but then it pops up an error:
>>> > Caught exception: TypeError: Cannot read property 'documentElement' of
>>> null
>>> >
>>>
>>> > in Firefox:
>>> > Caught exception: TypeError: v1 is null
>>>
>>> You get this exception when you're not logged in right? The current code
>>> uses this URL
>>> /xwiki/bin/view/Main/TimeLine?action=xml&xpage=rdf&changesNb=200 to get
>>> the list of events. It seems that the response is bad when you're not
>>> logged in. I'll try to debug this later today.
>>>
>>>
>> It happens when I'm logged in, or not logged in.
>>
>> Note that I'm using ShortURLs so the url above should condense down to
>> /Timeline?action etc etc
>>
>>
>
> whoops, forgot to mention that i'm currently using URL of format
> domain.com/xwiki
> but when I am finished setting up the website, i'll get rid of that /xwiki
> bit and it'll just be domain.com
> eg domain.com/Timeline
>
>
>

I just looked at the stdout log, and found a heap of error messages.

one seems to be related to JDBC and statistics, theres a deprecated warning,
and another has a null pointer exception (you have to go a long way down
this email to find that).  these are long backtraces, how should I be
posting these?


2010-12-08 20:47:20,030 [Statistics storing daemon] WARN
util.JDBCExceptionReporter  - SQL Error: 1406, SQLState: 22001
2010-12-08 20:47:20,030 [Statistics storing daemon] ERROR
util.JDBCExceptionReporter  - Data truncation: Data too long for column
'XWV_UNIQUE_ID' at row 1
2010-12-08 20:47:20,030 [Statistics storing daemon] ERROR
.AbstractFlushingEventListener  - Could not synchronize database state with
session
org.hibernate.exception.DataException: Could not execute JDBC batch update
at
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:77)
at
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:253)
at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:266)
at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:167)
at
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
at
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
at
org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernateBaseStore.java:853)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernateBaseStore.java:824)
at
com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiCollection(XWikiHibernateStore.java:1019)
at
com.xpn.xwiki.stats.impl.xwiki.VisitStatsStoreItem.storeInternal(VisitStatsStoreItem.java:112)
at
com.xpn.xwiki.stats.impl.xwiki.AbstractStatsStoreItem.store(AbstractStatsStoreItem.java:99)
at
com.xpn.xwiki.stats.impl.xwiki.XWikiStatsStoreService.register(XWikiStatsStoreService.java:167)
at
com.xpn.xwiki.stats.impl.xwiki.XWikiStatsStoreService.runInternal(XWikiStatsStoreService.java:119)
at
com.xpn.xwiki.util.AbstractXWikiRunnable.run(AbstractXWikiRunnable.java:99)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.sql.BatchUpdateException: Data truncation: Data too long for
column 'XWV_UNIQUE_ID' at row 1
at
com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:2018)
at
com.mysql.jdbc.PreparedStatement.executeBatch(Prepare

Re: [xwiki-users] Timeline and snippets

2010-12-08 Thread Paul Harris
On 8 December 2010 21:24, Paul Harris  wrote:

>
>
> On 8 December 2010 21:09, Marius Dumitru Florea <
> mariusdumitru.flo...@xwiki.com> wrote:
>
>> Hi Paul,
>>
>> On 12/08/2010 02:06 PM, Paul Harris wrote:
>> > On 8 December 2010 18:09, Marius Dumitru Florea<
>> > mariusdumitru.flo...@xwiki.com>  wrote:
>> >
>> >> On 12/08/2010 11:47 AM, Jerome Velociter wrote:
>> >>> Hi Paul,
>> >>>
>> >>> The second part is a velocity snippet. It has been written at a time
>> >> there
>> >>> was only one syntax in XWiki (what we call now syntax xwiki/1.0). In
>> the
>> >> new
>> >>> syntaxes (xwiki/2.0 or xwiki/2.1), you need to surround velocity code
>> >> blocks
>> >>> by the {{velocity}} macro to get it executed. See
>> >>> http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax for more on
>> >> this.
>> >>
>> >>> If you get the snippet working, it would be great you update it to add
>> >> the
>> >>> information you've missed in the first place.
>> >>
>> >> I just did it.
>> >>
>> >> Hope this helps,
>> >> Marius
>> >>
>> >>
>> > I got half-way...
>> >
>> > I copy-pasted the new text into the editor (in 'source' mode),
>> >
>> > in Chrome, I can see the chart but then it pops up an error:
>> > Caught exception: TypeError: Cannot read property 'documentElement' of
>> null
>> >
>>
>> > in Firefox:
>> > Caught exception: TypeError: v1 is null
>>
>> You get this exception when you're not logged in right? The current code
>> uses this URL
>> /xwiki/bin/view/Main/TimeLine?action=xml&xpage=rdf&changesNb=200 to get
>> the list of events. It seems that the response is bad when you're not
>> logged in. I'll try to debug this later today.
>>
>>
> It happens when I'm logged in, or not logged in.
>
> Note that I'm using ShortURLs so the url above should condense down to
> /Timeline?action etc etc
>
>

whoops, forgot to mention that i'm currently using URL of format
domain.com/xwiki
but when I am finished setting up the website, i'll get rid of that /xwiki
bit and it'll just be domain.com
eg domain.com/Timeline
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-08 Thread Paul Harris
On 8 December 2010 21:09, Marius Dumitru Florea <
mariusdumitru.flo...@xwiki.com> wrote:

> Hi Paul,
>
> On 12/08/2010 02:06 PM, Paul Harris wrote:
> > On 8 December 2010 18:09, Marius Dumitru Florea<
> > mariusdumitru.flo...@xwiki.com>  wrote:
> >
> >> On 12/08/2010 11:47 AM, Jerome Velociter wrote:
> >>> Hi Paul,
> >>>
> >>> The second part is a velocity snippet. It has been written at a time
> >> there
> >>> was only one syntax in XWiki (what we call now syntax xwiki/1.0). In
> the
> >> new
> >>> syntaxes (xwiki/2.0 or xwiki/2.1), you need to surround velocity code
> >> blocks
> >>> by the {{velocity}} macro to get it executed. See
> >>> http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax for more on
> >> this.
> >>
> >>> If you get the snippet working, it would be great you update it to add
> >> the
> >>> information you've missed in the first place.
> >>
> >> I just did it.
> >>
> >> Hope this helps,
> >> Marius
> >>
> >>
> > I got half-way...
> >
> > I copy-pasted the new text into the editor (in 'source' mode),
> >
> > in Chrome, I can see the chart but then it pops up an error:
> > Caught exception: TypeError: Cannot read property 'documentElement' of
> null
> >
>
> > in Firefox:
> > Caught exception: TypeError: v1 is null
>
> You get this exception when you're not logged in right? The current code
> uses this URL
> /xwiki/bin/view/Main/TimeLine?action=xml&xpage=rdf&changesNb=200 to get
> the list of events. It seems that the response is bad when you're not
> logged in. I'll try to debug this later today.
>
>
It happens when I'm logged in, or not logged in.

Note that I'm using ShortURLs so the url above should condense down to
/Timeline?action etc etc
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-08 Thread Marius Dumitru Florea
Hi Paul,

On 12/08/2010 02:06 PM, Paul Harris wrote:
> On 8 December 2010 18:09, Marius Dumitru Florea<
> mariusdumitru.flo...@xwiki.com>  wrote:
>
>> On 12/08/2010 11:47 AM, Jerome Velociter wrote:
>>> Hi Paul,
>>>
>>> The second part is a velocity snippet. It has been written at a time
>> there
>>> was only one syntax in XWiki (what we call now syntax xwiki/1.0). In the
>> new
>>> syntaxes (xwiki/2.0 or xwiki/2.1), you need to surround velocity code
>> blocks
>>> by the {{velocity}} macro to get it executed. See
>>> http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax for more on
>> this.
>>
>>> If you get the snippet working, it would be great you update it to add
>> the
>>> information you've missed in the first place.
>>
>> I just did it.
>>
>> Hope this helps,
>> Marius
>>
>>
> I got half-way...
>
> I copy-pasted the new text into the editor (in 'source' mode),
>
> in Chrome, I can see the chart but then it pops up an error:
> Caught exception: TypeError: Cannot read property 'documentElement' of null
>

> in Firefox:
> Caught exception: TypeError: v1 is null

You get this exception when you're not logged in right? The current code 
uses this URL 
/xwiki/bin/view/Main/TimeLine?action=xml&xpage=rdf&changesNb=200 to get 
the list of events. It seems that the response is bad when you're not 
logged in. I'll try to debug this later today.

Hope this helps,
Marius

>
> in IE 8:
> Caught exception: TypeError: 'documentElement' is null or not an object
>
> ideas?
> thanks
> Paul
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-08 Thread Paul Harris
On 8 December 2010 18:09, Marius Dumitru Florea <
mariusdumitru.flo...@xwiki.com> wrote:

> On 12/08/2010 11:47 AM, Jerome Velociter wrote:
> > Hi Paul,
> >
> > The second part is a velocity snippet. It has been written at a time
> there
> > was only one syntax in XWiki (what we call now syntax xwiki/1.0). In the
> new
> > syntaxes (xwiki/2.0 or xwiki/2.1), you need to surround velocity code
> blocks
> > by the {{velocity}} macro to get it executed. See
> > http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax for more on
> this.
>
> > If you get the snippet working, it would be great you update it to add
> the
> > information you've missed in the first place.
>
> I just did it.
>
> Hope this helps,
> Marius
>
>
I got half-way...

I copy-pasted the new text into the editor (in 'source' mode),

in Chrome, I can see the chart but then it pops up an error:
Caught exception: TypeError: Cannot read property 'documentElement' of null

in Firefox:
Caught exception: TypeError: v1 is null

in IE 8:
Caught exception: TypeError: 'documentElement' is null or not an object

ideas?
thanks
Paul
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-08 Thread Marius Dumitru Florea
On 12/08/2010 11:47 AM, Jerome Velociter wrote:
> Hi Paul,
>
> The second part is a velocity snippet. It has been written at a time there
> was only one syntax in XWiki (what we call now syntax xwiki/1.0). In the new
> syntaxes (xwiki/2.0 or xwiki/2.1), you need to surround velocity code blocks
> by the {{velocity}} macro to get it executed. See
> http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax for more on this.

> If you get the snippet working, it would be great you update it to add the
> information you've missed in the first place.

I just did it.

Hope this helps,
Marius

>
> Bye!
> Jerome
>
>
>
> On Wed, Dec 8, 2010 at 9:38 AM, Paul Harris  wrote:
>
>> Hi again,
>>
>> I would like to get this working:
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline
>>
>> I've looked through the documentation and can't figure out what I'm
>> supposed
>> to do with all that # code...
>>
>> Is there something obvious I'm missing?
>>
>> * I've added the javascript line to the bottom of the HTTP Meta info
>> (which,
>> by the way - i only want to do on the page that has the timeline!),
>>
>> * i've copy-pasted that code onto a page, but all i see is the code... no
>> timeline
>>
>> thanks
>> Paul
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Timeline and snippets

2010-12-08 Thread Jerome Velociter
Hi Paul,

The second part is a velocity snippet. It has been written at a time there
was only one syntax in XWiki (what we call now syntax xwiki/1.0). In the new
syntaxes (xwiki/2.0 or xwiki/2.1), you need to surround velocity code blocks
by the {{velocity}} macro to get it executed. See
http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax for more on this.
If you get the snippet working, it would be great you update it to add the
information you've missed in the first place.

Bye!
Jerome



On Wed, Dec 8, 2010 at 9:38 AM, Paul Harris  wrote:

> Hi again,
>
> I would like to get this working:
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline
>
> I've looked through the documentation and can't figure out what I'm
> supposed
> to do with all that # code...
>
> Is there something obvious I'm missing?
>
> * I've added the javascript line to the bottom of the HTTP Meta info
> (which,
> by the way - i only want to do on the page that has the timeline!),
>
> * i've copy-pasted that code onto a page, but all i see is the code... no
> timeline
>
> thanks
> Paul
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users