Re: [xwiki-users] Slow cache sync with JGroups / S3 in an EC2 cluster

2015-05-08 Thread vinc...@massol.net
Hi there,

I don’h have experience using jgroups over s3 but a minute seems really long.

When jgroups is used on a local network it’s instantaneous, there delay is so 
small that it’s unnoticeable.

Are there any recommendations on how to speed up cache-sync time between XWiki 
hosts on a cluster?”

Not much can be doe on the xwiki side here. I think the best bet would be to 
ask on the jgroups mailing lists to see if anyone has experience of jgroups 
over s3.

Also, in a cluster, is the default XWiki cache a distributed cache?”

This is what xwiki is implementing! each instance has a cache and they sync 
through jgroups, making it a distributed cache. The only idea I have would be 
to modify the mechanism somehow so that:
* when the page is saved, jgroups is configured to block till all cluster 
members have received the message
* this could also be implemented by having all members returning another ack 
message to the  sender, and the sender would wait for these messages before 
exiting the save.

However in your case this would mean that any save would take more than 1 
minutes (probably 2+ seen the communication tile you are currently 
experiencing). Thus it won’t be a solution.

You really need to find what’s taking long.

Or is the same cache content replicated across all nodes in a cluster? “

see 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Observation+Module+Remote

no content is transmitted over the network. Only the doc reference so that each 
instance evicts it from its memory cache so that next time the doc is asked 
it’s fetched from the DB.

Hope it helps,
-Vinent Massol
On 8 May 2015 at 03:57:58, Debajit Adhikary (deba...@outlook.com) wrote:

We have deployed XWiki over a two-node EC2 cluster. We are using JGroups over 
S3 for cluster messaging as multicast does not work in EC2.  
I have noticed that if I edit a page on host A, and then refresh the same page 
from host B, it shows stale content — it takes up to a minute for the caches to 
sync.  
Is this something others have observed when running XWiki over multiple hosts? 
(I'm wondering if this is a JGroups/S3 issue)For people who are running XWiki 
in a cluster, how long does it typically take for changes made from one machine 
to show up in another?Are there any recommendations on how to speed up 
cache-sync time between XWiki hosts on a cluster?  
Also, in a cluster, is the default XWiki cache a distributed cache? Or is the 
same cache content replicated across all nodes in a cluster?  
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Fwd: null pointer exception in JspWikiImporter

2015-05-08 Thread vinc...@massol.net
Hi,

I don’t know anything about this code snippet provided by a contributor but I 
can tell you why the NPE happens.

This code seems to be calling Utils.getContextComponentManager() before calling 
Utils.setComponentManager(…) to set the component manager to use.

note that this code is really not clean/nice and it would benefit if someone 
would develop a Filter Stream converter extension for jspwiki as it’s been done 
for confluence, see:
* http://extensions.xwiki.org/xwiki/bin/view/Extension/Filter+Application
* 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Filter+Confluence+XML+module

Hope it helps,
-Vincent

On 7 May 2015 at 22:21:26, Khjintcorp (khjintc...@gmail.com) wrote:



Sent from my iPhone


Hi Vincent

 

I am trying to convert JSPwiki pages to Xwiki pages.For that I used the code 
which is in the link

http://extensions.xwiki.org/xwiki/bin/view/Extension/JSPWiki+To+XWiki+Conversion

 

After I fixed all jar issues in classpath then  I ran the program, 
JspWikiImporter  I got the null pointer exception.

 

I saw  people posted the same messages in this group. I don’t see the answers 
for this matter.  Do you have any update for  the issue?  

 

 

java.lang.NullPointerException

   at com.xpn.xwiki.web.Utils.getContextComponentManager(Utils.java:695)

   at com.xpn.xwiki.web.Utils.getComponent(Utils.java:752)

   at com.xpn.xwiki.web.Utils.getComponent(Utils.java:781)

   at 
com.xpn.xwiki.XWikiCompatibilityAspect.ajc$interFieldInit$com_xpn_xwiki_XWikiCompatibilityAspect$com_xpn_xwiki_XWiki$defaultReferenceEntityReferenceResolver(XWikiCompatibilityAspect.aj:87)

   at com.xpn.xwiki.XWiki.init(XWiki.java:6450)

   at com.xpn.xwiki.XWiki.init(XWiki.java:6441)

   at JspWikiImporter.export(JspWikiImporter.java:72)

   at JspWikiImporter.main(JspWikiImporter.java:62)

Exception in thread main java.lang.RuntimeException: Export failed

   at JspWikiImporter.export(JspWikiImporter.java:99)

   at JspWikiImporter.main(JspWikiImporter.java:62)

Caused by: java.lang.NullPointerException

   at com.xpn.xwiki.web.Utils.getContextComponentManager(Utils.java:695)

   at com.xpn.xwiki.web.Utils.getComponent(Utils.java:752)

   at com.xpn.xwiki.web.Utils.getComponent(Utils.java:781)

   at 
com.xpn.xwiki.XWikiCompatibilityAspect.ajc$interFieldInit$com_xpn_xwiki_XWikiCompatibilityAspect$com_xpn_xwiki_XWiki$defaultReferenceEntityReferenceResolver(XWikiCompatibilityAspect.aj:87)

   at com.xpn.xwiki.XWiki.init(XWiki.java:6450)

   at com.xpn.xwiki.XWiki.init(XWiki.java:6441)

   at JspWikiImporter.export(JspWikiImporter.java:72)

   ... 1 more

 

Thanks

 

 

Ken Liang

Contractor

Unisys

Office: 571-468-2782

 

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


Re: [xwiki-users] Printing pages as displayed

2015-05-08 Thread Mahomed Hussein
Thanks for this. The power of xwiki and the great job the 
developers/contributors have done never ceases to amaze me! I love it :)


