0 Replies Latest reply on Jan 21, 2010 5:33 AM by Anushree Khandalkar

    Getting error while invoking a service using ServiceInvoker

    Anushree Khandalkar Newbie

      Hello everyone,

      I have written a service which first transforms the xml message received in queue to java object and then does content based routing using rules. The jboss esb project is deployed on the server and here there is no error.

      However when i try to run the client i get the following error:

       

      21:11:23,601 ERROR [main][JAXRConnectionFactory] Could not set up a connection to the Registry. Invalid queryManagerURL: jnp://localhost:1099/InquiryService?org.apache.juddi.registry.rmi.Inquiry#inquire
      javax.xml.registry.InvalidRequestException: Invalid queryManagerURL: jnp://localhost:1099/InquiryService?org.apache.juddi.registry.rmi.Inquiry#inquire
          at org.apache.ws.scout.registry.ConnectionFactoryImpl.createConnection(ConnectionFactoryImpl.java:77)
          at org.jboss.internal.soa.esb.services.registry.JAXRConnectionFactory.getConnection(JAXRConnectionFactory.java:104)
          at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:271)
          at org.jboss.internal.soa.esb.services.registry.InVMRegistryInterceptor.findEPRs(InVMRegistryInterceptor.java:160)
          at org.jboss.soa.esb.services.registry.RegistryFactory$HeadRegistryInterceptor.findEPRs(RegistryFactory.java:229)
          at org.jboss.soa.esb.listeners.RegistryUtil.getEprs(RegistryUtil.java:226)
          at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:486)
          at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:168)
          at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:149)
          at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:191)
          at org.acme.insurance.test.SendEsbMessage.main(SendEsbMessage.java:45)
      Caused by: java.net.MalformedURLException: unknown protocol: jnp
          at java.net.URL.<init>(URL.java:590)
          at java.net.URL.<init>(URL.java:480)
          at java.net.URL.<init>(URL.java:429)
          at org.apache.ws.scout.registry.ConnectionFactoryImpl.createConnection(ConnectionFactoryImpl.java:74)
          ... 10 more
      21:11:23,604 ERROR [main][JAXRConnectionFactory] Could not set up a connection to the Registry. Invalid queryManagerURL: jnp://localhost:1099/InquiryService?org.apache.juddi.registry.rmi.Inquiry#inquire
      javax.xml.registry.InvalidRequestException: Invalid queryManagerURL: jnp://localhost:1099/InquiryService?org.apache.juddi.registry.rmi.Inquiry#inquire
          at org.apache.ws.scout.registry.ConnectionFactoryImpl.createConnection(ConnectionFactoryImpl.java:77)
          at org.jboss.internal.soa.esb.services.registry.JAXRConnectionFactory.getConnection(JAXRConnectionFactory.java:104)
          at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findService(JAXRRegistryImpl.java:413)
          at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:273)
          at org.jboss.internal.soa.esb.services.registry.InVMRegistryInterceptor.findEPRs(InVMRegistryInterceptor.java:160)
          at org.jboss.soa.esb.services.registry.RegistryFactory$HeadRegistryInterceptor.findEPRs(RegistryFactory.java:229)
          at org.jboss.soa.esb.listeners.RegistryUtil.getEprs(RegistryUtil.java:226)
          at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:486)
          at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:168)
          at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:149)
          at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:191)
          at org.acme.insurance.test.SendEsbMessage.main(SendEsbMessage.java:45)
      Caused by: java.net.MalformedURLException: unknown protocol: jnp
          at java.net.URL.<init>(URL.java:590)
          at java.net.URL.<init>(URL.java:480)
          at java.net.URL.<init>(URL.java:429)
          at org.apache.ws.scout.registry.ConnectionFactoryImpl.createConnection(ConnectionFactoryImpl.java:74)
          ... 11 more
      Exception in thread "main" java.lang.NullPointerException
          at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findService(JAXRRegistryImpl.java:416)
          at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:273)
          at org.jboss.internal.soa.esb.services.registry.InVMRegistryInterceptor.findEPRs(InVMRegistryInterceptor.java:160)
          at org.jboss.soa.esb.services.registry.RegistryFactory$HeadRegistryInterceptor.findEPRs(RegistryFactory.java:229)
          at org.jboss.soa.esb.listeners.RegistryUtil.getEprs(RegistryUtil.java:226)
          at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:486)
          at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:168)
          at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:149)
          at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:191)
          at org.acme.insurance.test.SendEsbMessage.main(SendEsbMessage.java:45)

       

      Can anyone help me resolve this error?

       

      Thanks & Regards,

      Anushree