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.

matlab connect prolbem

Please login with a confirmed email address before reporting spam

hey guys,

I built a model on 3.5a version, and extracted it to a M file on 4.0a version.
Now, after I opened Comsol 4.0a with Matlab, and tried to run the M file, the following error came out:

??? Java exception occurred:
Exception:
com.comsol.util.exceptions.FlException: Invalid property value
Messages:
Invalid property value
- Property: descr

X is Y#Description#a string


Stack trace:

at com.comsol.nativeutil.properties.Property.c(Unknown Source)

at com.comsol.nativeutil.properties.aa.set(Unknown Source)

at com.comsol.model.impl.PropValueImpl.set(Unknown Source)

at com.comsol.model.impl.PropFeatureImpl.c(Unknown Source)

at com.comsol.model.impl.PropFeatureImpl$p.a(Unknown Source)

at com.comsol.model.impl.PropFeatureImpl$p.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)


Error in ==> model at 759
model.result('pg1').feature('surf1').set('descr', '');

anybody knows what is the majorly wrong with this?
Thank you very much in advance.

2 Replies Last Post 01.02.2011, 07:24 GMT-5
COMSOL Moderator

Hello Chen Liu

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.


Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 01.02.2011, 07:16 GMT-5
Hello,

I get exactlyt he same error with a file that was built in the version 4.1. Is your problem already solved in the meanwhile?
Thanks in advance for your answer.
Hello, I get exactlyt he same error with a file that was built in the version 4.1. Is your problem already solved in the meanwhile? Thanks in advance for your answer.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 01.02.2011, 07:24 GMT-5
Hello Chen,

I just found that my error was fixed by replacing the empty space'' by a non-empty string.

So replace
model.result('pg1').feature('surf1').set('descr', '') by
model.result('pg1').feature('surf1').set('descr', 'test');

or something like that.


Hello Chen, I just found that my error was fixed by replacing the empty space'' by a non-empty string. So replace model.result('pg1').feature('surf1').set('descr', '') by model.result('pg1').feature('surf1').set('descr', 'test'); or something like that.

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.