java.lang.IllegalStateException: Not connected

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • oll3i
    Contributor
    • Mar 2007
    • 679

    java.lang.IllegalStateException: Not connected

    Hello,
    i get suddenly an error, it was already working
    java.lang.Illeg alStateExceptio n: Not connected
    Code:
    public void login(String u, String p) {
       
            
            Properties props = System.getProperties();  
                props.setProperty("mail.store.protocol", "imap");
    
    props.setProperty("mail.imap.host", "mail.p.pl");
    props.setProperty("mail.imap.port", "143");
    
    
            try {
                      Session session = Session.getDefaultInstance(props, null);
    
                
                       
                store = session.getStore("imap");
                store.connect("mail.p.pl",u,p);
  • oll3i
    Contributor
    • Mar 2007
    • 679

    #2
    i fixed that. thank You for your time

    Comment

    • Rabbit
      Recognized Expert MVP
      • Jan 2007
      • 12517

      #3
      Can you post how you resolved the issue? It may be of help to other people.

      Comment

      Working...