[xwiki-users] Data too long for column 'XWV_UNIQUE_ID' error on save visit statictics

2014-02-28 Thread Maxime Sinclair
Hello,

A new error message just appeared in the logs of my xwiki instance (3.5).
This is the message :
2014-02-27 18:06:49,307 [Statistics storing daemon] ERROR
.x.x.s.i.x.VisitStatsStoreItem - Failed to save visit statistics object
[class com.xpn.xwiki.stats.impl.xwiki.VisitStatsStoreItem XWiki.XWikiGuest
10.210.105.105Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64;
Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.1; Microsoft
Outlook 14.0.7109; ms-office; MSOffice 14)
PFEBDVUTJS84C531ZDS26WMNMKJWK1EQ]

It seems this is an old issue, see:
http://xwiki.markmail.org/thread/sob63ol6csslbfqs

But I find nothing in Jira about this subject. Do I have to create one ? Is
this issue still present in the last version of XWiki ?

Thanks for your advice.

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


Re: [xwiki-users] Data too long for column 'XWV_UNIQUE_ID' error on save visit statictics

2014-02-28 Thread vinc...@massol.net
Hi Maxime,

AFAIR it’s because the user-agent string is too large.

This was fixed a while ago, see http://jira.xwiki.org/browse/XWIKI-8937

Thanks
-Vincent


On 28 Feb 2014 at 10:13:32, Maxime Sinclair 
(maxime.sincl...@gmail.com(mailto:maxime.sincl...@gmail.com)) wrote:

 Hello,
  
 A new error message just appeared in the logs of my xwiki instance (3.5).
 This is the message :
 2014-02-27 18:06:49,307 [Statistics storing daemon] ERROR
 .x.x.s.i.x.VisitStatsStoreItem - Failed to save visit statistics object
 [class com.xpn.xwiki.stats.impl.xwiki.VisitStatsStoreItem XWiki.XWikiGuest
 10.210.105.105Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64;
 Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.1; Microsoft
 Outlook 14.0.7109; ms-office; MSOffice 14)
 PFEBDVUTJS84C531ZDS26WMNMKJWK1EQ]
  
 It seems this is an old issue, see:
 http://xwiki.markmail.org/thread/sob63ol6csslbfqs
  
 But I find nothing in Jira about this subject. Do I have to create one ? Is
 this issue still present in the last version of XWiki ?
  
 Thanks for your advice.
  
 Maxime

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


Re: [xwiki-users] Data too long for column 'XWV_UNIQUE_ID' error on save visit statictics

2014-02-28 Thread Maxime Sinclair
Good to read it was fixed in 5.1.
Thanks for your quick answer.
Maxime


2014-02-28 10:18 GMT+01:00 vinc...@massol.net vinc...@massol.net:

 Hi Maxime,

 AFAIR it's because the user-agent string is too large.

 This was fixed a while ago, see http://jira.xwiki.org/browse/XWIKI-8937

 Thanks
 -Vincent


 On 28 Feb 2014 at 10:13:32, Maxime Sinclair (maxime.sincl...@gmail.com
 (mailto:maxime.sincl...@gmail.com)) wrote:

  Hello,
 
  A new error message just appeared in the logs of my xwiki instance (3.5).
  This is the message :
  2014-02-27 18:06:49,307 [Statistics storing daemon] ERROR
  .x.x.s.i.x.VisitStatsStoreItem - Failed to save visit statistics object
  [class com.xpn.xwiki.stats.impl.xwiki.VisitStatsStoreItem
 XWiki.XWikiGuest
  10.210.105.105Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64;
  Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
  3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.1; Microsoft
  Outlook 14.0.7109; ms-office; MSOffice 14)
  PFEBDVUTJS84C531ZDS26WMNMKJWK1EQ]
 
  It seems this is an old issue, see:
  http://xwiki.markmail.org/thread/sob63ol6csslbfqs
 
  But I find nothing in Jira about this subject. Do I have to create one ?
 Is
  this issue still present in the last version of XWiki ?
 
  Thanks for your advice.
 
  Maxime

 ___
 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] Problem with erro/success macro - Xwiki 5.4

2014-02-28 Thread Marius Dumitru Florea
I reported and fixed http://jira.xwiki.org/browse/XWIKI-10107 .

Thanks,
Marius

