我使用JBOSS Seam 2.0,应用程序服务器是JBoss 6 ..同时发送邮件
抛出java.lang.UnsupportedOperationException ...请帮助..如何解决此问题
例外是
MailBean中的异常::: sendMail - > :java.lang.UnsupportedOperationException 在com.ey.SkillTracker.bean.administration.MailBean.sendMail(MailBean.java:572)[:] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_13] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_13] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_13] at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_13] 在org.jboss.seam.util.Reflections.invoke(Reflections.java:22)[:2.2.0.GA] at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)[:2.2.0.GA] 在org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)[:2.2.0.GA] at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)[:2.2.0.GA] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)[:2.2.0.GA] 在org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)[:2.2.0.GA] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)[:2.2.0.GA] at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)[:2.2.0.GA] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)[:2.2.0.GA] at org.jboss.seam.core.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:32)[:2.2.0.GA] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)[:2.2.0.GA] 在org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)[:2.2.0.GA] 在org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)[:2.2.0.GA] 在org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)[:2.2.0.GA] at com.ey.SkillTracker.bean.administration.MailBean _ $$ _ javassist_seam_9.sendMail(MailBean _ $$ _ javassist_seam_9.java)[:] at com.ey.SkillTracker.bean.administration.CompetencyMappingBean.sendMailToEmployees(CompetencyMappingBean.java:3442)[:] at com.ey.SkillTracker.bean.administration.CompetencyMappingBean.notifyEmployees(CompetencyMappingBean.java:4025)[:] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_13] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_13] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_13] at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_13] 在org.jboss.seam.util.Reflections.invoke(Reflections.java:22)[:2.2.0.GA] at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)[:2.2.0.GA] 在org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)[:2.2.0.GA] at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)[:2.2.0.GA] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)[:2.2.0.GA] 在org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)[:2.2.0.GA] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)[:2.2.0.GA] at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)[:2.2.0.GA] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)[:2.2.0.GA] 在org.jboss.seam.security.SecurityInterceptor.aroundInvoke(SecurityInterceptor.java:163)[:2.2.0.GA] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)[:2.2.0.GA] at org.jboss.seam.core.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:32)[:2.2.0.GA] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)[:2.2.0.GA] 在org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)[:2.2.0.GA] 在org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)[:2.2.0.GA] 在org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)[:2.2.0.GA] at com.ey.SkillTracker.bean.administration.CompetencyMappingBean _ $$ _ javassist_seam_14.notifyEmployees(CompetencyMappingBean _ $$ _ javassist_seam_14.java)[:] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_13] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_13] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_13] at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_13] at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:335)[:1.0_02.CR2] 在org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:348)[:1.0_02.CR2] 在org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)[:1.0_02.CR2] 在org.jboss.el.parser.AstValue.invoke(AstValue.java:96)[:1.0_02.CR2] 在org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)[:1.0_02.CR2] at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)[:1.1.15.B1] at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:84)[:2.0.3-] at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:98)[:2.0.3-] 在javax.faces.component.UICommand.broadcast(UICommand.java:311)[:2.0.3-] at org.ajax4jsf.component.AjaxActionComponent.broadcast(AjaxActionComponent.java:55)[:3.3.1.GA] 在org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:321)[:3.3.1.GA] 在org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:296)[:3.3.1.GA] 在org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:253)[:3.3.1.GA] 在org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:466)[:3.3.1.GA] at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:77)[:2.0.3-] at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)[:2.0.3-] 在com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:114)[:2.0.3-] 在javax.faces.webapp.FacesServlet.service(FacesServlet.java:308)[:2.0.3-] 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324)[:6.0.0.Final] 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)[:6.0.0.Final] 在com.ey.SkillTracker.bean.session.SessionIdFilter.doFilter(SessionIdFilter.java:73)[:] 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)[:6.0.0.Final] 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)[:6.0.0.Final] 在jcifs.http.NtlmHttpFilter.doFilter(NtlmHttpFilter.java:118)[:] 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)[:6.0.0.Final] 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)[:6.0.0.Final] 在org.jboss.seam.servlet.SeamFilter $ FilterChainImpl.doFilter(SeamFilter.java:83)[:2.2.0.GA] 在org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)[:2.2.0.GA] 在org.jboss.seam.servlet.SeamFilter $ FilterChainImpl.doFilter(SeamFilter.java:69)[:2.2.0.GA] 在org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)[:2.2.0.GA] 在org.jboss.seam.servlet.SeamFilter $ FilterChainImpl.doFilter(SeamFilter.java:69)[:2.2.0.GA] at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)[:2.2.0.GA] 在org.jboss.seam.servlet.SeamFilter $ FilterChainImpl.doFilter(SeamFilter.java:69)[:2.2.0.GA] 在org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)[:2.2.0.GA] 在org.jboss.seam.servlet.SeamFilter $ FilterChainImpl.doFilter(SeamFilter.java:69)[:2.2.0.GA] 在org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)[:3.3.1.GA] 在org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)[:3.3.1.GA] 在org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)[:3.3.1.GA] 在org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)[:3.3.1.GA] 在org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)[:2.2.0.GA] 在org.jboss.seam.servlet.SeamFilter $ FilterChainImpl.doFilter(SeamFilter.java:69)[:2.2.0.GA] 在org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)[:2.2.0.GA] 在org.jboss.seam.servlet.SeamFilter $ FilterChainImpl.doFilter(SeamFilter.java:69)[:2.2.0.GA] at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)[:2.2.0.GA] 在org.jboss.seam.servlet.SeamFilter $ FilterChainImpl.doFilter(SeamFilter.java:69)[:2.2.0.GA] 在org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)[:2.2.0.GA] 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)[:6.0.0.Final] 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)[:6.0.0.Final] 在org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)[:6.0.0.Final] 在org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)[:6.0.0.Final] 在org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181)[:6.0.0.Final] 在org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)[:6.0.0.Final] 在org.jboss.modcluster.catalina.CatalinaContext $ RequestListenerValve.event(CatalinaContext.java:285)[:1.1.0.Final] 在org.jboss.modcluster.catalina.CatalinaContext $ RequestListenerValve.invoke(CatalinaContext.java:261)[:1.1.0.Final] 在org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88)[:6.0.0.Final] 在org.jboss.web.tomcat.security.SecurityContextEstablishmentVa
答案 0 :(得分:1)
我有Seam 2.2.0和JBoss 6的一些问题。但是有新版本的Seam:2.2.1。当我看到该版本时,所有示例都开始使用JBoss 6.
也许你的解决方案是升级Seam框架?至少你可以查看2.2.1库版本中的邮件示例,它应该可以工作。