Results 1 to 2 of 2
  1. #1
    hartford123 is offline Member
    Join Date
    Oct 2010
    Posts
    1
    Rep Power
    0

    Default java exception 0 >= 0

    While sending email using Java, I got exception and when I print the exception message showed as "0 >= 0" what is this exception message means, I googled but couldn't find the answer. me.getMessage() is printing
    Error Messages: 0 >= 0

    the email is existing in outlook directory and is valid email( I just replaced with fake email here) any clues of this exception??


    Java Code:
    ..            Transport.send(msg);
                
                log.addMsg("Sent Message to: "+ mailto+" Completed...");
               	log.print();
               	
    		} catch (Exception me) {
    			StringBuffer errMsg = new StringBuffer(0);
    			errMsg.append("Send to: " + this.mailto);
    			errMsg.append("\n");
    			errMsg.append("Error Messages: " +   me.getMessage());
                                  }
    I got the output as

    21 Oct 2010 08:01:26,658 ERROR -
    Send to: xx.yy@abc.com
    Error Messages: 0 >= 0


    thanks
    SK

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,091
    Rep Power
    20

    Default

    Print the stack trace, not just the message.
    You are losing a ton of information because you are only printing the message.

Similar Threads

  1. Replies: 4
    Last Post: 10-25-2010, 07:42 PM
  2. Illegalthreadstate exception 110 Java ME
    By Grimmjow in forum New To Java
    Replies: 0
    Last Post: 05-22-2010, 02:56 AM
  3. SQL Exception from Java program
    By jyotigupta6 in forum New To Java
    Replies: 1
    Last Post: 10-28-2008, 06:27 PM
  4. SQL Exception from java program
    By jyotigupta6 in forum New To Java
    Replies: 3
    Last Post: 10-27-2008, 06:35 PM
  5. Replies: 1
    Last Post: 03-08-2008, 06:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •