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.

Problem by running Comsol35a with Matlab2009a on Linux (Ubuntu 9.04) 64 bits

Please login with a confirmed email address before reporting spam

hi,

I just install Comsol(35a) in connection with Matlab(R2009a) on a 64-bits Linux machine (Ubuntu 9.04).
Actually I submit the Comsol jobs in a m.file with the following command in the Linux terminal:
/usr/local/comsol35a/bin/comsol matlab -ml -nodesktop -ml -nosplash -mlr job.m
But I get the following error message:
------------------------------------------------------------------------
< M A T L A B (R) >
Copyright 1984-2009 The MathWorks, Inc.
Version 7.8.0.347 (R2009a) 64-bit (glnxa64)
February 12, 2009


To get started, type one of these: helpwin, helpdesk, or demo.
For product information, visit www.mathworks.com.

** On entry to DGESVD parameter number 13 had an illegal value
------------------------------------------------------------------------
I try to install Comsol(35a) and Matlab(R2009a) on a 32-bit Linux machine. In this case this command perfectly works.
Does Anybody known what I am doing wrong with the 64-bit Linux machine?

Thanks a lot in advance for your help.

Magalie Huttin

19 Replies Last Post Mar 21, 2012, 6:28 p.m. EDT

Please login with a confirmed email address before reporting spam

Posted: 2 decades ago Aug 14, 2009, 10:39 a.m. EDT
Check your Comsol version, may be this will help www.comsol.com/support/updates/comsol35a1/
Check your Comsol version, may be this will help http://www.comsol.com/support/updates/comsol35a1/

Please login with a confirmed email address before reporting spam

Posted: 2 decades ago Aug 16, 2009, 6:27 a.m. EDT
Thanks a lot! I download the updates and now it works!

Best regards

Magalie Huttin
Thanks a lot! I download the updates and now it works! Best regards Magalie Huttin

Please login with a confirmed email address before reporting spam

Posted: 2 decades ago Aug 19, 2009, 4:13 a.m. EDT
I just installed COMSOL 3.5.0.494 it works fine on windows xp 32 bit.
When I installed it on linux ubuntu 9.04 the installation went fine but when I start it up I get the model navigator and after choosing a model it dies giving:
Please help!

Error: 9040
Fatal error.
- Type: ExceptionInInitializerError
Exception:
java.lang.ExceptionInInitializerError
(rethrown as com.femlab.util.FlFatalException)
Messages:
Fatal error.
- Type: ExceptionInInitializerError

Stack trace:
at com.femlab.post.PostPlotStyleData.<init>(Unknown Source)
at com.femlab.post.PostPlotStyleData.<init>(Unknown Source)
at com.femlab.post.PostTriPlot.<init>(Unknown Source)
at com.femlab.post.PostModelMph.ap(Unknown Source)
at com.femlab.post.PostModelMph.<init>(Unknown Source)
at com.femlab.gui.bo.<init>(Unknown Source)
at com.femlab.gui.Femlab.startGui(Unknown Source)
at com.femlab.gui.dialogs.ModelNavigator.a(Unknown Source)
at com.femlab.gui.dialogs.ModelNavigator.applyAction(Unknown Source)
at com.femlab.controls.FlDialog.okAction(Unknown Source)
at com.femlab.controls.FlDialog.actionPerformed(Unknown Source)
at com.femlab.controls.FlButton.a(Unknown Source)
at com.femlab.controls.FlButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at com.femlab.gui.e.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at com.femlab.post.CustomColorMap.getCustomColorMaps(Unknown Source)
at com.femlab.post.PostColorMapData.createColorMapComboItems(Unknown Source)
at com.femlab.post.PostColorMapData.<clinit>(Unknown Source)
... 38 more
I just installed COMSOL 3.5.0.494 it works fine on windows xp 32 bit. When I installed it on linux ubuntu 9.04 the installation went fine but when I start it up I get the model navigator and after choosing a model it dies giving: Please help! Error: 9040 Fatal error. - Type: ExceptionInInitializerError Exception: java.lang.ExceptionInInitializerError (rethrown as com.femlab.util.FlFatalException) Messages: Fatal error. - Type: ExceptionInInitializerError Stack trace: at com.femlab.post.PostPlotStyleData.(Unknown Source) at com.femlab.post.PostPlotStyleData.(Unknown Source) at com.femlab.post.PostTriPlot.(Unknown Source) at com.femlab.post.PostModelMph.ap(Unknown Source) at com.femlab.post.PostModelMph.(Unknown Source) at com.femlab.gui.bo.(Unknown Source) at com.femlab.gui.Femlab.startGui(Unknown Source) at com.femlab.gui.dialogs.ModelNavigator.a(Unknown Source) at com.femlab.gui.dialogs.ModelNavigator.applyAction(Unknown Source) at com.femlab.controls.FlDialog.okAction(Unknown Source) at com.femlab.controls.FlDialog.actionPerformed(Unknown Source) at com.femlab.controls.FlButton.a(Unknown Source) at com.femlab.controls.FlButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at com.femlab.gui.e.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Caused by: java.lang.NullPointerException at com.femlab.post.CustomColorMap.getCustomColorMaps(Unknown Source) at com.femlab.post.PostColorMapData.createColorMapComboItems(Unknown Source) at com.femlab.post.PostColorMapData.(Unknown Source) ... 38 more

