elastic-apm-mule3-agent icon indicating copy to clipboard operation
elastic-apm-mule3-agent copied to clipboard

cannot be cast to org.mule.api.AnnotatedObject Error for Mule Object Store

Open goncalomiranda opened this issue 4 years ago • 3 comments

Hi Michael,

I was trying your apm agent for mule 3.9 and I faced an issue when the message processor is the mule object store or even a custom connector:

org.mule.modules.objectstore.generated.processors.StoreMessageProcessorDebuggable cannot be cast to org.mule.api.AnnotatedObject

Class: AnnotatedObjectUtils method: getProcessorType

Component: <objectstore:store config-ref="ObjectStore__Connector" key="a" value-ref="#[payload]" overwrite="true" doc:name="ObjectStore"/>

goncalomiranda avatar Nov 18 '20 22:11 goncalomiranda

Yep, will have a look. Thanks for reporting it.

michaelhyatt avatar Nov 19 '20 08:11 michaelhyatt

Hi Gonçalo - I created a new release with the fix for this issue. The names of the DEvKit components such as objectStore connector will not reflect the step name, but will rather show the class name, but at least it won't crash. This is due to devKit connector Processors not implementing AnnotatedObject interface.

Please check the v1.19.0 release out and let me know.

michaelhyatt avatar Nov 21 '20 05:11 michaelhyatt

hi Michael,

Thank you so much for your support. It is working fine.

goncalomiranda avatar Nov 24 '20 19:11 goncalomiranda