title: Unable to send Email with apache commons mail, javax.faces.event.AbortProcessingException
body: <p>Am using <em>apache commons email 1.2 ,Primefaces 3.2, Tomcat 7.0 mojarra 2.0.2</em></p>
  
  <p>Whenever i try to send an email i get an <strong>AbortProcessingException</strong> *<em>Caused by: java.lang.RuntimeException: Uncompilable source code - Erroneous sym type: ()void</em>*</p>
  
  <p>Any help will be greatly appreciated</p>
  
  <p>Here is my code:</p>
  
  <pre><code>Email email = new SimpleEmail();
  email.setHostName("smtp.googlemail.com");
  email.setSmtpPort(465);
  email.setAuthenticator(new DefaultAuthenticator("*****@gmail.com", "12345"));
  email.setTLS(true);// i also tried setSSL()
  email.setFrom("*****a@gmail.com");
  email.setSubject("TestMail");
  email.setMsg("This is a test mail ... :-)");
  email.addTo("*****@yahoo.com");
  email.send();
  </code></pre>
  
  <p>Here is the stack trace:</p>
  
  <pre><code>SEVERE: java.lang.RuntimeException: Uncompilable source code - Erroneous sym type: (&lt;any&gt;)void
  javax.faces.event.AbortProcessingException: java.lang.RuntimeException: Uncompilable source code - Erroneous sym type: (&lt;any&gt;)void
      at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:182)
      at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
      at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:772)
      at javax.faces.component.UICommand.broadcast(UICommand.java:300)
      at javax.faces.component.UIData.broadcast(UIData.java:912)
      at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:775)
      at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1267)
      at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at com.fidela.util.PageFilter.doFilter(PageFilter.java:39)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:185)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:151)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
      at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:269)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
      at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1773)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
      at java.lang.Thread.run(Thread.java:619)
  Caused by: java.lang.RuntimeException: Uncompilable source code - Erroneous sym type: (&lt;any&gt;)void
      at com.fidela.beans.UserBean.forgotPassword(UserBean.java:267)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.el.parser.AstValue.invoke(AstValue.java:262)
      at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278)
      at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:153)
      ... 29 more
  </code></pre>