Please login with a confirmed email address before reporting spam

Posted: 2 decades ago Aug 20, 2009, 6:29 p.m. EDT
I'm not sure but it migth help you:
My friend had some problems with Ubuntu, and Comsol doesn't officially support Ubuntu.
So what he did is - he changed his Linux system to one that is daughter of RedHat. And I think it helped him with MatLab issues.

I'm not sure but it migth help you: My friend had some problems with Ubuntu, and Comsol doesn't officially support Ubuntu. So what he did is - he changed his Linux system to one that is daughter of RedHat. And I think it helped him with MatLab issues.

Please login with a confirmed email address before reporting spam

Posted: 2 decades ago Aug 21, 2009, 8:46 a.m. EDT
I am using Ubuntu without any problem. it works perfectly.

It seems that you have a problem with your Java machine, try to update it. Don't use compiz and something like that.
Also, during the installation a folder ".comsol" will be created in your profile folder. Try to change the permission access for this folder (from root to your username).
If you are using Matalb, also do the same to the folder ".matlab"

I hope it helps

Cheers
I am using Ubuntu without any problem. it works perfectly. It seems that you have a problem with your Java machine, try to update it. Don't use compiz and something like that. Also, during the installation a folder ".comsol" will be created in your profile folder. Try to change the permission access for this folder (from root to your username). If you are using Matalb, also do the same to the folder ".matlab" I hope it helps Cheers

Please login with a confirmed email address before reporting spam

Posted: 2 decades ago Aug 25, 2009, 3:22 a.m. EDT
Hello Faycal,
Thanks for your reply.
I have changed the permission on the .comsol directory to my username.
Which java package should I install?
I have java 1.6.0_14 version which is java 6 SE.
In the synaptic package manager I cannot find any java 64-bit version.
any clue?

Eyal
Hello Faycal, Thanks for your reply. I have changed the permission on the .comsol directory to my username. Which java package should I install? I have java 1.6.0_14 version which is java 6 SE. In the synaptic package manager I cannot find any java 64-bit version. any clue? Eyal

Please login with a confirmed email address before reporting spam

Posted: 2 decades ago Aug 26, 2009, 7:29 p.m. EDT
Hi,

Don't forget to change also the permission for the sub folders and also the files in .comsol
Concerning the installation of the Java, don't use the synaptic.
It is much better with the command line
Try this link and follow the instruction (it is easy) just copy and past the instructions. By this, you can also check which version is installed in your system.

www.ubuntugeek.com/how-to-install-java-runtime-environment-jre-in-ubuntu-904-jaunty.html#more-1307

Hope it helps and keep us informed about the progress.

