Service Virtualization

How to use EJB step in Devtest

  • 1.  How to use EJB step in Devtest

    Posted Aug 06, 2015 11:04 AM
      |   view attached

    Hi I am trying to perform tutorial 7 from lisa guide.

     

    I have added the EJB step and provided the "Localhost" as server name where demoserver is running.

     

    When I clicked on next, EJB step took some time to get the objects by connecting to server. But at end I got below error

     

    Please help how to sort this issue.

     

     

    javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:8080 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to retrieve stub from server localhost:8080 [Root exception is java.io.EOFException]]

      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1562)

      at org.jnp.interfaces.NamingContext.list(NamingContext.java:868)

      at org.jnp.interfaces.NamingContext.list(NamingContext.java:861)

      at javax.naming.InitialContext.list(Unknown Source)

      at com.itko.lisa.ejb.JNDINameServiceBrowserPanel.iterateContext(JNDINameServiceBrowserPanel.java:137)

      at com.itko.lisa.ejb.JNDINameServiceBrowserPanel.refresh(JNDINameServiceBrowserPanel.java:44)

      at com.itko.lisa.ejb.Step2HomeName$3.doCallback(Step2HomeName.java:444)

      at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:194)

      at java.lang.Thread.run(Unknown Source)

    Caused by: javax.naming.CommunicationException: Failed to retrieve stub from server localhost:8080 [Root exception is java.io.EOFException]

      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:268)

      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1533)

      ... 8 more

    Caused by: java.io.EOFException

      at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)

      at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source)

      at java.io.ObjectInputStream.readStreamHeader(Unknown Source)

      at java.io.ObjectInputStream.<init>(Unknown Source)

      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:255)

      ... 9 more