1 Reply Latest reply on Apr 24, 2003 9:57 AM by petertje

    A problem about security when i run it

    yjyang

      I'm a new comer for the jaas.And This is my first tested example about Security.But when i run it ,it appeared the errors as follow:
      [java] This is a bank!
      [java] javax.naming.CommunicationException: Receive timed out. Root except
      ion is java.net.SocketTimeoutException: Receive timed out
      [java] at java.net.PlainDatagramSocketImpl.receive(Native Method)
      [java] at java.net.DatagramSocket.receive(DatagramSocket.java:670)
      [java] at org.jnp.interfaces.NamingContext.discoverServer(NamingContext
      .java:1014)
      [java] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:
      1103)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:47
      0)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:46
      3)
      [java] at javax.naming.InitialContext.lookup(InitialContext.java:347)
      [java] at banking.BankClient.main(BankClient.java:18)

      PLease tell me what's wrong with it!Thanks
      Do i need to modify some configuration files?