Cheers
Hi, Don't forget to change also the permission for the sub folders and also the files in .comsol Concerning the installation of the Java, don't use the synaptic. It is much better with the command line Try this link and follow the instruction (it is easy) just copy and past the instructions. By this, you can also check which version is installed in your system. http://www.ubuntugeek.com/how-to-install-java-runtime-environment-jre-in-ubuntu-904-jaunty.html#more-1307 Hope it helps and keep us informed about the progress. Cheers

Please login with a confirmed email address before reporting spam

Posted: 2 decades ago Aug 27, 2009, 4:39 a.m. EDT
Hi Faycal,

Thanks for your help.
The problem was indeed permission issues.
I changed permission of the .comsol directory and it did'nt help
For starters I run it with sudo and it runs perfectly. When I will have time to mess around with it maybe I'll clean it up
Thanks
Hi Faycal, Thanks for your help. The problem was indeed permission issues. I changed permission of the .comsol directory and it did'nt help For starters I run it with sudo and it runs perfectly. When I will have time to mess around with it maybe I'll clean it up Thanks

Please login with a confirmed email address before reporting spam

Posted: 2 decades ago Aug 27, 2009, 5:05 p.m. EDT
Hi,

Changing the permission for the .comsol folder and its sub folder should "definitely" solve the problem since that the software ran by using sudo.
The reason is that when you start comsol, the software has to write some specific files in that folder. So, without root permission comsol cannot start.
You have to change the access (permission) for this folder and its content.
A radical solution is to change the permission also for /usr/local/comsol folder and its sub folders (all the content).

This is due to the Ubuntu security system not comsol itself.

Good luck,
Hi, Changing the permission for the .comsol folder and its sub folder should "definitely" solve the problem since that the software ran by using sudo. The reason is that when you start comsol, the software has to write some specific files in that folder. So, without root permission comsol cannot start. You have to change the access (permission) for this folder and its content. A radical solution is to change the permission also for /usr/local/comsol folder and its sub folders (all the content). This is due to the Ubuntu security system not comsol itself. Good luck,

Please login with a confirmed email address before reporting spam

Posted: 2 decades ago Sep 23, 2009, 10:55 a.m. EDT
Hi,

I run comsol35a with hotfix with matlab R2009b on UBUNTU 9.04, but I am getting the following error after running comsol matlab

??? Undefined function or method 'comsolmexpath' for input arguments of type 'char'

and non of the comsol libraries are loaded. Have you experienced something similar?

Thanks a lot.

Martin


hi,

I just install Comsol(35a) in connection with Matlab(R2009a) on a 64-bits Linux machine (Ubuntu 9.04).
Actually I submit the Comsol jobs in a m.file with the following command in the Linux terminal:
/usr/local/comsol35a/bin/comsol matlab -ml -nodesktop -ml -nosplash -mlr job.m
But I get the following error message:
------------------------------------------------------------------------
< M A T L A B (R) >
Copyright 1984-2009 The MathWorks, Inc.
Version 7.8.0.347 (R2009a) 64-bit (glnxa64)
February 12, 2009


To get started, type one of these: helpwin, helpdesk, or demo.
For product information, visit www.mathworks.com.

** On entry to DGESVD parameter number 13 had an illegal value
------------------------------------------------------------------------
I try to install Comsol(35a) and Matlab(R2009a) on a 32-bit Linux machine. In this case this command perfectly works.
Does Anybody known what I am doing wrong with the 64-bit Linux machine?

Thanks a lot in advance for your help.

Magalie Huttin


Hi, I run comsol35a with hotfix with matlab R2009b on UBUNTU 9.04, but I am getting the following error after running comsol matlab ??? Undefined function or method 'comsolmexpath' for input arguments of type 'char' and non of the comsol libraries are loaded. Have you experienced something similar? Thanks a lot. Martin [QUOTE] hi, I just install Comsol(35a) in connection with Matlab(R2009a) on a 64-bits Linux machine (Ubuntu 9.04). Actually I submit the Comsol jobs in a m.file with the following command in the Linux terminal: /usr/local/comsol35a/bin/comsol matlab -ml -nodesktop -ml -nosplash -mlr job.m But I get the following error message: ------------------------------------------------------------------------ < M A T L A B (R) > Copyright 1984-2009 The MathWorks, Inc. Version 7.8.0.347 (R2009a) 64-bit (glnxa64) February 12, 2009 To get started, type one of these: helpwin, helpdesk, or demo. For product information, visit www.mathworks.com. ** On entry to DGESVD parameter number 13 had an illegal value ------------------------------------------------------------------------ I try to install Comsol(35a) and Matlab(R2009a) on a 32-bit Linux machine. In this case this command perfectly works. Does Anybody known what I am doing wrong with the 64-bit Linux machine? Thanks a lot in advance for your help. Magalie Huttin [/QUOTE]

Please login with a confirmed email address before reporting spam

Posted: 2 decades ago Sep 24, 2009, 2:58 a.m. EDT
Hi,
I did'nt have such a problem.
On the Comsol35a installation make sure that you enter the correct path for you matlab installation.
I usually run matlab from the comsol menu \File\..\connect to matlab..
Eyal
Hi, I did'nt have such a problem. On the Comsol35a installation make sure that you enter the correct path for you matlab installation. I usually run matlab from the comsol menu \File\..\connect to matlab.. Eyal

Please login with a confirmed email address before reporting spam

Posted: 2 decades ago Oct 13, 2009, 4:52 a.m. EDT
Hi,

to resolve your problem make sure that you have the an "mli" folder in the COMSOL root directory. this folder conatins the function 'comsolmexpath' and other files used to connect matlab and COMSOL

it works for me, i had the same problem before

good luck

M


Hi,

I run comsol35a with hotfix with matlab R2009b on UBUNTU 9.04, but I am getting the following error after running comsol matlab

??? Undefined function or method 'comsolmexpath' for input arguments of type 'char'

and non of the comsol libraries are loaded. Have you experienced something similar?

Thanks a lot.

Martin




Hi, to resolve your problem make sure that you have the an "mli" folder in the COMSOL root directory. this folder conatins the function 'comsolmexpath' and other files used to connect matlab and COMSOL it works for me, i had the same problem before good luck M [QUOTE] Hi, I run comsol35a with hotfix with matlab R2009b on UBUNTU 9.04, but I am getting the following error after running comsol matlab ??? Undefined function or method 'comsolmexpath' for input arguments of type 'char' and non of the comsol libraries are loaded. Have you experienced something similar? Thanks a lot. Martin [/QUOTE]

Please login with a confirmed email address before reporting spam

Posted: 2 decades ago Oct 28, 2009, 1:51 p.m. EDT

Problem running COMSOL3.5a with MATLAB R2008a.
The path is ok, but in matlab is is written:

??? Undefined function or method 'comsolmexpath' for input arguments of type 'char'.

I don't have this 'mli' folder im Cmsol directory. Haw can I install it, is it from the normal instalation, or it have to be copied from somwhere.

thank you
Problem running COMSOL3.5a with MATLAB R2008a. The path is ok, but in matlab is is written: ??? Undefined function or method 'comsolmexpath' for input arguments of type 'char'. I don't have this 'mli' folder im Cmsol directory. Haw can I install it, is it from the normal instalation, or it have to be copied from somwhere. thank you

Please login with a confirmed email address before reporting spam

Posted: 2 decades ago Oct 29, 2009, 3:30 p.m. EDT
I had exactly the same thing and it was just pemission issues in Ubuntu.
I solved it for now by ussing sudo. A more thorough solution is to define all the permissions stuff.
Eyal.
I had exactly the same thing and it was just pemission issues in Ubuntu. I solved it for now by ussing sudo. A more thorough solution is to define all the permissions stuff. Eyal.

Please login with a confirmed email address before reporting spam

