Java mail does not retevire the mail for server

i am runing this code on tomcat 6
login.jsp
<%@ include file = "header.jsp" %>
<%@ include file = "navigation_l.jsp" %>
<form action = "logcheck.jsp" method = "Post">
<Div id=content>
<div class="splitcontentright" style="width: 550px; height: 313px">
          <h2>Login</h2><hr />
                    <table>
                    <tr>
<th>POP3 Server:</th>
<td><input type = "text" name = "pop" width = "150px"></td>
</tr>
                    <tr>
<th>SMTP Server:</th>
<td><input type = "text" name = "smtp"></td>
</tr>
                    <tr>
<th>Username</th>
<td><input type = "text" name = "uname"></td>
</tr>
<tr>
<th>Password</th>
<td><input type = "password" name = "pass"></td>
</tr>
<tr>
<th></th>
<td><input type ="submit" value = "Login" style="border: 0px ridge #004F4F; background-color: #f28aa4"/></td>
</tr>
</table>
</div>
</Div>
</form>
<%@ include file= "footer.jsp" %>
logcheck.jsp
<jsp:useBean id="log" class="src.LoginBean"/>
<jsp:setProperty name="log" property="pop" value="<%= request.getParameter("pop")%>"/>
<jsp:setProperty name="log" property="smtp" value="<%= request.getParameter("smtp")%>"/>
<jsp:setProperty name="log" property="uname" value="<%= request.getParameter("uname")%>"/>
<jsp:setProperty name="log" property="pass" value="<%= request.getParameter("pass")%>"/>
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<%
request.setAttribute("key",log);
RequestDispatcher reqdisp = request.getRequestDispatcher("/Login");
reqdisp.forward(request,response);
%>
</BODY>
</HTML>
loginbean
package src;
public class LoginBean
public LoginBean()
private String pop;
private String smtp;
private String uname;
private String pass;
public String getPop()
return pop;
public void setPop(String pop)
this.pop=pop;
public String getSmtp()
return smtp;
public void setSmtp(String smtp)
this.smtp=smtp;
public String getUname()
return uname;
public void setUname(String uname)
this.uname=uname;
public String getPass()
return pass;
public void setPass(String pass)
this.pass=pass;
loginservlet
package src;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.mail.*;
import javax.mail.internet.*;
import java.util.*;
import java.io.*;
import java.sql.*;
import net.sf.classifier4J.*;
import net.sf.classifier4J.bayesian.*;
import net.sf.classifier4J.summariser.*;
public class LoginServlet extends HttpServlet
static RequestDispatcher reqDisp=null;
static PrintWriter out = null;
public void doPost(HttpServletRequest req, HttpServletResponse res)throws ServletException,IOException
try
req.setAttribute("log","false");
out = res.getWriter();
LoginBean au = (LoginBean)req.getAttribute("key");
String popServer = au.getPop();
String smtpServer = au.getSmtp();
String popUser = au.getUname();
String popPassword = au.getPass();
//out.print(popUser);
if(popUser.isEmpty())
req.setAttribute("log","false");
reqDisp=req.getRequestDispatcher("/failure.jsp");
reqDisp.forward(req, res);
else if(popPassword.isEmpty())
req.setAttribute("log","false");
reqDisp=req.getRequestDispatcher("/failure.jsp");
reqDisp.forward(req, res);
else if(popServer.isEmpty())
req.setAttribute("log","false");
reqDisp=req.getRequestDispatcher("/failure.jsp");
reqDisp.forward(req, res);
else if(smtpServer.isEmpty())
req.setAttribute("log","false");
reqDisp=req.getRequestDispatcher("/failure.jsp");
reqDisp.forward(req, res);
else
Connection con = Generator.getAccessCon("mail_db");
PreparedStatement ps=con.prepareStatement("insert into login values(?,?,?,?)");
ps.setString(1,popServer);
ps.setString(2,smtpServer);
ps.setString(3,popUser);
ps.setString(4,popPassword);
ps.executeUpdate();
req.setAttribute("key",au);
req.setAttribute("log","true");
con.close();
reqDisp=req.getRequestDispatcher("/account.jsp");
reqDisp.forward(req, res);
//out.println("done "+ popServer);
catch(Exception e)
reqDisp=req.getRequestDispatcher("/failure.jsp");
reqDisp.forward(req, res);
System.out.println("Error ------> better luck next time ");
//e.printStackTrace();
public void doGet(HttpServletRequest req, HttpServletResponse res)throws ServletException,IOException
doPost(req,res);
inboxbean
package src;
import javax.mail.*;
import java.util.*;
public class InboxBean
InboxBean()
private String mid;
private String from;
private String subject;
private String content;
private Message msg;
private ArrayList al;
private String spamc;
private boolean empty = false;
public void setMid(String mid)
this.mid=mid;
public String getMid()
return mid;
public void setFrom(String from)
this.from=from;
public String getFrom()
return from;
public void setSubject(String subject)
this.subject=subject;
public String getSubject()
return subject;
public void setContent(String content)
this.content=content;
public String getContent()
return content;
public void setMsg(Message msg)
this.msg=msg;
public Message getMsg()
return msg;
public void setAl(ArrayList al)
this.al=al;
public ArrayList getAl()
return al;
public void setSpamc(String spamc)
this.spamc=spamc;
public String getSpamc()
return spamc;
public void setEmpty(boolean empty)
this.empty=empty;
public boolean getEmpty()
return empty;
******************************