On Thu, Feb 27, 2014 at 10:36 PM, Leonardo Kodato
leonardokod...@gmail.com wrote:
 Hi Marius.
 Now it works fine. Thank you.

 AnywayShould I report this problem as a bug and mark it as fixed?
 Thank you.
 Best regards,
 Leonardo.


 2014-02-25 17:24 GMT-03:00 Marius Dumitru Florea 
 mariusdumitru.flo...@xwiki.com:

 This is what I get with your content and with my small change
 http://i.imgur.com/2AaLQd3.png . Looks fine to me.

 Hope this helps,
 Marius

 On Tue, Feb 25, 2014 at 9:45 PM, Leonardo Kodato
 leonardokod...@gmail.com wrote:
  Hi.
  Unfortunately, no.
 
  It happens just with me or with you too?
  I'm asking it, because maybe it's something related to my Xwiki
  installation or some problem with my computer.
 
  OBS: I cleared the cache and I restarted Xwiki before testing.
 
 
 
 
  2014-02-25 15:08 GMT-03:00 Marius Dumitru Florea 
  mariusdumitru.flo...@xwiki.com:
 
  Can you replace this line from colibri.css
 
 
 https://github.com/xwiki/xwiki-platform/blob/xwiki-platform-5.4/xwiki-platform-core/xwiki-platform-colibri/src/main/resources/colibri/colibri.css#L2178
 
  span.errormessage, span.warningmessage, span.infomessage,
  span.plainmessage {
 
  with
 
  span.errormessage, span.warningmessage, span.infomessage,
  span.plainmessage, span.successmessage {
 
  and tell me if it fixes the problem?
 
  Hope this helps,
  Marius
 
 
  On Tue, Feb 25, 2014 at 6:31 PM, Leonardo Kodato
  leonardokod...@gmail.com wrote:
   Hi.
   Yes. I've tested in Firefox 19 and Chrome 33.
  
   Heres is the code Im using:
   |[PHOTO]|
  
 
 NAME|BRAND|Description|PRICE|{{error}}Strengths{{/error}}{{success}}Weaknesses{{/success}}
  
   Thank you.
  
  
   2014-02-25 11:33 GMT-03:00 Marius Dumitru Florea 
   mariusdumitru.flo...@xwiki.com:
  
   Did you clear your browser's cache?
  
   Hope this helps,
   Marius
  
   On Tue, Feb 25, 2014 at 3:12 PM, Leonardo Kodato
   leonardokod...@gmail.com wrote:
Hi everybody.
Thank you for being so helpful.
   
I was using Xwiki StandAlone installation(.exe) for testing
 purpose,
  but
yesterday I decided install a Xwiki ready for production.
Everything was OK, except the Sucess and Error Macros.
In Version 5.3:
http://i.imgur.com/F03E13y.jpg
   
In Version 5.4
http://i.imgur.com/TUw8RD9.jpg
   
It appears to be some kind of CSS problem or something similar.
I'm not sure it's a bug or not. Let me know if I must create a
 Issue
  on
Jira.
   
I'm running Xwiki 5.4(latest) on Windows 7 32-bit(.war package)
 with
   tomcat
and mysql.
   
Thank you.
___
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
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] periodic XWiki crashes

2014-02-28 Thread Daniel Thayer
Hi all,

I am having a problem with XWiki that is driving me crazy.  It periodically
crashes--interval between crashes from a few days to a few weeks.  There
are no errors in the log when it happens.

I am running XWiki enterprise 5.4.2 on Ubuntu, using Tomcat7, Postgresql,
and LDAP authentication.

I am getting errors like the following every hour in the log.  I don't know
if this is related or not:

2014-02-23 07:00:00,198 [XWiki Solr index thread] ERROR o.a.s.c.SolrCore
- org.apache.solr.common.SolrException: ERROR:
[doc=xwiki:Scheduler.WatchListHourlyNotifier_] multiple values encountered
for non multiValued field class: [XWiki.SchedulerJobClass,
XWiki.WatchListJobClass, XWiki.XWikiRights]
at
org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:243)
at
org.apache.solr.update.AddUpdateCommand.getLuceneDocument(AddUpdateCommand.java:73)
at
org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:208)
at
org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:61)
at
org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:51)
at
org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalAdd(DistributedUpdateProcessor.java:432)
at
org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(DistributedUpdateProcessor.java:557)
at
org.apache.solr.update.processor.DistributedUpdateProcessor.processAdd(DistributedUpdateProcessor.java:325)
at
org.apache.solr.handler.loader.XMLLoader.processUpdate(XMLLoader.java:230)
at
org.apache.solr.handler.loader.XMLLoader.load(XMLLoader.java:157)
arch.solr.internal.AbstractSolrInstance.add(AbstractSolrInstance.java:60)
at
org.xwiki.search.solr.internal.DefaultSolrIndexer.processBatch(DefaultSolrIndexer.java:401)
at
org.xwiki.search.solr.internal.DefaultSolrIndexer.runInternal(DefaultSolrIndexer.java:374)
at
com.xpn.xwiki.util.AbstractXWikiRunnable.run(AbstractXWikiRunnable.java:131)
at java.lang.Thread.run(Thread.java:724)
2014-02-23 07:00:00,199 [XWiki Solr index thread] ERROR
o.x.s.s.i.DefaultSolrIndexer   - Failed to process entry [INDEX
xwiki:Scheduler.WatchListHourlyNotifier()]
org.apache.solr.common.SolrException: ERROR:
[doc=xwiki:Scheduler.WatchListHourlyNotifier_] multiple values encountered
for non multiValued field class: [XWiki.SchedulerJobClass,
XWiki.WatchListJobClass, XWiki.XWikiRights]
at
org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:243)
~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06 03:05:35]
at
org.apache.solr.update.AddUpdateCommand.getLuceneDocument(AddUpdaarch.solr.internal.AbstractSolrInstance.add(AbstractSolrInstance.java:60)
at
org.xwiki.search.solr.internal.DefaultSolrIndexer.processBatch(DefaultSolrIndexer.java:401)
at
org.xwiki.search.solr.internal.DefaultSolrIndexer.runInternal(DefaultSolrIndexer.java:374)
at
com.xpn.xwiki.util.AbstractXWikiRunnable.run(AbstractXWikiRunnable.java:131)
at java.lang.Thread.run(Thread.java:724)
teCommand.java:73) ~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06
03:05:35]
at
org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:208)
~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06 03:05:35]
at
org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:61)
~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06 03:05:35]
at
org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:51)
~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06 03:05:35]
at
org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalAdd(DistributedUpdateProcessor.java:432)
~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06 03:05:35]
at
org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(DistributedUpdateProcessor.java:557)
~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06 03:05:35]
at
org.apache.solr.update.processor.DistributedUpdateProcessor.processAdd(DistributedUpdateProcessor.java:325)
~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06 03:05:35]
at
org.apache.solr.handler.loader.XMLLoader.processUpdate(XMLLoader.java:230)
~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06 03:05:35]
at
org.apache.solr.handler.loader.XMLLoader.load(XMLLoader.java:157)
~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06 03:05:35]
   at org.apache.solr.handler.loader.XMLLoader.load(XMLLoader.java:157)
