Unexpected error when running application

Solution Number: 1247
Title: Unexpected error when running application
Platform:
Versions: 5.3a
Categories: Error Messages
Keywords:

Problem Description

When running my application, I get an unexpected error and after clicking view log the top of the stack trace looks like:

com.comsol.model.data.ModelLockedException: The node *** is removed.
at com.comsol.model.data.Node.dSet(SourceFile:807)

where *** is a tag from a node in the model.

Solution

If a node is removed, then Data Access to the node becomes invalidated. In general this error occurs if nodes used in Data Access are explicitly removed by an application. If the application design depends on node removal, use methods to programmatically access node properties rather than Data Access.

A special case when this error occurs is when Data Access is used to access properties of a non-edited Solver Sequence and when using the Study node to compute the model. After computing, any attempts to use the Data Access will result in the unexpected error.

A workaround for this case is to use the Solver Sequence node to compute the model instead of the Study node.

Solver Sequence


Disclaimer

COMSOL makes every reasonable effort to verify the information you view on this page. Resources and documents are provided for your information only, and COMSOL makes no explicit or implied claims to their validity. COMSOL does not assume any legal liability for the accuracy of the data disclosed. Any trademarks referenced in this document are the property of their respective owners. Consult your product manuals for complete trademark details.