5 Replies Latest reply on Feb 24, 2011 9:55 AM by tcunning

    Problem with service invoker...newbie pls help

    neo_2323

      Hi everyone,

       

      I am trying out the helloworld example present in the samples folder of jboss soa 5.0.1.GA. The SendJMSMessage is working fine...i have some problem with SendESBMessage. I am getting an Invocation exception like this...what do i do?

       

      Exception in thread "main" org.jboss.soa.esb.listeners.message.MessageDeliverException: Invocation exception. null
      at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:545)
      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.SendEsb.main(SendEsb.java:60)
      Caused by: org.jboss.soa.esb.services.registry.RegistryException: Invocation exception. null
      at org.jboss.soa.esb.services.registry.RegistryFactory.createRegistry(RegistryFactory.java:121)
      at org.jboss.soa.esb.services.registry.RegistryFactory.getRegistry(RegistryFactory.java:86)
      at org.jboss.soa.esb.listeners.RegistryUtil.getEprs(RegistryUtil.java:220)
      at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:532)
      ... 4 more
      Caused by: java.lang.NullPointerException
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Unknown Source)
      at org.jboss.soa.esb.util.ClassUtil.forName(ClassUtil.java:65)
      at org.jboss.soa.esb.services.registry.RegistryFactory.createRegistry(RegistryFactory.java:110)
      ... 7 more

       

      Plz help me!!

        • 1. Re: Problem with service invoker...newbie pls help
          mageshbk

          Avinash,

           

          Looks like the jbossesb-properties.xml file is missing from your classpath. How are you executing the sample? Using "ant sendesb"?

          • 2. Re: Problem with service invoker...newbie pls help
            neo_2323

            I am executing the example using jboss developer studio 3.0.0..i am reproducing the example as an new ESB project and running it from there

            • 3. Re: Problem with service invoker...newbie pls help
              mageshbk

              Create the quickstart as an ANT project or add the helloworld directory to your classpath.

              • 4. Problem with service invoker...newbie pls help
                chandrarsa

                I have jbossesb-properties in classpath still I am getting below Exception

                 

                ##################################

                Invoking service...

                Exception in thread "main" org.jboss.soa.esb.listeners.message.MessageDeliverException: Invocation exception. null

                      at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:545)

                      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 com.test.SendEsbMessage.sendMessage(SendEsbMessage.java:21)

                      at com.test.SendEsbMessage.main(SendEsbMessage.java:41)

                Caused by: org.jboss.soa.esb.services.registry.RegistryException: Invocation exception. null

                      at org.jboss.soa.esb.services.registry.RegistryFactory.createRegistry(RegistryFactory.java:121)

                      at org.jboss.soa.esb.services.registry.RegistryFactory.getRegistry(RegistryFactory.java:86)

                      at org.jboss.soa.esb.listeners.RegistryUtil.getEprs(RegistryUtil.java:220)

                      at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:532)

                      ... 5 more

                Caused by: java.lang.NullPointerException

                      at java.lang.Class.forName0(Native Method)

                      at java.lang.Class.forName(Unknown Source)

                      at org.jboss.soa.esb.util.ClassUtil.forName(ClassUtil.java:65)

                      at org.jboss.soa.esb.services.registry.RegistryFactory.createRegistry(RegistryFactory.java:110)

                      ... 8 more

                • 5. Problem with service invoker...newbie pls help
                  tcunning

                  Daniel answered this in another thread :

                  http://community.jboss.org/message/589447#589447

                   

                  Please refrain from asking the same question more than once.

                   

                  Thanks,

                   

                  Tom