Re: [xwiki-users] OutOfMemoryError: GC overhead limit exceeded on a new installation

2016-07-18 Thread myname
Hi,

the last message is in my opinion the important one.
java.lang.OutOfMemoryError: GC overhead limit exceeded 

as far as i know java is telling you that it's spending too much time with
the garbage collection with too little result.

I would recommend to remove the garbage collection parameters from the
arguments and test it again.
If xwiki is working then you can add the parameters again and adjust the
values.



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/OutOfMemoryError-GC-overhead-limit-exceeded-on-a-new-installation-tp7600376p7600377.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


[xwiki-users] OutOfMemoryError: GC overhead limit exceeded on a new installation

2016-07-18 Thread Jared Simms

Hello,

I've been trying to get xwiki running for almost a week and keep running into 
memory errors. I was finally able to get through the Distribution Wizard 
without having to restart Jetty due to out of memory errors, but am still 
getting the errors when I try to do almost anything in the wiki. The standalone 
installer works great and is much more responsive but I would like to use 
Postgres for the database.

Any suggestions for what I can do to get xwiki to stop the out of memory errors?

Thanks,
Jared

Here's my current config:

OS: Ubuntu 16.04.1 LTS fully patched

Java: 
 - openjdk version "1.8.0_91"
 - OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-0ubuntu4~16.04.1-b14)
 - OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)

Jetty: 9.2.14.v20151106
 - JAVA_OPTIONS="-server -Xms800m -Xmx2048m -XX:MaxPermSize=222m 
-Dfile.encoding=utf-8 -Djava.awt.headless=true -XX:+UseParallelGC 
-XX:MaxGCPauseMillis=100"

Database: PostgreSQL 9.5.3

JDBC Driver: postgresql-9.4.1208.jar



Here are the most recent errors that occurred when I tried to edit my first 
page:

2016-07-18 18:26:29,335 [http://nhhqwiki01:8080/xwiki/bin/view/Infrastructure/] 
ERROR c.x.x.XWiki                    - Error while evaluating velocity template 
[exception.vm]
org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with id 
[/templates/exception.vm]
at 
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:227)
at 
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198)
at 
com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:726)
at 
com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:627)
at 
com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:605)
at 
com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:571)
at 
com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:557)
at 
com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:65)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1896)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:180)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:88)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:507)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:193)
at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at 
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at 
org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at 
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at 
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
at 
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
at 
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at 
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at 
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at 

Re: [xwiki-users] new wiki request

2016-07-18 Thread Thomas Mortagne
You can access your new wiki on http://emirates-wikilaw.mywiki.org.

Enjoy !

On Mon, Jul 18, 2016 at 12:33 PM, francesca borghi
 wrote:
