Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
2.0
-
None
-
Tomcat 5.5.12
-
Internet Explorer 6.0
-
MySQL 4.1.14
-
1.5
-
Windows XP SP2
Description
I got the following exception when inviting members.
It seems that there is a problem with the mail api because I also got the error described here: http://opensource2.atlassian.com/projects/roller/browse/ROL-756
mail.jar and activation.jar are in $CATALINA_HOME/common/lib and resource mail/Session is configured in roller.xml.
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: javax.mail.Session
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:516)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:423)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.roller.presentation.filters.BreadCrumbFilter.doFilter(BreadCrumbFilter.java:77)
org.roller.presentation.filters.RequestFilter.doFilter(RequestFilter.java:134)
org.roller.presentation.filters.PersistenceSessionFilter.doFilter(PersistenceSessionFilter.java:53)
org.roller.presentation.filters.SchemeEnforcementFilter.doFilter(SchemeEnforcementFilter.java:97)
org.roller.presentation.filters.CharEncodingFilter.doFilter(CharEncodingFilter.java:94)
root cause
java.lang.ClassCastException: javax.mail.Session
org.roller.presentation.website.actions.InviteMemberAction.notifyInvitee(InviteMemberAction.java:185)
org.roller.presentation.website.actions.InviteMemberAction.send(InviteMemberAction.java:151)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:276)
org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.roller.presentation.filters.BreadCrumbFilter.doFilter(BreadCrumbFilter.java:77)
org.roller.presentation.filters.RequestFilter.doFilter(RequestFilter.java:134)
org.roller.presentation.filters.PersistenceSessionFilter.doFilter(PersistenceSessionFilter.java:53)
org.roller.presentation.filters.SchemeEnforcementFilter.doFilter(SchemeEnforcementFilter.java:97)
org.roller.presentation.filters.CharEncodingFilter.doFilter(CharEncodingFilter.java:94)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.12 logs.