~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06 03:05:35]
at
org.apache.solr.handler.UpdateRequestHandler$1.load(UpdateRequestHandler.java:92)
~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06 03:05:35]
at

Re: [xwiki-users] periodic XWiki crashes

2014-02-28 Thread vinc...@massol.net
Hi Daniel,

I don’t think the error below is related to the crash.

The SOLR error below is probably happening because you have upgraded your xwiki 
instance and haven’t removed/cleared the SOLR index. We mentioned this in the 
release notes since we changed the SOLR index format recently.

See 
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki53#HSolrSearchIndex
 for example.

On the crash aspect you should check the memory usage when it crashes (you can 
take a heap dump on OOM for example).

Thanks
-Vincent

On 28 Feb 2014 at 13:38:46, Daniel Thayer (d.s.tha...@swansea.ac.uk) wrote:

Hi all,  

I am having a problem with XWiki that is driving me crazy. It periodically  
crashes--interval between crashes from a few days to a few weeks. There  
are no errors in the log when it happens.  

I am running XWiki enterprise 5.4.2 on Ubuntu, using Tomcat7, Postgresql,  
and LDAP authentication.  

I am getting errors like the following every hour in the log. I don't know  
if this is related or not:  

2014-02-23 07:00:00,198 [XWiki Solr index thread] ERROR o.a.s.c.SolrCore  
- org.apache.solr.common.SolrException: ERROR:  
[doc=xwiki:Scheduler.WatchListHourlyNotifier_] multiple values encountered  
for non multiValued field class: [XWiki.SchedulerJobClass,  
XWiki.WatchListJobClass, XWiki.XWikiRights]  
at  
org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:243)  
at  
org.apache.solr.update.AddUpdateCommand.getLuceneDocument(AddUpdateCommand.java:73)
  
