Results 1 to 2 of 2
  1. #1
    arunpatil is offline Member
    Join Date
    Aug 2010
    Rep Power

    Thumbs up javax.naming.NamingException:

    Hi all i am getting following error while executing one snippet.

    Exception in thread "main" javax.naming.NamingException: Failed to retrieve Naming interface [Root exception is Connection reset]
    at org.jboss.naming.HttpNamingContextFactory.getIniti alContext(
    at javax.naming.spi.NamingManager.getInitialContext(U nknown Source)
    at javax.naming.InitialContext.getDefaultInitCtx(Unkn own Source)
    at javax.naming.InitialContext.init(Unknown Source)
    at javax.naming.InitialContext.<init>(Unknown Source)
    at WARP.EJBSimulate.main(

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Rep Power


    "Connection reset", likely means this piece of code is attempting to load something from a remote service over the network, and that service does not understand this request, or is not allowing this request, such as authentication is required, and it is responding with a message that is not what is expected by this client.
    I would try to see if there is any logging on the server, or perhaps use a packet sniffer (e.g. wireshark) to inspect the traffic to see what exactly the server is returning, such as to look for an error message.

Similar Threads

  1. Replies: 2
    Last Post: 08-07-2009, 10:21 PM
  2. Replies: 4
    Last Post: 07-06-2009, 05:25 AM
  3. javax.naming.NameNotFoundException: bean not bound
    By Sirisha_24 in forum Enterprise JavaBeans (EJB)
    Replies: 2
    Last Post: 04-01-2009, 10:51 AM
  4. javax.bluetooth
    By ahtiven in forum New To Java
    Replies: 3
    Last Post: 01-13-2009, 02:54 PM
  5. javax.naming.NameNotFoundException: ejb/RatingEJB
    By Daniel in forum Enterprise JavaBeans (EJB)
    Replies: 2
    Last Post: 06-29-2007, 02:12 AM

Posting Permissions

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