Running helloworld SendEsbMessage in ecplise
6h05t Apr 21, 2016 10:02 AMHello,
I tried to run the helloworld example using eclipse and JBoss Tools (AS 4.2, ESB server 4.12).
SendJMSMessage works, but SendEsbMessage fails with
Usage SendEsbMessage <category> <name> <text to send>
08:51:16,394 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:128)
at org.jboss.internal.soa.esb.services.registry.JAXRConnectionSingleton.getConnection(JAXRConnectionSingleton.java:60)
at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:361)
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:228)
at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:567)
at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:176)
at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:157)
at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:199)
at org.jboss.soa.esb.samples.quickstart.helloworld.test.SendEsbMessage.main(SendEsbMessage.java:57)
Caused by: java.net.MalformedURLException: unknown protocol: jnp
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
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.getJBossESBTModel(JAXRRegistryImpl.java:888)
at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:363)
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:228)
at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:567)
at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:176)
at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:157)
at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:199)
at org.jboss.soa.esb.samples.quickstart.helloworld.test.SendEsbMessage.main(SendEsbMessage.java:57)
Any comments?
thx in advance