> Hi Thomas,
> emirates-wikilaw.mywiki.org is fine
> Thanks
> Francesca
> Il 18/Lug/2016 10:54,  ha scritto:
>
>> DearThomas,
>>
>> Thanks for your reply.
>>
>> I would like to name my wiki *Emirates WikiLaw*.
>>
>>
>> Francesca
>>
>>
>>
>> 2016-07-17 12:00 GMT+02:00 :
>>
>>> Send users mailing list submissions to
>>> users@xwiki.org
>>>
>>> To subscribe or unsubscribe via the World Wide Web, visit
>>> http://lists.xwiki.org/mailman/listinfo/users
>>> or, via email, send a message with subject or body 'help' to
>>> users-requ...@xwiki.org
>>>
>>> You can reach the person managing the list at
>>> users-ow...@xwiki.org
>>>
>>> When replying, please edit your Subject line so it is more specific
>>> than "Re: Contents of users digest..."
>>>
>>>
>>> Today's Topics:
>>>
>>>1. saving a page using javascript (Jan-Paul Kleijn)
>>>2. Re: new wiki request (Thomas Mortagne)
>>>
>>>
>>> --
>>>
>>> Message: 1
>>> Date: Sat, 16 Jul 2016 15:58:34 +0200
>>> From: Jan-Paul Kleijn 
>>> To: XWiki Users 
>>> Subject: [xwiki-users] saving a page using javascript
>>> Message-ID: <547b99a1-3aa0-4b8f-60f9-3349445be...@biggee.nl>
>>> Content-Type: text/plain; charset=utf-8; format=flowed
>>>
>>> Hi good folks,
>>>
>>> Is there a way to save a page using javascript?
>>>
>>> I read the XWiki JavaScript API but could not find this functionality.
>>>
>>> Thanks in advance,
>>>
>>> Jan-Paul
>>>
>>>
>>> ---
>>> Dit e-mailbericht is gecontroleerd op virussen met Avast
>>> antivirussoftware.
>>> https://www.avast.com/antivirus
>>>
>>>
>>>
>>> --
>>>
>>> Message: 2
>>> Date: Sat, 16 Jul 2016 19:21:41 +0200
>>> From: Thomas Mortagne 
>>> To: XWiki Users 
>>> Subject: Re: [xwiki-users] new wiki request
>>> Message-ID:
>>> <
>>> capnknlgeosgdku6q+2wjh+dlzpx-r-cvkurphq9tjayowwf...@mail.gmail.com>
>>> Content-Type: text/plain; charset=UTF-8
>>>
>>> What name do you want for your wiki ?
>>>
>>> On Thu, Jul 14, 2016 at 5:12 PM, francesca borghi
>>>  wrote:
>>> > Dear Users,
>>> > I am Francesca Borghi, registered with the name of Comitem.
>>> > I aim at using  xwiki to create a new collaborative platform to develop
>>> > content concerning trade law of the United Arab Emirates.
>>> > The objective of this platfomr is spreading knowledge on the Emirate law
>>> > without mediation of the commercial institutions, but by peer to peer
>>> > interaction.
>>> >
>>> > Sincerely
>>> > Francesca Borghi
>>> > ___
>>> > users mailing list
>>> > users@xwiki.org
>>> > http://lists.xwiki.org/mailman/listinfo/users
>>>
>>>
>>>
>>> --
>>> Thomas Mortagne
>>>
>>>
>>> --
>>>
>>> Subject: Digest Footer
>>>
>>> ___
>>> users mailing list
>>> users@xwiki.org
>>> http://lists.xwiki.org/mailman/listinfo/users
>>>
>>>
>>> --
>>>
>>> End of users Digest, Vol 108, Issue 21
>>> **
>>>
>>
>>
> ___
> 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


[xwiki-users] Assunto: Re: Velocity not work in HTTP Meta Info

2016-07-18 Thread Julio Brum
Thank you Eduard, I intend to migrate to the skin Flamingo. But for now, I 
solved the problem, because given the right script to all users (group). It was 
necessary to change the skin momentarily to Flamingo because the script access 
right not appear on the skin Colibri.
Best Regards,Julio

Enviado do Yahoo Mail no Android 
 
  Em 4:58 seg, 18 de jul de AM, Eduard Moraru escreveu:   
Hi,

Just a reminder that the colibri skin is deprecated and you should focus your 
efforts on the flamingo skin instead (which gets more tested / bugfixes / 
improvements / etc).

Thanks,
Eduard

On Thu, Jul 14, 2016 at 1:44 AM, Julio Brum  wrote:


I'm using the 7.4.4 version of XWiki. Does anyone know how to operate the 
Velocity codes in "HTTP Meta Info"?
With the flamingo skin, this work, but with colibri skin not working
When I give the right "program" one of the XWiki groups, it works.

I saw the following error in the log:
WARN  org.xwiki.velocity.internal.DefaultVelocityEngine - Deprecated usage of 
method [com.xpn.xwiki.api.XWiki.parseContent] in 
30:/skins/colibri/view.vm@25,47 

Result in user browser:
#if($doc.fullName != "XWiki.XWikiLogin")http://lists.xwiki.org/mailman/listinfo/users


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


[xwiki-users] Fw : Re: 2 bug on WYSIWYG Editor Module

2016-07-18 Thread Pascal BASTIEN
rs. It is the same behavior
> with strikethrough word.
> > Any ideas how
> to fix it?
> > 
> > With
> Xwiki 8.1, WYSIWYG Editor is loading anymore.
> 
> Regarding XWiki 8.1, make sure
> you force clear you browser cache.

I did it.
But i copy/paste example from 
http://extensions.xwiki.org/xwiki/bin/view/Extension/WYSIWYG+Editor+Module#HLoadondemandusingvelocitymacros
 (probably working with "old" WYSIWYG editor only).

