Tomohisa igarashi created SWITCHYARD-620:
--------------------------------------------
Summary: insufficient error message from bean component
Key: SWITCHYARD-620
URL:
https://issues.jboss.org/browse/SWITCHYARD-620
Project: SwitchYard
Issue Type: Task
Components: component-bean
Affects Versions: 0.4
Reporter: Tomohisa igarashi
When we got a following message, root cause was swallowed by
DefaultHandlerChain#handleMessage() and got hard to understand what happened.
{quote}
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.
{quote}
The root cause was following in this case.
{quote}
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
{quote}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira