In Notification email,
Check to Send notificasions and set all items appropriately.
-- Actions
Create a Issue by account A.
Comment to the issue by account B.
-- Results
An email is not sent from gitbucket system.
Logged Error message in Tomcat7's log file 'catalina.out'
After this error, I wrote 'BASE Url' and commented to the issue, the notification email was sent.
-- Log file 'catalina.out' below
18:54:25.927 [ForkJoinPool-1-worker-11] ERROR util.Mailer - Notifications Failed.
java.lang.NullPointerException: null
at org.apache.catalina.connector.Request.getServletContext(Request.java:1662) ~[catalina-7.0.39.jar:7.0.39]
at org.apache.catalina.connector.RequestFacade.getServletContext(RequestFacade.java:1017) ~[catalina-7.0.39.jar:7.0.39]
at app.Context$$anonfun$path$1.apply(ControllerBase.scala:142) ~[Context$$anonfun$path$1.class:na]
at app.Context$$anonfun$path$1.apply(ControllerBase.scala:142) ~[Context$$anonfun$path$1.class:na]
at scala.Option.getOrElse(Option.scala:120) ~[scala-library.jar:na]
at app.Context.path$lzycompute(ControllerBase.scala:142) ~[Context.class:na]
at app.Context.path(ControllerBase.scala:142) ~[Context.class:na]
at view.LinkConverter$class.convertRefsLinks(LinkConverter.scala:32) ~[LinkConverter$class.class:na]
at view.GitBucketHtmlSerializer.convertRefsLinks(Markdown.scala:81) ~[GitBucketHtmlSerializer.class:na]
at view.GitBucketHtmlSerializer.visit(Markdown.scala:132) ~[GitBucketHtmlSerializer.class:na]
at org.pegdown.ast.TextNode.accept(TextNode.java:51) ~[pegdown-1.4.1.jar:1.4.1]
at org.pegdown.ToHtmlSerializer.visitChildren(ToHtmlSerializer.java:365) ~[pegdown-1.4.1.jar:1.4.1]
at org.pegdown.ToHtmlSerializer.visit(ToHtmlSerializer.java:348) ~[pegdown-1.4.1.jar:1.4.1]
at org.pegdown.ast.SuperNode.accept(SuperNode.java:43) ~[pegdown-1.4.1.jar:1.4.1]
at org.pegdown.ToHtmlSerializer.visitChildren(ToHtmlSerializer.java:365) ~[pegdown-1.4.1.jar:1.4.1]
at org.pegdown.ToHtmlSerializer.printTag(ToHtmlSerializer.java:377) ~[pegdown-1.4.1.jar:1.4.1]
at org.pegdown.ToHtmlSerializer.visit(ToHtmlSerializer.java:162) ~[pegdown-1.4.1.jar:1.4.1]
at org.pegdown.ast.ParaNode.accept(ParaNode.java:35) ~[pegdown-1.4.1.jar:1.4.1]
at org.pegdown.ToHtmlSerializer.visitChildren(ToHtmlSerializer.java:365) ~[pegdown-1.4.1.jar:1.4.1]
at org.pegdown.ToHtmlSerializer.visit(ToHtmlSerializer.java:91) ~[pegdown-1.4.1.jar:1.4.1]
at org.pegdown.ast.RootNode.accept(RootNode.java:51) ~[pegdown-1.4.1.jar:1.4.1]
at org.pegdown.ToHtmlSerializer.toHtml(ToHtmlSerializer.java:72) ~[pegdown-1.4.1.jar:1.4.1]
at view.Markdown$.toHtml(Markdown.scala:31) ~[Markdown$.class:na]
at util.Mailer$$anonfun$1$$anonfun$apply$1$$anonfun$apply$mcV$sp$1.apply(Notifier.scala:77) ~[Mailer$$anonfun$1$$anonfun$apply$1$$anonfun$apply$mcV$sp$1.class:na]
at util.Mailer$$anonfun$1$$anonfun$apply$1$$anonfun$apply$mcV$sp$1.apply(Notifier.scala:74) ~[Mailer$$anonfun$1$$anonfun$apply$1$$anonfun$apply$mcV$sp$1.class:na]
at scala.Option.foreach(Option.scala:236) ~[scala-library.jar:na]
at util.Mailer$$anonfun$1$$anonfun$apply$1.apply$mcV$sp(Notifier.scala:74) ~[Mailer$$anonfun$1$$anonfun$apply$1.class:na]
at util.Mailer$$anonfun$1$$anonfun$apply$1.apply(Notifier.scala:74) ~[Mailer$$anonfun$1$$anonfun$apply$1.class:na]
at util.Mailer$$anonfun$1$$anonfun$apply$1.apply(Notifier.scala:74) ~[Mailer$$anonfun$1$$anonfun$apply$1.class:na]
at scala.util.DynamicVariable.withValue(DynamicVariable.scala:57) ~[scala-library.jar:na]
at scala.slick.session.Database$$anonfun$withSession$1.apply(Database.scala:46) ~[slick_2.10-1.0.1.jar:1.0.1]
at scala.slick.session.Database$$anonfun$withSession$1.apply(Database.scala:46) ~[slick_2.10-1.0.1.jar:1.0.1]
at scala.slick.session.Database.withSession(Database.scala:38) ~[slick_2.10-1.0.1.jar:1.0.1]
at scala.slick.session.Database.withSession(Database.scala:46) ~[slick_2.10-1.0.1.jar:1.0.1]
at util.Mailer$$anonfun$1.apply(Notifier.scala:73) ~[Mailer$$anonfun$1.class:na]
at util.Mailer$$anonfun$1.apply(Notifier.scala:71) ~[Mailer$$anonfun$1.class:na]
at scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24) ~[scala-library.jar:na]
at scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24) ~[scala-library.jar:na]
at scala.concurrent.impl.ExecutionContextImpl$$anon$3.exec(ExecutionContextImpl.scala:107) [scala-library.jar:na]
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) [scala-library.jar:na]
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) [scala-library.jar:na]
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) [scala-library.jar:na]
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) [scala-library.jar:na]
<--- Steps to reproduce --->
-- In System Settings
-- Actions
-- Results
-- Log file 'catalina.out' below
18:54:25.927 [ForkJoinPool-1-worker-11] ERROR util.Mailer - Notifications Failed. java.lang.NullPointerException: null at org.apache.catalina.connector.Request.getServletContext(Request.java:1662) ~[catalina-7.0.39.jar:7.0.39] at org.apache.catalina.connector.RequestFacade.getServletContext(RequestFacade.java:1017) ~[catalina-7.0.39.jar:7.0.39] at app.Context$$anonfun$path$1.apply(ControllerBase.scala:142) ~[Context$$anonfun$path$1.class:na] at app.Context$$anonfun$path$1.apply(ControllerBase.scala:142) ~[Context$$anonfun$path$1.class:na] at scala.Option.getOrElse(Option.scala:120) ~[scala-library.jar:na] at app.Context.path$lzycompute(ControllerBase.scala:142) ~[Context.class:na] at app.Context.path(ControllerBase.scala:142) ~[Context.class:na] at view.LinkConverter$class.convertRefsLinks(LinkConverter.scala:32) ~[LinkConverter$class.class:na] at view.GitBucketHtmlSerializer.convertRefsLinks(Markdown.scala:81) ~[GitBucketHtmlSerializer.class:na] at view.GitBucketHtmlSerializer.visit(Markdown.scala:132) ~[GitBucketHtmlSerializer.class:na] at org.pegdown.ast.TextNode.accept(TextNode.java:51) ~[pegdown-1.4.1.jar:1.4.1] at org.pegdown.ToHtmlSerializer.visitChildren(ToHtmlSerializer.java:365) ~[pegdown-1.4.1.jar:1.4.1] at org.pegdown.ToHtmlSerializer.visit(ToHtmlSerializer.java:348) ~[pegdown-1.4.1.jar:1.4.1] at org.pegdown.ast.SuperNode.accept(SuperNode.java:43) ~[pegdown-1.4.1.jar:1.4.1] at org.pegdown.ToHtmlSerializer.visitChildren(ToHtmlSerializer.java:365) ~[pegdown-1.4.1.jar:1.4.1] at org.pegdown.ToHtmlSerializer.printTag(ToHtmlSerializer.java:377) ~[pegdown-1.4.1.jar:1.4.1] at org.pegdown.ToHtmlSerializer.visit(ToHtmlSerializer.java:162) ~[pegdown-1.4.1.jar:1.4.1] at org.pegdown.ast.ParaNode.accept(ParaNode.java:35) ~[pegdown-1.4.1.jar:1.4.1] at org.pegdown.ToHtmlSerializer.visitChildren(ToHtmlSerializer.java:365) ~[pegdown-1.4.1.jar:1.4.1] at org.pegdown.ToHtmlSerializer.visit(ToHtmlSerializer.java:91) ~[pegdown-1.4.1.jar:1.4.1] at org.pegdown.ast.RootNode.accept(RootNode.java:51) ~[pegdown-1.4.1.jar:1.4.1] at org.pegdown.ToHtmlSerializer.toHtml(ToHtmlSerializer.java:72) ~[pegdown-1.4.1.jar:1.4.1] at view.Markdown$.toHtml(Markdown.scala:31) ~[Markdown$.class:na] at util.Mailer$$anonfun$1$$anonfun$apply$1$$anonfun$apply$mcV$sp$1.apply(Notifier.scala:77) ~[Mailer$$anonfun$1$$anonfun$apply$1$$anonfun$apply$mcV$sp$1.class:na] at util.Mailer$$anonfun$1$$anonfun$apply$1$$anonfun$apply$mcV$sp$1.apply(Notifier.scala:74) ~[Mailer$$anonfun$1$$anonfun$apply$1$$anonfun$apply$mcV$sp$1.class:na] at scala.Option.foreach(Option.scala:236) ~[scala-library.jar:na] at util.Mailer$$anonfun$1$$anonfun$apply$1.apply$mcV$sp(Notifier.scala:74) ~[Mailer$$anonfun$1$$anonfun$apply$1.class:na] at util.Mailer$$anonfun$1$$anonfun$apply$1.apply(Notifier.scala:74) ~[Mailer$$anonfun$1$$anonfun$apply$1.class:na] at util.Mailer$$anonfun$1$$anonfun$apply$1.apply(Notifier.scala:74) ~[Mailer$$anonfun$1$$anonfun$apply$1.class:na] at scala.util.DynamicVariable.withValue(DynamicVariable.scala:57) ~[scala-library.jar:na] at scala.slick.session.Database$$anonfun$withSession$1.apply(Database.scala:46) ~[slick_2.10-1.0.1.jar:1.0.1] at scala.slick.session.Database$$anonfun$withSession$1.apply(Database.scala:46) ~[slick_2.10-1.0.1.jar:1.0.1] at scala.slick.session.Database.withSession(Database.scala:38) ~[slick_2.10-1.0.1.jar:1.0.1] at scala.slick.session.Database.withSession(Database.scala:46) ~[slick_2.10-1.0.1.jar:1.0.1] at util.Mailer$$anonfun$1.apply(Notifier.scala:73) ~[Mailer$$anonfun$1.class:na] at util.Mailer$$anonfun$1.apply(Notifier.scala:71) ~[Mailer$$anonfun$1.class:na] at scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24) ~[scala-library.jar:na] at scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24) ~[scala-library.jar:na] at scala.concurrent.impl.ExecutionContextImpl$$anon$3.exec(ExecutionContextImpl.scala:107) [scala-library.jar:na] at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) [scala-library.jar:na] at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) [scala-library.jar:na] at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) [scala-library.jar:na] at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) [scala-library.jar:na]