Uploaded image for project: 'SwitchYard'
  1. SwitchYard
  2. SWITCHYARD-620

insufficient error message from bean component

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Done
    • 0.4
    • None
    • component-bean
    • None

    Description

      When we got a following message, root cause was swallowed by DefaultHandlerChain#handleMessage() and got hard to understand what happened.

      16:07:00,618 ERROR [org.switchyard.internal.DefaultHandlerChain] (Thread-1 (group:HornetQ-client-global-threads-1898555459)) org.switchyard.component.bean.BeanComponentException: Invocation of operation 'processOrder' on bean component 'org.switchyard.quickstarts.transform.json.ProcessOrderServiceBean' failed with exception. See attached cause.
      16:07:00,620 WARN [org.switchyard.internal.ExchangeImpl] (Thread-1 (group:HornetQ-client-global-threads-1898555459)) Fault generated during exchange without a handler: org.switchyard.component.bean.BeanComponentException: Invocation of operation 'processOrder' on bean component 'org.switchyard.quickstarts.transform.json.ProcessOrderServiceBean' failed with exception. See attached cause.

      The root cause was following in this case.

      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:616)
      at org.switchyard.component.bean.ServiceProxyHandler.handle(ServiceProxyHandler.java:126)
      at org.switchyard.component.bean.ServiceProxyHandler.handleMessage(ServiceProxyHandler.java:81)
      at org.switchyard.internal.DefaultHandlerChain.handleMessage(DefaultHandlerChain.java:146)
      at org.switchyard.internal.DefaultHandlerChain.handle(DefaultHandlerChain.java:121)
      at org.switchyard.internal.LocalDispatcher.dispatch(LocalExchangeBus.java:72)
      at org.switchyard.internal.ExchangeImpl.sendInternal(ExchangeImpl.java:255)
      at org.switchyard.internal.ExchangeImpl.send(ExchangeImpl.java:178)
      at org.switchyard.component.hornetq.deploy.InboundHandler.onMessage(InboundHandler.java:118)
      at org.hornetq.core.client.impl.ClientConsumerImpl.callOnMessage(ClientConsumerImpl.java:866)
      at org.hornetq.core.client.impl.ClientConsumerImpl.access$100(ClientConsumerImpl.java:44)
      at org.hornetq.core.client.impl.ClientConsumerImpl$Runner.run(ClientConsumerImpl.java:983)
      at org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:100)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:679)
      Caused by: java.lang.IllegalStateException: Singleton not set for ModuleClassLoader for Module "org.hornetq:main" from local module loader @36d1c778 (roots: /opt/switchyard-as7-0.4/modules)
      at org.jboss.as.weld.services.ModuleGroupSingletonProvider$TCCLSingleton.get(ModuleGroupSingletonProvider.java:73)
      at org.jboss.weld.Container.instance(Container.java:54)
      at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:67)
      at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:104)
      at org.jboss.weld.proxies.JsonOrderService$1366014918$Proxy$$$_WeldClientProxy.submitOrder(JsonOrderService$1366014918$Proxy$$$_WeldClientProxy.java)
      at org.switchyard.quickstarts.transform.json.ProcessOrderServiceBean.processOrder(ProcessOrderServiceBean.java:17)
      ... 19 more

      Attachments

        Activity

          People

            Unassigned Unassigned
            toigaras@redhat.com tomohisa igarashi
            Archiver:
            ranumula@redhat.com Raju Anumula

            Dates

              Created:
              Updated:
              Resolved:
              Archived: