[xwiki-users] xWiki v1.7.2: WatchListMessages throw Exceptions

2009-02-25 Thread Jan-Sebastian Winckelmann


Hello,

after upgrading to xWiki v1.7.2 the WatchListMessages sent  by xWiki are
faulty. Any ideas how to solve this problem?

Thanks!

Bye,
Jan

Error number 4001 in 4: Error while parsing velocity page
XWiki.WatchListMessage Wrapped Exception: Failed to evaluate content with
id [XWiki.WatchListMessage]

Error number 4001 in 4: Error while parsing velocity page
XWiki.WatchListMessage
Wrapped Exception: Failed to evaluate content with id
[XWiki.WatchListMessage]
com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing
velocity page XWiki.WatchListMessage
Wrapped Exception: Failed to evaluate content with id
[XWiki.WatchListMessage]
 at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:114)

 at
com.xpn.xwiki.plugin.mailsender.MailSenderPlugin.sendMailFromTemplate(MailSenderPlugin.java:662)

 at
com.xpn.xwiki.plugin.watchlist.WatchListJob.sendNotificationMessage(WatchListJob.java:430)

 at
com.xpn.xwiki.plugin.watchlist.WatchListJob.execute(WatchListJob.java:181)
 at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
 at
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)



Wrapped Exception:

org.apache.velocity.exception.MethodInvocationException: Invocation of
method 'getExternalURL' in  class com.xpn.xwiki.api.Document threw
exception java.lang.NullPointerException @ XWiki.WatchListMessage[33,138]
 at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:286)

 at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)

 at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)

 at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
 at
org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:448)
 at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)

 at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)

 at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)

 at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143)

 at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)

 at
com.xpn.xwiki.plugin.mailsender.MailSenderPlugin.sendMailFromTemplate(MailSenderPlugin.java:662)

 at
com.xpn.xwiki.plugin.watchlist.WatchListJob.sendNotificationMessage(WatchListJob.java:430)

 at
com.xpn.xwiki.plugin.watchlist.WatchListJob.execute(WatchListJob.java:181)
 at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
 at
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)

Caused by: java.lang.NullPointerException
 at com.xpn.xwiki.XWiki.getServletPath(XWiki.java:4317)
 at
com.xpn.xwiki.web.XWikiServletURLFactory.addServletPath(XWikiServletURLFactory.java:208)

 at
com.xpn.xwiki.web.XWikiServletURLFactory.createURL(XWikiServletURLFactory.java:178)

 at
com.xpn.xwiki.web.XWikiServletURLFactory.createExternalURL(XWikiServletURLFactory.java:273)

 at
com.xpn.xwiki.doc.XWikiDocument.getExternalURL(XWikiDocument.java:925)
 at
com.xpn.xwiki.api.Document.getExternalURL(Document.java:502)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)

 at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)

 ... 14 more











Euler Hermes is the world's premier credit insurer, offering solutions


for the management of trade receivables, from credit insurance and


financing of trade receivables to bonding and guarantees. Euler


Hermes is a subsidiary of AGF and a member of Allianz.


www.eulerhermes.com





 -





This e-mail may contain confidential and/or privileged information. If


you are not the intended recipient or have received this e-mail in error,


notify the sender immediately and destroy this e-mail. Any unauthorised


use, copying, disclosure or distribution of the contents of this e-mail


is strictly forbidden and may be unlawful.





Read our full e-mail disclaimer statement and monitoring policy


