小弟今天试着用Matlab运行Comsol生成的M文件,但是运行的时候出现如下错误:
Java exception occurred:
java.lang.IllegalStateException: Not active:
CDOTransaction(1)
at
org.eclipse.net4j.util.lifecycle.LifecycleUtil.checkActive(LifecycleUtil.java:67)
at
org.eclipse.net4j.util.lifecycle.Lifecycle.checkActive(Lifecycle.java:169)
at
org.eclipse.emf.internal.cdo.view.CDOViewImpl.hasResource(CDOViewImpl.java:380)
at
com.comsol.model.clientserver.ClientManagerImpl.hasResource(Unknown
Source)
at
com.comsol.model.util.ModelManager.getUniqueResourcePath(Unknown
Source)
at com.comsol.model.util.ModelManager.create(Unknown
Source)
at
com.comsol.model.util.ModelInternalUtil.create(Unknown
Source)
at
com.comsol.model.util.ModelInternalUtil.create(Unknown
Source)
at com.comsol.model.util.ModelUtil.create(Unknown
Source)
Error in mymodle (line 13)
model = ModelUtil.create('Model');
M文件是Comsol自动生成的,没做修改,也是在Comsol with Matlab中运行的,出现这种情况的原因是什么呢?