{"action":"created","issue":{"url":"https://api.github.com/repos/vert-x3/issues/issues/395","repository_url":"https://api.github.com/repos/vert-x3/issues","labels_url":"https://api.github.com/repos/vert-x3/issues/issues/395/labels{/name}","comments_url":"https://api.github.com/repos/vert-x3/issues/issues/395/comments","events_url":"https://api.github.com/repos/vert-x3/issues/issues/395/events","html_url":"https://github.com/vert-x3/issues/issues/395","id":347292688,"node_id":"MDU6SXNzdWUzNDcyOTI2ODg=","number":395,"title":"error on vertx sendMail, io.vertx.core.impl.ContextImpl - Unhandled exception java.lang.NullPointerException: null","user":{"login":"dhacker21","id":8606497,"node_id":"MDQ6VXNlcjg2MDY0OTc=","avatar_url":"https://avatars1.githubusercontent.com/u/8606497?v=4","gravatar_id":"","url":"https://api.github.com/users/dhacker21","html_url":"https://github.com/dhacker21","followers_url":"https://api.github.com/users/dhacker21/followers","following_url":"https://api.github.com/users/dhacker21/following{/other_user}","gists_url":"https://api.github.com/users/dhacker21/gists{/gist_id}","starred_url":"https://api.github.com/users/dhacker21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhacker21/subscriptions","organizations_url":"https://api.github.com/users/dhacker21/orgs","repos_url":"https://api.github.com/users/dhacker21/repos","events_url":"https://api.github.com/users/dhacker21/events{/privacy}","received_events_url":"https://api.github.com/users/dhacker21/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-08-03T07:42:05Z","updated_at":"2018-08-08T15:25:54Z","closed_at":null,"author_association":"NONE","body":"hello i cannot catch null error on sending email\r\nmy code is like this :\r\n```\r\nfun sendMessage(data: JsonObject) : Observable<MailResult> {\r\n         return observable<MailResult> {\r\n            val message = MailMessage(data)\r\n            mailClient.sendMail(message, it)\r\n         }.doOnError {\r\n             log.error(\"error on mailClient, move to resend\"+it.message + \" \"+ it.getStackTraceAsString())\r\n         }.onErrorReturn {\r\n             null\r\n         }.map {\r\n             it\r\n         }\r\n    }\r\n```\r\nlog error : \r\n\r\n```\r\nio.vertx.core.impl.ContextImpl - Unhandled exception\r\njava.lang.NullPointerException: null\r\n    at io.vertx.ext.mail.impl.SMTPConnection.handleError(SMTPConnection.java:171)\r\n    at io.vertx.ext.mail.impl.SMTPConnection.handleError(SMTPConnection.java:167)\r\n    at io.vertx.ext.mail.impl.SMTPConnection.lambda$null$2(SMTPConnection.java:203)\r\n    at io.vertx.core.impl.ContextImpl.lambda$wrapTask$2(ContextImpl.java:339)\r\n    at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)\r\n    at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404)\r\n    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:463)\r\n    at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:886)\r\n    at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)\r\n    at java.lang.Thread.run(Thread.java:748)\r\n```\r\nvertx version : 3.5.3\r\ni cannot found what error is this, i cannot catch the error on \"doOnError\" please help.\r\nThanks"},"comment":{"url":"https://api.github.com/repos/vert-x3/issues/issues/comments/411446516","html_url":"https://github.com/vert-x3/issues/issues/395#issuecomment-411446516","issue_url":"https://api.github.com/repos/vert-x3/issues/issues/395","id":411446516,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTQ0NjUxNg==","user":{"login":"dhacker21","id":8606497,"node_id":"MDQ6VXNlcjg2MDY0OTc=","avatar_url":"https://avatars1.githubusercontent.com/u/8606497?v=4","gravatar_id":"","url":"https://api.github.com/users/dhacker21","html_url":"https://github.com/dhacker21","followers_url":"https://api.github.com/users/dhacker21/followers","following_url":"https://api.github.com/users/dhacker21/following{/other_user}","gists_url":"https://api.github.com/users/dhacker21/gists{/gist_id}","starred_url":"https://api.github.com/users/dhacker21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhacker21/subscriptions","organizations_url":"https://api.github.com/users/dhacker21/orgs","repos_url":"https://api.github.com/users/dhacker21/repos","events_url":"https://api.github.com/users/dhacker21/events{/privacy}","received_events_url":"https://api.github.com/users/dhacker21/received_events","type":"User","site_admin":false},"created_at":"2018-08-08T15:25:54Z","updated_at":"2018-08-08T15:25:54Z","author_association":"NONE","body":"hi, I finally i can catch the error : \r\n\r\n```\r\nnull java.util.HashMap$HashIterator.nextNode(HashMap.java:1437)\r\njava.util.HashMap$KeyIterator.next(HashMap.java:1461)\r\nio.vertx.ext.mail.impl.SMTPConnectionPool.getConnection0(SMTPConnectionPool.java:133)\r\nio.vertx.ext.mail.impl.SMTPConnectionPool.getConnection(SMTPConnectionPool.java:77)\r\nio.vertx.ext.mail.impl.MailClientImpl.getConnection(MailClientImpl.java:101)\r\nio.vertx.ext.mail.impl.MailClientImpl.sendMail(MailClientImpl.java:91)\r\n```\r\nwhat error is this?"}}
{"actor":{"display_login":"dhacker21"}}