找回密码
 注册
Simdroid-非首页
查看: 91|回复: 4

[14.错误警告信息] 求助!!COMSOL with Matlab 中显示PASSWORD无法确认!!!

[复制链接]
发表于 2013-4-1 16:31:16 | 显示全部楼层 |阅读模式 来自 北京
本帖最后由 szx123 于 2013-4-8 21:10 编辑

RT,在启动COMSOL with Matlab后,
显示

??? Java exception occurred:
Exception:
com.comsol.util.exceptions.FlException: Unable to determine password
Messages:
Unable to determine password

Stack trace:
at com.comsol.model.util.ModelManager.connect(Unknown Source)
at com.comsol.model.util.ModelManager.connect(Unknown Source)
at com.comsol.model.util.ModelUtil.connect(Unknown Source)

之后在调用COMSOL中的函数时显示未定义,
初步判定是当初设置密码的时候可能含有中文,
现在想要修改连接时的密码,却找不到可以设置的入口,求助大神!!!

 楼主| 发表于 2013-4-2 19:01:30 | 显示全部楼层 来自 北京
Simdroid开发平台
我会说我自己又找到答案了么。。。
之前重装COMSOL、MATLAB都各种没用,最后,google一下。。。
在COMSOL的境外论坛里发现了答案。。。
Hi,
this problem seems to occur sometimes when the OS and the software 'do not match'. For example Comsol 4.3 and Matlab r2012a worked together fine on Linux Mint 12, but after upgrading to Linux Mint 13 (based on Ubuntu 12.04 LTS) the 'comsol server matlab' command produces this strange error. I do not know why it happens but I figured out two ways to make it work for me:

1) If you got superuser rights on your machine, try 'sudo comsol server matlab'. I know this is not always possible and also not very nice, so I prefer the second method...

2) Connect Matlab manually to a Comsol instance running in server mode:
- start Comsol in server mode 'comsol server'
- start Matlab
- in Matlab add the path of the mli directory, e.g.: addpath('/usr/local/comsol-4.3/mli');
- then connect to Comsol (and import the libraries for setting up Comsol models):
mphstart;
import com.comsol.model.*;
import com.comsol.model.util.*;

Both methods worked for me - for method 2) I've wrote myself a little batch script to start Comsol connected to Matlab


我就是用了第二种方法之后,才搞定的。
其实就是打开'comsol server'之后打开matlab,将当前目录调到mli directory, e.g.: addpath('/usr/local/comsol-4.3/mli');,然后输入mphstart,然后就OK了!!!

大家有相同的问题的话可以试一试这样
回复 不支持

使用道具 举报

发表于 2013-4-3 15:47:46 | 显示全部楼层 来自 上海
有这么复杂么?这个密钥完全是你个人设定的,通常缺省是会保存起来,下次直接用。密钥文件一般位于(以V4.3a为例)Windows用户目录中的.comsol/v43a/login.properties,把它删掉,下次再来的时候就会提示你重新指定密码了。
回复 不支持

使用道具 举报

 楼主| 发表于 2013-4-6 20:54:28 | 显示全部楼层 来自 北京
kinggun 发表于 2013-4-3 15:47
有这么复杂么?这个密钥完全是你个人设定的,通常缺省是会保存起来,下次直接用。密钥文件一般位于(以V4.3 ...

之前本来准备搜索注册表来找的,结果木有找到,多谢大神指导了!!!
回复 不支持

使用道具 举报

 楼主| 发表于 2013-4-8 19:01:42 | 显示全部楼层 来自 北京
kinggun 发表于 2013-4-3 15:47
有这么复杂么?这个密钥完全是你个人设定的,通常缺省是会保存起来,下次直接用。密钥文件一般位于(以V4.3 ...

刚刚试过了大神的方法,更换密码之后还是依然提示上面的错误,估计是因为用了360的C盘搬家之后路径有了中文,不能识别了。。。
回复 不支持

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Simapps系列直播

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-9-20 22:48 , Processed in 0.028949 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表