6 Replies Latest reply on Jul 15, 2008 1:39 PM by Lucas Tiritilli

    nex error in quickstart helloworld SendESBMessage

    Lucas Tiritilli Newbie

      hi! I can not send an esb message following th quickstart example...
      I posted one other topic but now the error is not same.
      can anybody help me?
      thanks!

      the error is

      Exception in thread "main" java.lang.NullPointerException
       at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findService(JAXRRegistryImpl.java:461)
       at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:307)
       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 org.jboss.soa.esb.listeners.ListenerUtil.tryToDeliver(ListenerUtil.java:70)
       at org.jboss.soa.esb.samples.quickstart.helloworld.test.SendEsbMessage.main(SendEsbMessage.java:65)


        • 1. Re: nex error in quickstart helloworld SendESBMessage
          Daniel Bevenius Master

          Hi,

          this looks like the same issue as the previous post: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=139000

          Exception in thread "main" org.jboss.soa.esb.listeners.message.MessageDeliverException
          at org.jboss.soa.esb.listeners.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:299)
          at org.jboss.soa.esb.listeners.ServiceInvoker.(ServiceInvoker.java:105)
          at org.jboss.soa.esb.listeners.ListenerUtil.tryToDeliver(ListenerUtil.java:71)
          at org.jboss.soa.esb.samples.quickstart.helloworld.test.SendEsbMessage.main(SendEsbMessage.java:72)
          Caused by: org.jboss.soa.esb.services.registry.RegistryException
          at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:356)
          at org.jboss.soa.esb.listeners.RegistryUtil.getEprs(RegistryUtil.java:212)
          at org.jboss.soa.esb.listeners.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:295)
          ... 3 more
          Caused by: java.lang.NullPointerException
          at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findService(JAXRRegistryImpl.java:453)
          at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:341)
          ... 5 more


          Can you post .classpath and I'll try the same setup and see what is going on.

          Regards,

          /Daniel

          • 2. Re: nex error in quickstart helloworld SendESBMessage
            Lucas Tiritilli Newbie

            Hi Daniel, this is my .classpath
            regards,
            Atriano

            <?xml version="1.0" encoding="UTF-8"?>
            <classpath>
             <classpathentry kind="src" path="src"/>
             <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/jbossesb-rosetta.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/jboss-jaxb-intros.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/jbossesb-config-model-1.0.1.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/activation.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/antlr-2.7.6.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/antlr-3.0b7.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/asm.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/cache.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/cglib-2.1_3.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/commons-codec-1.3.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/commons-collections-3.2.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/commons-httpclient.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/commons-io-1.3.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/commons-lang-2.1.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/commons-logging-1.0.4.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/commons-net-2.0.0-652071.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/commons-ssl-0.3.4.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/emma.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/emma_ant.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/groovy-all-1.0.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/h2.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/hibernate3.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/hsqldb.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/jakarta-oro-2.0.8.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/javassist.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/jaxr-api-1.0rc1.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/jboss.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/jbossall-client.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/jboss-aop-jdk50.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/jboss-messaging-client.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/jboss-remoting.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/jboss-system.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/jbossts-common.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/jbossweb.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/jgroups-all.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/jsch-0.1.38.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/jsr173_1.0_ri.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/juddi-2.0rc5.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/juddi-client-2.0rc5.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/junit-4.1.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/log4j.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/mail.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/mockejb.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/mvel14-1.2rc4rv908.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/ognl-2.6.9.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/opencsv-1.6.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/properties-plugin.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/quartz-1.5.2.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/scout-1.0rc1.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/stax-api-1.0.1.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/stringtemplate-3.0.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/trove.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/wstx-lgpl-3.2.1.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/xalan-2.7.0.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/xbean.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/xercesImpl-2.7.1.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/xml-apis-1.3.02.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/jBOSS ESB/jbossesb-4.3.GA/lib/ext/xmlpublic.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/xstream-1.3/lib/xstream-benchmark-1.3.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/xstream-1.3/lib/cglib-nodep-2.1_3.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/xstream-1.3/lib/dom4j-1.6.1.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/xstream-1.3/lib/jdom-1.0.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/xstream-1.3/lib/jettison-1.0-RC2.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/xstream-1.3/lib/joda-time-1.5.1.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/xstream-1.3/lib/stax-1.2.0.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/xstream-1.3/lib/stax-api-1.0.1.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/xstream-1.3/lib/wstx-asl-3.2.3.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/xstream-1.3/lib/xalan-2.7.0.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/xstream-1.3/lib/xercesImpl-2.8.1.jar"/>
             <classpathentry kind="lib" path="C:/Documents and Settings/Administrador/Escritorio/xstream-1.3/lib/xstream-1.3.jar"/>
             <classpathentry kind="output" path="bin"/>
            </classpath>



            • 3. Re: nex error in quickstart helloworld SendESBMessage
              a francis Newbie

              Hey,
              Your jbossclient-all.jar is before jboss-remoting.jar and jboss-messaging-client.jar. If you manually edit your .classpath so that they appear before jbossclient-all, that should fix it.

              • 5. Re: nex error in quickstart helloworld SendESBMessage
                a francis Newbie

                Double check if the ordering of your jars are identical to this:

                <?xml version="1.0" encoding="UTF-8"?>
                <classpath>
                 <classpathentry kind="src" path="src"/>
                 <classpathentry excluding="src/" kind="src" path=""/>
                 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
                 <classpathentry kind="lib" path="/JBossESB-trunk/build/jbossesb/lib/jbossesb-rosetta.jar" sourcepath="/JBossESB-trunk/rosetta"/>
                 <classpathentry kind="lib" path="/JBossESB-trunk/build/jbossesb/lib/jbossesb-config-model-1.0.1.jar"/>
                 <classpathentry kind="lib" path="/JBossESB-trunk/lib/ext/wstx-lgpl-3.2.1.jar"/>
                 <classpathentry kind="lib" path="/JBossESB-trunk/lib/ext/jboss-aop-jdk50.jar"/>
                 <classpathentry kind="lib" path="/JBossESB-trunk/lib/ext/jboss-messaging-client.jar"/>
                 <classpathentry kind="lib" path="/JBossESB-trunk/lib/ext/jboss-remoting.jar"/>
                 <classpathentry kind="lib" path="/JBossESB-trunk/lib/ext/xbean.jar"/>
                 <classpathentry kind="lib" path="/JBossESB-trunk/lib/ext/jbossts-common.jar"/>
                 <classpathentry kind="lib" path="/JBossESB-trunk/lib/ext/stax-api-1.0.1.jar"/>
                 <classpathentry kind="lib" path="/JBossESB-trunk/lib/ext/scout-1.0rc1.jar"/>
                 <classpathentry kind="lib" path="/JBossESB-trunk/lib/ext/commons-logging-1.0.4.jar"/>
                 <classpathentry kind="lib" path="/JBossESB-trunk/lib/ext/jbossall-client.jar" sourcepath="/opt/jboss/as/jboss-4.2.1.GA-src"/>
                 <classpathentry kind="lib" path="/JBossESB-trunk/lib/ext/juddi-client-2.0rc5.jar"/>
                 <classpathentry kind="lib" path="/JBossESB-trunk/lib/ext/xercesImpl-2.7.1.jar"/>
                 <classpathentry kind="lib" path="/JBossESB-trunk/lib/ext/jaxr-api-1.0rc1.jar"/>
                 <classpathentry kind="lib" path="/JBossESB-trunk/lib/ext/jsr173_1.0_ri.jar"/>
                 <classpathentry kind="lib" path="/JBossESB-trunk/lib/ext/commons-codec-1.3.jar"/>
                 <classpathentry kind="output" path="bin"/>
                </classpath>
                


                • 6. Re: nex error in quickstart helloworld SendESBMessage
                  Lucas Tiritilli Newbie

                  I found my error, I was working with jboss-esb-server-4.3 and esb-source-4.2 :(. I'm sorry for my questions....
                  thanks anyway!
                  regards,
                  Atriano.