2 Replies Latest reply on Jul 21, 2010 5:51 AM by Satya Narayana

    Pojo Deployment

    Satya Narayana Newbie

      hi ,
           I am trying to deploty POJO messages to ESB Server.But Whenerver I try to deploy it through client application is throws an exception
      8:27:09,225 ERROR [JmsGatewayListener] Problems invoking method <process>
      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.soa.esb.listeners.gateway.JmsGatewayListener.doRun(JmsGatewayListener.java:156)
      at org.jboss.soa.esb.listeners.lifecycle.AbstractThreadedManagedLifecycle.run(AbstractThreadedManagedLifecycle.java:115)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.RuntimeException: No ClassLoaders found for: org.jboss.soa.esb.samples.quickstart.transformxml2pojo.test.Customer
      at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:306)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:521)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClassInternal(Unknown Source)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Unknown Source)
      at java.io.ObjectInputStream.resolveClass(Unknown Source)
      at org.jboss.messaging.util.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:78)
      at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
      at java.io.ObjectInputStream.readClassDesc(Unknown Source)
      at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
      at java.io.ObjectInputStream.readObject0(Unknown Source)
      at java.io.ObjectInputStream.readObject(Unknown Source)
      at org.jboss.messaging.util.StreamUtils.readObject(StreamUtils.java:154)
      at org.jboss.messaging.core.impl.message.MessageSupport.getPayload(MessageSupport.java:246)
      at org.jboss.jms.message.JBossObjectMessage.getObject(JBossObjectMessage.java:125)
      at org.jboss.jms.message.ObjectMessageProxy.getObject(ObjectMessageProxy.java:64)
      at org.jboss.soa.esb.listeners.gateway.PackageJmsMessageContents.setESBMessageBody(PackageJmsMessageContents.java:165)
      at org.jboss.soa.esb.listeners.gateway.PackageJmsMessageContents.process(PackageJmsMessageContents.java:89)
      ... 7 more

       

      Regards,

      Satyanarayana Thota.

        • 1. Re: Pojo Deployment
          Daniel Bevenius Master

          Hi,

           

          does the class 'org.jboss.soa.esb.samples.quickstart.transformxml2pojo.test.Customer' exist in the .esb archive?

           

          Regards,

           

          /Daniel

          • 2. Re: Pojo Deployment
            Satya Narayana Newbie

            I created a my own sample and the class is esb archive. I tried to add as a jar which contains person.class but failed to deploy the esb project. then I created same package and kept the class inside it, it solves my deployment issue. When I pass the person from any client it gives the following error message. I appreciate your help.

             

            15:14:08,265 ERROR [JmsGatewayListener] Problems invoking method <process>
            java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at org.jboss.soa.esb.listeners.gateway.JmsGatewayListener.doRun(JmsGatewayListener.java:156)
            at org.jboss.soa.esb.listeners.lifecycle.AbstractThreadedManagedLifecycle.run(AbstractThreadedManagedLifecycle.java:115)
            at java.lang.Thread.run(Unknown Source)
            Caused by: java.lang.RuntimeException: com.sifu.dev.ifreight.controller.Person
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Unknown Source)
            at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:292)
            at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1119)
            at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:798)
            at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:441)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Unknown Source)
            at java.io.ObjectInputStream.resolveClass(Unknown Source)
            at org.jboss.messaging.util.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:78)
            at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
            at java.io.ObjectInputStream.readClassDesc(Unknown Source)
            at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
            at java.io.ObjectInputStream.readObject0(Unknown Source)
            at java.io.ObjectInputStream.readObject(Unknown Source)
            at org.jboss.messaging.util.StreamUtils.readObject(StreamUtils.java:154)
            at org.jboss.messaging.core.impl.message.MessageSupport.readPayload(MessageSupport.java:392)
            at org.jboss.jms.message.JBossObjectMessage.getObject(JBossObjectMessage.java:126)
            at org.jboss.jms.message.ObjectMessageProxy.getObject(ObjectMessageProxy.java:68)
            at org.jboss.soa.esb.listeners.gateway.PackageJmsMessageContents.setESBMessageBody(PackageJmsMessageContents.java:165)
            at org.jboss.soa.esb.listeners.gateway.PackageJmsMessageContents.process(PackageJmsMessageContents.java:89)
            ... 7 more

             

            Regards,

            -satya-