3 Replies Latest reply on Jan 17, 2006 7:24 AM by k_gajan

    jboss+eclipse + MS Sqlserver 20000

    fresher

      hello everybody

      can anyone please tell me how i can resolve this error .i m using jboss with eclipse with database connectivity to MS sql server 2000.


      javax.naming.CommunicationException: Could not obtain connection to any of these urls: 127.0.0.1:1099. Root exception is javax.naming.CommunicationException: Failed to retrieve stub from server 127.0.0.1:1099. Root exception is java.io.EOFException
      at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2165)
      at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2634)
      at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:734)
      at java.io.ObjectInputStream.(ObjectInputStream.java:253)
      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:196)
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1227)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:527)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:520)
      at javax.naming.InitialContext.lookup(InitialContext.java:347)
      at com.Client.BeanClient.getHome(BeanClient.java:26)
      at com.Client.BeanClient.testBean(BeanClient.java:48)
      at com.Client.BeanClient.main(BeanClient.java:65)

        • 1. Re: jboss+eclipse + MS Sqlserver 20000
          stetsonab

          I received exactly the same error trying to set up an ejb client. PLEASE HELP! I AM STUCK!! Fresher, if you solved the problem in the meantime, can you let me know what you did? Thanks!!!

          • 2. Re: jboss+eclipse + MS Sqlserver 20000
            stetsonab

            Here is my exception: I am also using Jboss with exclipse with db connectivity to db2.

            javax.naming.CommunicationException: Failed to retrieve stub from server localhost:8180 [Root exception is java.io.EOFException]
            at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:209)
            at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1183)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:514)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
            at javax.naming.InitialContext.lookup(InitialContext.java:347)
            at com.wcom.rrs.remote.client.CATsClientBean.login(CATsClientBean.java:76)
            at com.wcom.rrs.remote.client.CATsClientBean.main(CATsClientBean.java:105)
            Caused by: java.io.EOFException
            at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2165)
            at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2631)
            at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:734)
            at java.io.ObjectInputStream.(ObjectInputStream.java:253)
            at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:197)

            • 3. Re: jboss+eclipse + MS Sqlserver 20000
              k_gajan

              I received exactly the same error trying to set up an ejb client.
              Since I am fresher , i got stuck in there

              When I ran the JBoss server , I got the exception

              10:41:54,562 WARN [HANamingService] Failed to start AutomaticDiscovery
              java.net.SocketException: error setting options
              at java.net.PlainDatagramSocketImpl.join(Native Method)
              at java.net.PlainDatagramSocketImpl.join(Unknown Source)
              at java.net.MulticastSocket.joinGroup(Unknown Source)

              after that I tried to make a method call from the client in the same machine as server [client -jar created]

              Then I got the following
              javax.naming.CommunicationException [Root exception is java.io.InvalidClassException: org.jboss.invocation.MarshallingInvokerInterceptor; unable to create instance]
              Lookup of java:/comp/env/ failed

              could any one help me out?