[Seasar-user:10040] [S2Mai] 2回目のメール送信時にNullPointerException
出羽 健一
[E-MAIL ADDRESS DELETED]
2007年 8月 22日 (水) 22:20:30 JST
出羽と申します。
S2Maiで1回目はメール送信できるにも関わらず、2回目だと以下のようなNullPointerExceptionが出てしまいます。
バージョンは 0.9.2 です。
SMARTデプロイ(ホットデプロイ)を使わずに、S2コンテナ経由からMaiインターフェースを取得した場合はこのようなエラーは起きていませんでした。
しかし、http://d.hatena.ne.jp/rokugen/20061211 のページを見ながらSMART deployのための設定をして、SMART deploy 環境で動作させると、表題のような現象が出るようになりました。
なお、Seasar 2.4.7 での変更(※1)を考慮して、creator.dicon は次のようにしてあります。
<component class="org.seasar.mai.creator.MaiCreator" >
<property name="enableInterface">true</property>
</component>
※1 http://www.seasar.org/wiki/index.php?ChangeLog%2FSeasar#r7553794
この件について、何か分かることがあれば、アドバイスを頂きたいので、
どうぞ宜しくお願いします。
----
DEBUG 2007-08-22 21:37:34,734 [http-8080-1] END jp.co.tafc.sdcn.mai.SendMai#sendDefaultMail([E-MAIL ADDRESS DELETED]) Throwable:java.lang.NullPointerException
java.lang.NullPointerException
at org.seasar.mai.interceptors.S2MaiInterceptor.createMail(S2MaiInterceptor.java:112)
at org.seasar.mai.interceptors.S2MaiInterceptor.sendMail(S2MaiInterceptor.java:76)
at org.seasar.mai.interceptors.S2MaiInterceptor.invoke(S2MaiInterceptor.java:66)
at jp.co.tafc.sdcn.mai.SendMai$$EnhancedByS2AOP$$1d5e94f$$MethodInvocation$$sendDefaultMail0.proceed(MethodInvocationClassGenerator.java)
at org.seasar.framework.aop.interceptors.TraceInterceptor.invoke(TraceInterceptor.java:73)
at jp.co.tafc.sdcn.mai.SendMai$$EnhancedByS2AOP$$1d5e94f$$MethodInvocation$$sendDefaultMail0.proceed(MethodInvocationClassGenerator.java)
at jp.co.tafc.sdcn.mai.SendMai$$EnhancedByS2AOP$$1d5e94f.sendDefaultMail(SendMai$$EnhancedByS2AOP$$1d5e94f.java)
at jp.co.tafc.sdcn.web.accountManage.MailSendMemberConfPage.sendMail(MailSendMemberConfPage.java:236)
at jp.co.tafc.sdcn.web.accountManage.MailSendMemberConfPage.doSendMail(MailSendMemberConfPage.java:208)
at jp.co.tafc.sdcn.web.accountManage.MailSendMemberConfPage$$EnhancedByS2AOP$$1dcbe3d.$$doSendMail$$invokeSuperMethod$$(MailSendMemberConfPage$$EnhancedByS2AOP$$1dcbe3d.java)
at jp.co.tafc.sdcn.web.accountManage.MailSendMemberConfPage$$EnhancedByS2AOP$$1dcbe3d$$MethodInvocation$$doSendMail2.proceed(MethodInvocationClassGenerator.java)
at jp.co.tafc.sdcn.interceptor.LoginCheckInterceptor.invoke(LoginCheckInterceptor.java:30)
at jp.co.tafc.sdcn.web.accountManage.MailSendMemberConfPage$$EnhancedByS2AOP$$1dcbe3d$$MethodInvocation$$doSendMail2.proceed(MethodInvocationClassGenerator.java)
at org.seasar.extension.tx.RequiredInterceptor.invoke(RequiredInterceptor.java:48)
at jp.co.tafc.sdcn.web.accountManage.MailSendMemberConfPage$$EnhancedByS2AOP$$1dcbe3d$$MethodInvocation$$doSendMail2.proceed(MethodInvocationClassGenerator.java)
at org.seasar.framework.aop.interceptors.ThrowsInterceptor.invoke(ThrowsInterceptor.java:73)
at jp.co.tafc.sdcn.web.accountManage.MailSendMemberConfPage$$EnhancedByS2AOP$$1dcbe3d$$MethodInvocation$$doSendMail2.proceed(MethodInvocationClassGenerator.java)
at jp.co.tafc.sdcn.web.accountManage.MailSendMemberConfPage$$EnhancedByS2AOP$$1dcbe3d.doSendMail(MailSendMemberConfPage$$EnhancedByS2AOP$$1dcbe3d.java)
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:585)
at org.seasar.framework.util.MethodUtil.invoke(MethodUtil.java:73)
at org.seasar.framework.beans.impl.BeanDescImpl.invoke(BeanDescImpl.java:213)
at org.seasar.teeda.extension.html.impl.HtmlComponentInvokerImpl.invoke(HtmlComponentInvokerImpl.java:159)
at org.seasar.teeda.extension.html.impl.HtmlActionListener.processAction(HtmlActionListener.java:62)
at javax.faces.component.UICommand.broadcast(UICommand.java:149)
at org.seasar.teeda.extension.component.html.THtmlCommandButton.broadcast(THtmlCommandButton.java:73)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:192)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:117)
at org.seasar.teeda.core.lifecycle.impl.InvokeApplicationPhase.executePhase(InvokeApplicationPhase.java:29)
at org.seasar.teeda.core.lifecycle.AbstractPhase.execute(AbstractPhase.java:57)
at org.seasar.teeda.core.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:97)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:94)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.seasar.framework.container.hotdeploy.HotdeployFilter.doFilter(HotdeployFilter.java:63)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.seasar.framework.container.filter.S2ContainerFilter.doFilter(S2ContainerFilter.java:64)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.seasar.extension.filter.EncodingFilter.doFilter(EncodingFilter.java:69)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:852)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:584)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1508)
at java.lang.Thread.run(Thread.java:595)
Seasar-user メーリングリストの案内