Please find and read the [JavaMail FAQ|http://java.sun.com/products/javamail/FAQ.html]. Then post the protocol trace.

Similar Messages

  • HT6030 I can't install the update for Mail for Mavricks because it says "This volume does not meet the requirements for this update"? It's my iMac hardrive with 791GB available.

    I've recently installed Mavricks on my iMac and Mail went completely rouge on me. Tried switching to using Gmail directly but it's a terrbile user experience so I decided to install the new Mail update for Mavricks but have been geting this message. "This volume does not meet the requirements for this update"? My hardrive has 791GB available.

    Hi Allan,
    I thought I did explain it, but sorry if that wasn't clear.
    I get the little pop-up alert that tells me I have a new messages (Shows the sender and an abreviated version of the message) but those actual messages sometimes don't appear in my inbox until up to an hour later.
    Jason

  • Hi all, I upgraded my MBP to Lion , but on the screen where i need to type my password, click  on my photo and it does not appear the place for me to type my password and it stay stuck there. Can anyone solve this problem for me?

    Hi all, I upgraded my MBP to Lion , but on the screen where i need to type my password, click  on my photo and it does not appear the place for me to type my password and it stay stuck there. Can anyone solve this problem for me?

    Reboot the machine holding Command and r keys down, you'll boot into Lion Recovery Partition
    In there will be Disk Utility, use that to select your Lion OS X Partition and Repair Permissions.
    After that is done reboot the machine and see if you can log in.
    If not repeat the above steps to get into Lion Recovery, get online and reinstall Lion again, it will overwrite the installed version and hopefully after that it wil work.
    Reboot and try again.
    If not follow my steps to create a Snow Leopard Data Recovery drive, then option boot from it and grab a copy of your files off the machine.
    Then reinstall all your programs onto the external drive like setting up a new machine, then use Disk Utility to erase the entire internal boot drive (select the drive media on the far left, not the partiton slightly indented) format Option: GUID , 1 partition OS X Extended and then use Carbon Copy Cloner to clone the external to the newly formatted internal drive. Once that is finished reboot and disconnect the external drive.
    Once you go that, boot into Snow Leopard and update to 10.6.8, use the AppStore and option click on Purchases and download Lion again and install.
    Lots of work, but there is no Lion disks.
    https://discussions.apple.com/message/16276201#16276201

  • The report does not accept the value for apps.fnd_profile.value('USER_ID')

    Hi,
    I followed the below note and added a report to my SSHR menu.
    How To Add A Report To A 11i Self Service Menu [ID 334847.1]
    In my report , I have a condition in the query
    and a.created_by =apps.fnd_profile.value('USER_ID')
    When the report is submitted as a request , it works fine., however the same report when called from the self service page does not accept any value for apps.fnd_profile.value('USER_ID') .
    Is there a workaround to handle this problem.
    regards

    hi,
    I had already tried the option apps.fnd_global.USER_ID too.
    However it does not accept the value for apps.fnd_global.USER_ID.
    We want to call the reports in SSHR using oaf and at the same time the records that are pending for approval created by the employee should only be visible.
    regards
    Maya

  • Hi, my apple ID verification email does not contain the link for me to click in order to verify my account. Re-submitting has not worked, what can i do to verify/activate my account

    Hi, my apple ID verification email does not contain the link for me to click in order to verify my account. Re-submitting has not worked, what can i do to verify/activate my account in order to access Icloud?

    If you want to change your iCloud ID or password on your phone go to Settings>iCloud and tap Delete Account, then sign back in with your updated information.  Note: this only deletes the account and any synced data from your phone, not from iCloud.  Provided you are signing back into the same account and not changing accounts it will be synced back to your device when you sign back in.

  • 10.5.7 This volume does not meet the requirements for this update.

    First, 10.5.7 is not showing up in software update. I downloaded both the delta and combo 10.5.7 updates and they both give me "This volume does not meet the requirements for this update." I've done all the requisite stuff, permissions, volume check, reset PRAM, etc. I've downloaded the updates several times, and they worked on my 2008 iMac and 2007 Macbook Pro, so I know they work. I've searched and searched and can't find a resolution. It's as if there is some signature written to my boot volume that is preventing this update. Applecare was of no help either. Any ideas?

    Hi! Im new to this forum and i really dont know if this is the right place for me to say this but i really need some help! I have a MAc OS x 10.5.7 and had bootcamp installed on it so i could run both windows and mac! Over the last few days ive recieved a trojan virus on my windows... so i deleted my partition on mac so i basically just had Mac... now i am trying to reinstall my partition but disk utility is saying that i have an invalid volume free block count as it should be 41189365 instead of 41182017....argh! ive read the help stuff on it and it suggests me removing everything off my mac... but will i need 2 still have the mac install disc 1 to hand? as i have currently misplaced this and im ripping my hair out! Ive never had problems with my Imac until now and im really worried! I could really do with the help! Thanks Sam

  • Im trying to install a new application on my mac but it keeps on coming up with 'The volume of this disk does not meet the requirements for this update' any ideas how to solve this?

    I have recently fully updated my mac to 10.8.2 and i am trying to install a small facebook application but every time i come to chose the disk it says ' OS X facebook developer preview can not be installed on this disk. This volume of this disk does not meet the requirements for this update' any ideas on how to get round this?
    thanks

    That may be the new Mountain Lion "sandbox" protective software kicking in, possibly, because ML "thinks" that App doesn't meet ML's new strict security requirements.   A common phenomena.  If you feel the 3rd party App is really OK, you can override this feature and install the new App by holding down the Command key when you click to install the new App.  That's one possibility for the error message appearing.  If not, another possibility is that that Developer Preview software package requires some previous piece of software be installed prior to downloading this Preview.  You would have to check the Facebbok websiste's Developer Forums for help if this is the case.
    Hope this helps

  • Mac OS X Update Combined can't be installed on this disk. This volume does not meet the requirement for this update?

    Hello everyone,
    I just purchased MBP 2.6 Ghz running Lion 10.7.3 and I am trying to install the Combo Update 10.7.4.
    After I launch the installer at the Destination Select step I get this message:
    Mac OS X Update Combined can't be installed on this disk. This volume does not meet the requirement for this update.
    The sharing and permission on Macintosh HD are "Read & Write" for system, wheel and everyone.
    Please Help
    Thanks

    Welcome to Apple Communities
    If it's a new MacBook Pro (2012), you have to update in  > Software Update. They need a special version

  • OS X update (10.9.4) can't be installed on this disk This volume does not meet the requirements for this update.

    I have the mac with following specs I need to update the OS X 10.9.4. I tried OS X Mavericks 10.9.4 Update to install manually but it says "OS X update can't be installed on this disk This volume does not meet the requirements for this update." Please help me.

    Click here and run the combo updater. The one you previously downloaded requires 10.9.3.
    (111238)

  • Tried to install Mountain Lion and it comes up with the following message  Mac OS X Update Combined can't be installed on this disk. This volume does not meet the requirements for this update. My laptop is using 10.7.3

    Tried to install Mountain Lion and it comes up with the following message  Mac OS X Update Combined can't be installed on this disk. This volume does not meet the requirements for this update. My laptop is using 10.7.3

    Go to  > Software Update and install updates. Finally, go to App Store, buy Mountain Lion and install. Open > http://www.apple.com/osx/specs/

  • Getting this:You cannot install Security Update 2011-002 on this volume. This volume does not meet the requirements for this update?

    I am getting this message: You cannot install Security Update 2011-002 on this volume. This volume does not meet the requirements for this update?
    is there a way to install this update?

    Hello
    More information would be useful, for example which Mac OS are you running.
    On the left menu item  About this Mac provides useful information.
    Also did you use Software Update to determine the update?
    Using Software Update can ensure you download and install the correct package for your particular Mac and OS version.

  • OS X 10.8.1 update cannot be installed on this disk. This volume does not meet the requirements for this update.

    HI
    I had installed mountain lion on my MBP 13" early 2012, but it has lots of issue, when i tryed to up date to 10.8.1 it shows the error "OS X update cannot be installed on this disk. This volume does not meet the requirements for this update"
    if i run the software update nothis is showing, current os version is 10.8

    This did not work for me.
    Note, that at one point the Apple developer knew exactly what the problem was and decided not to let us know. If we were tole what the problem was we woud have an idea of how to proceed.

  • My computer does not meet the requirements for iTunes 7.7

    Okay, so I think all these problems that I'm having are because my new computer does not meet the requirements for iTunes 7.7.
    The requirements are listed here: http://www.apple.com/itunes/download/
    I checked my system and I have:
    1. 1.60 GHz instead of 2GHz
    2. 511 MB RAM instead of 512 MB RAM
    I have no idea how to check MB for video RAM or MHz. Since it's not shown in system I'm assuming that this computer doesn't have any.
    The system requirements compared to mine are just off by a bit, but could this still be the problem?
    Also, could I use an older version of iTunes that will work with my system & could you please post the link for the download.
    Thanks in advance.

    Hi,
    Firstly, please let us know more details about the issue, such as:
    1. What is your network environment, workgroup or domain?
    2. How do you implement DirectAccess?
    Meanwhile, regarding the requirements, please see
    DirectAccess Requirements.
    More information:
    Networking and Access Technologies-
    DirectAccess
    Hope this helps.
    Jeremy Wu
    TechNet Community Support

  • Hard drive "does not meet the requirements" for system updates

    Hi,
    I'm running 10.2 and I'm trying to update my computer to the more recent version, except that I've gone through the update downloads on this site and anything higher than 10.3 tell me I need to run 10.3 to run it. When I tried to upgrade to 10.3, I was told that I "cannot install this software on this disk. This volume does not meet the requirements for this update". What does that mean and how do I rectify the problem? Thank you very much in advance.
    - Jen

    Hi Kappy! I have a similar problem: I had a problem in the past and had to re-install the system. I now have a previous sytem folder on my mac which I do not dare touch. I used to have a later version than 10.3.3 (I cannot remember which). I am now trying to update with the 10.3.9 combo update (just bought a new ipod) and I get the famous "does not meet the requirements" message. I have repaired permissions and done Onyx maintenance - still nothing. I wonder whether somehow the installer detects that there is already some newer component installed and does not want to re-install. I am awfully frustrated... Thanks in advance for your help.

  • HT1338 OS X Update can't be installed on this disk. This volume does not meet the requirements for this update.

    I am trying to update Mountain Lion to 10.8.2, but I get the error message:
    OS X Update can't be installed on this disk. This volume does not meet the requirements for this update.
    When trying to install on my hard drive?

    Welcome to the Apple Support Communities
    If you have the Late 2012 Mac mini, it requires a special OS X update that it's not available. Wait until Apple releases this update

  • HT4623 i just bought an iPad from a friend. I think is generation 1 or 2 not sure where to look for this. Bottom line, I would like to update it to iOS7. Is this possible?  It does not have the option for software update.

    i just bought an iPad from a friend. I think is generation 1 or 2 not sure where to look for this. Bottom line, I would like to update it to iOS7. Is this possible?  It does not have the option for software update.

    Identify Your iPad
    http://www.ifixit.com/Info/ID-your-iPad
    If you have an iPad 1, the max iOS is 5.1.1. For newer iPads, the current iOS is 7.0.4. The Settings>General>Software Update only appears if you have iOS 5.0 or higher currently installed.
    You can no longer update to iOS 6.x, or down grade the iOS.
    iOS 5: Updating your device to iOS 5 or Later
    http://support.apple.com/kb/HT4972
    How to install iOS 6
    http://www.macworld.com/article/2010061/hands-on-with-ios-6-installation.html
    iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    If you are currently running an iOS lower than 5.0, connect the iPad to the computer, open iTunes. Then select the iPad under the Devices heading on the left, click on the Summary tab and then click on Check for Update.
    Tip - If connected to your computer, you may need to disable your firewall and antivirus software temporarily.  Then download and install the iOS update. Be sure and backup your iPad before the iOS update. After you update an iPad (except iPad 1) to iOS 6.x, the next update can be installed via wifi (i.e., not connected to your computer).
    Tip 2 - If you're updating via wifi, place your iPad close to your router to preclude getting a corrupted download.
    How to Upgrade to iOS 7
    The iOS 7.0 update requires around 2.5 GB of storage space, so if your iPad is almost full, you may need to clear up some space. You can check your available space in Settings -> General -> Usage.
    There are two ways to upgrade to iOS 7: You can use your Wi-Fi connection, or you can connect your iPad to your PC and update through iTunes. We'll go over each method.
    To upgrade using Wi-Fi:
    Note: If your iPad's battery is under 50%, you will want to plug it into your charger while performing the update.
    Go into the iPad's Settings.
    Locate and tap "General" from the menu on the left.
    The second option from the top is "Software Update". Tap this to move into the update settings.
    Tap "Download and Install". This will start the upgrade, which will take several minutes and will reboot your iPad during the process. If the Download and Install button is grayed out, trying clearing up some space. The space required by the update is mostly temporary, so you should gain most of it back after iOS 7 is installed.
    Once the update is installed, you may have to run through the initial steps of setting up your iPad again. This is to account for new features and settings.
    To upgrade using iTunes:
    First, connect your iPad to your PC or Mac using the cable provided when you purchased your device. This will allow iTunes to communicate with your iPad.
    You will also need the latest version of iTunes. Don't worry, you will be prompted to download the latest version when you launch iTunes. Once it installs, you may be asked to setup iCloud by logging into your iTunes account. If you have a Mac, you may be prompted on whether or not you want to enable the Find my Mac feature.
    Now you are ready to begin the process:
    If you upgraded iTunes earlier, go ahead and launch it. (For many, it will launch automatically when you plug in your iPad.)
    Once iTunes is launched, it should automatically detect that a new version of the operating system exists and prompt you to upgrade to it. Choose Cancel. Before updating, you will want to manually sync your iPad to make sure everything is up to date.
    After canceling the dialog box, iTunes should automatically sync with your iPad.
    If iTunes doesn't automatically sync, you can manually do it by selecting your iPad within iTunes, clicking on the File menu and choosing Sync iPad from the list.
    After your iPad has been synced to iTunes, select your iPad within iTunes. You can find it on the left side menu under Devices.
    From the iPad screen, click on the Update button.
    After verifying that you want to update your iPad, the process will begin. It takes a few minutes to update the operating system during which time your iPad may reboot a few times.
    After updating, you may be asked a few questions when your device finally boots back up. This is to account for new settings and features.
     Cheers, Tom

Maybe you are looking for

  • G/l account validation

    hi iam doing an enhancement in which i have to validate whether a g/l account that has been entered by the user in transaction fb50 is valid for the cost center and the profit center that has also been entered. i.e validate for a given profit center

  • Pricing calculation issue.

    Hi, I have a specific issue regarding pricing:- The requirement is that the following entry should be passed in accounting while billing:- Dr.  Revenue               100 Cr.  AR                         100 Dr.  Cost of sales         5 Cr.  TAX payabl

  • Indesign und Incopy CC starten auf Win 7 und Win 8 Systemen nicht

    Ich habe das Problem, dass Indesign CC sowie Incopy CC beim Starten auf allen meinen Systemen abstürzen (Splashbildschirm erscheint, dann folgt eine Windows-Fehlermeldung - bei 32- und 64-Bit Version). Die Adobe Hilfe, es unter einem neuen Admin-Kont

  • Button action bypass validation without using Immediate=true

    I have a Form in a page, and a "Query" button to popup a dialog for user to search some information, and help user to fill-in some fields. I want the "Query" button to ignoral all the validations in the Form (e.g.: required fields). I tried to set th

  • SAP ME 5.2.4 Deployment fails

    Hi, During deployment of SAP ME 5.2.4 I get an error. The details of the error are: Details message(s): Software component ME deployment messages: Deployment of archive seva106\sapmnt\trans\EPS\in\SAPME.sca for component sap.com/ME aborted Detailed m