Posted: 2 decades ago Nov 6, 2009, 12:56 a.m. EST
I had the same problem and it was premissions. I changed comsol instalation directory and .comsol in my own home folder to read/write form me and it works.
I had the same problem and it was premissions. I changed comsol instalation directory and .comsol in my own home folder to read/write form me and it works.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Nov 24, 2009, 10:06 a.m. EST
I had the same problem, but I simply forgot to install the Matlab Interface (since I installed Matlab after Comsol and only added the matlab path). Reinstallation gave me the mli folder, someone above mentioned, and everything works fine.
Running on Ubuntu 9.10 (64bit) by the way, so no need to torture oneself with RedHat.
I had the same problem, but I simply forgot to install the Matlab Interface (since I installed Matlab after Comsol and only added the matlab path). Reinstallation gave me the mli folder, someone above mentioned, and everything works fine. Running on Ubuntu 9.10 (64bit) by the way, so no need to torture oneself with RedHat.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Nov 27, 2009, 7:42 a.m. EST

I had the same problem, but I simply forgot to install the Matlab Interface (since I installed Matlab after Comsol and only added the matlab path). Reinstallation gave me the mli folder, someone above mentioned, and everything works fine.
Running on Ubuntu 9.10 (64bit) by the way, so no need to torture oneself with RedHat.


I think you are right, Alexandra. Martin, check this:
www.comsol.com/support/knowledgebase/1052/

Niklas
[QUOTE] I had the same problem, but I simply forgot to install the Matlab Interface (since I installed Matlab after Comsol and only added the matlab path). Reinstallation gave me the mli folder, someone above mentioned, and everything works fine. Running on Ubuntu 9.10 (64bit) by the way, so no need to torture oneself with RedHat. [/QUOTE] I think you are right, Alexandra. Martin, check this: http://www.comsol.com/support/knowledgebase/1052/ Niklas

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Aug 23, 2010, 2:30 p.m. EDT

I am using Ubuntu without any problem. it works perfectly.

It seems that you have a problem with your Java machine, try to update it. Don't use compiz and something like that.
Also, during the installation a folder ".comsol" will be created in your profile folder. Try to change the permission access for this folder (from root to your username).
If you are using Matalb, also do the same to the folder ".matlab"

I hope it helps

Cheers


Hi R. Faycal Hamou

I have followed your instructions and changed permissions of ".comsol" folder and /usr/local/comsol35a and provided read./write access to all files in it. I have installed Sun-java6-jre and sun-java6-bin. Inspite of all this I still get the following errors:

Error 9040: Fatal error
Exception Initialization error when I am trying to open new files with any physics
Null pointer Exception when I am trying to open solved problems from either Model library or some other solved problems.

I would greatly appreciate if you have any suggestions on how to resolve this problem.
[QUOTE] I am using Ubuntu without any problem. it works perfectly. It seems that you have a problem with your Java machine, try to update it. Don't use compiz and something like that. Also, during the installation a folder ".comsol" will be created in your profile folder. Try to change the permission access for this folder (from root to your username). If you are using Matalb, also do the same to the folder ".matlab" I hope it helps Cheers [/QUOTE] Hi R. Faycal Hamou I have followed your instructions and changed permissions of ".comsol" folder and /usr/local/comsol35a and provided read./write access to all files in it. I have installed Sun-java6-jre and sun-java6-bin. Inspite of all this I still get the following errors: Error 9040: Fatal error Exception Initialization error when I am trying to open new files with any physics Null pointer Exception when I am trying to open solved problems from either Model library or some other solved problems. I would greatly appreciate if you have any suggestions on how to resolve this problem.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Mar 21, 2012, 6:28 p.m. EDT

i use comsol 3.5a and Matalb 200b i find this error please help

Exception:
java.lang.NullPointerException
(rethrown as com.femlab.util.FlFatalException)
Messages:
Fatal error.
- Type: NullPointerException
i use comsol 3.5a and Matalb 200b i find this error please help Exception: java.lang.NullPointerException (rethrown as com.femlab.util.FlFatalException) Messages: Fatal error. - Type: NullPointerException

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.