3 Replies Latest reply on Aug 16, 2010 3:26 PM by Scott Dawson

    Problem by invoking a service using serviceInvoker

    Younes Yahyaoui Novice

      Hallo ,

       

      i have written an esb service and tried to invoke it using serviceinvoker. I become the following error:

       

       

      startFcdChain:
           [java] java.lang.reflect.InvocationTargetException
           [java]      at org.apache.ws.scout.transport.LocalTransport.send(LocalTransport.java:67)
           [java]      at org.apache.ws.scout.registry.RegistryImpl.execute(RegistryImpl.java:271)
           [java]      at org.apache.ws.scout.registry.RegistryImpl.findTModel(RegistryImpl.java:793)
           [java]      at org.apache.ws.scout.registry.BusinessQueryManagerImpl.findClassificationSchemeByName(BusinessQueryManagerImpl.java:440)
           [java]      at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findService(JAXRRegistryImpl.java:424)
           [java]      at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:273)
           [java]      at org.jboss.internal.soa.esb.services.registry.InVMRegistryInterceptor.findEPRs(InVMRegistryInterceptor.java:160)
           [java]      at org.jboss.soa.esb.services.registry.RegistryFactory$HeadRegistryInterceptor.findEPRs(RegistryFactory.java:229)
           [java]      at org.jboss.soa.esb.listeners.RegistryUtil.getEprs(RegistryUtil.java:226)
           [java]      at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:486)
           [java]      at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:168)
           [java]      at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:149)
           [java]      at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:191)
           [java]      at de.dlr.ts.tdp.fcd.FcdChainProcess.Administrator.<init>(Administrator.java:29)
           [java]      at de.dlr.ts.tdp.fcd.FcdChainProcess.Administrator.main(Administrator.java:62)
           [java] Caused by: java.lang.reflect.InvocationTargetException
           [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
           [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
           [java]      at java.lang.reflect.Method.invoke(Unknown Source)
           [java]      at org.apache.ws.scout.transport.LocalTransport.send(LocalTransport.java:63)
           [java]      ... 14 more
           [java] Caused by: java.lang.NoClassDefFoundError: org/apache/commons/configuration/ConfigurationException
           [java]      at org.apache.juddi.v3.client.transport.wrapper.UDDIInquiryService.inquire(UDDIInquiryService.java:69)
           [java]      ... 19 more
           [java] Caused by: java.lang.ClassNotFoundException: org.apache.commons.configuration.ConfigurationException
           [java]      at java.net.URLClassLoader$1.run(Unknown Source)
           [java]      at java.security.AccessController.doPrivileged(Native Method)
           [java]      at java.net.URLClassLoader.findClass(Unknown Source)
           [java]      at java.lang.ClassLoader.loadClass(Unknown Source)
           [java]      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
           [java]      at java.lang.ClassLoader.loadClass(Unknown Source)
           [java]      ... 20 more
           [java] java.lang.reflect.InvocationTargetException
           [java]      at org.apache.ws.scout.transport.LocalTransport.send(LocalTransport.java:67)
           [java]      at org.apache.ws.scout.registry.RegistryImpl.execute(RegistryImpl.java:271)
           [java]      at org.apache.ws.scout.registry.RegistryImpl.findTModel(RegistryImpl.java:793)
           [java]      at org.apache.ws.scout.registry.BusinessQueryManagerImpl.findClassificationSchemeByName(BusinessQueryManagerImpl.java:440)
           [java]      at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findService(JAXRRegistryImpl.java:424)
           [java]      at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:273)
           [java]      at org.jboss.internal.soa.esb.services.registry.InVMRegistryInterceptor.findEPRs(InVMRegistryInterceptor.java:160)
           [java]      at org.jboss.soa.esb.services.registry.RegistryFactory$HeadRegistryInterceptor.findEPRs(RegistryFactory.java:229)
           [java]      at org.jboss.soa.esb.listeners.RegistryUtil.getEprs(RegistryUtil.java:226)
           [java]      at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:486)
           [java]      at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:168)
           [java]      at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:149)
           [java]      at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:191)
           [java]      at de.dlr.ts.tdp.fcd.FcdChainProcess.Administrator.<init>(Administrator.java:29)
           [java]      at de.dlr.ts.tdp.fcd.FcdChainProcess.Administrator.main(Administrator.java:62)
           [java] Caused by: java.lang.reflect.InvocationTargetException
           [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
           [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
           [java]      at java.lang.reflect.Method.invoke(Unknown Source)
           [java]      at org.apache.ws.scout.transport.LocalTransport.send(LocalTransport.java:63)
           [java]      ... 14 more
           [java] Caused by: java.lang.NoClassDefFoundError: org/apache/commons/configuration/ConfigurationException
           [java]      at org.apache.juddi.v3.client.transport.wrapper.UDDIInquiryService.inquire(UDDIInquiryService.java:69)
           [java]      ... 19 more
           [java] Caused by: java.lang.ClassNotFoundException: org.apache.commons.configuration.ConfigurationException
           [java]      at java.net.URLClassLoader$1.run(Unknown Source)
           [java]      at java.security.AccessController.doPrivileged(Native Method)
           [java]      at java.net.URLClassLoader.findClass(Unknown Source)
           [java]      at java.lang.ClassLoader.loadClass(Unknown Source)
           [java]      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
           [java]      at java.lang.ClassLoader.loadClass(Unknown Source)
           [java]      ... 20 more
           [java] java.lang.reflect.InvocationTargetException
           [java]      at org.apache.ws.scout.transport.LocalTransport.send(LocalTransport.java:67)
           [java]      at org.apache.ws.scout.registry.RegistryImpl.execute(RegistryImpl.java:271)
           [java]      at org.apache.ws.scout.registry.RegistryImpl.findTModel(RegistryImpl.java:793)
           [java]      at org.apache.ws.scout.registry.BusinessQueryManagerImpl.findClassificationSchemeByName(BusinessQueryManagerImpl.java:440)
           [java]      at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findService(JAXRRegistryImpl.java:424)
           [java]      at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:273)
           [java]      at org.jboss.internal.soa.esb.services.registry.InVMRegistryInterceptor.findEPRs(InVMRegistryInterceptor.java:160)
           [java]      at org.jboss.soa.esb.services.registry.RegistryFactory$HeadRegistryInterceptor.findEPRs(RegistryFactory.java:229)
           [java]      at org.jboss.soa.esb.listeners.RegistryUtil.getEprs(RegistryUtil.java:226)
           [java]      at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:486)
           [java]      at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:168)
           [java]      at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:149)
           [java]      at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:191)
           [java]      at de.dlr.ts.tdp.fcd.FcdChainProcess.Administrator.<init>(Administrator.java:29)
           [java]      at de.dlr.ts.tdp.fcd.FcdChainProcess.Administrator.main(Administrator.java:62)
           [java] Caused by: java.lang.reflect.InvocationTargetException
           [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
           [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
           [java]      at java.lang.reflect.Method.invoke(Unknown Source)
           [java]      at org.apache.ws.scout.transport.LocalTransport.send(LocalTransport.java:63)
           [java]      ... 14 more
           [java] Caused by: java.lang.NoClassDefFoundError: org/apache/commons/configuration/ConfigurationException
           [java]      at org.apache.juddi.v3.client.transport.wrapper.UDDIInquiryService.inquire(UDDIInquiryService.java:69)
           [java]      ... 19 more
           [java] Caused by: java.lang.ClassNotFoundException: org.apache.commons.configuration.ConfigurationException
           [java]      at java.net.URLClassLoader$1.run(Unknown Source)
           [java]      at java.security.AccessController.doPrivileged(Native Method)
           [java]      at java.net.URLClassLoader.findClass(Unknown Source)
           [java]      at java.lang.ClassLoader.loadClass(Unknown Source)
           [java]      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
           [java]      at java.lang.ClassLoader.loadClass(Unknown Source)
           [java]      ... 20 more
           [java] java.lang.reflect.InvocationTargetException
           [java]      at org.apache.ws.scout.transport.LocalTransport.send(LocalTransport.java:67)
           [java]      at org.apache.ws.scout.registry.RegistryImpl.execute(RegistryImpl.java:271)
           [java]      at org.apache.ws.scout.registry.RegistryImpl.findTModel(RegistryImpl.java:793)
           [java]      at org.apache.ws.scout.registry.BusinessQueryManagerImpl.findClassificationSchemeByName(BusinessQueryManagerImpl.java:440)
           [java]      at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findService(JAXRRegistryImpl.java:424)
           [java]      at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:273)
           [java]      at org.jboss.internal.soa.esb.services.registry.InVMRegistryInterceptor.findEPRs(InVMRegistryInterceptor.java:160)
           [java]      at org.jboss.soa.esb.services.registry.RegistryFactory$HeadRegistryInterceptor.findEPRs(RegistryFactory.java:229)
           [java]      at org.jboss.soa.esb.listeners.RegistryUtil.getEprs(RegistryUtil.java:226)
           [java]      at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:486)
           [java]      at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:168)
           [java]      at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:149)
           [java]      at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:191)
           [java]      at de.dlr.ts.tdp.fcd.FcdChainProcess.Administrator.<init>(Administrator.java:29)
           [java]      at de.dlr.ts.tdp.fcd.FcdChainProcess.Administrator.main(Administrator.java:62)
           [java] Caused by: java.lang.reflect.InvocationTargetException
           [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
           [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
           [java]      at java.lang.reflect.Method.invoke(Unknown Source)
           [java]      at org.apache.ws.scout.transport.LocalTransport.send(LocalTransport.java:63)
           [java]      ... 14 more
           [java] Caused by: java.lang.NoClassDefFoundError: org/apache/commons/configuration/ConfigurationException
           [java]      at org.apache.juddi.v3.client.transport.wrapper.UDDIInquiryService.inquire(UDDIInquiryService.java:69)
           [java]      ... 19 more
           [java] Caused by: java.lang.ClassNotFoundException: org.apache.commons.configuration.ConfigurationException
           [java]      at java.net.URLClassLoader$1.run(Unknown Source)
           [java]      at java.security.AccessController.doPrivileged(Native Method)
           [java]      at java.net.URLClassLoader.findClass(Unknown Source)
           [java]      at java.lang.ClassLoader.loadClass(Unknown Source)
           [java]      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
           [java]      at java.lang.ClassLoader.loadClass(Unknown Source)
           [java]      ... 20 more
           [java] java.lang.reflect.InvocationTargetException
           [java]      at org.apache.ws.scout.transport.LocalTransport.send(LocalTransport.java:67)
           [java]      at org.apache.ws.scout.registry.RegistryImpl.execute(RegistryImpl.java:271)
           [java]      at org.apache.ws.scout.registry.RegistryImpl.findTModel(RegistryImpl.java:793)
           [java]      at org.apache.ws.scout.registry.BusinessQueryManagerImpl.findClassificationSchemeByName(BusinessQueryManagerImpl.java:440)
           [java]      at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findService(JAXRRegistryImpl.java:424)
           [java]      at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:273)
           [java]      at org.jboss.internal.soa.esb.services.registry.InVMRegistryInterceptor.findEPRs(InVMRegistryInterceptor.java:160)
           [java]      at org.jboss.soa.esb.services.registry.RegistryFactory$HeadRegistryInterceptor.findEPRs(RegistryFactory.java:229)
           [java]      at org.jboss.soa.esb.listeners.RegistryUtil.getEprs(RegistryUtil.java:226)
           [java]      at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:486)
           [java]      at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:168)
           [java]      at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:149)
           [java]      at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:191)
           [java]      at de.dlr.ts.tdp.fcd.FcdChainProcess.Administrator.<init>(Administrator.java:29)
           [java]      at de.dlr.ts.tdp.fcd.FcdChainProcess.Administrator.main(Administrator.java:62)
           [java] Caused by: java.lang.reflect.InvocationTargetException
           [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
           [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
           [java]      at java.lang.reflect.Method.invoke(Unknown Source)
           [java]      at org.apache.ws.scout.transport.LocalTransport.send(LocalTransport.java:63)
           [java]      ... 14 more
           [java] Caused by: java.lang.NoClassDefFoundError: org/apache/commons/configuration/ConfigurationException
           [java]      at org.apache.juddi.v3.client.transport.wrapper.UDDIInquiryService.inquire(UDDIInquiryService.java:69)
           [java]      ... 19 more
           [java] Caused by: java.lang.ClassNotFoundException: org.apache.commons.configuration.ConfigurationException
           [java]      at java.net.URLClassLoader$1.run(Unknown Source)
           [java]      at java.security.AccessController.doPrivileged(Native Method)
           [java]      at java.net.URLClassLoader.findClass(Unknown Source)
           [java]      at java.lang.ClassLoader.loadClass(Unknown Source)
           [java]      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
           [java]      at java.lang.ClassLoader.loadClass(Unknown Source)
           [java]      ... 20 more
           [java] Exception in thread "main" java.lang.RuntimeException: Error: Failed to create ServiceInvoker
           [java]      at de.dlr.ts.tdp.fcd.FcdChainProcess.Administrator.<init>(Administrator.java:33)
           [java]      at de.dlr.ts.tdp.fcd.FcdChainProcess.Administrator.main(Administrator.java:62)
           [java] Caused by: org.jboss.soa.esb.listeners.message.MessageDeliverException: java.lang.reflect.InvocationTargetException
           [java]      at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:499)
           [java]      at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:168)
           [java]      at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:149)
           [java]      at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:191)
           [java]      at de.dlr.ts.tdp.fcd.FcdChainProcess.Administrator.<init>(Administrator.java:29)
           [java]      ... 1 more
           [java] Caused by: org.jboss.soa.esb.services.registry.RegistryException: java.lang.reflect.InvocationTargetException
           [java]      at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:302)
           [java]      at org.jboss.internal.soa.esb.services.registry.InVMRegistryInterceptor.findEPRs(InVMRegistryInterceptor.java:160)
           [java]      at org.jboss.soa.esb.services.registry.RegistryFactory$HeadRegistryInterceptor.findEPRs(RegistryFactory.java:229)
           [java]      at org.jboss.soa.esb.listeners.RegistryUtil.getEprs(RegistryUtil.java:226)
           [java]      at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:486)
           [java]      ... 5 more
           [java] Caused by: javax.xml.registry.JAXRException: java.lang.reflect.InvocationTargetException
           [java]      at org.apache.ws.scout.registry.BusinessQueryManagerImpl.findClassificationSchemeByName(BusinessQueryManagerImpl.java:459)
           [java]      at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findService(JAXRRegistryImpl.java:424)
           [java]      at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:273)
           [java]      ... 9 more
           [java] Java Result: 1

       

       

      can someone please tell me what is happened? Thanks in advance.

        • 1. Re: Problem by invoking a service using serviceInvoker
          Scott Dawson Apprentice

          It looks like you're missing the commons-configuration-1.5.jar on your client classpath (the NoClassDefFoundError). Take a look at the "Configuration for a remote ServiceInvoker" section in the Programmers Guide for the complete set of jars that are needed.

           

          Regards,

          Scott

          • 2. Re: Problem by invoking a service using serviceInvoker
            Younes Yahyaoui Novice

            Thanks Scott,

             

            i did it by adding all required jars, but i still become this error:

             

             

              [java] Exception in thread "main" java.lang.RuntimeException: Error: Failed to create ServiceInvoker
                 [java]      at de.dlr.ts.tdp.fcd.FcdChainProcess.Administrator.<init>(Administrator.java:35)
                 [java]      at de.dlr.ts.tdp.fcd.FcdChainProcess.Administrator.main(Administrator.java:64)
                 [java] Caused by: org.jboss.soa.esb.listeners.message.MessageDeliverException: org.apache.ws.scout.transport.TransportException: java.lang.Exception: org.jboss.internal.soa.esb.registry.client.JuddiInVMTransport
                 [java]      at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:499)
                 [java]      at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:168)
                 [java]      at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:149)
                 [java]      at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:191)
                 [java]      at de.dlr.ts.tdp.fcd.FcdChainProcess.Administrator.<init>(Administrator.java:31)
                 [java]      ... 1 more
                 [java] Caused by: org.jboss.soa.esb.services.registry.RegistryException: org.apache.ws.scout.transport.TransportException: java.lang.Exception: org.jboss.internal.soa.esb.registry.client.JuddiInVMTransport
                 [java]      at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:302)
                 [java]      at org.jboss.internal.soa.esb.services.registry.InVMRegistryInterceptor.findEPRs(InVMRegistryInterceptor.java:160)
                 [java]      at org.jboss.soa.esb.services.registry.RegistryFactory$HeadRegistryInterceptor.findEPRs(RegistryFactory.java:229)
                 [java]      at org.jboss.soa.esb.listeners.RegistryUtil.getEprs(RegistryUtil.java:226)
                 [java]      at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:486)
                 [java]      ... 5 more
                 [java] Caused by: javax.xml.registry.JAXRException: org.apache.ws.scout.transport.TransportException: java.lang.Exception: org.jboss.internal.soa.esb.registry.client.JuddiInVMTransport
                 [java]      at org.apache.ws.scout.registry.BusinessQueryManagerImpl.findClassificationSchemeByName(BusinessQueryManagerImpl.java:455)
                 [java]      at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findService(JAXRRegistryImpl.java:424)
                 [java]      at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:273)
                 [java]      ... 9 more
                 [java] Java Result: 1

             

            I have also META-INF/uddi.xml and jbossesb-properties.xml added.

            • 3. Re: Problem by invoking a service using serviceInvoker
              Scott Dawson Apprentice

              What version of the ESB are you using? There was a problem with jbossesb-rosetta.jar in release 4.7. Details here: https://jira.jboss.org/browse/JBESB-3258