1 Reply Latest reply on Jul 20, 2003 5:18 PM by djbobo

    Cannot complete exs.52a and c - please HLP

    djbobo

      While working with these two, I am getting these nasty exceptions. It seems that .getEJBHome() and resurrecting EJBObject by the handle both produce this problem. In this same setup, I can quite happily run other stuff, incl. ex52a.

      Below is the output. I must be doing something wrong - although, JNDI settings are correct. I access the server from my laptop, both running win2k_prof.
      Thanks for your time.

      run.client_52a:
      [java] An exception has occured:
      [java] java.lang.reflect.UndeclaredThrowableException: javax.naming.Communi
      cationException: Receive timed out. Root exception is java.io.InterruptedIOExce
      ption: Receive timed out
      [java] at java.net.PlainDatagramSocketImpl.receive(Native Method)
      [java] at java.net.DatagramSocket.receive(DatagramSocket.java:392)
      [java] at org.jnp.interfaces.NamingContext.discoverServer(NamingContext
      .java:1038)
      [java] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:
      1127)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:47
      8)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:47
      1)
      [java] at javax.naming.InitialContext.lookup(InitialContext.java:350)
      [java] at org.jboss.proxy.ejb.GenericEJBInterceptor.getEJBHome(GenericE
      JBInterceptor.java:88)
      [java] at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(Statel
      essSessionInterceptor.java:84)
      [java] at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:8
      5)
      [java] at $Proxy1.getEJBHome(Unknown Source)
      [java] at com.titan.clients.Client_52a.getTheEJBHome(Client_52a.java:59
      )
      [java] at com.titan.clients.Client_52a.main(Client_52a.java:35)

      BUILD SUCCESSFUL
      Total time: 13 seconds
      F:\jboss\Titan-JBoss-3.2-12d\workbook\ex05_2>ant run.client_52c
      Buildfile: build.xml

      prepare:

      compile:

      ejbjar:

      run.client_52c:
      [java] Testing serialization of EJBObject handle
      [java] Writing handle to file...
      [java] Reading handle from file...
      [java] Acquiring reference using deserialized handle...
      [java] java.rmi.ServerException: Could not get EJBObject; nested exception
      is:
      [java] javax.naming.CommunicationException: Receive timed out [Root exc
      eption is java.io.InterruptedIOException: Receive timed out]
      [java] javax.naming.CommunicationException: Receive timed out. Root except
      ion is java.io.InterruptedIOException: Receive timed out
      [java] at java.net.PlainDatagramSocketImpl.receive(Native Method)
      [java] at java.net.DatagramSocket.receive(DatagramSocket.java:392)
      [java] at org.jnp.interfaces.NamingContext.discoverServer(NamingContext
      .java:1038)
      [java] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:
      1127)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:47
      8)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:47
      1)
      [java] at javax.naming.InitialContext.lookup(InitialContext.java:350)
      [java] at org.jboss.proxy.ejb.handle.EntityHandleImpl.getEJBObject(Enti
      tyHandleImpl.java:93)
      [java] at com.titan.clients.Client_52c.main(Client_52c.java:59)

        • 1. Re: Cannot complete exs.52a and c - please HLP
          djbobo

          Dear All,

          after spending some time scanning this and other forums, I've come across the problem: the jar jbossjmx-ant.jar on the server (!) has the jndi.properties included. This one supercedes whatever I supply for the provider url. I've changed jnp://localhost:1099 to jnp://{my-server-name}:1099 and restarted JBoss - all ex's worked.

          Moderator: There seem to be lots of confusion related to this issue - won't it be worth putting in FAQs?