[xwiki-users] [XWIKI 6.1] error for deleted attachments

2014-09-16 Thread Moens Patrick
Hello ,

I've a small problem with a fresh install of xwiki 6.1 on solaris (tomcat, 
oracle).

When I try to see the deleted attachments from the 'xwiki list of documents ', 
I got this error (see bellow).

There is just 2 deleted doc in the table;

I tried to save the page with admin account (who has programming rights), still 
 the same.

Any idea?

BR

Patrick




Failed to execute the [velocity] macro
org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate Velocity 
Macro for content [#if(!$xwiki.hasProgrammingRights())
  {{warning}}This document requires programming rights and needs to be saved by 
an administrator of this Wiki{{/warning}}
#else
#set($dateFormat = '  d, HH:mm')
#if(!$request.list)
$xwiki.ssx.use('XWiki.DeletedAttachments')##
$xwiki.jsx.use('XWiki.DeletedAttachments', {'minify' : 'false'})##
##
#set($columns = ['datt.filename', 'datt.docName', 'datt.date', 'datt.deleter', 
'actions'])
#set($columnProperties = {
'datt.filename'  : { 'type' : 'text', 'size' : 10 },
'datt.docName'   : { 'type' : 'text', 'size' : 10 },
'datt.date'  : { 'type' : 'date', 'filterable' : false },
'datt.deleter'   : { 'type' : 'text', 'size' : 10 },
'actions': { 'type' : 'text', 'filterable' : false, 'sortable' : 
false }
  })##
#set($options = {
'url'   : $xwiki.getURL('XWiki.DeletedAttachments', 'view', 
'list=1xpage=plainoutputSyntax=plain'),
   'callback'  : 'XWiki.index.trash.attachments.displayEntry',
'translationPrefix' : 'platform.index.trashAttachments.'
  })##
##
##
##
{{html wiki=true clean=false}}
div class=hidden
#livetable('attachmentTrash' $columns $columnProperties $options)
/div
{{/html}}

{{html wiki=true clean=false}}
noscript

  #set($deletedAttachments = $services.query.hql('select count(datt.id) from 
DeletedAttachment as datt').execute().get(0))
  #if($deletedAttachments == 0)


{{info}}$services.localization.render('platform.index.trashAttachmentsEmpty'){{/info}}

  #else
  #macro(displayDeletedAttachment $id)
#set($datt = $xwiki.getDeletedAttachment($id))
#set($originalAttachment = $datt.getAttachment())
#set($originalDocument = $xwiki.getDocument($datt.docName))
tr
  tda 
href=$originalDocument.getAttachmentRevisionURL($originalAttachment.filename, 
$originalAttachment.version, rid=${datt.id}).replaceAll('', 
'amp;')$escapetool.xml($datt.filename)/a/td
  tda 
href=$originalDocument.getURL()$escapetool.xml($originalDocument.plainTitle) 
($escapetool.xml(${originalDocument.fullName}))/a/td
  td$xwiki.formatDate($datt.getDate(), $dateFormat)/td
  td$xwiki.getUserName($datt.getDeleter())/td
  td class=itemActions
#if($datt.canDelete())
  a href=${originalDocument.getAttachmentURL($datt.filename, 
'delattachment', 
trashId=${datt.id}amp;xredirect=$escapetool.url($!request.getRequestURI())?$escapetool.url($!request.getQueryString()))}
 class=tool delete 
title=$services.localization.render('platform.index.trashAttachmentsActionsDeleteTooltip')$services.localization.render('platform.index.trashAttachmentsDeleteText')/a
#end
  /td
/tr
  #end
##
  #if($!{request.view} == '')
#set($queryParams = '')
  #else
#set($queryParams = view=$!{escapetool.url($request.view)})
  #end
  #set($paginationParameters = {
'totalItems' : $services.query.hql('select count(datt.id) from 
DeletedAttachment as datt').execute().get(0),
'defaultItemsPerPage' : 15,
'url' : $doc.getURL('view', $queryParams)
  })
  #pagination($paginationParameters)
  table id=searchResults class=xwiki-livetable xwiki-livetable-display
thead class=xwiki-livetable-display-headertr
  th scope=col class=xwiki-livetable-display-header-text selected 
asc$services.localization.render('platform.index.trashAttachments.datt.filename')/th
  th scope=col 
class=xwiki-livetable-display-header-text$services.localization.render('platform.index.trashAttachments.datt.docName')/th
  th scope=col 
class=xwiki-livetable-display-header-text$services.localization.render('platform.index.trashAttachments.datt.date')/th
  th scope=col 
class=xwiki-livetable-display-header-text$services.localization.render('platform.index.trashAttachments.datt.deleter')/th
  th scope=col 
class=xwiki-livetable-display-header-text$services.localization.render('platform.index.trashAttachments.actions')/th
/tr/thead
tbody class=xwiki-livetable-display-body
#set ($query = $services.query.hql('select datt.id from DeletedAttachment 
as datt order by datt.filename asc'))
#foreach($item in 
$query.setLimit($paginationParameters.itemsPerPage).setOffset($paginationParameters.firstItem).execute())
  #displayDeletedAttachment($item)
#end
/tbody
  /table
  #set($discard = $paginationParameters.put('position', 'bottom'))
  #pagination($paginationParameters)
  #end ## deletedAttachments != 0
/noscript
{{/html}}##
#else ## request.list
## 

Re: [xwiki-users] [XWIKI 6.1] error for deleted attachments

2014-09-16 Thread Thomas Mortagne
The issue is  java.lang.OutOfMemoryError: Java heap space. Hard to
say what exactly is the cause, you might want to look at
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Performances#HMemory.