(http://www.eulerhermes.com/group/en/disclaim/index.html) before


taking any action based on the contents of this e-mail.




___
users mailing

[xwiki-users] How to reduce database size?

2008-11-18 Thread Jan-Sebastian Winckelmann


Hello,

we run a small XWiki Enterprise (now V1.6.1) in the out-of-the-box HSQL /
jetty version. Actually it's not so small anymore and the HSQL database
file grew to a size of 1,4 GB. This size doesn't represent the actual size
of the attachments stored in the XWiki, it's much, much bigger. So I guess
there is a lot of space wasted by old versions and other unwanted stuff
maybe left  there as the results of several XWiki version upgrades.

Is there any safe way to clean-up the database? Which tables could be
emptied? I can live with losing all the versioned attachments and pages.

 Due to limited Java heap size we already get OutOfMemory exceptions when
trying to delete bigger attachments or export some bigger pages. And the
heap size is 1500 MB at the moment which is almost the maximum size
available.

Any ideas?

Thanks!

Bye,
Jan

Euler Hermes is the world's premier credit insurer, offering solutions
for the management of trade receivables, from credit insurance and
financing of trade receivables to bonding and guarantees. Euler
Hermes is a subsidiary of AGF and a member of Allianz.
www.eulerhermes.com

 -

This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient or have received this e-mail in error,
notify the sender immediately and destroy this e-mail. Any unauthorised
use, copying, disclosure or distribution of the contents of this e-mail
is strictly forbidden and may be unlawful.

Read our full e-mail disclaimer statement and monitoring policy
(http://www.eulerhermes.com/group/en/disclaim/index.html) before
taking any action based on the contents of this e-mail.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Antwort: Re: XWiki 13: Watchlist mails contain scripting code

2008-03-17 Thread Jan-Sebastian Winckelmann

Hello,


Thank you.  You are right, the Admin was not in the AdminGroup anymore, I
don'r remember why. After changing this and restarting the server the
Watchlist mails are o.k. now.


Bye,


Jan


|-+--->
| |   [EMAIL PROTECTED]|
| |   iki.org |
| |   |
| |   14.03.2008 20:22|
| |   Bitte antworten |
| |   an "XWiki Users"|
|-+--->
  
>---|
  | 
  |
  | An:  "XWiki Users" 
  |
  | Kopie:  
  |
  | Thema:   Re: [xwiki-users] XWiki 13: Watchlist mails contain scripting code 
  |
  
>---|




Hi,

the script seems to retreive a list containing 1 document but for some
reason the job seems not able to retreive this document with
$xwiki.getDocument().
I'd say this could be a right issue, the watchlist job is running with
the XWiki.Admin user permissions.

Have you deleted the XWiki.Admin user ?
Is XWiki.Admin in the XWiki.AdminGroup group ?
If not you'll have to create it / put it in the group then restart xwiki.

hope this helps,
JV.

note to self : could it be possible to use the superadmin user for
jobs if its password is not set in xwiki.cfg ?

On Fri, Mar 14, 2008 at 6:12 PM, Jan-Sebastian Winckelmann
<[EMAIL PROTECTED]> wrote:
>
>
> Hello,
>
>  I tried to use the Watchlist feature of XWiki 1.3 and finally I receive
the
> emails created by it but they just contain the scripting code, so the
code
> seems not to be excecuted. I already deleted the date fomatting in the
code
> as it stops the creation of the mail at all.
>
>  Any ideas?
>
>  Thanks!
>
>  Bye,
>  Jan
>
>
>  Hello Jan-Sebastian, This message is sent by XWiki. Here are the
documents
> in your watchlist that have been created or updated since the last
> notification :
> PageInformations
>
> $udoc.getDisplayTitle()${udoc.fullName}modified by , comment :
> $udoc.getComment()
> Modifications on page objects or class
>
>
>
>  Please consider the environment before printing this email
>
>
>
> Euler Hermes is the world's premier credit insurer, offering solutions
>
> for the management of trade receivables, from credit insurance and
>
> financing of trade receivables to bonding and guarantees. Euler
>
> Hermes is a subsidiary of AGF and a member of Allianz.
>
> www.eulerhermes.com
>
>
>
>  -
>
>
>
> This e-mail may contain confidential and/or privileged information. If
>
> you are not the intended recipient or have received this e-mail in error,
>
> notify the sender immediately and destroy this e-mail. Any unauthorised
>
> use, copying, disclosure or distribution of the contents of this e-mail
>
> is strictly forbidden and may be unlawful.
>
>
>
> Read our full e-mail disclaimer statement and monitoring policy
>
> (http://www.eulerhermes.com/group/en/disclaim/index.html) before
>
> taking any action based on the contents of this e-mail.
>
>
>
>
> ___
>  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



Euler Hermes is the world's premier credit insurer, offering solutions
for the management of trade receivables, from credit insurance and
financing of trade receivables to bonding and guarantees. Euler
Hermes is a subsidiary of AGF and a member of Allianz.
www.eulerhermes.com

 -

This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient or have received this e-mail in error,
notify the sender immediately and destroy this e-mail. Any unauthorised
use, copying, disclosure or distribution of the contents of this e-mail
is strictly forbidden and may be unlawful.

Read our full e-mail disclaimer statement and monitoring policy
(http://www.eulerhermes.com/group/en/disclaim/index.html) before
taking any action based on the contents of this e-mail.
<><>___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] XWiki 13: Watchlist mails contain scripting code

2008-03-14 Thread Jan-Sebastian Winckelmann


Hello,

 I tried to use the Watchlist feature of XWiki 1.3 and finally I receive
the emails created by it but they just contain the scripting code, so the
code seems not to be  excecuted. I already deleted the date fomatting in
the code as it stops the creation of the mail at all.

Any ideas?

Thanks!

Bye,
Jan


Hello Jan-Sebastian, This message is sent by XWiki. Here are the documents
in your watchlist that have been created or updated since the last
notification :
   
 Page  Informations
   
   
 -
| $udoc.getDisplayTitle()  modified by , comment :|
| ${udoc.fullName} $udoc.getComment() |
|--   |
  | Modifications on page objects or class|
  |   |
   ---|
   
   





   Please consider the environment before printing this email





Euler Hermes is the world's premier credit insurer, offering solutions


for the management of trade receivables, from credit insurance and


financing of trade receivables to bonding and guarantees. Euler


Hermes is a subsidiary of AGF and a member of Allianz.


www.eulerhermes.com





 -





This e-mail may contain confidential and/or privileged information. If


you are not the intended recipient or have received this e-mail in error,


notify the sender immediately and destroy this e-mail. Any unauthorised


use, copying, disclosure or distribution of the contents of this e-mail


is strictly forbidden and may be unlawful.





Read our full e-mail disclaimer statement and monitoring policy


(http://www.eulerhermes.com/group/en/disclaim/index.html) before


taking any action based on the contents of this e-mail.




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