Re: [xwiki-users] How to check that SMTP mailing is working correctly?
Hi. Look what i've seen in the log - there is some exception thrown. Should i open a JIRA request for this one? [#|2009-10-23T16:00:00.000+0400|INFO|sun-appserver2.1|com.xpn.xwiki.plugin.scheduler.StatusListener|_ThreadID=27;_ThreadName=DefaultQuartzScheduler_Worker-7;|Task 'xwiki:Scheduler.WatchListHourlyNotifier_0' is about to be executed|#] [#|2009-10-23T16:00:00.001+0400|SEVERE|sun-appserver2.1|com.xpn.xwiki.plugin.watchlist.WatchListPlugin|_ThreadID=27;_ThreadName=DefaultQuartzScheduler_Worker-7;_RequestID=dbc4e934-c3ac-45c8-9905-5aa702053fae;|Exception while running job java.lang.NullPointerException at com.xpn.xwiki.plugin.watchlist.WatchListEventMatcher.init(WatchListEventMatcher.java:90) at com.xpn.xwiki.plugin.watchlist.WatchListJob.executeJob(WatchListJob.java:239) at com.xpn.xwiki.plugin.scheduler.AbstractJob.execute(AbstractJob.java:75) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) |#] [#|2009-10-23T16:00:00.002+0400|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|_ThreadID=27;_ThreadName=DefaultQuartzScheduler_Worker-7;_RequestID=dbc4e934-c3ac-45c8-9905-5aa702053fae;| java.lang.NullPointerException at com.xpn.xwiki.plugin.watchlist.WatchListEventMatcher.init(WatchListEventMatcher.java:90) at com.xpn.xwiki.plugin.watchlist.WatchListJob.executeJob(WatchListJob.java:239) at com.xpn.xwiki.plugin.scheduler.AbstractJob.execute(AbstractJob.java:75) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) |#] Jean-Vincent Drean-3 wrote: Hi, On Sat, Oct 10, 2009 at 7:12 PM, kuchumovn kuchum...@gmail.com wrote: Hello. I'm using XWiki Enterprise 2.0. Today I'm trying to get the Watchlist notification work. I've set these settings: host: smtp.gmail.com port: 465 user: vostr...@gmail.com password: *** javaMail props: mail.smtp.starttls.enable=true Am I right? The simplest way to check if the SMTP configuration is working is to use the following snippet in a wiki page (xwiki/2.0): --8-- {{velocity}} $xwiki.mailsender.sendTextMessage(y...@mail.com, y...@mail.com, Subject, Content) {{/velocity}} --8-- Now I go to the Sandbox and watch the Training Zone page. Then I go to my Watchlist management and set e-mail notification frequency to 1 (i have no idea what does this mean, there are only these values: 0, 1, 2, 3, 4, Scheduler.WatchListDailyNotifier, Scheduler.WatchListHourlyNotifier, Scheduler.WatchListWeeklyNotifier). Then I log in as another user and play with the Sandbox. That's the problem, between 1.9 and 2.0 we've modified the way watchlist jobs are handled. The numbers in the list are leftovers of the way it was handled before, I'm afraid you'll have to delete some pages manually, namely: - Scheduler.WatchListJob1 - Scheduler.WatchListJob2 - Scheduler.WatchListJob3 - Scheduler.WatchListJob4 The correct values are Scheduler.WatchListDailyNotifier, Scheduler.WatchListHourlyNotifier or Scheduler.WatchListWeeklyNotifier. We're working on improving the watchlist management UI (XE 2.1). And then wait for the notification e-mail. But nothing is being sent to me... No errors on mail or smtp in the log either.. JV. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- View this message in context: http://n2.nabble.com/How-to-check-that-SMTP-mailing-is-working-correctly-tp3800490p3878342.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] How to check that SMTP mailing is working correctly?
On 10/23/2009 02:07 PM, kuchumovn wrote: Hi. Look what i've seen in the log - there is some exception thrown. Should i open a JIRA request for this one? [#|2009-10-23T16:00:00.000+0400|INFO|sun-appserver2.1|com.xpn.xwiki.plugin.scheduler.StatusListener|_ThreadID=27;_ThreadName=DefaultQuartzScheduler_Worker-7;|Task 'xwiki:Scheduler.WatchListHourlyNotifier_0' is about to be executed|#] [#|2009-10-23T16:00:00.001+0400|SEVERE|sun-appserver2.1|com.xpn.xwiki.plugin.watchlist.WatchListPlugin|_ThreadID=27;_ThreadName=DefaultQuartzScheduler_Worker-7;_RequestID=dbc4e934-c3ac-45c8-9905-5aa702053fae;|Exception while running job java.lang.NullPointerException at com.xpn.xwiki.plugin.watchlist.WatchListEventMatcher.init(WatchListEventMatcher.java:90) at com.xpn.xwiki.plugin.watchlist.WatchListJob.executeJob(WatchListJob.java:239) at com.xpn.xwiki.plugin.scheduler.AbstractJob.execute(AbstractJob.java:75) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) |#] [#|2009-10-23T16:00:00.002+0400|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|_ThreadID=27;_ThreadName=DefaultQuartzScheduler_Worker-7;_RequestID=dbc4e934-c3ac-45c8-9905-5aa702053fae;| java.lang.NullPointerException at com.xpn.xwiki.plugin.watchlist.WatchListEventMatcher.init(WatchListEventMatcher.java:90) at com.xpn.xwiki.plugin.watchlist.WatchListJob.executeJob(WatchListJob.java:239) at com.xpn.xwiki.plugin.scheduler.AbstractJob.execute(AbstractJob.java:75) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) |#] Did you enable the ActivityStream plugin? -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How to check that SMTP mailing is working correctly?
No, i didn't. I've just enabled it following your advice. Now it outputs a lot of similar errors to the log, if i trigger any scheduler: [#|2009-10-23T16:38:33.624+0400|SEVERE|sun-appserver2.1|com.xpn.xwiki.objects.BaseCollection|_ThreadID=17;_ThreadName=Statistics storing daemon;_RequestID=80512ece-0a44-49d0-87e4-b7b8482592b6;|Failed to get class [internal] from wiki [xwiki] java.lang.NullPointerException at com.xpn.xwiki.doc.DefaultDocumentNameFactory.getDefaultWikiName(DefaultDocumentNameFactory.java:156) at com.xpn.xwiki.doc.DefaultDocumentNameFactory.createDocumentName(DefaultDocumentNameFactory.java:112) at com.xpn.xwiki.doc.XWikiDocument.setFullName(XWikiDocument.java:3620) at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1398) at com.xpn.xwiki.XWiki.getClass(XWiki.java:6039) at com.xpn.xwiki.objects.BaseCollection.getxWikiClass(BaseCollection.java:190) at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiCollection(XWikiHibernateStore.java:915) at com.xpn.xwiki.stats.impl.xwiki.DocumentStatsStoreItem.store(DocumentStatsStoreItem.java:132) at com.xpn.xwiki.stats.impl.xwiki.XWikiStatsStoreService.register(XWikiStatsStoreService.java:165) at com.xpn.xwiki.stats.impl.xwiki.XWikiStatsStoreService.runInternal(XWikiStatsStoreService.java:117) at com.xpn.xwiki.util.AbstractXWikiRunnable.run(AbstractXWikiRunnable.java:99) at java.lang.Thread.run(Thread.java:619) |#] and even more of such INFO messages: [#|2009-10-23T16:38:33.439+0400|INFO|sun-appserver2.1|org.hibernate.event.def.DefaultLoadEventListener|_ThreadID=15;_ThreadName=http://vostrets.ru/xwiki/bin/Scheduler/WebHome?do=triggerwhich=Scheduler.WatchListWeeklyNotifier;|Error performing load command org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.xpn.xwiki.objects.classes.BaseClass#-742453071] at org.hibernate.impl.SessionFactoryImpl$2.handleEntityNotFound(SessionFactoryImpl.java:409) at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:171) at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:223) at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:126) at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:905) at org.hibernate.impl.SessionImpl.load(SessionImpl.java:811) at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiClass(XWikiHibernateStore.java:1431) at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:675) at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:288) at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1359) at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1399) at com.xpn.xwiki.api.XWiki.getDocument(XWiki.java:122) at sun.reflect.GeneratedMethodAccessor156.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212) at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:366) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156) at
Re: [xwiki-users] How to check that SMTP mailing is working correctly?
I've just updated to XE 2.0.2, and confirm, that the errors are the same: No row with the given identifier exists when i visit the Scheduler space, and NullPointerException-s when i trigger a scheduler. Sergiu Dumitriu-2 wrote: On 10/23/2009 02:07 PM, kuchumovn wrote: Hi. Look what i've seen in the log - there is some exception thrown. Should i open a JIRA request for this one? [#|2009-10-23T16:00:00.000+0400|INFO|sun-appserver2.1|com.xpn.xwiki.plugin.scheduler.StatusListener|_ThreadID=27;_ThreadName=DefaultQuartzScheduler_Worker-7;|Task 'xwiki:Scheduler.WatchListHourlyNotifier_0' is about to be executed|#] [#|2009-10-23T16:00:00.001+0400|SEVERE|sun-appserver2.1|com.xpn.xwiki.plugin.watchlist.WatchListPlugin|_ThreadID=27;_ThreadName=DefaultQuartzScheduler_Worker-7;_RequestID=dbc4e934-c3ac-45c8-9905-5aa702053fae;|Exception while running job java.lang.NullPointerException at com.xpn.xwiki.plugin.watchlist.WatchListEventMatcher.init(WatchListEventMatcher.java:90) at com.xpn.xwiki.plugin.watchlist.WatchListJob.executeJob(WatchListJob.java:239) at com.xpn.xwiki.plugin.scheduler.AbstractJob.execute(AbstractJob.java:75) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) |#] [#|2009-10-23T16:00:00.002+0400|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|_ThreadID=27;_ThreadName=DefaultQuartzScheduler_Worker-7;_RequestID=dbc4e934-c3ac-45c8-9905-5aa702053fae;| java.lang.NullPointerException at com.xpn.xwiki.plugin.watchlist.WatchListEventMatcher.init(WatchListEventMatcher.java:90) at com.xpn.xwiki.plugin.watchlist.WatchListJob.executeJob(WatchListJob.java:239) at com.xpn.xwiki.plugin.scheduler.AbstractJob.execute(AbstractJob.java:75) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) |#] Did you enable the ActivityStream plugin? -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- View this message in context: http://n2.nabble.com/How-to-check-that-SMTP-mailing-is-working-correctly-tp3800490p3878569.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] How to check that SMTP mailing is working correctly?
Hey, it works! With no errors in the log! I just didn't guess to modify the page i've been watching... Thanks, the plugin trick worked for me. Sergiu Dumitriu-2 wrote: On 10/23/2009 02:07 PM, kuchumovn wrote: Hi. Look what i've seen in the log - there is some exception thrown. Should i open a JIRA request for this one? [#|2009-10-23T16:00:00.000+0400|INFO|sun-appserver2.1|com.xpn.xwiki.plugin.scheduler.StatusListener|_ThreadID=27;_ThreadName=DefaultQuartzScheduler_Worker-7;|Task 'xwiki:Scheduler.WatchListHourlyNotifier_0' is about to be executed|#] [#|2009-10-23T16:00:00.001+0400|SEVERE|sun-appserver2.1|com.xpn.xwiki.plugin.watchlist.WatchListPlugin|_ThreadID=27;_ThreadName=DefaultQuartzScheduler_Worker-7;_RequestID=dbc4e934-c3ac-45c8-9905-5aa702053fae;|Exception while running job java.lang.NullPointerException at com.xpn.xwiki.plugin.watchlist.WatchListEventMatcher.init(WatchListEventMatcher.java:90) at com.xpn.xwiki.plugin.watchlist.WatchListJob.executeJob(WatchListJob.java:239) at com.xpn.xwiki.plugin.scheduler.AbstractJob.execute(AbstractJob.java:75) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) |#] [#|2009-10-23T16:00:00.002+0400|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|_ThreadID=27;_ThreadName=DefaultQuartzScheduler_Worker-7;_RequestID=dbc4e934-c3ac-45c8-9905-5aa702053fae;| java.lang.NullPointerException at com.xpn.xwiki.plugin.watchlist.WatchListEventMatcher.init(WatchListEventMatcher.java:90) at com.xpn.xwiki.plugin.watchlist.WatchListJob.executeJob(WatchListJob.java:239) at com.xpn.xwiki.plugin.scheduler.AbstractJob.execute(AbstractJob.java:75) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) |#] Did you enable the ActivityStream plugin? -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- View this message in context: http://n2.nabble.com/How-to-check-that-SMTP-mailing-is-working-correctly-tp3800490p3880677.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] How to check that SMTP mailing is working correctly?
Hi, On Sat, Oct 10, 2009 at 7:12 PM, kuchumovn kuchum...@gmail.com wrote: Hello. I'm using XWiki Enterprise 2.0. Today I'm trying to get the Watchlist notification work. I've set these settings: host: smtp.gmail.com port: 465 user: vostr...@gmail.com password: *** javaMail props: mail.smtp.starttls.enable=true Am I right? The simplest way to check if the SMTP configuration is working is to use the following snippet in a wiki page (xwiki/2.0): --8-- {{velocity}} $xwiki.mailsender.sendTextMessage(y...@mail.com, y...@mail.com, Subject, Content) {{/velocity}} --8-- Now I go to the Sandbox and watch the Training Zone page. Then I go to my Watchlist management and set e-mail notification frequency to 1 (i have no idea what does this mean, there are only these values: 0, 1, 2, 3, 4, Scheduler.WatchListDailyNotifier, Scheduler.WatchListHourlyNotifier, Scheduler.WatchListWeeklyNotifier). Then I log in as another user and play with the Sandbox. That's the problem, between 1.9 and 2.0 we've modified the way watchlist jobs are handled. The numbers in the list are leftovers of the way it was handled before, I'm afraid you'll have to delete some pages manually, namely: - Scheduler.WatchListJob1 - Scheduler.WatchListJob2 - Scheduler.WatchListJob3 - Scheduler.WatchListJob4 The correct values are Scheduler.WatchListDailyNotifier, Scheduler.WatchListHourlyNotifier or Scheduler.WatchListWeeklyNotifier. We're working on improving the watchlist management UI (XE 2.1). And then wait for the notification e-mail. But nothing is being sent to me... No errors on mail or smtp in the log either.. JV. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How to check that SMTP mailing is working correctly?
Thanks! I'll try it out next weekend and write the result here. *btw, I use 2.0 RC 3, not the final 2.0 Jean-Vincent Drean-3 wrote: Hi, On Sat, Oct 10, 2009 at 7:12 PM, kuchumovn kuchum...@gmail.com wrote: Hello. I'm using XWiki Enterprise 2.0. Today I'm trying to get the Watchlist notification work. I've set these settings: host: smtp.gmail.com port: 465 user: vostr...@gmail.com password: *** javaMail props: mail.smtp.starttls.enable=true Am I right? The simplest way to check if the SMTP configuration is working is to use the following snippet in a wiki page (xwiki/2.0): --8-- {{velocity}} $xwiki.mailsender.sendTextMessage(y...@mail.com, y...@mail.com, Subject, Content) {{/velocity}} --8-- Now I go to the Sandbox and watch the Training Zone page. Then I go to my Watchlist management and set e-mail notification frequency to 1 (i have no idea what does this mean, there are only these values: 0, 1, 2, 3, 4, Scheduler.WatchListDailyNotifier, Scheduler.WatchListHourlyNotifier, Scheduler.WatchListWeeklyNotifier). Then I log in as another user and play with the Sandbox. That's the problem, between 1.9 and 2.0 we've modified the way watchlist jobs are handled. The numbers in the list are leftovers of the way it was handled before, I'm afraid you'll have to delete some pages manually, namely: - Scheduler.WatchListJob1 - Scheduler.WatchListJob2 - Scheduler.WatchListJob3 - Scheduler.WatchListJob4 The correct values are Scheduler.WatchListDailyNotifier, Scheduler.WatchListHourlyNotifier or Scheduler.WatchListWeeklyNotifier. We're working on improving the watchlist management UI (XE 2.1). And then wait for the notification e-mail. But nothing is being sent to me... No errors on mail or smtp in the log either.. JV. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- View this message in context: http://n2.nabble.com/How-to-check-that-SMTP-mailing-is-working-correctly-tp3800490p3817593.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
[xwiki-users] How to check that SMTP mailing is working correctly?
Hello. I'm using XWiki Enterprise 2.0. Today I'm trying to get the Watchlist notification work. I've set these settings: host: smtp.gmail.com port: 465 user: vostr...@gmail.com password: *** javaMail props: mail.smtp.starttls.enable=true Am I right? Now I go to the Sandbox and watch the Training Zone page. Then I go to my Watchlist management and set e-mail notification frequency to 1 (i have no idea what does this mean, there are only these values: 0, 1, 2, 3, 4, Scheduler.WatchListDailyNotifier, Scheduler.WatchListHourlyNotifier, Scheduler.WatchListWeeklyNotifier). Then I log in as another user and play with the Sandbox. And then wait for the notification e-mail. But nothing is being sent to me... No errors on mail or smtp in the log either.. Am I doing something wrong? Or should I try it some other way? -- View this message in context: http://n2.nabble.com/How-to-check-that-SMTP-mailing-is-working-correctly-tp3800490p3800490.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