On Tue, Sep 16, 2014 at 9:39 AM, Moens Patrick
patrick.mo...@curia.europa.eu wrote:
 Hello ,

 I've a small problem with a fresh install of xwiki 6.1 on solaris (tomcat, 
 oracle).

 When I try to see the deleted attachments from the 'xwiki list of documents 
 ', I got this error (see bellow).

 There is just 2 deleted doc in the table;

 I tried to save the page with admin account (who has programming rights), 
 still  the same.

 Any idea?

 BR

 Patrick




 Failed to execute the [velocity] macro
 org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate 
 Velocity Macro for content [#if(!$xwiki.hasProgrammingRights())
   {{warning}}This document requires programming rights and needs to be saved 
 by an administrator of this Wiki{{/warning}}
 #else
 #set($dateFormat = '  d, HH:mm')
 #if(!$request.list)
 $xwiki.ssx.use('XWiki.DeletedAttachments')##
 $xwiki.jsx.use('XWiki.DeletedAttachments', {'minify' : 'false'})##
 ##
 #set($columns = ['datt.filename', 'datt.docName', 'datt.date', 
 'datt.deleter', 'actions'])
 #set($columnProperties = {
 'datt.filename'  : { 'type' : 'text', 'size' : 10 },
 'datt.docName'   : { 'type' : 'text', 'size' : 10 },
 'datt.date'  : { 'type' : 'date', 'filterable' : false },
 'datt.deleter'   : { 'type' : 'text', 'size' : 10 },
 'actions': { 'type' : 'text', 'filterable' : false, 'sortable' : 
 false }
   })##
 #set($options = {
 'url'   : $xwiki.getURL('XWiki.DeletedAttachments', 'view', 
 'list=1xpage=plainoutputSyntax=plain'),
'callback'  : 'XWiki.index.trash.attachments.displayEntry',
 'translationPrefix' : 'platform.index.trashAttachments.'
   })##
 ##
 ##
 ##
 {{html wiki=true clean=false}}
 div class=hidden
 #livetable('attachmentTrash' $columns $columnProperties $options)
 /div
 {{/html}}

 {{html wiki=true clean=false}}
 noscript

   #set($deletedAttachments = $services.query.hql('select count(datt.id) from 
 DeletedAttachment as datt').execute().get(0))
   #if($deletedAttachments == 0)

 
 {{info}}$services.localization.render('platform.index.trashAttachmentsEmpty'){{/info}}

   #else
   #macro(displayDeletedAttachment $id)
 #set($datt = $xwiki.getDeletedAttachment($id))
 #set($originalAttachment = $datt.getAttachment())
 #set($originalDocument = $xwiki.getDocument($datt.docName))
 tr
   tda 
 href=$originalDocument.getAttachmentRevisionURL($originalAttachment.filename,
  $originalAttachment.version, rid=${datt.id}).replaceAll('', 
 'amp;')$escapetool.xml($datt.filename)/a/td
   tda 
 href=$originalDocument.getURL()$escapetool.xml($originalDocument.plainTitle)
  ($escapetool.xml(${originalDocument.fullName}))/a/td
   td$xwiki.formatDate($datt.getDate(), $dateFormat)/td
   td$xwiki.getUserName($datt.getDeleter())/td
   td class=itemActions
 #if($datt.canDelete())
   a href=${originalDocument.getAttachmentURL($datt.filename, 
 'delattachment', 
 trashId=${datt.id}amp;xredirect=$escapetool.url($!request.getRequestURI())?$escapetool.url($!request.getQueryString()))}
  class=tool delete 
 title=$services.localization.render('platform.index.trashAttachmentsActionsDeleteTooltip')$services.localization.render('platform.index.trashAttachmentsDeleteText')/a
 #end
   /td
 /tr
   #end
 ##
   #if($!{request.view} == '')
 #set($queryParams = '')
   #else
 #set($queryParams = view=$!{escapetool.url($request.view)})
   #end
   #set($paginationParameters = {
 'totalItems' : $services.query.hql('select count(datt.id) from 
 DeletedAttachment as datt').execute().get(0),
 'defaultItemsPerPage' : 15,
 'url' : $doc.getURL('view', $queryParams)
   })
   #pagination($paginationParameters)
   table id=searchResults class=xwiki-livetable xwiki-livetable-display
 thead class=xwiki-livetable-display-headertr
   th scope=col class=xwiki-livetable-display-header-text selected 
 asc$services.localization.render('platform.index.trashAttachments.datt.filename')/th
   th scope=col 
 class=xwiki-livetable-display-header-text$services.localization.render('platform.index.trashAttachments.datt.docName')/th
   th scope=col 
 class=xwiki-livetable-display-header-text$services.localization.render('platform.index.trashAttachments.datt.date')/th
   th scope=col 
 class=xwiki-livetable-display-header-text$services.localization.render('platform.index.trashAttachments.datt.deleter')/th
   th scope=col 
 class=xwiki-livetable-display-header-text$services.localization.render('platform.index.trashAttachments.actions')/th
 /tr/thead
 tbody class=xwiki-livetable-display-body
 #set ($query = $services.query.hql('select datt.id from DeletedAttachment 
 as datt order by datt.filename asc'))
 #foreach($item in 
 

Re: [xwiki-users] [XWIKI 6.1] error for deleted attachments

2014-09-16 Thread Moens Patrick
Thanks Thomas,

I'll look that because we have made some test with those JAVAOPTS parameters 
for massive import :

-Xms3072m
-Xmx3072m
-XX:MaxPermSize=256M

Seems not good :)


I'll try with those one  :




-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne
Sent: mardi 16 septembre 2014 9:43
To: XWiki Users
Subject: Re: [xwiki-users] [XWIKI 6.1] error for deleted attachments

The issue is  java.lang.OutOfMemoryError: Java heap space. Hard to say what 
exactly is the cause, you might want to look at 
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Performances#HMemory.

