Article - CS229396
CED ModelManager and CED Modeling freeze/hang when calling a handler
Modified: 09-Mar-2016
Applies To
- Creo Elements/Direct Model Manager / Drawing Manager 19.00 to 20.00
Description
- If a custom function with apply events is called from CED Modeling handler, Model Manager and Modeling freeze and become unresponsive
- Calling the same function from UI (e.g. as an action) the problem does not occur
- Thread dump:
<waiting for 'java.awt.Component$AWTTreeLock@1354a73' held by thread id=21 name=AWT-EventQueue-0>
java.awt.Container.addImpl(Container.java:1077)
javax.swing.CellRendererPane.addImpl(CellRendererPane.java:106)
java.awt.Container.add(Container.java:410)
javax.swing.plaf.basic.BasicTreeUI$NodeDimensionsHandler.getNodeDimensions(BasicTreeUI.java:2815)
javax.swing.tree.AbstractLayoutCache.getNodeDimensions(AbstractLayoutCache.java:492)
javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.updatePreferredSize(VariableHeightLayoutCache.java:1359)
javax.swing.tree.VariableHeightLayoutCache.rebuild(VariableHeightLayoutCache.java:737)
javax.swing.tree.VariableHeightLayoutCache.setModel(VariableHeightLayoutCache.java:108)
javax.swing.plaf.basic.BasicTreeUI.setModel(BasicTreeUI.java:411)
javax.swing.plaf.basic.BasicTreeUI$Handler.propertyChange(BasicTreeUI.java:3417)
java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:327)
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263)
java.awt.Component.firePropertyChange(Component.java:8382)
javax.swing.JTree.setModel(JTree.java:879)
com.osm.property.NotesPanel.refresh(NotesPanel.java:123)
com.osm.property.NotesPanel.wmObjectChange(NotesPanel.java:185)
com.osm.biz.WMObject.fireChangeEvent(WMObject.java:414)
com.osm.biz.WMMainObject.fireChangeEvent(WMMainObject.java:734)
com.osm.biz.WMObject.wmObjectChange(WMObject.java:369)
com.osm.biz.WMDBObject.wmObjectChange(WMDBObject.java:983)
com.osm.biz.WMMainObject.wmObjectChange(WMMainObject.java:821)
com.osm.biz.WMElement.wmObjectChange(WMElement.java:4906)
com.osm.datamgmt.biz.Part.wmObjectChange(Part.java:1834)
com.osm.biz.WMSession.fireElementCacheWMObjectChange(WMSession.java:993)
com.osm.biz.WMSession.wmObjectChange(WMSession.java:1087)
com.osm.biz.WMObject.fireChangeEvent(WMObject.java:414)
com.osm.biz.WMMainObject.fireChangeEvent(WMMainObject.java:734)
com.osm.biz.WMObject.fireAppliedEvent(WMObject.java:673)
com.osm.biz.WMElement.fireAppliedEvent(WMElement.java:4889)
com.osm.biz.WMTransaction$TransactionItem.postApply(WMTransaction.java:877)
com.osm.biz.WMTransaction$TransactionItem.access$600(WMTransaction.java:797)
com.osm.biz.WMTransaction.postApply(WMTransaction.java:649)
com.osm.biz.WMTransaction.apply(WMTransaction.java:468)
com.osm.biz.WMTransaction.apply(WMTransaction.java:322)
com.osm.biz.WMElement.apply(WMElement.java:717)
<locked 'java.lang.Object@e61427'>
com.osm.biz.WMMainObject.apply(WMMainObject.java:180)
com.ptc.datamgmt.integration.command.osd.CreateBomFromCslHandlerMini.createOrUpdateBom(CreateBomFromCslHandlerMini.java:69)
com.ptc.datamgmt.integration.command.osd.CreateBomFromCslHandlerMini.processCommand(CreateBomFromCslHandlerMini.java:41)
com.osm.datamgmt.integration.command.OSDCommandHandler.startRun(OSDCommandHandler.java:151)
com.osm.datamgmt.integration.command.OSDCommandsManager.execute(OSDCommandsManager.java:92)
com.osm.datamgmt.integration.command.OSDCommandsManager.processCommand(OSDCommandsManager.java:66)
com.osm.datamgmt.integration.command.CADCommandHandler.processCommand(CADCommandHandler.java:78)
com.osm.biz.Interlink.read(Interlink.java:260)
com.osm.datamgmt.integration.command.CADCommandHandler$InterlinkReaderThread.run(CADCommandHandler.java:156)
This is a printer-friendly version of Article 229396 and may be out of date. For the latest version click CS229396