If wehave both JMS queue Receiver and Get JMS queue message activities in the same process and we try to group activities like Create File, JDBC Query,JDBC Update etc, then TIBCO BW will throw java.util.ConcurrentModificationException

If wehave both JMS queue Receiver and Get JMS queue message activities in the same process and we try to group activities like Create File, JDBC Query,JDBC Update etc, then TIBCO BW will throw java.util.ConcurrentModificationException

book

Article ID: KB0085120

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Resolution:
Description:
============

The following causes the exception:

1).    Add JMS Queue Receiver.
2).    Add Get JMS Queue Message.
3).    Add any activity say Write File or JDBC Query.
4).    Add a Group on activity configured in step 3.

-----------------------------------
java.util.ConcurrentModificationException
    at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
    at java.util.HashMap$KeyIterator.next(HashMap.java:828)
    at com.tibco.ae.tools.palettes.processpalette.activities.EventSourceChooserFormField.loadSources(Unknown Source)
    at com.tibco.ae.tools.palettes.processpalette.group.ProcessGroupResource.createConfigViews(Unknown Source)
    at com.tibco.ae.designerapi.DesignerResource.getPropertiesViews(DesignerResource.java:978)
    at com.tibco.ae.tools.palettes.processpalette.group.ProcessGroupResource.getPropertiesViews(Unknown Source)
    at com.tibco.ae.tools.designer.newwm.WM.updatePropertyViews(WM.java:507)
    at com.tibco.ae.tools.designer.newwm.WM.inspectResource(WM.java:397)
    at com.tibco.ae.tools.designer.newwm.WM.inspectResource(WM.java:390)
    at com.tibco.ae.tools.designer.AEDocument.inspectResource(AEDocument.java:1123)
    at com.tibco.ae.tools.designer.AEDocument.inspectResource(AEDocument.java:849)
    at com.tibco.ae.tools.palettes.processpalette.ProcessDefinitionView.requestResourceProperties(Unknown Source)
    at com.tibco.ae.tools.palettes.processpalette.group.ProcessViewGroupHandler.createGroupProcess(Unknown Source)
    at com.tibco.ae.tools.palettes.processpalette.actions.GroupAction.actionPerformed(Unknown Source)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
    at java.awt.Component.processMouseEvent(Component.java:6267)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6032)
    at java.awt.Container.processEvent(Container.java:2041)
    at java.awt.Component.dispatchEventImpl(Component.java:4630)
    at java.awt.Container.dispatchEventImpl(Container.java:2099)
    at java.awt.Component.dispatchEvent(Component.java:4460)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
    at java.awt.Container.dispatchEventImpl(Container.java:2085)
    at java.awt.Window.dispatchEventImpl(Window.java:2478)
    at java.awt.Component.dispatchEvent(Component.java:4460)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
----------------------------------------------

Environment:
===========
ALL

Symptoms:
========
When we have both the JMS queue Receiver and the Get JMS queue message activities in the same process, and while trying to group activities such as Create File, JDBC Query,JDBC Update etc., then TIBCO BW get java.util.ConcurrentModificationException will be thrown.

Cause:
=====
This is a defect. JIRA# BW-8583

Resolution:
==========
Group the activities (Create File,JDBC Query etc)  before adding Get JMS Queue Message.

References:
==========
JIRA# BW-8583

Issue/Introduction

If wehave both JMS queue Receiver and Get JMS queue message activities in the same process and we try to group activities like Create File, JDBC Query,JDBC Update etc, then TIBCO BW will throw java.util.ConcurrentModificationException