On Tue, Sep 16, 2014 at 9:39 AM, Moens Patrick patrick.mo...@curia.europa.eu 
wrote:
 Hello ,

 I've a small problem with a fresh install of xwiki 6.1 on solaris (tomcat, 
 oracle).

 When I try to see the deleted attachments from the 'xwiki list of documents 
 ', I got this error (see bellow).

 There is just 2 deleted doc in the table;

 I tried to save the page with admin account (who has programming rights), 
 still  the same.

 Any idea?

 BR

 Patrick




 Failed to execute the [velocity] macro
 org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate 
 Velocity Macro for content [#if(!$xwiki.hasProgrammingRights())
   {{warning}}This document requires programming rights and needs to be 
 saved by an administrator of this Wiki{{/warning}} #else 
 #set($dateFormat = '  d, HH:mm')
 #if(!$request.list)
 $xwiki.ssx.use('XWiki.DeletedAttachments')##
 $xwiki.jsx.use('XWiki.DeletedAttachments', {'minify' : 'false'})## ## 
 #set($columns = ['datt.filename', 'datt.docName', 'datt.date', 
 'datt.deleter', 'actions']) #set($columnProperties = {
 'datt.filename'  : { 'type' : 'text', 'size' : 10 },
 'datt.docName'   : { 'type' : 'text', 'size' : 10 },
 'datt.date'  : { 'type' : 'date', 'filterable' : false },
 'datt.deleter'   : { 'type' : 'text', 'size' : 10 },
 'actions': { 'type' : 'text', 'filterable' : false, 'sortable' : 
 false }
   })##
 #set($options = {
 'url'   : $xwiki.getURL('XWiki.DeletedAttachments', 'view', 
 'list=1xpage=plainoutputSyntax=plain'),
'callback'  : 'XWiki.index.trash.attachments.displayEntry',
 'translationPrefix' : 'platform.index.trashAttachments.'
   })##
 ##
 ##
 ##
 {{html wiki=true clean=false}}
 div class=hidden
 #livetable('attachmentTrash' $columns $columnProperties $options) 
 /div {{/html}}

 {{html wiki=true clean=false}}
 noscript

   #set($deletedAttachments = $services.query.hql('select count(datt.id) from 
 DeletedAttachment as datt').execute().get(0))
   #if($deletedAttachments == 0)

 
 {{info}}$services.localization.render('platform.index.trashAttachments
 Empty'){{/info}}

   #else
   #macro(displayDeletedAttachment $id)
 #set($datt = $xwiki.getDeletedAttachment($id))
 #set($originalAttachment = $datt.getAttachment())
 #set($originalDocument = $xwiki.getDocument($datt.docName))
 tr
   tda 
 href=$originalDocument.getAttachmentRevisionURL($originalAttachment.filename,
  $originalAttachment.version, rid=${datt.id}).replaceAll('', 
 'amp;')$escapetool.xml($datt.filename)/a/td
   tda 
 href=$originalDocument.getURL()$escapetool.xml($originalDocument.plainTitle)
  ($escapetool.xml(${originalDocument.fullName}))/a/td
   td$xwiki.formatDate($datt.getDate(), $dateFormat)/td
   td$xwiki.getUserName($datt.getDeleter())/td
   td class=itemActions
 #if($datt.canDelete())
   a href=${originalDocument.getAttachmentURL($datt.filename, 
 'delattachment', 
 trashId=${datt.id}amp;xredirect=$escapetool.url($!request.getRequestURI())?$escapetool.url($!request.getQueryString()))}
  class=tool delete 
 title=$services.localization.render('platform.index.trashAttachmentsActionsDeleteTooltip')$services.localization.render('platform.index.trashAttachmentsDeleteText')/a
 #end
   /td
 /tr
   #end
 ##
   #if($!{request.view} == '')
 #set($queryParams = '')
   #else
 #set($queryParams = view=$!{escapetool.url($request.view)})
   #end
   #set($paginationParameters = {
 'totalItems' : $services.query.hql('select count(datt.id) from 
 DeletedAttachment as datt').execute().get(0),
 'defaultItemsPerPage' : 15,
 'url' : $doc.getURL('view', $queryParams)
   })
   #pagination($paginationParameters)
   table id=searchResults class=xwiki-livetable xwiki-livetable-display
 thead class=xwiki-livetable-display-headertr
   th scope=col class=xwiki-livetable-display-header-text selected 
 asc$services.localization.render('platform.index.trashAttachments.datt.filename')/th
   th scope=col 
 class=xwiki-livetable-display-header-text$services.localization.render('platform.index.trashAttachments.datt.docName')/th
   th scope=col 
 class=xwiki-livetable-display-header-text$services.localization.render('platform.index.trashAttachments.datt.date')/th
   th scope=col 
 

Re: [xwiki-users] [XWIKI 6.1] error for deleted attachments

2014-09-16 Thread Moens Patrick
Thanks Thomas,

I'll look that because we have made some test with those JAVAOPTS parameters 
for massive import :


-Xms3072m
-Xmx3072m
-XX:MaxPermSize=256M

Seems not good , I f you have any idea to optimize memory  tuning for Xwiki 6.1 
on solaris (tomcat oracle) with around 100-150 concurent users


I'll try with those one  :
-d64
-Xms1536m
-Xmx1536m
-XX:MaxPermSize=200M
-XX:+UseConcMarkSweepGC
-Dfile.encoding=utf-8
-Dxwiki.data.dir=/opt/curia/wikidgt/data/
-Doracle.net.tns_admin=${TNS_ADMIN}



-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne
Sent: mardi 16 septembre 2014 9:43
To: XWiki Users
Subject: Re: [xwiki-users] [XWIKI 6.1] error for deleted attachments

