6 Replies Latest reply on Jun 30, 2011 10:17 AM by bhanu prakash yadav

    null pointer after connecting to mail server

    bhanu prakash yadav Newbie
      Creating JavaMail Session (smtp.gmail.com:587)
      18:14:21,328 INFO  [MailSession] connected to mail server
      18:14:24,906 ERROR [STDERR] java.lang.NullPointerException
      18:14:24,906 ERROR [STDERR]      at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:557)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.mail.ui.UIMessage.encodeEnd(UIMessage.java:168)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.ui.util.JSF.renderChild(JSF.java:181)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.ui.util.JSF.renderChildren(JSF.java:163)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.ui.facelet.RendererRequest.renderFacelet(RendererRequest.java:103)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.ui.facelet.RendererRequest.run(RendererRequest.java:73)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:43)
      18:14:24,906 ERROR [STDERR]      at com.sec.sumExplore.ReservationAction.confirmInvitationMail(ReservationAction.java:73)
      18:14:24,906 ERROR [STDERR]      at com.sec.sumExplore.ReservationAction.confirmInvitation(ReservationAction.java:49)
      18:14:24,906 ERROR [STDERR]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      18:14:24,906 ERROR [STDERR]      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      18:14:24,906 ERROR [STDERR]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      18:14:24,906 ERROR [STDERR]      at java.lang.reflect.Method.invoke(Unknown Source)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
      18:14:24,906 ERROR [STDERR]      at com.sec.sumExplore.ReservationAction_$$_javassist_1.confirmInvitation(ReservationAction_$$_javassist_1.java)
      18:14:24,906 ERROR [STDERR]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      18:14:24,906 ERROR [STDERR]      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      18:14:24,906 ERROR [STDERR]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      18:14:24,906 ERROR [STDERR]      at java.lang.reflect.Method.invoke(Unknown Source)
      18:14:24,906 ERROR [STDERR]      at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:329)
      18:14:24,906 ERROR [STDERR]      at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:274)
      18:14:24,906 ERROR [STDERR]      at org.jboss.el.parser.AstMethodSuffix.getValue(AstMethodSuffix.java:59)
      18:14:24,906 ERROR [STDERR]      at org.jboss.el.parser.AstMethodSuffix.invoke(AstMethodSuffix.java:65)
      18:14:24,906 ERROR [STDERR]      at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
      18:14:24,906 ERROR [STDERR]      at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
      18:14:24,906 ERROR [STDERR]      at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
      18:14:24,906 ERROR [STDERR]      at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
      18:14:24,906 ERROR [STDERR]      at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
      18:14:24,906 ERROR [STDERR]      at javax.faces.component.UICommand.broadcast(UICommand.java:387)
      18:14:24,906 ERROR [STDERR]      at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:321)
      18:14:24,906 ERROR [STDERR]      at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:296)
      18:14:24,906 ERROR [STDERR]      at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:253)
      18:14:24,906 ERROR [STDERR]      at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:466)
      18:14:24,906 ERROR [STDERR]      at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
      18:14:24,906 ERROR [STDERR]      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
      18:14:24,906 ERROR [STDERR]      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
      18:14:24,906 ERROR [STDERR]      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
      18:14:24,906 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      18:14:24,906 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      18:14:24,906 ERROR [STDERR]      at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)
      18:14:24,906 ERROR [STDERR]      at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
      18:14:24,906 ERROR [STDERR]      at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
      18:14:24,906 ERROR [STDERR]      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      18:14:24,906 ERROR [STDERR]      at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
      18:14:24,906 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      18:14:24,906 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      18:14:24,906 ERROR [STDERR]      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      18:14:24,906 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      18:14:24,906 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      18:14:24,906 ERROR [STDERR]      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
      18:14:24,906 ERROR [STDERR]      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      18:14:24,906 ERROR [STDERR]      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
      18:14:24,906 ERROR [STDERR]      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
      18:14:24,906 ERROR [STDERR]      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      18:14:24,906 ERROR [STDERR]      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      18:14:24,906 ERROR [STDERR]      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      18:14:24,906 ERROR [STDERR]      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
      18:14:24,906 ERROR [STDERR]      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      18:14:24,906 ERROR [STDERR]      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
      18:14:24,906 ERROR [STDERR]      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      18:14:24,906 ERROR [STDERR]      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      18:14:24,906 ERROR [STDERR]      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
      18:14:24,906 ERROR [STDERR]      at java.lang.Thread.run(Unknown Source)