Kind regards,

Mahomed




-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Ecaterina Moraru 
(Valica)
Sent: 07 May 2015 13:29
To: XWiki Users
Subject: Re: [xwiki-users] Printing pages as displayed

Except print.css another way of 'printing' XWiki pages would be to
customize the PDF export, but this step is more complicated (you need to do
modifications to pdf templates, XHTML2FO XSL and FOP XSL transformations,
etc.), see
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HCustomizingthePDFexportLook26Feel

Depends on what you need to do.
Have fun,
Caty

On Thu, May 7, 2015 at 2:57 PM, Mahomed Hussein maho...@custodiandc.com
wrote:

 Great! Thanks. Good to know I was on the right path :)


 Kind regards,

 Mahomed




 -Original Message-
 From: users [mailto:users-boun...@xwiki.org] On Behalf Of Ecaterina
 Moraru (Valica)
 Sent: 07 May 2015 12:25
 To: XWiki Users
 Subject: Re: [xwiki-users] Printing pages as displayed

 On Thu, May 7, 2015 at 1:46 PM, Mahomed Hussein maho...@custodiandc.com
 wrote:

  Hi
 
  Can anyone help please with some information on how to modify/control the
  print layout please? Thanks.
 

 Each skin has a print.css


 
 
  Kind regards,
 
  Mahomed
 
 
 
 
  -Original Message-
  From: users [mailto:users-boun...@xwiki.org] On Behalf Of Mahomed
 Hussein
  Sent: 05 May 2015 17:59
  To: XWiki Users
  Subject: Re: [xwiki-users] Printing pages as displayed
 
  Oh! I forgot to mention we are running 7.0.1 and a custom skin/theme
 based
  on the flamingo skin.
 
 
  Kind regards,
 
  Mahomed
 
 
 
 
  -Original Message-
  From: users [mailto:users-boun...@xwiki.org] On Behalf Of Mahomed
 Hussein
  Sent: 05 May 2015 17:53
  To: XWiki Users
  Subject: [xwiki-users] Printing pages as displayed
 
  Hi
 
  Is there a way of printing the pages as they are displayed? Ideally
  printing without the side panel, but with all the different
  colours/formatting as it appears on the screen would be ideal. At the
  moment all colours and formatting is stripped if you try to print
 directly
  from the page, using the print preview option or by exporting to PDF.
 
  I have tried an export to HTML and then using the local html file to see
  if that works but it seems that whatever script/css is forcing the print
  formatting still takes effect on the exported html. I have tried saving
 the
  page only directly but it still does the same thing. I have tried Chrome.
  Firefox and IE.
 
  I have also tried a google search and I have searched for print and
  printing on the FAQ but there are so many results it may take a few hours
  to go through them all. I suspect there’s a CSS file I need to modify
  somewhere (possibly print.css?) that will format the export with the
 header
  colours etc. If so, please could someone kindly point me at the correct
  documentation or provide any tips/hints?
 
  Thanks in advance.
 
 
  Kind regards,
 
  Mahomed
 
 
 
 
 
 
  ___
  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
 ___
 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


[xwiki-users] Configuration setting to force reading from database?

2015-05-08 Thread Debajit Adhikary
Is there a configuration setting to force all hosts in a cluster to read from 
the database (instead of reading from the cache) each time a wiki page is 
requested?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users