The issue is  java.lang.OutOfMemoryError: Java heap space. Hard to say what 
exactly is the cause, you might want to look at 
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Performances#HMemory.

On Tue, Sep 16, 2014 at 9:39 AM, Moens Patrick patrick.mo...@curia.europa.eu 
wrote:
 Hello ,

 I've a small problem with a fresh install of xwiki 6.1 on solaris (tomcat, 
 oracle).

 When I try to see the deleted attachments from the 'xwiki list of documents 
 ', I got this error (see bellow).

 There is just 2 deleted doc in the table;

 I tried to save the page with admin account (who has programming rights), 
 still  the same.

 Any idea?

 BR

 Patrick




 Failed to execute the [velocity] macro
 org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate 
 Velocity Macro for content [#if(!$xwiki.hasProgrammingRights())
   {{warning}}This document requires programming rights and needs to be 
 saved by an administrator of this Wiki{{/warning}} #else 
 #set($dateFormat = '  d, HH:mm')
 #if(!$request.list)
 $xwiki.ssx.use('XWiki.DeletedAttachments')##
 $xwiki.jsx.use('XWiki.DeletedAttachments', {'minify' : 'false'})## ## 
 #set($columns = ['datt.filename', 'datt.docName', 'datt.date', 
 'datt.deleter', 'actions']) #set($columnProperties = {
 'datt.filename'  : { 'type' : 'text', 'size' : 10 },
 'datt.docName'   : { 'type' : 'text', 'size' : 10 },
 'datt.date'  : { 'type' : 'date', 'filterable' : false },
 'datt.deleter'   : { 'type' : 'text', 'size' : 10 },
 'actions': { 'type' : 'text', 'filterable' : false, 'sortable' : 
 false }
   })##
 #set($options = {
 'url'   : $xwiki.getURL('XWiki.DeletedAttachments', 'view', 
 'list=1xpage=plainoutputSyntax=plain'),
'callback'  : 'XWiki.index.trash.attachments.displayEntry',
 'translationPrefix' : 'platform.index.trashAttachments.'
   })##
 ##
 ##
 ##
 {{html wiki=true clean=false}}
 div class=hidden
 #livetable('attachmentTrash' $columns $columnProperties $options) 
 /div {{/html}}

 {{html wiki=true clean=false}}
 noscript

   #set($deletedAttachments = $services.query.hql('select count(datt.id) from 
 DeletedAttachment as datt').execute().get(0))
   #if($deletedAttachments == 0)

 
 {{info}}$services.localization.render('platform.index.trashAttachments
 Empty'){{/info}}

   #else
   #macro(displayDeletedAttachment $id)
 #set($datt = $xwiki.getDeletedAttachment($id))
 #set($originalAttachment = $datt.getAttachment())
 #set($originalDocument = $xwiki.getDocument($datt.docName))
 tr
   tda 
 href=$originalDocument.getAttachmentRevisionURL($originalAttachment.filename,
  $originalAttachment.version, rid=${datt.id}).replaceAll('', 
 'amp;')$escapetool.xml($datt.filename)/a/td
   tda 
 href=$originalDocument.getURL()$escapetool.xml($originalDocument.plainTitle)
  ($escapetool.xml(${originalDocument.fullName}))/a/td
   td$xwiki.formatDate($datt.getDate(), $dateFormat)/td
   td$xwiki.getUserName($datt.getDeleter())/td
   td class=itemActions
 #if($datt.canDelete())
   a href=${originalDocument.getAttachmentURL($datt.filename, 
 'delattachment', 
 trashId=${datt.id}amp;xredirect=$escapetool.url($!request.getRequestURI())?$escapetool.url($!request.getQueryString()))}
  class=tool delete 
 title=$services.localization.render('platform.index.trashAttachmentsActionsDeleteTooltip')$services.localization.render('platform.index.trashAttachmentsDeleteText')/a
 #end
   /td
 /tr
   #end
 ##
   #if($!{request.view} == '')
 #set($queryParams = '')
   #else
 #set($queryParams = view=$!{escapetool.url($request.view)})
   #end
   #set($paginationParameters = {
 'totalItems' : $services.query.hql('select count(datt.id) from 
 DeletedAttachment as datt').execute().get(0),
 'defaultItemsPerPage' : 15,
 'url' : $doc.getURL('view', $queryParams)
   })
   #pagination($paginationParameters)
   table id=searchResults class=xwiki-livetable xwiki-livetable-display
 thead class=xwiki-livetable-display-headertr
   th scope=col class=xwiki-livetable-display-header-text selected 
 asc$services.localization.render('platform.index.trashAttachments.datt.filename')/th
   th scope=col 
 

Re: [xwiki-users] [XWIKI 6.1] error for deleted attachments

2014-09-16 Thread Thomas Mortagne
Well the one you tries should me enough for most use case.

How big is the attachment you are trying to delete ? Your issue might
be related to http://jira.xwiki.org/browse/XWIKI-8910.

