18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
Sahi 5xx Error
Hi,
On simple change password page which has two textboxes for entering passwords and a save button, sahi throws the below exception error. Please advice ASAP.
Sahi 5xx Error
The web server threw a 500 Internal Server Error at Thu Dec 01 11:50:08 IST 2011.
- hide server message
+ show server message
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: Servlet execution threw an exception
com.vacava.filters.UTF8Filter.doFilter(UTF8Filter.java:20)
root cause
java.lang.Error: Unresolved compilation problems:
The import javax.mail cannot be resolved
The import javax.mail cannot be resolved
The import javax.mail cannot be resolved
The import javax.mail cannot be resolved
The import javax.mail cannot be resolved
The import javax.mail cannot be resolved
The import javax.mail cannot be resolved
The import javax.mail cannot be resolved
The import javax.mail cannot be resolved
javax.mail cannot be resolved to a type
javax.mail cannot be resolved to a type
Session cannot be resolved to a type
javax.mail.Session cannot be resolved to a type
Session cannot be resolved to a type
Session cannot be resolved to a type
The method getMailSessionObject() from the type MailBean refers to the missing type Session
MimeMessage cannot be resolved to a type
MimeMessage cannot be resolved to a type
Session cannot be resolved to a type
InternetAddress cannot be resolved to a type
InternetAddress cannot be resolved
InternetAddress cannot be resolved to a type
InternetAddress cannot be resolved
Message cannot be resolved
Message cannot be resolved
InternetAddress cannot be resolved to a type
Transport cannot be resolved
Session cannot be resolved to a type
The method getMailSessionObject() from the type MailBean refers to the missing type Session
MimeMessage cannot be resolved to a type
MimeMessage cannot be resolved to a type
Session cannot be resolved to a type
InternetAddress cannot be resolved to a type
InternetAddress cannot be resolved
Message cannot be resolved
InternetAddress cannot be resolved to a type
Transport cannot be resolved
Session cannot be resolved to a type
The method getMailSessionObject() from the type MailBean refers to the missing type Session
MimeMessage cannot be resolved to a type
MimeMessage cannot be resolved to a type
Session cannot be resolved to a type
Multipart cannot be resolved to a type
MimeMultipart cannot be resolved to a type
MimeBodyPart cannot be resolved to a type
MimeBodyPart cannot be resolved to a type
MimeBodyPart cannot be resolved to a type
MimeBodyPart cannot be resolved to a type
InternetAddress cannot be resolved to a type
InternetAddress cannot be resolved to a type
InternetAddress cannot be resolved
Message cannot be resolved
InternetAddress cannot be resolved to a type
InternetAddress cannot be resolved
Message cannot be resolved
Transport cannot be resolved
MimeMessage cannot be resolved to a type
MimeMessage cannot be resolved to a type
Session cannot be resolved to a type
Multipart cannot be resolved to a type
MimeMultipart cannot be resolved to a type
InternetAddress cannot be resolved to a type
InternetAddress cannot be resolved to a type
InternetAddress cannot be resolved
Message cannot be resolved
InternetAddress cannot be resolved to a type
InternetAddress cannot be resolved
Message cannot be resolved
MimeBodyPart cannot be resolved to a type
MimeBodyPart cannot be resolved to a type
MimeBodyPart cannot be resolved to a type
MimeBodyPart cannot be resolved to a type
Transport cannot be resolved
MessagingException cannot be resolved to a type
Message cannot be resolved to a type
Session cannot be resolved to a type
Session cannot be resolved
MimeMessage cannot be resolved to a type
InternetAddress cannot be resolved to a type
javax.mail.Message cannot be resolved
InternetAddress cannot be resolved
javax.mail.Message cannot be resolved
InternetAddress cannot be resolved
Transport cannot be resolved
com.vacava.business.beans.MailBean.<init>(MailBean.java:16)
com.vacava.licence.action.ValidationDetailsAction.execute(ValidationDetailsAction.java:331)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.vacava.filters.UTF8Filter.doFilter(UTF8Filter.java:20)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.30 logs.
Apache Tomcat/6.0.30
Browser: IE8
Sahi version: 3.5
Build : 2011-07-19
On simple change password page which has two textboxes for entering passwords and a save button, sahi throws the below exception error. Please advice ASAP.
Sahi 5xx Error
The web server threw a 500 Internal Server Error at Thu Dec 01 11:50:08 IST 2011.
- hide server message
+ show server message
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: Servlet execution threw an exception
com.vacava.filters.UTF8Filter.doFilter(UTF8Filter.java:20)
root cause
java.lang.Error: Unresolved compilation problems:
The import javax.mail cannot be resolved
The import javax.mail cannot be resolved
The import javax.mail cannot be resolved
The import javax.mail cannot be resolved
The import javax.mail cannot be resolved
The import javax.mail cannot be resolved
The import javax.mail cannot be resolved
The import javax.mail cannot be resolved
The import javax.mail cannot be resolved
javax.mail cannot be resolved to a type
javax.mail cannot be resolved to a type
Session cannot be resolved to a type
javax.mail.Session cannot be resolved to a type
Session cannot be resolved to a type
Session cannot be resolved to a type
The method getMailSessionObject() from the type MailBean refers to the missing type Session
MimeMessage cannot be resolved to a type
MimeMessage cannot be resolved to a type
Session cannot be resolved to a type
InternetAddress cannot be resolved to a type
InternetAddress cannot be resolved
InternetAddress cannot be resolved to a type
InternetAddress cannot be resolved
Message cannot be resolved
Message cannot be resolved
InternetAddress cannot be resolved to a type
Transport cannot be resolved
Session cannot be resolved to a type
The method getMailSessionObject() from the type MailBean refers to the missing type Session
MimeMessage cannot be resolved to a type
MimeMessage cannot be resolved to a type
Session cannot be resolved to a type
InternetAddress cannot be resolved to a type
InternetAddress cannot be resolved
Message cannot be resolved
InternetAddress cannot be resolved to a type
Transport cannot be resolved
Session cannot be resolved to a type
The method getMailSessionObject() from the type MailBean refers to the missing type Session
MimeMessage cannot be resolved to a type
MimeMessage cannot be resolved to a type
Session cannot be resolved to a type
Multipart cannot be resolved to a type
MimeMultipart cannot be resolved to a type
MimeBodyPart cannot be resolved to a type
MimeBodyPart cannot be resolved to a type
MimeBodyPart cannot be resolved to a type
MimeBodyPart cannot be resolved to a type
InternetAddress cannot be resolved to a type
InternetAddress cannot be resolved to a type
InternetAddress cannot be resolved
Message cannot be resolved
InternetAddress cannot be resolved to a type
InternetAddress cannot be resolved
Message cannot be resolved
Transport cannot be resolved
MimeMessage cannot be resolved to a type
MimeMessage cannot be resolved to a type
Session cannot be resolved to a type
Multipart cannot be resolved to a type
MimeMultipart cannot be resolved to a type
InternetAddress cannot be resolved to a type
InternetAddress cannot be resolved to a type
InternetAddress cannot be resolved
Message cannot be resolved
InternetAddress cannot be resolved to a type
InternetAddress cannot be resolved
Message cannot be resolved
MimeBodyPart cannot be resolved to a type
MimeBodyPart cannot be resolved to a type
MimeBodyPart cannot be resolved to a type
MimeBodyPart cannot be resolved to a type
Transport cannot be resolved
MessagingException cannot be resolved to a type
Message cannot be resolved to a type
Session cannot be resolved to a type
Session cannot be resolved
MimeMessage cannot be resolved to a type
InternetAddress cannot be resolved to a type
javax.mail.Message cannot be resolved
InternetAddress cannot be resolved
javax.mail.Message cannot be resolved
InternetAddress cannot be resolved
Transport cannot be resolved
com.vacava.business.beans.MailBean.<init>(MailBean.java:16)
com.vacava.licence.action.ValidationDetailsAction.execute(ValidationDetailsAction.java:331)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.vacava.filters.UTF8Filter.doFilter(UTF8Filter.java:20)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.30 logs.
Apache Tomcat/6.0.30
Browser: IE8
Sahi version: 3.5
Build : 2011-07-19
Comments
It looks like a combination of factors. First, when the application is accessed via the Sahi proxy there is an error. This error then causes your application to send out an admin notification email, which requires the mail related jars which do not seem configured correctly in your applications classpath. You can ignore this error if notifications are not important for you.
Coming back to the real issue, we need to see why Sahi caused an exception in the first place. Would it be possible to check your application through Sahi Pro and see if it works? We have added a lot of fixes to Sahi Pro which we have not yet merged back into the open source version.
Regards,
Narayan