at  
org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:208)
  
at  
org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:61)
  
at  
org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:51)
  
at  
org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalAdd(DistributedUpdateProcessor.java:432)
  
at  
org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(DistributedUpdateProcessor.java:557)
  
at  
org.apache.solr.update.processor.DistributedUpdateProcessor.processAdd(DistributedUpdateProcessor.java:325)
  
at  
org.apache.solr.handler.loader.XMLLoader.processUpdate(XMLLoader.java:230)  
at  
org.apache.solr.handler.loader.XMLLoader.load(XMLLoader.java:157)  
arch.solr.internal.AbstractSolrInstance.add(AbstractSolrInstance.java:60)  
at  
org.xwiki.search.solr.internal.DefaultSolrIndexer.processBatch(DefaultSolrIndexer.java:401)
  
at  
org.xwiki.search.solr.internal.DefaultSolrIndexer.runInternal(DefaultSolrIndexer.java:374)
  
at  
com.xpn.xwiki.util.AbstractXWikiRunnable.run(AbstractXWikiRunnable.java:131)  
at java.lang.Thread.run(Thread.java:724)  
2014-02-23 07:00:00,199 [XWiki Solr index thread] ERROR  
o.x.s.s.i.DefaultSolrIndexer - Failed to process entry [INDEX  
xwiki:Scheduler.WatchListHourlyNotifier()]  
org.apache.solr.common.SolrException: ERROR:  
[doc=xwiki:Scheduler.WatchListHourlyNotifier_] multiple values encountered  
for non multiValued field class: [XWiki.SchedulerJobClass,  
XWiki.WatchListJobClass, XWiki.XWikiRights]  
at  
org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:243)  
~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06 03:05:35]  
at  
org.apache.solr.update.AddUpdateCommand.getLuceneDocument(AddUpdaarch.solr.internal.AbstractSolrInstance.add(AbstractSolrInstance.java:60)
  
at  
org.xwiki.search.solr.internal.DefaultSolrIndexer.processBatch(DefaultSolrIndexer.java:401)
  
at  
org.xwiki.search.solr.internal.DefaultSolrIndexer.runInternal(DefaultSolrIndexer.java:374)
  
at  
com.xpn.xwiki.util.AbstractXWikiRunnable.run(AbstractXWikiRunnable.java:131)  
at java.lang.Thread.run(Thread.java:724)  
teCommand.java:73) ~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06  
03:05:35]  
at  
org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:208)
  
~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06 03:05:35]  
at  
org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:61)
  
~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06 03:05:35]  
at  
org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:51)
  
~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06 03:05:35]  
at  
org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalAdd(DistributedUpdateProcessor.java:432)
  
~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06 03:05:35]  
at  
org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(DistributedUpdateProcessor.java:557)
  
~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06 03:05:35]  
at  
org.apache.solr.update.processor.DistributedUpdateProcessor.processAdd(DistributedUpdateProcessor.java:325)
  
~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06 03:05:35]  
at  
org.apache.solr.handler.loader.XMLLoader.processUpdate(XMLLoader.java:230)  

Re: [xwiki-users] periodic XWiki crashes

2014-02-28 Thread Marius Dumitru Florea
On Fri, Feb 28, 2014 at 2:37 PM, Daniel Thayer d.s.tha...@swansea.ac.uk wrote:
 Hi all,

 I am having a problem with XWiki that is driving me crazy.  It periodically
 crashes--interval between crashes from a few days to a few weeks.  There
 are no errors in the log when it happens.


 I am running XWiki enterprise 5.4.2 on Ubuntu, using Tomcat7, Postgresql,
 and LDAP authentication.

XWiki 5.4.2 was released yesterday so the crashes you are talking
about cannot be with this version. I'm guessing that you have upgraded
yesterday to 5.4.2. But from which version? In any case, the error
below suggests that you have upgraded without reading closely the
release notes. Especially
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki53#HSolrSearchIndex
. Is it true that you upgraded from a version older than 5.3? Even if
you can skip versions when upgrading, it's recommended that you read
the release notes for each intermediary version.