On Tue, Sep 16, 2014 at 9:59 AM, Moens Patrick
patrick.mo...@curia.europa.eu wrote:
 Thanks Thomas,

 I'll look that because we have made some test with those JAVAOPTS parameters 
 for massive import :


 -Xms3072m
 -Xmx3072m
 -XX:MaxPermSize=256M

 Seems not good , I f you have any idea to optimize memory  tuning for Xwiki 
 6.1 on solaris (tomcat oracle) with around 100-150 concurent users


 I'll try with those one  :
 -d64
 -Xms1536m
 -Xmx1536m
 -XX:MaxPermSize=200M
 -XX:+UseConcMarkSweepGC
 -Dfile.encoding=utf-8
 -Dxwiki.data.dir=/opt/curia/wikidgt/data/
 -Doracle.net.tns_admin=${TNS_ADMIN}



 -Original Message-
 From: users [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne
 Sent: mardi 16 septembre 2014 9:43
 To: XWiki Users
 Subject: Re: [xwiki-users] [XWIKI 6.1] error for deleted attachments

 The issue is  java.lang.OutOfMemoryError: Java heap space. Hard to say what 
 exactly is the cause, you might want to look at 
 http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Performances#HMemory.

 On Tue, Sep 16, 2014 at 9:39 AM, Moens Patrick 
 patrick.mo...@curia.europa.eu wrote:
 Hello ,

 I've a small problem with a fresh install of xwiki 6.1 on solaris (tomcat, 
 oracle).

 When I try to see the deleted attachments from the 'xwiki list of documents 
 ', I got this error (see bellow).

 There is just 2 deleted doc in the table;

 I tried to save the page with admin account (who has programming rights), 
 still  the same.

 Any idea?

 BR

 Patrick




 Failed to execute the [velocity] macro
 org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate 
 Velocity Macro for content [#if(!$xwiki.hasProgrammingRights())
   {{warning}}This document requires programming rights and needs to be
 saved by an administrator of this Wiki{{/warning}} #else
 #set($dateFormat = '  d, HH:mm')
 #if(!$request.list)
 $xwiki.ssx.use('XWiki.DeletedAttachments')##
 $xwiki.jsx.use('XWiki.DeletedAttachments', {'minify' : 'false'})## ##
 #set($columns = ['datt.filename', 'datt.docName', 'datt.date',
 'datt.deleter', 'actions']) #set($columnProperties = {
 'datt.filename'  : { 'type' : 'text', 'size' : 10 },
 'datt.docName'   : { 'type' : 'text', 'size' : 10 },
 'datt.date'  : { 'type' : 'date', 'filterable' : false },
 'datt.deleter'   : { 'type' : 'text', 'size' : 10 },
 'actions': { 'type' : 'text', 'filterable' : false, 'sortable' : 
 false }
   })##
 #set($options = {
 'url'   : $xwiki.getURL('XWiki.DeletedAttachments', 'view', 
 'list=1xpage=plainoutputSyntax=plain'),
'callback'  : 'XWiki.index.trash.attachments.displayEntry',
 'translationPrefix' : 'platform.index.trashAttachments.'
   })##
 ##
 ##
 ##
 {{html wiki=true clean=false}}
 div class=hidden
 #livetable('attachmentTrash' $columns $columnProperties $options)
 /div {{/html}}

 {{html wiki=true clean=false}}
 noscript

   #set($deletedAttachments = $services.query.hql('select count(datt.id) from 
 DeletedAttachment as datt').execute().get(0))
   #if($deletedAttachments == 0)


 {{info}}$services.localization.render('platform.index.trashAttachments
 Empty'){{/info}}

   #else
   #macro(displayDeletedAttachment $id)
 #set($datt = $xwiki.getDeletedAttachment($id))
 #set($originalAttachment = $datt.getAttachment())
 #set($originalDocument = $xwiki.getDocument($datt.docName))
 tr
   tda 
 href=$originalDocument.getAttachmentRevisionURL($originalAttachment.filename,
  $originalAttachment.version, rid=${datt.id}).replaceAll('', 
 'amp;')$escapetool.xml($datt.filename)/a/td
   tda 
 href=$originalDocument.getURL()$escapetool.xml($originalDocument.plainTitle)
  ($escapetool.xml(${originalDocument.fullName}))/a/td
   td$xwiki.formatDate($datt.getDate(), $dateFormat)/td
   td$xwiki.getUserName($datt.getDeleter())/td
   td class=itemActions
 #if($datt.canDelete())
   a href=${originalDocument.getAttachmentURL($datt.filename, 
 'delattachment', 
 trashId=${datt.id}amp;xredirect=$escapetool.url($!request.getRequestURI())?$escapetool.url($!request.getQueryString()))}
  class=tool delete 
 title=$services.localization.render('platform.index.trashAttachmentsActionsDeleteTooltip')$services.localization.render('platform.index.trashAttachmentsDeleteText')/a
 #end
   /td
 /tr
   #end
 ##
   #if($!{request.view} == '')
 #set($queryParams = '')
   #else
 #set($queryParams = view=$!{escapetool.url($request.view)})
   #end
   #set($paginationParameters = {
 'totalItems' : $services.query.hql('select count(datt.id) from 
 DeletedAttachment as datt').execute().get(0),
 'defaultItemsPerPage' : 15,
 'url' : $doc.getURL('view', $queryParams)
   })
   #pagination($paginationParameters)
   table id=searchResults 

Re: [xwiki-users] [XWIKI 6.1] error for deleted attachments

2014-09-16 Thread Moens Patrick
Between 50-70 mo

But its before trying to deleted them. It's when I open the deleted attachments 
page.

-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne
Sent: mardi 16 septembre 2014 10:11
To: XWiki Users
Subject: Re: [xwiki-users] [XWIKI 6.1] error for deleted attachments

Well the one you tries should me enough for most use case.

How big is the attachment you are trying to delete ? Your issue might be 
related to http://jira.xwiki.org/browse/XWIKI-8910.

