Re: [xwiki-users] Parent-Children Livetable macro 1.2 - Error

2015-10-16 Thread ICLED
This is a regression error, the macro works ok until 6.4.5. 
I canceled the migration to 7 for now.



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Parent-Children-Livetable-macro-1-2-Error-tp7596477p7596515.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Parent-Children Livetable macro 1.2 - Error

2015-10-16 Thread vinc...@massol.net
Hi ICLED,


On 14 Oct 2015 at 18:26:37, ICLED 
(c.lederm...@interact-consulting.com(mailto:c.lederm...@interact-consulting.com))
 wrote:

> I have XWIKI 7.1.2 on UBUNTU 14.04.3 LTS, Tomcat7 and MySQL from Ubuntu
> Distribution.
> XWIKI WAR Install.
>  
> I am using a subwiki.
>  
> The following line
>  
> {{parentschildrenlivetable space="An existing Space"/}}
>  
> Result in this message in catalina.out
>  
> 2015-10-14 18:04:35,664
> [http://wiki/xwiki/wiki/icwiki/edit/XWiki/SpaceParentsChildrenService?language=en=inline]
> ERROR o.x.v.i.DefaultVelocityEngine - Left side ($returnedItems) of '<'
> operation has null value at 37:icwiki:XWiki.SpaceParentsChildrenService[line
> 250, column 37]

I’ve debugged the problem locally and the macro works fine for non-nested 
spaces. Initially I also got some error (see below) but it was because I didn’t 
have the xwiki-platform-legacy-oldcore-*.jar JAR in my WEB-INF/lib and this 
macro requires some legacy APIs.

FTR here’s the error I was getting:

2015-10-16 14:06:17,177 
[http://localhost:8080/xwiki/bin/get/XWiki/SpaceParentsChildrenService?outputSyntax=plain=xe.index.==doc.name%2Cdoc.date%2Cdoc.author=currentlanguage%2Chidden=XWiki=1=10=1=doc.name=asc]
 ERROR o.x.v.i.DefaultVelocityEngine  - Left side ($offset) of '<' operation 
has null value at 94:xwiki:XWiki.SpaceParentsChildrenService[line 14, column 
14] 
2015-10-16 14:06:17,183 
[http://localhost:8080/xwiki/bin/get/XWiki/SpaceParentsChildrenService?outputSyntax=plain=xe.index.==doc.name%2Cdoc.date%2Cdoc.author=currentlanguage%2Chidden=XWiki=1=10=1=doc.name=asc]
 WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of getter 
[com.xpn.xwiki.api.DeprecatedContext.getLanguage] in 
94:xwiki:XWiki.SpaceParentsChildrenService@209,12 
2015-10-16 14:06:17,183 
[http://localhost:8080/xwiki/bin/get/XWiki/SpaceParentsChildrenService?outputSyntax=plain=xe.index.==doc.name%2Cdoc.date%2Cdoc.author=currentlanguage%2Chidden=XWiki=1=10=1=doc.name=asc]
 ERROR o.x.v.i.DefaultVelocityEngine  - Left side ($returnedItems) of '<' 
operation has null value at 94:xwiki:XWiki.SpaceParentsChildrenService[line 
252, column 37] 

I tested with:
{{parentschildrenlivetable space="XWiki" order="asc" rowCount="10"/}}

Could you confirm that you didn’t have this xwiki-platform-legacy-oldcore-*.jar 
JAR in your WEB-INF/lib? Also could you let us know if you tried the macro on 
Nested Spaces? (could you show how you used the macro?).

Thanks
-Vincent
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Parent-Children Livetable macro 1.2 - Error

2015-10-16 Thread vinc...@massol.net


On 16 Oct 2015 at 16:26:17, ICLED 
(c.lederm...@interact-consulting.com(mailto:c.lederm...@interact-consulting.com))
 wrote:

> I found this: xwiki-platform-legacy-oldcore-7.1.2.jar
> in: /usr/local/lib/xwiki/xwiki-enterprise-web-7.1.2/WEB-INF/lib
>  
> We are not using nested spaces.

Ok this time I have tested on 7.1.2 (I was on 7.3-SNAPSHOT) and it worked OOB 
for me. I created a new page and put in it:

{{parentschildrenlivetable space="XWiki" order="asc" rowCount="10"/}}

You didn’t tell us how you use the macro (see the questions from my previous 
mail - PS: BTW would be nice to not remove the discussion thread in the mail as 
we can’t check what came before easily and point to it ;)).

Thanks
-Vincent

> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Parent-Children-Livetable-macro-1-2-Error-tp7596477p7596519.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.

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


Re: [xwiki-users] Parent-Children Livetable macro 1.2 - Error

2015-10-16 Thread ICLED
I found this: xwiki-platform-legacy-oldcore-7.1.2.jar
in: /usr/local/lib/xwiki/xwiki-enterprise-web-7.1.2/WEB-INF/lib

We are not using nested spaces.



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Parent-Children-Livetable-macro-1-2-Error-tp7596477p7596519.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Parent-Children Livetable macro 1.2 - Error

2015-10-15 Thread Thomas Mortagne
This looks like a bug, would be great if you could report it on
http://jira.xwiki.org with detail on how to reproduce it on a standard
instance.

On Wed, Oct 14, 2015 at 6:26 PM, ICLED
 wrote:
> I have XWIKI 7.1.2 on UBUNTU 14.04.3 LTS, Tomcat7 and MySQL from Ubuntu
> Distribution.
> XWIKI WAR Install.
>
> I am using a subwiki.
>
> The following line
>
> {{parentschildrenlivetable space="An existing Space"/}}
>
> Result in this message in catalina.out
>
> 2015-10-14 18:04:35,664
> [http://wiki/xwiki/wiki/icwiki/edit/XWiki/SpaceParentsChildrenService?language=en=inline]
> ERROR o.x.v.i.DefaultVelocityEngine  - Left side ($returnedItems) of '<'
> operation has null value at 37:icwiki:XWiki.SpaceParentsChildrenService[line
> 250, column 37]
>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Parent-Children-Livetable-macro-1-2-Error-tp7596477.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Parent-Children Livetable macro 1.2 - Error

2015-10-15 Thread Marius Dumitru Florea
On Thu, Oct 15, 2015 at 10:33 AM, Thomas Mortagne  wrote:

> This looks like a bug, would be great if you could report it on
> http://jira.xwiki.org with detail on how to reproduce it on a standard
> instance.
>

http://extensions.xwiki.org/xwiki/bin/view/Extension/Parent-Children+Livetable+macro
doesn't have a JIRA project and it's not supported by the XWiki Development
Team. I'm listed as a developer but I didn't worked directly on this
extension. I think I just gave some advices to Raluca/Mircea. The error
suggests that $returnedItems is null which is not expected by the code. But
I'm not familiar with the code.


>
> On Wed, Oct 14, 2015 at 6:26 PM, ICLED
>  wrote:
> > I have XWIKI 7.1.2 on UBUNTU 14.04.3 LTS, Tomcat7 and MySQL from Ubuntu
> > Distribution.
> > XWIKI WAR Install.
> >
> > I am using a subwiki.
> >
> > The following line
> >
> > {{parentschildrenlivetable space="An existing Space"/}}
> >
> > Result in this message in catalina.out
> >
> > 2015-10-14 18:04:35,664
> > [
> http://wiki/xwiki/wiki/icwiki/edit/XWiki/SpaceParentsChildrenService?language=en=inline
> ]
> > ERROR o.x.v.i.DefaultVelocityEngine  - Left side ($returnedItems) of '<'
> > operation has null value at
> 37:icwiki:XWiki.SpaceParentsChildrenService[line
> > 250, column 37]
> >
> >
> >
> > --
> > View this message in context:
> http://xwiki.475771.n2.nabble.com/Parent-Children-Livetable-macro-1-2-Error-tp7596477.html
> > Sent from the XWiki- Users mailing list archive at Nabble.com.
> > ___
> > users mailing list
> > users@xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
>
>
>
> --
> Thomas Mortagne
> ___
> 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] Parent-Children Livetable macro 1.2 - Error

2015-10-15 Thread Thomas Mortagne
Indeed I did not check jira before suggesting to create an issue. You
can always leave a comment on
http://extensions.xwiki.org/xwiki/bin/view/Extension/Parent-Children+Livetable+macro.

On Thu, Oct 15, 2015 at 9:53 AM, Marius Dumitru Florea
 wrote:
> On Thu, Oct 15, 2015 at 10:33 AM, Thomas Mortagne > wrote:
>
>> This looks like a bug, would be great if you could report it on
>> http://jira.xwiki.org with detail on how to reproduce it on a standard
>> instance.
>>
>
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Parent-Children+Livetable+macro
> doesn't have a JIRA project and it's not supported by the XWiki Development
> Team. I'm listed as a developer but I didn't worked directly on this
> extension. I think I just gave some advices to Raluca/Mircea. The error
> suggests that $returnedItems is null which is not expected by the code. But
> I'm not familiar with the code.
>
>
>>
>> On Wed, Oct 14, 2015 at 6:26 PM, ICLED
>>  wrote:
>> > I have XWIKI 7.1.2 on UBUNTU 14.04.3 LTS, Tomcat7 and MySQL from Ubuntu
>> > Distribution.
>> > XWIKI WAR Install.
>> >
>> > I am using a subwiki.
>> >
>> > The following line
>> >
>> > {{parentschildrenlivetable space="An existing Space"/}}
>> >
>> > Result in this message in catalina.out
>> >
>> > 2015-10-14 18:04:35,664
>> > [
>> http://wiki/xwiki/wiki/icwiki/edit/XWiki/SpaceParentsChildrenService?language=en=inline
>> ]
>> > ERROR o.x.v.i.DefaultVelocityEngine  - Left side ($returnedItems) of '<'
>> > operation has null value at
>> 37:icwiki:XWiki.SpaceParentsChildrenService[line
>> > 250, column 37]
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> http://xwiki.475771.n2.nabble.com/Parent-Children-Livetable-macro-1-2-Error-tp7596477.html
>> > Sent from the XWiki- Users mailing list archive at Nabble.com.
>> > ___
>> > users mailing list
>> > users@xwiki.org
>> > http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>>
>> --
>> Thomas Mortagne
>> ___
>> 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



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users