> 
> Also note that starting with XWiki 8.2RC1, CK
> is now the default editor and you may want to try it out and
> verify how it works in it.

Ok then I must looking for a nice example to use new CKeditot

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


Re: [xwiki-users] 2 bug on WYSIWYG Editor Module

2016-07-18 Thread Vincent Massol
Hi Pascal,

> On 18 Jul 2016, at 11:51, Pascal BASTIEN  wrote:
> 
> Hi,
> 
> I found 2 differents bugs on WYSIWYG Editor Module.
> I copy/paste "Load on demand using velocity macros" example:
> http://extensions.xwiki.org/xwiki/bin/view/Extension/WYSIWYG+Editor+Module#HLoadondemandusingvelocitymacros
> 
> On Xwiki 7.0.1, I load the WYSIWYG Editor, I type some words in WYSIWYG tab, 
> I underline a word and select source tab  => a end of line is inserted before 
> __ charcters. It is the same behavior with strikethrough word.
> Any ideas how to fix it?
> 
> With Xwiki 8.1, WYSIWYG Editor is loading anymore.

Regarding XWiki 8.1, make sure you force clear you browser cache.

Also note that starting with XWiki 8.2RC1, CK is now the default editor and you 
may want to try it out and verify how it works in it.

Thanks
-Vincent

> Thxs.
> 
> Pascal B

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


[xwiki-users] 2 bug on WYSIWYG Editor Module

2016-07-18 Thread Pascal BASTIEN
Hi,

I found 2 differents bugs on WYSIWYG Editor Module.
I copy/paste "Load on demand using velocity macros" example:
http://extensions.xwiki.org/xwiki/bin/view/Extension/WYSIWYG+Editor+Module#HLoadondemandusingvelocitymacros

On Xwiki 7.0.1, I load the WYSIWYG Editor, I type some words in WYSIWYG tab, I 
underline a word and select source tab  => a end of line is inserted before __ 
charcters. It is the same behavior with strikethrough word.
Any ideas how to fix it?

With Xwiki 8.1, WYSIWYG Editor is loading anymore.

Thxs.

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


[xwiki-users] Images with wysywig

2016-07-18 Thread Gerritjan Koekkoek
When our user use the wysywig editor to insert a image

And the user chooses to upload the image from computer


The system will attach the image to the current $doc

But it will insert a link [[image:x.xxx]] where z.xxx is the attached 
filename.


This works fine when page is visited.

But when in BLOG or using {{include reference='docWithImage'/}}


It can not find the link and show the according 'can not find image' icon

Is it possible to automatically insert a image as 
[[image:wiki:space.p...@x.]] (is this called extended reference to 
attached image])


Same for any attached file where user chooses to add a link to attachment (PDF, 
.doc, .xls)


Gerritjan Koekkoek
Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
Visit our website
Facebook
email



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


Re: [xwiki-users] Velocity not work in HTTP Meta Info

2016-07-18 Thread Eduard Moraru
Hi,

Just a reminder that the colibri skin is deprecated and you should focus
your efforts on the flamingo skin instead (which gets more tested /
bugfixes / improvements / etc).

Thanks,
Eduard

On Thu, Jul 14, 2016 at 1:44 AM, Julio Brum  wrote:

>
> I'm using the 7.4.4 version of XWiki. Does anyone know how to operate the
> Velocity codes in "HTTP Meta Info"?
> With the flamingo skin, this work, but with colibri skin not working
> When I give the right "program" one of the XWiki groups, it works.
>
> I saw the following error in the log:
> WARN  org.xwiki.velocity.internal.DefaultVelocityEngine - Deprecated usage
> of method [com.xpn.xwiki.api.XWiki.parseContent] in
> 30:/skins/colibri/view.vm@25,47
>
> Result in user browser:
> #if($doc.fullName != "XWiki.XWikiLogin") type="application/rss+xml" title="Wiki Feed RSS"
> href="$xwiki.getURL('Main.WebRss', 'view', 'xpage=rdf')" /> rel="alternate" type="application/rss+xml"
>
> Regards,Julio
> ___
> 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] new wiki request

2016-07-18 Thread Thomas Mortagne
The domain name have some constraints so what about
"emirates-wikilaw.myxwiki.org" ?

On Sun, Jul 17, 2016 at 11:12 PM, francesca borghi
 wrote:
> DearThomas,
>
> Thanks for your reply.
>
> I would like to name my wiki *Emirates WikiLaw*.
>
>
> Francesca
>
>
>
> 2016-07-17 12:00 GMT+02:00 :
>
>> Send users mailing list submissions to
>> users@xwiki.org
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> http://lists.xwiki.org/mailman/listinfo/users
>> or, via email, send a message with subject or body 'help' to
>> users-requ...@xwiki.org
>>
>> You can reach the person managing the list at
>> users-ow...@xwiki.org
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of users digest..."
>>
>>
>> Today's Topics:
>>
>>1. saving a page using javascript (Jan-Paul Kleijn)
>>2. Re: new wiki request (Thomas Mortagne)
>>
>>
>> --
>>
>> Message: 1
>> Date: Sat, 16 Jul 2016 15:58:34 +0200
>> From: Jan-Paul Kleijn 
>> To: XWiki Users 
>> Subject: [xwiki-users] saving a page using javascript
>> Message-ID: <547b99a1-3aa0-4b8f-60f9-3349445be...@biggee.nl>
>> Content-Type: text/plain; charset=utf-8; format=flowed
>>
>> Hi good folks,
>>
>> Is there a way to save a page using javascript?
>>
>> I read the XWiki JavaScript API but could not find this functionality.
>>
>> Thanks in advance,
>>
>> Jan-Paul
>>
>>
>> ---
>> Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware.
>> https://www.avast.com/antivirus
>>
>>
>>
>> --
>>
>> Message: 2
>> Date: Sat, 16 Jul 2016 19:21:41 +0200
>> From: Thomas Mortagne 
>> To: XWiki Users 
>> Subject: Re: [xwiki-users] new wiki request
>> Message-ID:
>> <
>> capnknlgeosgdku6q+2wjh+dlzpx-r-cvkurphq9tjayowwf...@mail.gmail.com>
>> Content-Type: text/plain; charset=UTF-8
>>
>> What name do you want for your wiki ?
>>
>> On Thu, Jul 14, 2016 at 5:12 PM, francesca borghi
>>  wrote:
>> > Dear Users,
>> > I am Francesca Borghi, registered with the name of Comitem.
>> > I aim at using  xwiki to create a new collaborative platform to develop
>> > content concerning trade law of the United Arab Emirates.
>> > The objective of this platfomr is spreading knowledge on the Emirate law
>> > without mediation of the commercial institutions, but by peer to peer
>> > interaction.
>> >
>> > Sincerely
>> > Francesca Borghi
>> > ___
>> > users mailing list
>> > users@xwiki.org
>> > http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>>
>> --
>> Thomas Mortagne
>>
>>
>> --
>>
>> Subject: Digest Footer
>>
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>> --
>>
>> End of users Digest, Vol 108, Issue 21
>> **
>>
> ___
> 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] saving a page using javascript

2016-07-18 Thread Eduard Moraru
Hi,

As Vincent mentions, REST is the way to go.

An alternative, though, is to use the save action's URL:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/Standard+URL+Format#HAction:save

Thanks,
Eduard

On Mon, Jul 18, 2016 at 10:28 AM, Vincent Massol  wrote:

> Hi Jean-Paul,
>
> > On 16 Jul 2016, at 15:58, Jan-Paul Kleijn  wrote:
> >
> > Hi good folks,
> >
> > Is there a way to save a page using javascript?
> >
> > I read the XWiki JavaScript API but could not find this functionality.
>
> You should check the XWiki REST API:
> http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI
>
> I don’t think there’s any JS API that encapsulate this but I could be
> wrong.
>
> Thanks
> -Vincent
>
> > Thanks in advance,
> >
> > Jan-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] saving a page using javascript

2016-07-18 Thread Vincent Massol
Hi Jean-Paul,

> On 16 Jul 2016, at 15:58, Jan-Paul Kleijn  wrote:
> 
> Hi good folks,
> 
> Is there a way to save a page using javascript?
> 
> I read the XWiki JavaScript API but could not find this functionality.

You should check the XWiki REST API:
http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI

I don’t think there’s any JS API that encapsulate this but I could be wrong.

Thanks
-Vincent

> Thanks in advance,
> 
> Jan-Paul
> 

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