On Tue, Sep 16, 2014 at 9:59 AM, Moens Patrick patrick.mo...@curia.europa.eu 
wrote:
 Thanks Thomas,

 I'll look that because we have made some test with those JAVAOPTS parameters 
 for massive import :


 -Xms3072m
 -Xmx3072m
 -XX:MaxPermSize=256M

 Seems not good , I f you have any idea to optimize memory  tuning for 
 Xwiki 6.1 on solaris (tomcat oracle) with around 100-150 concurent 
 users


 I'll try with those one  :
 -d64
 -Xms1536m
 -Xmx1536m
 -XX:MaxPermSize=200M
 -XX:+UseConcMarkSweepGC
 -Dfile.encoding=utf-8
 -Dxwiki.data.dir=/opt/curia/wikidgt/data/
 -Doracle.net.tns_admin=${TNS_ADMIN}



 -Original Message-
 From: users [mailto:users-boun...@xwiki.org] On Behalf Of Thomas 
 Mortagne
 Sent: mardi 16 septembre 2014 9:43
 To: XWiki Users
 Subject: Re: [xwiki-users] [XWIKI 6.1] error for deleted attachments

 The issue is  java.lang.OutOfMemoryError: Java heap space. Hard to say what 
 exactly is the cause, you might want to look at 
 http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Performances#HMemory.

 On Tue, Sep 16, 2014 at 9:39 AM, Moens Patrick 
 patrick.mo...@curia.europa.eu wrote:
 Hello ,

 I've a small problem with a fresh install of xwiki 6.1 on solaris (tomcat, 
 oracle).

 When I try to see the deleted attachments from the 'xwiki list of documents 
 ', I got this error (see bellow).

 There is just 2 deleted doc in the table;

 I tried to save the page with admin account (who has programming rights), 
 still  the same.

 Any idea?

 BR

 Patrick




 Failed to execute the [velocity] macro
 org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate 
 Velocity Macro for content [#if(!$xwiki.hasProgrammingRights())
   {{warning}}This document requires programming rights and needs to 
 be saved by an administrator of this Wiki{{/warning}} #else 
 #set($dateFormat = '  d, HH:mm')
 #if(!$request.list)
 $xwiki.ssx.use('XWiki.DeletedAttachments')##
 $xwiki.jsx.use('XWiki.DeletedAttachments', {'minify' : 'false'})## ## 
 #set($columns = ['datt.filename', 'datt.docName', 'datt.date', 
 'datt.deleter', 'actions']) #set($columnProperties = {
 'datt.filename'  : { 'type' : 'text', 'size' : 10 },
 'datt.docName'   : { 'type' : 'text', 'size' : 10 },
 'datt.date'  : { 'type' : 'date', 'filterable' : false },
 'datt.deleter'   : { 'type' : 'text', 'size' : 10 },
 'actions': { 'type' : 'text', 'filterable' : false, 'sortable' : 
 false }
   })##
 #set($options = {
 'url'   : $xwiki.getURL('XWiki.DeletedAttachments', 'view', 
 'list=1xpage=plainoutputSyntax=plain'),
'callback'  : 'XWiki.index.trash.attachments.displayEntry',
 'translationPrefix' : 'platform.index.trashAttachments.'
   })##
 ##
 ##
 ##
 {{html wiki=true clean=false}}
 div class=hidden
 #livetable('attachmentTrash' $columns $columnProperties $options) 
 /div {{/html}}

 {{html wiki=true clean=false}}
 noscript

   #set($deletedAttachments = $services.query.hql('select count(datt.id) from 
 DeletedAttachment as datt').execute().get(0))
   #if($deletedAttachments == 0)


 {{info}}$services.localization.render('platform.index.trashAttachment
 s
 Empty'){{/info}}

   #else
   #macro(displayDeletedAttachment $id)
 #set($datt = $xwiki.getDeletedAttachment($id))
 #set($originalAttachment = $datt.getAttachment())
 #set($originalDocument = $xwiki.getDocument($datt.docName))
 tr
   tda 
 href=$originalDocument.getAttachmentRevisionURL($originalAttachment.filename,
  $originalAttachment.version, rid=${datt.id}).replaceAll('', 
 'amp;')$escapetool.xml($datt.filename)/a/td
   tda 
 href=$originalDocument.getURL()$escapetool.xml($originalDocument.plainTitle)
  ($escapetool.xml(${originalDocument.fullName}))/a/td
   td$xwiki.formatDate($datt.getDate(), $dateFormat)/td
   td$xwiki.getUserName($datt.getDeleter())/td
   td class=itemActions
 #if($datt.canDelete())
   a href=${originalDocument.getAttachmentURL($datt.filename, 
 'delattachment', 
 trashId=${datt.id}amp;xredirect=$escapetool.url($!request.getRequestURI())?$escapetool.url($!request.getQueryString()))}
  class=tool delete 
 title=$services.localization.render('platform.index.trashAttachmentsActionsDeleteTooltip')$services.localization.render('platform.index.trashAttachmentsDeleteText')/a
 #end
   /td
 /tr
   #end
 ##
   #if($!{request.view} == '')
 #set($queryParams = '')
   #else
 #set($queryParams = 

Re: [xwiki-users] [XWIKI 6.1] error for deleted attachments

2014-09-16 Thread Thomas Mortagne
Deleted attachments management is not very efficient (mostly for the
reasons described in http://jira.xwiki.org/browse/XWIKI-8910.), AFAIK
when you display it it's loaded in memory with it's whole history so
if you have several versions it might take quite some memory.

On Tue, Sep 16, 2014 at 10:14 AM, Moens Patrick
patrick.mo...@curia.europa.eu wrote:
 Between 50-70 mo

 But its before trying to deleted them. It's when I open the deleted 
 attachments page.

 -Original Message-
 From: users [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne
 Sent: mardi 16 septembre 2014 10:11
 To: XWiki Users
 Subject: Re: [xwiki-users] [XWIKI 6.1] error for deleted attachments

 Well the one you tries should me enough for most use case.

 How big is the attachment you are trying to delete ? Your issue might be 
 related to http://jira.xwiki.org/browse/XWIKI-8910.

 On Tue, Sep 16, 2014 at 9:59 AM, Moens Patrick 
 patrick.mo...@curia.europa.eu wrote:
 Thanks Thomas,

 I'll look that because we have made some test with those JAVAOPTS parameters 
 for massive import :


 -Xms3072m
 -Xmx3072m
 -XX:MaxPermSize=256M

 Seems not good , I f you have any idea to optimize memory  tuning for
 Xwiki 6.1 on solaris (tomcat oracle) with around 100-150 concurent
 users


 I'll try with those one  :
 -d64
 -Xms1536m
 -Xmx1536m
 -XX:MaxPermSize=200M
 -XX:+UseConcMarkSweepGC
 -Dfile.encoding=utf-8
 -Dxwiki.data.dir=/opt/curia/wikidgt/data/
 -Doracle.net.tns_admin=${TNS_ADMIN}



 -Original Message-
 From: users [mailto:users-boun...@xwiki.org] On Behalf Of Thomas
 Mortagne
 Sent: mardi 16 septembre 2014 9:43
 To: XWiki Users
 Subject: Re: [xwiki-users] [XWIKI 6.1] error for deleted attachments

 The issue is  java.lang.OutOfMemoryError: Java heap space. Hard to say 
 what exactly is the cause, you might want to look at 
 http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Performances#HMemory.

 On Tue, Sep 16, 2014 at 9:39 AM, Moens Patrick 
 patrick.mo...@curia.europa.eu wrote:
 Hello ,

 I've a small problem with a fresh install of xwiki 6.1 on solaris (tomcat, 
 oracle).

 When I try to see the deleted attachments from the 'xwiki list of documents 
 ', I got this error (see bellow).

 There is just 2 deleted doc in the table;

 I tried to save the page with admin account (who has programming rights), 
 still  the same.

 Any idea?

 BR

 Patrick




 Failed to execute the [velocity] macro
 org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate 
 Velocity Macro for content [#if(!$xwiki.hasProgrammingRights())
   {{warning}}This document requires programming rights and needs to
 be saved by an administrator of this Wiki{{/warning}} #else
 #set($dateFormat = '  d, HH:mm')
 #if(!$request.list)
 $xwiki.ssx.use('XWiki.DeletedAttachments')##
 $xwiki.jsx.use('XWiki.DeletedAttachments', {'minify' : 'false'})## ##
 #set($columns = ['datt.filename', 'datt.docName', 'datt.date',
 'datt.deleter', 'actions']) #set($columnProperties = {
 'datt.filename'  : { 'type' : 'text', 'size' : 10 },
 'datt.docName'   : { 'type' : 'text', 'size' : 10 },
 'datt.date'  : { 'type' : 'date', 'filterable' : false },
 'datt.deleter'   : { 'type' : 'text', 'size' : 10 },
 'actions': { 'type' : 'text', 'filterable' : false, 'sortable' 
 : false }
   })##
 #set($options = {
 'url'   : $xwiki.getURL('XWiki.DeletedAttachments', 
 'view', 'list=1xpage=plainoutputSyntax=plain'),