Hope this helps,
Marius


 I am getting errors like the following every hour in the log.  I don't know
 if this is related or not:

 2014-02-23 07:00:00,198 [XWiki Solr index thread] ERROR o.a.s.c.SolrCore
 - org.apache.solr.common.SolrException: ERROR:
 [doc=xwiki:Scheduler.WatchListHourlyNotifier_] multiple values encountered
 for non multiValued field class: [XWiki.SchedulerJobClass,
 XWiki.WatchListJobClass, XWiki.XWikiRights]
 at
 org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:243)
 at
 org.apache.solr.update.AddUpdateCommand.getLuceneDocument(AddUpdateCommand.java:73)
 at
 org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:208)
 at
 org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:61)
 at
 org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:51)
 at
 org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalAdd(DistributedUpdateProcessor.java:432)
 at
 org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(DistributedUpdateProcessor.java:557)
 at
 org.apache.solr.update.processor.DistributedUpdateProcessor.processAdd(DistributedUpdateProcessor.java:325)
 at
 org.apache.solr.handler.loader.XMLLoader.processUpdate(XMLLoader.java:230)
 at
 org.apache.solr.handler.loader.XMLLoader.load(XMLLoader.java:157)
 arch.solr.internal.AbstractSolrInstance.add(AbstractSolrInstance.java:60)
 at
 org.xwiki.search.solr.internal.DefaultSolrIndexer.processBatch(DefaultSolrIndexer.java:401)
 at
 org.xwiki.search.solr.internal.DefaultSolrIndexer.runInternal(DefaultSolrIndexer.java:374)
 at
 com.xpn.xwiki.util.AbstractXWikiRunnable.run(AbstractXWikiRunnable.java:131)
 at java.lang.Thread.run(Thread.java:724)
 2014-02-23 07:00:00,199 [XWiki Solr index thread] ERROR
 o.x.s.s.i.DefaultSolrIndexer   - Failed to process entry [INDEX
 xwiki:Scheduler.WatchListHourlyNotifier()]
 org.apache.solr.common.SolrException: ERROR:
 [doc=xwiki:Scheduler.WatchListHourlyNotifier_] multiple values encountered
 for non multiValued field class: [XWiki.SchedulerJobClass,
 XWiki.WatchListJobClass, XWiki.XWikiRights]
 at
 org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:243)
 ~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06 03:05:35]
 at
 org.apache.solr.update.AddUpdateCommand.getLuceneDocument(AddUpdaarch.solr.internal.AbstractSolrInstance.add(AbstractSolrInstance.java:60)
 at
 org.xwiki.search.solr.internal.DefaultSolrIndexer.processBatch(DefaultSolrIndexer.java:401)
 at
 org.xwiki.search.solr.internal.DefaultSolrIndexer.runInternal(DefaultSolrIndexer.java:374)
 at
 com.xpn.xwiki.util.AbstractXWikiRunnable.run(AbstractXWikiRunnable.java:131)
 at java.lang.Thread.run(Thread.java:724)
 teCommand.java:73) ~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06
 03:05:35]
 at
 org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:208)
 ~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06 03:05:35]
 at
 org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:61)
 ~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06 03:05:35]
 at
 org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:51)
 ~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06 03:05:35]
 at
 org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalAdd(DistributedUpdateProcessor.java:432)
 ~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06 03:05:35]
 at
 org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(DistributedUpdateProcessor.java:557)
 ~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06 03:05:35]
 at
 

Re: [xwiki-users] periodic XWiki crashes

2014-02-28 Thread Daniel Thayer
Hi,

Sorry for the version confusion.  I had 5.4.1 previously.  However, the
error I mentioned was already happening.

Dan


