Hello,
I have some recurrent problems with the WatchList functionality, the
following exception occurs when the job generates the watchlist email :
[ERROR] Method getExternalURL threw exception for reference $udoc in
template XWiki.WatchListMessage at [5,71]
org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with
id [XWiki.WatchListMessage]
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:187)
[...]
at
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Caused by: org.apache.velocity.exception.MethodInvocationException:
Invocation of method 'getExternalURL' in class com.xpn.xwiki.api.Document
threw exception java.lang.NullPointerException @
XWiki.WatchListMessage[5,78]
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:286)
[....]
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
... 7 more
Caused by: java.lang.NullPointerException
at
com.xpn.xwiki.doc.XWikiDocument.getExternalURL(XWikiDocument.java:838)
at com.xpn.xwiki.api.Document.getExternalURL(Document.java:497)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
I reinstalled XE 1.5.1, reimported the .xar for watchlist (1.9) and
scheduler (1.5) applications, removed all scheduled jobs and restarted
tomcat container, but still the same. I believed it might be caused by a
"corrupted" or invalid watched document, but I don't how to determine if
this is really the cause and which document it could be ...
BTW, I wanted to test by changing the notification email format (HTML or
TEXT seem to be possible choices), but I didn't find how to update this
parameter ...
Any help welcome,
Best regards,
Jeremie
Show replies by date
Hi,
I solved part of problem by removing calls to "getExternalURL()" in
XWiki.WatchListMessage, maybe something different in context caused
exception while executed on server side in scheduler ?
Mails are sent and do not contain exceptions anymore, but diff does not
displays so I think it's not fully functional ... But usable.
Jeremie
--
View this message in context:
http://n2.nabble.com/-1.5.1--Still-problems-with-WatchList-notifications-..…
Sent from the XWiki- Users mailing list archive at
Nabble.com.