'callback'  : 'XWiki.index.trash.attachments.displayEntry',
 'translationPrefix' : 'platform.index.trashAttachments.'
   })##
 ##
 ##
 ##
 {{html wiki=true clean=false}}
 div class=hidden
 #livetable('attachmentTrash' $columns $columnProperties $options)
 /div {{/html}}

 {{html wiki=true clean=false}}
 noscript

   #set($deletedAttachments = $services.query.hql('select count(datt.id) 
 from DeletedAttachment as datt').execute().get(0))
   #if($deletedAttachments == 0)


 {{info}}$services.localization.render('platform.index.trashAttachment
 s
 Empty'){{/info}}

   #else
   #macro(displayDeletedAttachment $id)
 #set($datt = $xwiki.getDeletedAttachment($id))
 #set($originalAttachment = $datt.getAttachment())
 #set($originalDocument = $xwiki.getDocument($datt.docName))
 tr
   tda 
 href=$originalDocument.getAttachmentRevisionURL($originalAttachment.filename,
  $originalAttachment.version, rid=${datt.id}).replaceAll('', 
 'amp;')$escapetool.xml($datt.filename)/a/td
   tda 
 href=$originalDocument.getURL()$escapetool.xml($originalDocument.plainTitle)
  ($escapetool.xml(${originalDocument.fullName}))/a/td
   td$xwiki.formatDate($datt.getDate(), $dateFormat)/td
   td$xwiki.getUserName($datt.getDeleter())/td
   td class=itemActions
 #if($datt.canDelete())
   a href=${originalDocument.getAttachmentURL($datt.filename, 
 'delattachment', 
 

Re: [xwiki-users] XWiki User/Dev meet up in France? Paris? (Follow up #2)

2014-09-16 Thread vinc...@massol.net
Ok I’ve created a wiki page at 
http://dev.xwiki.org/xwiki/bin/view/Drafts/XWikiMeetup2014

Please make sure to add yourself if you’re interested in participating since I 
believe we would need at least 10-15 persons before we can consider doing it in 
a useful manner. 

Right now we’re only 6 listed…

Guillaume, Fabio, Caleb, Anca, Ludovic, Jean Coury: since you live in Paris, 
wouldn’t you be interested? Denis (I know it’s farther for you but you could 
stay in Paris for some days maybe)?

Thanks
-Vincent


On 29 Aug 2014 at 14:30:52, vinc...@massol.net 
(vinc...@massol.net(mailto:vinc...@massol.net)) wrote:

 Ok so far we have the following persons interested:
 - Patrick Moens
 - Josef Haimerl
 - Clemens Klein-Robbenhaar
 - Pascal Bastien
 - myself (Vincent Massol)
  
 Anyone else?  
  
 In term of format I’m thinking about one of:  
  
 - 1/2 day Discussions/Presentations + 1.5 days of Hackathon  
 - 1 day of Discussions/Presentations
 - 1 day of Hackathon
 - 2 days of Hackathon
 - 1/2 day of Discussions/Presentations
  
 Any other idea?  
  
 Once we have all ideas listed, I’ll send a doodle to decide on the format + 
 decide on the date.  
  
 Thanks  
 -Vincent
  
  
  
 On 18 Jul 2014 at 21:38:14, vinc...@massol.net 
 (vinc...@massol.net(mailto:vinc...@massol.net)) wrote:
  
  Hi XWiki users,
   
  I’m wondering if we’d be enough to start organizing an XWiki users/dev 
  meetup in France.
   
  Could you let me know in reply if you’d be interested in joining if I was 
  to organize such a meetup?
   
  If we’re enough we could imagine organizing it in September or October for 
  example. XWiki SAS has an office located in Paris 
  (http://www.xwiki.com/lang/en/Company/Contact) and they could host us.
   
  Note for those who’d be coming from afar, I’m sure that it would be 
  possible to have you sleep at some XWiki SAS employee’s place in Paris or 
  even in the office (there’s a shower and kitchen).
   
  Interesting or not?
   
  If you’re interested what would you be interested in doing/seeing during 
  this time? We could imagine a 3-4 hours meetup or even a 1 day meetup. We 
  could also imagine having a hackathon during the time, in this case 
  probably 2 days would be nicer.
   
  WDYT?
   
  Thanks
  -Vincent
   
   
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [xwiki-devs] XWiki User/Dev meet up in France? Paris? (Follow up #2)

2014-09-16 Thread Denis Gervalle
On Tue, Sep 16, 2014 at 4:30 PM, vinc...@massol.net vinc...@massol.net
wrote:

 Ok I’ve created a wiki page at
 http://dev.xwiki.org/xwiki/bin/view/Drafts/XWikiMeetup2014

 Please make sure to add yourself if you’re interested in participating
 since I believe we would need at least 10-15 persons before we can consider
 doing it in a useful manner.

 Right now we’re only 6 listed…

 Guillaume, Fabio, Caleb, Anca, Ludovic, Jean Coury: since you live in
 Paris, wouldn’t you be interested? Denis (I know it’s farther for you but
 you could stay in Paris for some days maybe)?


Added myself, I have missed your first mail.



 Thanks
 -Vincent


 On 29 Aug 2014 at 14:30:52, vinc...@massol.net (vinc...@massol.net(mailto:
 vinc...@massol.net)) wrote:

  Ok so far we have the following persons interested:
  - Patrick Moens
  - Josef Haimerl
  - Clemens Klein-Robbenhaar
  - Pascal Bastien
  - myself (Vincent Massol)
 
  Anyone else?
 
  In term of format I’m thinking about one of:
 
  - 1/2 day Discussions/Presentations + 1.5 days of Hackathon
  - 1 day of Discussions/Presentations
  - 1 day of Hackathon
  - 2 days of Hackathon
  - 1/2 day of Discussions/Presentations
 
  Any other idea?
 
  Once we have all ideas listed, I’ll send a doodle to decide on the
 format + decide on the date.
 
  Thanks
  -Vincent
 
 
 
  On 18 Jul 2014 at 21:38:14, vinc...@massol.net (vinc...@massol.net
 (mailto:vinc...@massol.net)) wrote:
 
   Hi XWiki users,
  
   I’m wondering if we’d be enough to start organizing an XWiki users/dev
 meetup in France.
  
   Could you let me know in reply if you’d be interested in joining if I
 was to organize such a meetup?
  
   If we’re enough we could imagine organizing it in September or October
 for example. XWiki SAS has an office located in Paris (
 http://www.xwiki.com/lang/en/Company/Contact) and they could host us.
  
   Note for those who’d be coming from afar, I’m sure that it would be
 possible to have you sleep at some XWiki SAS employee’s place in Paris or
 even in the office (there’s a shower and kitchen).
  
   Interesting or not?
  
   If you’re interested what would you be interested in doing/seeing
 during this time? We could imagine a 3-4 hours meetup or even a 1 day
 meetup. We could also imagine having a hackathon during the time, in this
 case probably 2 days would be nicer.
  
   WDYT?
  
   Thanks
   -Vincent
  
  
 ___
 devs mailing list
 d...@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/devs




-- 
Denis Gervalle
SOFTEC sa - CEO
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] FAQ Application - items not showing up

2014-09-16 Thread patrick-ml

Hello.

We're using the most recent version of xWiki (6.1) with the most recent FAQ 
Application (6.1) installed.

When I go to create/contribute FAQ items they do NOT appear listed under the 
FAQ.WebHome space. FAQ items when edited directly DO appear to have the FAQ 
attribute set for source Space. They also DO have FAQ.WebHome set as the parent.

When I go to manually search for said items from the FAQ.WebHome widget they 
also do NOT appear under a FAQ search results.

We are using the Solr search engine with XWQL and no custom queries defined.

We were using Lucene and when we searched for said items from the FAQ.WebHome 
widget they would appear as a result of a FAQ search, but still were NOT listed 
under the FAQ.WebHome space.

What are we missing?

Any insight would be appreciated.

~Patrick

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


Re: [xwiki-users] LDAP service is not available. Please verify your installation

2014-09-16 Thread Thomas Mortagne
Did you followed
http://extensions.xwiki.org/xwiki/bin/view/Extension/LDAP+Application#HEnablingLDAPauthenticationonawiki
?

On Mon, Sep 15, 2014 at 4:00 PM, wolfmav wolf...@yahoo.com wrote:
 Administration:LDAP

 LDAP Admin Application extension under the configuration page for said
 extension.

 I can copy the xwiki.cfg file contents in the thread if appropriate.





 --
 View this message in context: 
 http://xwiki.475771.n2.nabble.com/LDAP-service-is-not-available-Please-verify-your-installation-tp7592131p7592139.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