On Fri, Feb 28, 2014 at 12:48 PM, Marius Dumitru Florea 
mariusdumitru.flo...@xwiki.com wrote:

 On Fri, Feb 28, 2014 at 2:37 PM, Daniel Thayer d.s.tha...@swansea.ac.uk
 wrote:
  Hi all,
 
  I am having a problem with XWiki that is driving me crazy.  It
 periodically
  crashes--interval between crashes from a few days to a few weeks.  There
  are no errors in the log when it happens.
 

  I am running XWiki enterprise 5.4.2 on Ubuntu, using Tomcat7, Postgresql,
  and LDAP authentication.

 XWiki 5.4.2 was released yesterday so the crashes you are talking
 about cannot be with this version. I'm guessing that you have upgraded
 yesterday to 5.4.2. But from which version? In any case, the error
 below suggests that you have upgraded without reading closely the
 release notes. Especially

 http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki53#HSolrSearchIndex
 . Is it true that you upgraded from a version older than 5.3? Even if
 you can skip versions when upgrading, it's recommended that you read
 the release notes for each intermediary version.

 Hope this helps,
 Marius

 
  I am getting errors like the following every hour in the log.  I don't
 know
  if this is related or not:
 
  2014-02-23 07:00:00,198 [XWiki Solr index thread] ERROR o.a.s.c.SolrCore
  - org.apache.solr.common.SolrException: ERROR:
  [doc=xwiki:Scheduler.WatchListHourlyNotifier_] multiple values
 encountered
  for non multiValued field class: [XWiki.SchedulerJobClass,
  XWiki.WatchListJobClass, XWiki.XWikiRights]
  at
 
 org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:243)
  at
 
 org.apache.solr.update.AddUpdateCommand.getLuceneDocument(AddUpdateCommand.java:73)
  at
 
 org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:208)
  at
 
 org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:61)
  at
 
 org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:51)
  at
 
 org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalAdd(DistributedUpdateProcessor.java:432)
  at
 
 org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(DistributedUpdateProcessor.java:557)
  at
 
 org.apache.solr.update.processor.DistributedUpdateProcessor.processAdd(DistributedUpdateProcessor.java:325)
  at
 
 org.apache.solr.handler.loader.XMLLoader.processUpdate(XMLLoader.java:230)
  at
  org.apache.solr.handler.loader.XMLLoader.load(XMLLoader.java:157)
  arch.solr.internal.AbstractSolrInstance.add(AbstractSolrInstance.java:60)
  at
 
 org.xwiki.search.solr.internal.DefaultSolrIndexer.processBatch(DefaultSolrIndexer.java:401)
  at
 
 org.xwiki.search.solr.internal.DefaultSolrIndexer.runInternal(DefaultSolrIndexer.java:374)
  at
 
 com.xpn.xwiki.util.AbstractXWikiRunnable.run(AbstractXWikiRunnable.java:131)
  at java.lang.Thread.run(Thread.java:724)
  2014-02-23 07:00:00,199 [XWiki Solr index thread] ERROR
  o.x.s.s.i.DefaultSolrIndexer   - Failed to process entry [INDEX
  xwiki:Scheduler.WatchListHourlyNotifier()]
  org.apache.solr.common.SolrException: ERROR:
  [doc=xwiki:Scheduler.WatchListHourlyNotifier_] multiple values
 encountered
  for non multiValued field class: [XWiki.SchedulerJobClass,
  XWiki.WatchListJobClass, XWiki.XWikiRights]
  at
 
 org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:243)
  ~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06 03:05:35]
  at
 
 org.apache.solr.update.AddUpdateCommand.getLuceneDocument(AddUpdaarch.solr.internal.AbstractSolrInstance.add(AbstractSolrInstance.java:60)
  at
 
 org.xwiki.search.solr.internal.DefaultSolrIndexer.processBatch(DefaultSolrIndexer.java:401)
  at
 
 org.xwiki.search.solr.internal.DefaultSolrIndexer.runInternal(DefaultSolrIndexer.java:374)
  at
 
 com.xpn.xwiki.util.AbstractXWikiRunnable.run(AbstractXWikiRunnable.java:131)
  at java.lang.Thread.run(Thread.java:724)
  teCommand.java:73) ~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir -
 2012-10-06
  03:05:35]
  at
 
 org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:208)
  ~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06 03:05:35]
  at
 
 org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:61)
  ~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06 03:05:35]
  at
 
 org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:51)
  ~[solr-core-4.0.0.jar:4.0.0 1394950 - rmuir - 2012-10-06 03:05:35]
  at
 
 org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalAdd(DistributedUpdateProcessor.java:432)
  

[xwiki-users] stylesheet extension challenge

2014-02-28 Thread Gerritjan Koekkoek
Hi,

