Hi I am experiencing a problem with applets that access Orion JNDI that causes the JRE to enter a blocked or locked state after the applet has been destroyed.  This means that no future applets can be loaded with the JRE.  It seems that the problem has occurred before(see link http://www.mail-archive.com/orion-interest@orionserver.com/msg05569.html) but without any answer.  If anyone has applets getting JNDI context working fine using JRE I would be interested, I have included the code of a very simple applet that demonstrates the problem on IE 5 or IE 5.5.  A refresh on a page with this applet will cause the JRE to lock.
 
 
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import javax.swing.*;
import java.util.Hashtable;
import javax.naming.*;
 
public class SimpleApplet extends JApplet {
 

  public void init() {
    try {
      System.out.println("getting connection");
      // Get the context
      InitialContext context = new InitialContext();
      System.out.println("Got connection");
 
      context.close();
      context = null;
    }
    catch(Exception e) {
      e.printStackTrace();
    }
  }
}
 
 
 
 

Reply via email to