Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Comsol v4.1 in client/server mode -> issue with saving files

Please login with a confirmed email address before reporting spam

Dear all,

from my local Linux machine Comsol (v.41) is connected to a remote Comsol Windows server (v4.1 as well).
I want to run fa model from a Matlab script, that I start from my local machine and that is executed in client/server mode on the remote machine.

When running the script on the remote Windows machine directly, it runs without any problem.
When I run the script on the local machine, the remote one is busy for a long time (checking the task manager performance monitor) and the model seems to run completely with no problems as well.

But when the script wants to save the results using model.result.export('datax').run, an error message appears, saying something like "made 5 attempts to write the file, giving up".
The script should save the files on the local machine, not on the remote one.
But I also tried to save on the remote machine, and it did not work, too.

Did anyone experience something similar and found a solution for this?
Is it an incompatibility issue between the windows and linux version of Comsol?

Thanks a lot and best regards,
Juergen

1 Reply Last Post 2011年4月7日 GMT-4 11:08

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2011年4月7日 GMT-4 11:08
Update:

Saving the model file itself using the "model.save" command does work!
It is just when I try using the model.result.export('data1').run command, which does not work and throws the following error message:

Any ideas?


??? Java exception occurred:
Exception:
java.lang.RuntimeException: java.io.InvalidClassException:
com.comsol.util.classes.FlStringList; local class incompatible: stream
classdesc serialVersionUID = -7563983620598702692, local class
serialVersionUID = 3136439966478934778
(rethrown as com.comsol.util.exceptions.FlException)
Messages:
java.io.InvalidClassException: com.comsol.util.classes.FlStringList; local
class incompatible: stream classdesc serialVersionUID =
-7563983620598702692, local class serialVersionUID = 3136439966478934778

Stack trace:
at
org.eclipse.emf.ecore.impl.EFactoryImpl.createFromString(EFactoryImpl.java:621)
at
com.comsol.clientserver.impl.ClientserverFactoryImpl.createThrowableFromString(Unknown
Source)
at
com.comsol.clientserver.impl.ClientserverFactoryImpl.createFromString(Unknown
Source)
at
org.eclipse.emf.ecore.util.EcoreUtil.createFromString(EcoreUtil.java:3257)
at
org.eclipse.emf.cdo.internal.common.model.CDOTypeImpl$25.convertToEMF(CDOTypeImpl.java:601)
at
org.eclipse.emf.internal.cdo.CDOStore.convertToEMF(CDOStore.java:396)
at org.eclipse.emf.internal.cdo.CDOStore.get(CDOStore.java:171)
at
org.eclipse.emf.internal.cdo.CDOObjectImpl.dynamicGet(CDOObjectImpl.java:485)
at
org.eclipse.emf.ecore.impl.EStructuralFeatureImpl$InternalSettingDelegateSingleData.dynamicGet(EStructuralFeatureImpl.java:1959)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1029)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1013)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1005)
at com.comsol.clientserver.impl.JobImpl.getException(Unknown Source)
at com.comsol.model.clientserver.ClientManagerImpl.a(Unknown Source)
at com.comsol.model.clientserver.ClientManagerImpl.runServerJob(Unknown
Source)
at com.comsol.model.impl.ExportFeatureImpl$a.a(Unknown Source)
at com.comsol.model.impl.ExportFeatureImpl$a.execute(Unknown Source)
at com.comsol.model.clientserver.ClientManagerImpl$d.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.InvalidClassException: com.comsol.util.classes.FlStringList;
local class incompatible: stream classdesc serialVersionUID = -7563983620598702692,
local class serialVersionUID = 3136439966478934778
at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at
org.eclipse.emf.ecore.impl.EFactoryImpl.createFromString(EFactoryImpl.java:617)
... 22 more
Update: Saving the model file itself using the "model.save" command does work! It is just when I try using the model.result.export('data1').run command, which does not work and throws the following error message: Any ideas? ??? Java exception occurred: Exception: java.lang.RuntimeException: java.io.InvalidClassException: com.comsol.util.classes.FlStringList; local class incompatible: stream classdesc serialVersionUID = -7563983620598702692, local class serialVersionUID = 3136439966478934778 (rethrown as com.comsol.util.exceptions.FlException) Messages: java.io.InvalidClassException: com.comsol.util.classes.FlStringList; local class incompatible: stream classdesc serialVersionUID = -7563983620598702692, local class serialVersionUID = 3136439966478934778 Stack trace: at org.eclipse.emf.ecore.impl.EFactoryImpl.createFromString(EFactoryImpl.java:621) at com.comsol.clientserver.impl.ClientserverFactoryImpl.createThrowableFromString(Unknown Source) at com.comsol.clientserver.impl.ClientserverFactoryImpl.createFromString(Unknown Source) at org.eclipse.emf.ecore.util.EcoreUtil.createFromString(EcoreUtil.java:3257) at org.eclipse.emf.cdo.internal.common.model.CDOTypeImpl$25.convertToEMF(CDOTypeImpl.java:601) at org.eclipse.emf.internal.cdo.CDOStore.convertToEMF(CDOStore.java:396) at org.eclipse.emf.internal.cdo.CDOStore.get(CDOStore.java:171) at org.eclipse.emf.internal.cdo.CDOObjectImpl.dynamicGet(CDOObjectImpl.java:485) at org.eclipse.emf.ecore.impl.EStructuralFeatureImpl$InternalSettingDelegateSingleData.dynamicGet(EStructuralFeatureImpl.java:1959) at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1029) at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1013) at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1005) at com.comsol.clientserver.impl.JobImpl.getException(Unknown Source) at com.comsol.model.clientserver.ClientManagerImpl.a(Unknown Source) at com.comsol.model.clientserver.ClientManagerImpl.runServerJob(Unknown Source) at com.comsol.model.impl.ExportFeatureImpl$a.a(Unknown Source) at com.comsol.model.impl.ExportFeatureImpl$a.execute(Unknown Source) at com.comsol.model.clientserver.ClientManagerImpl$d.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.io.InvalidClassException: com.comsol.util.classes.FlStringList; local class incompatible: stream classdesc serialVersionUID = -7563983620598702692, local class serialVersionUID = 3136439966478934778 at java.io.ObjectStreamClass.initNonProxy(Unknown Source) at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source) at java.io.ObjectInputStream.readClassDesc(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.defaultReadFields(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at org.eclipse.emf.ecore.impl.EFactoryImpl.createFromString(EFactoryImpl.java:617) ... 22 more

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.