Would like to set a backgroundImage dynamically
(I have attached 25 jpg files to a page)

If I add this velocity code into my wiki page it works!
{{velocity}}
  [[image:Photos.CdLSWorldbanners@${mathtool.random(1,
25)}.jpg||width=100%]]
{{/velocity}}
If I add this same code in a stylesheet extension object:

#document-title{
background:transparent
url($doc.getAttachmentURL(Photos.CdLSWorldbanners@${mathtool.random(1,
25)}.jpg)) no-repeat scroll right center;
}

I get this result if I inspect the CSS in the browser:
background:transparent
url(/xwiki/bin/download/Sandbox/change%2Ddocument/Photos.CdLSWorldbanners%407.jpg)
no-repeat scroll right center

Any suggestions if this CAN work, and if possible; what am I doing wrong?

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


Re: [xwiki-users] stylesheet extension challenge

2014-02-28 Thread Marius Dumitru Florea
The CSS is cached, so you get a different image only if you do a page
reload with force clear cache. If you want a different image when you
reload the page then you have to either keep displaying the image from
the page content or use JavaScript.

On Fri, Feb 28, 2014 at 6:06 PM, Gerritjan Koekkoek
gerritjankoekk...@gmail.com wrote:
 Hi,

 Would like to set a backgroundImage dynamically
 (I have attached 25 jpg files to a page)

 If I add this velocity code into my wiki page it works!
 {{velocity}}
   [[image:Photos.CdLSWorldbanners@${mathtool.random(1,
 25)}.jpg||width=100%]]
 {{/velocity}}
 If I add this same code in a stylesheet extension object:

 #document-title{
 background:transparent
 url($doc.getAttachmentURL(Photos.CdLSWorldbanners@${mathtool.random(1,
 25)}.jpg)) no-repeat scroll right center;
 }

 I get this result if I inspect the CSS in the browser:
 background:transparent
 url(/xwiki/bin/download/Sandbox/change%2Ddocument/Photos.CdLSWorldbanners%407.jpg)
 no-repeat scroll right center

 Any suggestions if this CAN work, and if possible; what am I doing wrong?

 Gerritjan
 ___
 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] Menu Application access for Unregistered Users

2014-02-28 Thread DeHaynes
I am in a private wiki site used for documentation.  You must be a user to
see anything, so Unregistered Users can only see the login page.  On my
wiki I am using the Menu Application, which unregistered users do not have
access to.  So on the login page there is an error Failed to execute the
[include] macro.  The long version says

org.xwiki.rendering.macro.MacroExecutionException: Current user
[XWiki.XWikiGuest] doesn't have view rights on document [xwiki:Menu.Wiki
Level Menu]

This is correct.  I don't want XWikiGuest to see the menu.  Any idea how I
could get rid of the error?  

I tried searching and found references to xwiki.hasAccessLevel.   Am I on
the right track?

I am using XWiki 5.4.2 with MySQL and Tomcat 7



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Menu-Application-access-for-Unregistered-Users-tp7589375.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] stylesheet extension challenge

2014-02-28 Thread gerritjankoekk...@gmail.com
The initial load is not happening
The images do not need to change on this page... If i Have different pages with 
different images it is ok

Verstuurd vanaf mijn iPhone

 Op 28 feb. 2014 om 17:43 heeft Marius Dumitru Florea 
 mariusdumitru.flo...@xwiki.com het volgende geschreven:
 
 The CSS is cached, so you get a different image only if you do a page
 reload with force clear cache. If you want a different image when you
 reload the page then you have to either keep displaying the image from
 the page content or use JavaScript.
 
 On Fri, Feb 28, 2014 at 6:06 PM, Gerritjan Koekkoek
 gerritjankoekk...@gmail.com wrote:
 Hi,
 
 Would like to set a backgroundImage dynamically
 (I have attached 25 jpg files to a page)
 
 If I add this velocity code into my wiki page it works!
 {{velocity}}
  [[image:Photos.CdLSWorldbanners@${mathtool.random(1,
 25)}.jpg||width=100%]]
 {{/velocity}}
 If I add this same code in a stylesheet extension object:
 
 #document-title{
