1 Reply Latest reply on Feb 13, 2013 1:45 AM by kaustuv.maji

    jboss 5.1.2 remoting client exception from osgi ejb client app

    kaustuv.maji

      Hi All,

       

      Am facing problem during remote calling ejb service deployed in jboss 5.1.2 from my osgi client app following is a log stracktrace . I'm able to remote call my ejb service from standalone

       

      Caused by: java.lang.reflect.UndeclaredThrowableException

           at $Proxy52.create(Unknown Source)

      Caused by: java.lang.Exception: Can not make remoting client invocation due to not being connected to server.

                at org.jboss.remoting.Client.invoke(Client.java:2075)

                at org.jboss.remoting.Client.invoke(Client.java:879)

                at org.jboss.invocation.unified.interfaces.UnifiedInvokerHAProxy.invoke(UnifiedInvokerHAProxy.java:220)

                at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:416)

                at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:248)

                at org.jboss.proxy.TransactionStickyInterceptor.invoke(TransactionStickyInterceptor.java:40)

                at org.jboss.proxy.ejb.RetryInterceptor.invoke(RetryInterceptor.java:177)

                at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)

                at org.jboss.proxy.ejb.SecurityContextInterceptor.invoke(SecurityContextInterceptor.java:64)

                at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:68)

                at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:184)

                at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101)

                ... 20 more

       

       

      osgi client app contains following jboss 5.1.2 client jars in it's classpath

       

          jboss-security-spi.jar

                jbosssx-client.jar

                jboss-javaee.jar

                jboss-logging-spi.jar

                concurrent.jar

                jboss-aop-client.jar

                jboss-ha-legacy-client.jar

                jboss-ha-client.jar

                jboss-client.jar

                jboss-common-core.jar

                jboss-integration.jar

                jboss-logging-log4j.jar

                jboss-serialization.jar

                jboss-remoting.jar

                jnp-client.jar

                javassist.jar

                jboss-aspect-jdk50-client.jar

           trove.jar

       

      and enviroment variables are

      {java.naming.provider.url=jnp://localhost:1099, java.naming.factory.initial=org.jboss.naming.NamingContextFactory, jnp.disableDiscovery=true, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}

        • 1. Re: jboss 5.1.2 remoting client exception from osgi ejb client app
          kaustuv.maji

          Above issue is fixed. Wise man guided me to solve this problem. Lack of import services in client ejb bundle packing is is the main problem.

           

          Ejb client bundle must import following packages along with above jboss 5.1.2 client binaries .            

                    

          javax.management,javax.naming,javax.naming.event,javax.naming.spi,javax.net,javax.net.ssl,javax.rmi,javax.rmi.CORBA