0 Replies Latest reply on Jun 21, 2010 9:20 AM by porter1983

    Service Invoker troubles

    porter1983

      Hi together!

      Since days I try to get the HelloWorld-Example running by using the SendESBMessage.java. Unfortunately it doesnt work. I tried everything I read, e.g. adding the required jars, jbossesb-properties.xml, uddi.xml...

      The error that remains is the following:

       

      Usage SendEsbMessage <category> <name> <text to send>
      Exception in thread "main" java.lang.NullPointerException
          at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.getJBossESBTModel(JAXRRegistryImpl.java:613)
          at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:301)
          at org.jboss.internal.soa.esb.services.registry.InVMRegistryInterceptor.findEPRs(InVMRegistryInterceptor.java:85)
          at org.jboss.soa.esb.services.registry.RegistryFactory$HeadRegistryInterceptor.findEPRs(RegistryFactory.java:229)
          at org.jboss.soa.esb.listeners.RegistryUtil.getEprs(RegistryUtil.java:226)15:02:35,593 ERROR [main][JAXRConnectionFactory] Could not set up a connection to the Registry. Invalid queryManagerURL: jnp://localhost:1099/InquiryService?org.apache.juddi.rmi.UDDIInquiryService
      javax.xml.registry.InvalidRequestException: Invalid queryManagerURL: jnp://localhost:1099/InquiryService?org.apache.juddi.rmi.UDDIInquiryService
          at org.apache.ws.scout.registry.ConnectionFactoryImpl.createConnection(ConnectionFactoryImpl.java:77)
          at org.jboss.internal.soa.esb.services.registry.JAXRConnectionFactory.getConnection(JAXRConnectionFactory.java:128)
          at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:299)
          at org.jboss.internal.soa.esb.services.registry.InVMRegistryInterceptor.findEPRs(InVMRegistryInterceptor.java:85)
          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:532)
          at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:174)
          at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:155)
          at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:197)
          at org.jboss.soa.esb.samples.quickstart.helloworld.test.SendEsbMessage.main(SendEsbMessage.java:56)
      Caused by: java.net.MalformedURLException: unknown protocol: jnp
          at java.net.URL.<init>(URL.java:574)
          at java.net.URL.<init>(URL.java:464)
          at java.net.URL.<init>(URL.java:413)
          at org.apache.ws.scout.registry.ConnectionFactoryImpl.createConnection(ConnectionFactoryImpl.java:74)
          ... 10 more

       

          at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:532)
          at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:174)
          at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:155)
          at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:197)
          at org.jboss.soa.esb.samples.quickstart.helloworld.test.SendEsbMessage.main(SendEsbMessage.java:56)

       

      Help appreciated.

       

      Thx