1 Reply Latest reply on Nov 21, 2008 5:06 AM by Daniel Bevenius

    Error in executing client for Jboss ESB Service

    neha2911 Newbie

      Hi,

      I have implemented a request and response esb service and its java client. The service takes an id as an input and returns back EmployeeDetails Object as output. The client works absolutely fine when I run it as ant runtest.
      At the same time when i execute the same client using eclipse it gives me following error:

      Exception in thread "main" java.lang.NullPointerException
       at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findService(JAXRRegistryImpl.java:408)
       at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:266)
       at org.jboss.soa.esb.listeners.RegistryUtil.getEprs(RegistryUtil.java:226)
       at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:428)
       at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:155)
       at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:136)
       at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:178)
       at client.GetDeatilsClient.main(GetDeatilsClient.java:18)

      I have included following jars in my buildpath

      1. All jars from C:\jboss-soa-p.4.2.0\jboss-as\server\production\deploy\jbossesb.esb
      2. All jars from C:\jboss-soa-p.4.2.0\jboss-as\server\production\deploy\jbossesb.sar\lib
      3. C:\jboss-soa-p.4.2.0\jboss-as\client\commons-logging.jar
      4. C:\jboss-soa-p.4.2.0\jboss-as\jbossall-client.jar
      5. C:\jboss-soa-p.4.2.0\jboss-as\server\production\lib\jbossts-common.jar
      6. C:\jboss-soa-p.4.2.0\jboss-as\client\log4j.jar



      Please find my client code attached. I wish to access the esb service from a stand alone java client or from another Jboss App server.