[xwiki-users] WatchList Email Error
Hi, I've managed to get my watchlist to send out emails, the only problem is that the following is displayed within the email: 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 I have checked and the Admin user exists and is in the XWiki.XWikiAdminGroup, could somebody help me please! -- View this message in context: http://n2.nabble.com/WatchList-Email-Error-tp2151183p2151183.html Sent from the XWiki- Users mailing list archive at Nabble.com.
DarthOps wrote:
Hi,
I've managed to get my watchlist to send out emails, the only problem is that the following is displayed within the email:
Caused by: java.lang.NullPointerException at com.xpn.xwiki.XWiki.getServletPath(XWiki.java:4317)
This looks like a regression recently introduced. Other than downgrading, I don't have any other suggestions for the moment, I'll ping the responsible developer for a fix before 1.8M1. -- Sergiu Dumitriu http://purl.org/net/sergiu/
Sergiu Dumitriu wrote:
DarthOps wrote:
Hi,
I've managed to get my watchlist to send out emails, the only problem is that the following is displayed within the email:
Caused by: java.lang.NullPointerException at com.xpn.xwiki.XWiki.getServletPath(XWiki.java:4317)
This looks like a regression recently introduced. Other than downgrading, I don't have any other suggestions for the moment, I'll ping the responsible developer for a fix before 1.8M1.
Actually, there is a solution. In xwiki.cfg, add: xwiki.servletpath=bin/ Then restart the server. -- Sergiu Dumitriu http://purl.org/net/sergiu/
Thanks so much for your help, it worked! :jumping: Sergiu Dumitriu-2 wrote:
Sergiu Dumitriu wrote:
DarthOps wrote:
Hi,
I've managed to get my watchlist to send out emails, the only problem is that the following is displayed within the email:
Caused by: java.lang.NullPointerException at com.xpn.xwiki.XWiki.getServletPath(XWiki.java:4317)
This looks like a regression recently introduced. Other than downgrading, I don't have any other suggestions for the moment, I'll ping the responsible developer for a fix before 1.8M1.
Actually, there is a solution. In xwiki.cfg, add:
xwiki.servletpath=bin/
Then restart the server. -- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- View this message in context: http://n2.nabble.com/WatchList-Email-Error-tp2151183p2157009.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello everybody. When I try to read the permission of a document: $xwiki.hasAccessLevel("view", "XWiki.Customers", "${doc.getFullName()}") Or $doc.hasAccessLevel("view", "XWiki.Customers") The result don't match with the permission assigned to the document. This is an issue? Or exists other way to make this. Thanks. Mariano Esteves División Abengoa – Proyectos . TELVENT Global Services Uruguay,1283 11200 Montevideo (Uruguay) Phone : +598 2 9022120 www.telvent.com Email: [email protected] . P Proteja el medioambiente. No imprima este documento si no es necesario. Protect the environment. Don’t print this document unless it’s necessary.
participants (3)
-
DarthOps -
mesteves@telvent.com -
Sergiu Dumitriu