background:transparent
 url($doc.getAttachmentURL(Photos.CdLSWorldbanners@${mathtool.random(1,
 25)}.jpg)) no-repeat scroll right center;
 }
 
 I get this result if I inspect the CSS in the browser:
 background:transparent
 url(/xwiki/bin/download/Sandbox/change%2Ddocument/Photos.CdLSWorldbanners%407.jpg)
 no-repeat scroll right center
 
 Any suggestions if this CAN work, and if possible; what am I doing wrong?
 
 Gerritjan
 ___
 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] Menu Application access for Unregistered Users

2014-02-28 Thread DeHaynes
I fixed it by modifying the code in Menu.MenuMacro.  I wrapped it in an
if($isGuest) like this.

{{velocity}}
#if ($isGuest)
#else
#set ($id = $xcontext.macro.params.id)
#set ($type = $xcontext.macro.params.type)
#set ($colorTheme = $xwiki.getUserPreference('colorTheme'))
#if ($!colorTheme != '')
  ## Make sure we use an absolute reference (see XWIKI-9672)
  #set ($colorTheme = $services.model.resolveDocument($colorTheme,
$doc.documentReference))
#end
#set ($discard = $xwiki.ssx.use($xcontext.macro.doc.prefixedFullName,
{'colorTheme': $colorTheme}))
#set ($discard = $xwiki.jsx.use($xcontext.macro.doc.prefixedFullName))
(% #if ($!id != '') id=$id#end class=menu menu-$!type %)(((
  $xcontext.macro.content
)))
#end
{{/velocity}}

Sorry, I don't know the scripting language well enough to do a ($isGuest) ==
false.



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Menu-Application-access-for-Unregistered-Users-tp7589375p7589377.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] Menu Application access for Unregistered Users

2014-02-28 Thread DeHaynes
I fixed this by modifying the Menu.MenuMacro in Object mode and then changing
the code in the XWiki.WikiMacroClass.  I added a condition that looked to
see if the user was a guest.  What I added is in bold below.


{{velocity}}
#set ($id = $xcontext.macro.params.id)
#set ($type = $xcontext.macro.params.type)
#set ($colorTheme = $xwiki.getUserPreference('colorTheme'))
#if ($!colorTheme != '')
  ## Make sure we use an absolute reference (see XWIKI-9672)
  #set ($colorTheme = $services.model.resolveDocument($colorTheme,
$doc.documentReference))
#end
#set ($discard = $xwiki.ssx.use($xcontext.macro.doc.prefixedFullName,
{'colorTheme': $colorTheme}))
#set ($discard = $xwiki.jsx.use($xcontext.macro.doc.prefixedFullName))
(% #if ($!id != '') id=$id#end class=menu menu-$!type %)(((*#if
($isGuest == false)*
  $xcontext.macro.content
*#end*)))
{{/velocity}}



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Menu-Application-access-for-Unregistered-Users-tp7589375p7589378.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] stylesheet extension challenge

2014-02-28 Thread Marius Dumitru Florea
$doc.getAttachmentURL is used for files attached to $doc, i.e. the current
document, so you either use

$doc.getAttachmentURL('fileName')

or

$xwiki.getAttachmentURL('Space.Page', 'fileName')

Hope this helps,
Marius

On Feb 28, 2014 6:07 PM, Gerritjan Koekkoek gerritjankoekk...@gmail.com
wrote:

 Hi,

 Would like to set a backgroundImage dynamically
 (I have attached 25 jpg files to a page)

 If I add this velocity code into my wiki page it works!
 {{velocity}}
   [[image:Photos.CdLSWorldbanners@${mathtool.random(1,
 25)}.jpg||width=100%]]
 {{/velocity}}
 If I add this same code in a stylesheet extension object:

 #document-title{
 background:transparent
 url($doc.getAttachmentURL(Photos.CdLSWorldbanners@${mathtool.random(1,
 25)}.jpg)) no-repeat scroll right center;
 }

 I get this result if I inspect the CSS in the browser:
 background:transparent

url(/xwiki/bin/download/Sandbox/change%2Ddocument/Photos.CdLSWorldbanners%407.jpg)
 no-repeat scroll right center

 Any suggestions if this CAN work, and if possible; what am I doing wrong?

 Gerritjan
 ___
 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] Menu Application access for Unregistered Users

2014-02-28 Thread Hamster
Thanks for sharing DeHaynes, we were having the same issue!



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Menu-Application-access-for-Unregistered-Users-tp7589375p7589380.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