users@glassfish.java.net

java mail with glass fish v3 prelude

From: <glassfish_at_javadesktop.org>
Date: Mon, 04 May 2009 06:17:29 PDT

java mail with glass fish v3 prelude


 it gives exception that
SEVERE: javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465;
  nested exception is:
        java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)
SEVERE: at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1227)
SEVERE: at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:322)
SEVERE: at javax.mail.Service.connect(Service.java:310)
SEVERE: at javax.mail.Service.connect(Service.java:169)
SEVERE: at javax.mail.Service.connect(Service.java:118)
SEVERE: at javax.mail.Transport.send0(Transport.java:188)
SEVERE: at javax.mail.Transport.send(Transport.java:118)
SEVERE: at org.argus.webpanditji.beans.sms2.<init>(sms2.java:64)
SEVERE: at org.argus.webpanditji.beans.Authenticate.resetPassword(Authenticate.java:165)
SEVERE: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
SEVERE: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
SEVERE: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
SEVERE: at java.lang.reflect.Method.invoke(Method.java:597)
SEVERE: at com.sun.el.parser.AstValue.invoke(AstValue.java:187)
SEVERE: at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297)
SEVERE: at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
SEVERE: at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
SEVERE: at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
SEVERE: at javax.faces.component.UICommand.broadcast(UICommand.java:387)
SEVERE: at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:321)
SEVERE: at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:296)
SEVERE: at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:253)
SEVERE: at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:466)
SEVERE: at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
SEVERE: at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
SEVERE: at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
SEVERE: at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
SEVERE: at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431)
SEVERE: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:337)
SEVERE: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
SEVERE: at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
SEVERE: at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
SEVERE: at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390)
SEVERE: at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
SEVERE: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250)
SEVERE: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
SEVERE: at org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:460)
SEVERE: at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
SEVERE: at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
SEVERE: at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
SEVERE: at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
SEVERE: at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
SEVERE: at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
SEVERE: at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
SEVERE: at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
SEVERE: at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
SEVERE: at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
SEVERE: at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
SEVERE: at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
SEVERE: at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
SEVERE: at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
SEVERE: at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
SEVERE: at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
SEVERE: at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
SEVERE: at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
SEVERE: at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
SEVERE: at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
SEVERE: at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
SEVERE: at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
SEVERE: at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
SEVERE: at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
SEVERE: at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
SEVERE: at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
SEVERE: at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
SEVERE: at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
SEVERE: at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
SEVERE: at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
SEVERE: at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
SEVERE: Caused by: java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)
SEVERE: at javax.net.ssl.DefaultSSLSocketFactory.throwException(SSLSocketFactory.java:179)
SEVERE: at javax.net.ssl.DefaultSSLSocketFactory.createSocket(SSLSocketFactory.java:192)
SEVERE: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
SEVERE: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
SEVERE: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
SEVERE: at java.lang.reflect.Method.invoke(Method.java:597)
SEVERE: at com.sun.mail.util.SocketFetcher.getSocket0(SocketFetcher.java:309)
SEVERE: at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:129)
SEVERE: at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1195)
SEVERE: ... 67 more
SEVERE: Caused by: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)
SEVERE: at java.security.Provider$Service.newInstance(Provider.java:1245)
SEVERE: at sun.security.jca.GetInstance.getInstance(GetInstance.java:220)
SEVERE: at sun.security.jca.GetInstance.getInstance(GetInstance.java:147)
SEVERE: at javax.net.ssl.SSLContext.getInstance(SSLContext.java:125)
SEVERE: at javax.net.ssl.SSLContext.getDefault(SSLContext.java:68)
SEVERE: at javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:102)
SEVERE: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
SEVERE: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
SEVERE: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
SEVERE: at java.lang.reflect.Method.invoke(Method.java:597)
SEVERE: at com.sun.mail.util.SocketFetcher.getSocket0(SocketFetcher.java:276)
SEVERE: ... 69 more
SEVERE: Caused by: java.security.UnrecoverableKeyException: Password must not be null
SEVERE: at sun.security.provider.JavaKeyStore.engineGetKey(JavaKeyStore.java:107)
SEVERE: at sun.security.provider.JavaKeyStore$JKS.engineGetKey(JavaKeyStore.java:38)
SEVERE: at java.security.KeyStore.getKey(KeyStore.java:763)
SEVERE: at com.sun.net.ssl.internal.ssl.SunX509KeyManagerImpl.<init>(SunX509KeyManagerImpl.java:113)
SEVERE: at com.sun.net.ssl.internal.ssl.KeyManagerFactoryImpl$SunX509.engineInit(KeyManagerFactoryImpl.java:48)
SEVERE: at javax.net.ssl.KeyManagerFactory.init(KeyManagerFactory.java:239)
SEVERE: at com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl.getDefaultKeyManager(DefaultSSLContextImpl.java:170)
SEVERE: at com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl.<init>(DefaultSSLContextImpl.java:40)
SEVERE: at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
SEVERE: at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
SEVERE: at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
SEVERE: at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
SEVERE: at java.lang.Class.newInstance0(Class.java:355)
SEVERE: at java.lang.Class.newInstance(Class.java:308)
SEVERE: at java.security.Provider$Service.newInstance(Provider.java:1221)
SEVERE: ... 79 more
[Message sent by forum member 'void_void' (void_void)]

http://forums.java.net/jive/thread.jspa?messageID=344832