BeanEndpoint: lazy initialization of the "beanInfo" attribute in getBeanInfo()
is not thread-safe
-------------------------------------------------------------------------------------------------
Key: SM-1672
URL: https://issues.apache.org/activemq/browse/SM-1672
Project: ServiceMix
Issue Type: Bug
Components: servicemix-bean
Affects Versions: servicemix-bean-2008.01
Reporter: Pavel Drasil
Lazy initialization of the "beanInfo" attribute in the
BeanEndpoint.getBeanInfo() method is not thread-safe. It can happen (and it
happens to me quite often:-) ), that the second invocation of the getBeanInfo()
method sees the attribute not being null and returns its value, causing the
exchange processing to fail because the BeanInfo object is not yet properly
initialized (the introspect() method is not finished yet).
There are various solutions to this issue, the simplest one is marking the
BeanEndpoint.getBeanInfo() method synchronized.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.