1 Reply Latest reply on Apr 25, 2016 8:48 AM by jameslui

    Alert Central - Error on email handling and no alert created

    jameslui

      Good day,

       

      We came across an issue wherein alert central does not create record from an email source:

      -     We have one email source (ORION) configured and triggered an email notification

      -     Email was received (both the email account for alert central and another email account) however alert central did not create an alert.

      -     We tried to remove the email source and trigger the alarm.  This should have created a triggered [!] record but again no alert record.

       

      We have checked on the oncall.log file and found the following:

       

      14:27:39.311 [EmailPoller-1]  WARN c.s.oncall.email.EmailPollerImpl - Failed to process email

      javax.mail.MessagingException: Problem getting the content of the message

          at com.solarwinds.mail.ews.EWSMessage.getContent(EWSMessage.java:66) ~[ews-provider-1.1.5.jar:na]

          at com.solarwinds.oncall.email.utils.EmailParserUtils.extractMailData(EmailParserUtils.java:77) ~[oncall-email-1.1.7-SNAPSHOT.jar:na]

          at com.solarwinds.oncall.email.EmailPollerImpl.generateAndPublishInboundMessages(EmailPollerImpl.java:487) [oncall-email-1.1.7-SNAPSHOT.jar:na]

          at com.solarwinds.oncall.email.EmailPollerImpl.runEmailFetching(EmailPollerImpl.java:372) [oncall-email-1.1.7-SNAPSHOT.jar:na]

          at com.solarwinds.oncall.email.EmailPollerImpl.access$600(EmailPollerImpl.java:72) [oncall-email-1.1.7-SNAPSHOT.jar:na]

          at com.solarwinds.oncall.email.EmailPollerImpl$FetchEmail.run(EmailPollerImpl.java:308) [oncall-email-1.1.7-SNAPSHOT.jar:na]

          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_04]

          at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351) [na:1.7.0_04]

          at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178) [na:1.7.0_04]

          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) [na:1.7.0_04]

          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.7.0_04]

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [na:1.7.0_04]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [na:1.7.0_04]

          at java.lang.Thread.run(Thread.java:722) [na:1.7.0_04]

      Caused by:: Error in encoded stream: needed at least 2 valid base64 characters, but only got 0 before padding character (=), the 10 most recent characters were: "; charset="

          at com.sun.mail.util.BASE64DecoderStream.decode(BASE64DecoderStream.java:266) ~[mail-1.4.5.jar:1.4.5]

          at com.sun.mail.util.BASE64DecoderStream.read(BASE64DecoderStream.java:144) ~[mail-1.4.5.jar:1.4.5]

          at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:283) ~[na:1.7.0_04]

          at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:325) ~[na:1.7.0_04]

          at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:177) ~[na:1.7.0_04]

          at java.io.InputStreamReader.read(InputStreamReader.java:184) ~[na:1.7.0_04]

          at com.sun.mail.handlers.text_plain.getContent(text_plain.java:125) ~[mail-1.4.5.jar:1.4.5]

          at javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:790) ~[na:1.7.0_04]

          at javax.activation.DataHandler.getContent(DataHandler.java:537) ~[na:1.7.0_04]

          at javax.mail.internet.MimeMessage.getContent(MimeMessage.java:1420) ~[mail-1.4.5.jar:1.4.5]

          at com.solarwinds.mail.ews.EWSMessage.getContent(EWSMessage.java:61) ~[ews-provider-1.1.5.jar:na]

          ... 13 common frames omitted

      14:27:39.312 [EmailPoller-1] ERROR c.s.oncall.email.EmailPollerImpl - email message not set to delete, forcing delete to clear all messages in mail box.

       

      Just pitching in: found some info on the error log and it points to the java (javamail?) property "mail.imaps.partialfetch".