0 Replies Latest reply on Sep 29, 2015 11:15 AM by srikant V

    Issue while sending the email on jboss-eap-6.1

    srikant V Newbie

      Hi , I am facing an issue while sending an email from my application which is using Jboss it is working fine with other appServers , Below is the exception which i am getting ,

      Can anyone guide on this as i am really struck with this issue

       

       

       

      System Exception

       

       

      Server Error

       

       

      Error Message: Uncaught Exception running extension com.epiphany.common.email.extension.ui.SendEmail

       

       

      Stack Trace:

       

       

      java.rmi.RemoteException: Invocation failed; nested exception is:

        javax.ejb.EJBException: java.lang.NullPointerException

        at org.jboss.as.ejb3.component.interceptors.EjbExceptionTransformingInterceptorFactories$1.processInvocation(EjbExceptionTransformingInterceptorFactories.java:80)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

        at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

        at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:55)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

        at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

        at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

        at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)

        at org.jboss.as.ejb3.remote.LocalEjbReceiver.processInvocation(LocalEjbReceiver.java:222)

        at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)

        at org.jboss.ejb.client.EJBObjectInterceptor.handleInvocation(EJBObjectInterceptor.java:58)

        at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183)

        at org.jboss.ejb.client.EJBHomeInterceptor.handleInvocation(EJBHomeInterceptor.java:83)

        at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183)

        at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInterceptor.java:42)

        at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183)

        at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:125)

        at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183)

        at org.jboss.ejb.client.EJBInvocationHandler.sendRequestWithPossibleRetries(EJBInvocationHandler.java:253)

        at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:198)

        at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:181)

        at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:144)

        at $Proxy153.validateAddresses(Unknown Source)

        at com.epiphany.shr.email.emailservice.ejb.EmailServiceEJBWrapper.validateAddresses(EmailServiceEJBWrapper.java:231)

        at com.epiphany.common.email.extension.ui.SendEmail.execute(SendEmail.java:247)

        at com.epiphany.shr.ui.action.ActionExtensionBase.fireEvent(ActionExtensionBase.java:119)

        at com.epiphany.shr.extensions.ExtensionWrapper.fireEvent(ExtensionWrapper.java:427)

        at com.epiphany.shr.ui.action.Action.execute(Action.java:305)

        at com.epiphany.shr.ui.action.Action.fireExtensions(Action.java:569)

        at com.epiphany.shr.ui.action.Action.performMethod(Action.java:209)

        at com.epiphany.shr.ui.controller.field.ActionField.callActionMethod(ActionField.java:177)

        at com.epiphany.shr.ui.controller.field.ActionField.processAction(ActionField.java:265)

        at com.epiphany.shr.ui.controller.ControllerServlet.process(ControllerServlet.java:1821)

        at com.epiphany.shr.ui.controller.EpnyServlet.doPost(EpnyServlet.java:694)

        at com.epiphany.shr.ui.controller.EpnyServlet.doPost(EpnyServlet.java:510)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)

        at com.epiphany.shr.ui.controller.EpnyServlet.service(EpnyServlet.java:527)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)

        at org.jboss.modcluster.container.jbossweb.JBossWebContext$RequestListenerValve.event(JBossWebContext.java:91)

        at org.jboss.modcluster.container.jbossweb.JBossWebContext$RequestListenerValve.invoke(JBossWebContext.java:72)

        at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336)

        at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:488)

        at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:420)

        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920)

        at java.lang.Thread.run(Thread.java:722)

      Caused by: javax.ejb.EJBException: java.lang.NullPointerException

        at org.jboss.as.ejb3.tx.BMTInterceptor.handleException(BMTInterceptor.java:78)

        at org.jboss.as.ejb3.tx.EjbBMTInterceptor.checkStatelessDone(EjbBMTInterceptor.java:92)

        at org.jboss.as.ejb3.tx.EjbBMTInterceptor.handleInvocation(EjbBMTInterceptor.java:107)

        at org.jboss.as.ejb3.tx.BMTInterceptor.processInvocation(BMTInterceptor.java:56)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

        at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

        at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

        at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

        at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

        at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:79)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

        at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

        at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

        at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

        at org.jboss.as.ejb3.component.interceptors.EjbExceptionTransformingInterceptorFactories$1.processInvocation(EjbExceptionTransformingInterceptorFactories.java:65)

        ... 54 more

      Caused by: java.lang.NullPointerException

        at java.io.FileInputStream.<init>(FileInputStream.java:134)

        at java.io.FileInputStream.<init>(FileInputStream.java:97)

        at com.epiphany.shr.ui.controller.mapping.UIBeanMapping.init(UIBeanMapping.java:81)

        at com.epiphany.shr.ui.controller.mapping.UIBeanMapping.<init>(UIBeanMapping.java:58)

        at com.epiphany.shr.ui.controller.mapping.UIBeanMapping.getInstance(UIBeanMapping.java:65)

        at com.epiphany.shr.ui.model.UIBeanManager.getBeanOfType(UIBeanManager.java:84)

        at com.epiphany.shr.ui.model.UIBeanManager.getBeanOfType(UIBeanManager.java:70)

        at com.epiphany.shr.ui.model.data.UnitOfWorkBean.getUOW(UnitOfWorkBean.java:684)

        at com.epiphany.shr.ui.model.data.UnitOfWorkBean.getBioStub(UnitOfWorkBean.java:515)

        at com.epiphany.shr.ui.model.data.UnitOfWorkBean.getBioStub(UnitOfWorkBean.java:510)

        at com.epiphany.shr.ui.model.data.BioBean.getBioStub(BioBean.java:121)

        at com.epiphany.shr.ui.model.data.BioBean.get(BioBean.java:352)

        at com.epiphany.shr.ui.model.data.BioBean.get(BioBean.java:341)

        at com.epiphany.shr.email.emailservice.EmailServiceBean.validateAddressesByBio(EmailServiceBean.java:1313)

        at com.epiphany.shr.email.emailservice.EmailServiceBean.validateAddresses(EmailServiceBean.java:1431)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:601)

        at com.epiphany.shr.sf.util.EpnyLocalServiceProxy.invoke(EpnyLocalServiceProxy.java:83)

        at $Proxy145.validateAddresses(Unknown Source)

        at com.epiphany.shr.email.emailservice.ejb.EmailServiceEJB.validateAddresses(EmailServiceEJB.java:255)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:601)

        at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

        at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)

        at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:58)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

        at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)

        at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:58)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

        at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

        at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

        at org.jboss.as.ejb3.tx.EjbBMTInterceptor.handleInvocation(EjbBMTInterceptor.java:104)

        ... 72 more

      com.epiphany.shr.sf.EpnyServiceRemoteException: Unexpected exception in Service ejb:service/shared_ejb//EmailService!com.epiphany.shr.email.emailservice.ejb.EmailServiceHome

        at com.epiphany.shr.email.emailservice.ejb.EmailServiceEJBWrapper.validateAddresses(EmailServiceEJBWrapper.java:235)

        at com.epiphany.common.email.extension.ui.SendEmail.execute(SendEmail.java:247)

        at com.epiphany.shr.ui.action.ActionExtensionBase.fireEvent(ActionExtensionBase.java:119)

        at com.epiphany.shr.extensions.ExtensionWrapper.fireEvent(ExtensionWrapper.java:427)

        at com.epiphany.shr.ui.action.Action.execute(Action.java:305)

        at com.epiphany.shr.ui.action.Action.fireExtensions(Action.java:569)

        at com.epiphany.shr.ui.action.Action.performMethod(Action.java:209)

        at com.epiphany.shr.ui.controller.field.ActionField.callActionMethod(ActionField.java:177)

        at com.epiphany.shr.ui.controller.field.ActionField.processAction(ActionField.java:265)

        at com.epiphany.shr.ui.controller.ControllerServlet.process(ControllerServlet.java:1821)

        at com.epiphany.shr.ui.controller.EpnyServlet.doPost(EpnyServlet.java:694)

        at com.epiphany.shr.ui.controller.EpnyServlet.doPost(EpnyServlet.java:510)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)

        at com.epiphany.shr.ui.controller.EpnyServlet.service(EpnyServlet.java:527)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)

        at org.jboss.modcluster.container.jbossweb.JBossWebContext$RequestListenerValve.event(JBossWebContext.java:91)

        at org.jboss.modcluster.container.jbossweb.JBossWebContext$RequestListenerValve.invoke(JBossWebContext.java:72)

        at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336)

        at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:488)

        at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:420)

        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920)

        at java.lang.Thread.run(Thread.java:722)

      com.epiphany.shr.util.exceptions.EpiException: Uncaught Exception running extension com.epiphany.common.email.extension.ui.SendEmail

        at com.epiphany.shr.extensions.ExtensionWrapper.fireEvent(ExtensionWrapper.java:522)

        at com.epiphany.shr.ui.action.Action.execute(Action.java:305)

        at com.epiphany.shr.ui.action.Action.fireExtensions(Action.java:569)

        at com.epiphany.shr.ui.action.Action.performMethod(Action.java:209)

        at com.epiphany.shr.ui.controller.field.ActionField.callActionMethod(ActionField.java:177)

        at com.epiphany.shr.ui.controller.field.ActionField.processAction(ActionField.java:265)

        at com.epiphany.shr.ui.controller.ControllerServlet.process(ControllerServlet.java:1821)

        at com.epiphany.shr.ui.controller.EpnyServlet.doPost(EpnyServlet.java:694)

        at com.epiphany.shr.ui.controller.EpnyServlet.doPost(EpnyServlet.java:510)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)

        at com.epiphany.shr.ui.controller.EpnyServlet.service(EpnyServlet.java:527)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)

        at org.jboss.modcluster.container.jbossweb.JBossWebContext$RequestListenerValve.event(JBossWebContext.java:91)

        at org.jboss.modcluster.container.jbossweb.JBossWebContext$RequestListenerValve.invoke(JBossWebContext.java:72)

        at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336)

        at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:488)

        at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:420)

        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920)

        at java.lang.Thread.run(Thread.java:722)