Errors when i start matlab

I am getting some error messages when i startup matlab that weren't appearing a few days ago
ERROR: org.apache.felix.framework.cache.BundleArchive: Unable to create archive directory.
ERROR: org.apache.felix.framework.cache.JarRevision: Unable to create revision directory.
is there a way to fix these errors

6 Comments

My MATLAB version is 7.10.0.499 (R2010a) student version
I run mac OS X 10.6.7
I am the administrator on the computer.
Here is a list of the actual errors with more details.
-
ERROR: org.apache.felix.framework.cache.JarRevision: Unable to create revision directory.
org.osgi.framework.BundleException: Unable to cache bundle: reference:file:/Applications/MATLAB_R2010aSV.app/java/jar/mlwidgets.jar
Caused by: java.io.IOException: Unable to create archive directory.
-
ERROR: org.apache.felix.framework.cache.BundleArchive: Unable to create archive directory.
org.osgi.framework.BundleException: Unable to cache bundle: reference:file:/Applications/MATLAB_R2010aSV.app/java/jar/mwswing.jar
Caused by: java.io.IOException: Unable to create archive directory.
-
ERROR: org.apache.felix.framework.cache.BundleArchive: Unable to create archive directory.
org.osgi.framework.BundleException: Unable to cache bundle: reference:file:/Applications/MATLAB_R2010aSV.app/java/jar/util.jar
Caused by: java.io.IOException: Unable to create archive directory.
-
ERROR: org.apache.felix.framework.cache.BundleArchive: Unable to create archive directory.
org.osgi.framework.BundleException: Unable to cache bundle: reference:file:/Applications/MATLAB_R2010aSV.app/java/jar/widgets.jar
Caused by: java.io.IOException: Unable to create archive directory.
-
ERROR: org.apache.felix.framework.cache.BundleArchive: Unable to create archive directory.
org.osgi.framework.BundleException: Unable to cache bundle: reference:file:/Applications/MATLAB_R2010aSV.app/java/jar/mde.jar
Caused by: java.io.IOException: Unable to create archive directory.
-
ERROR: org.apache.felix.framework.cache.BundleArchive: Unable to create archive directory.
org.osgi.framework.BundleException: Unable to cache bundle: reference:file:/Applications/MATLAB_R2010aSV.app/java/jar/services.jar
Caused by: java.io.IOException: Unable to create archive directory.
Did you pull that list of errors out of the system log, or was that shown on the screen? When I look at the source code for Felix, it looks to me as if the exact directory it cannot create would be in the system log. Look in the Utilities subdirectory of the Applications directory, and start up the Console application you find there. I do not know, though, which log you need to look in. Click in the upper left on "Show Log List" and use the list that appears on the left; for example it might be the Java log that is relevant, or perhaps under "/var/logs" you might find something relevant.
this is what was showing in the command window
(the hyphens weren't there though i put those in to separate each error message)
also i remove like 25 lines of indented red text from each error message
Well, if the program is working now, it doesn't really matter anymore :)
true thanks for all your help

Sign in to comment.

 Accepted Answer

Walter Roberson
Walter Roberson on 1 Jun 2011

0 votes

It appears that you might have a permission problem. The official bug report is here and there is someone reporting it as a permissions problem over here
The later also indicates that it could be a problem with the Java versions, so you might have to reinstall Java
Possibly if you start up MATLAB as root / administrator then that might fix the problem.

11 Comments

i am the administrator and i run matlab in mac OS X 10.6.7
Are you logged in as root when you run MATLAB? If not, then you could _try_
sudo matlab
and see if that helped.
It should be possible to trace which directory the problem is with by using strace .
I see that there was a 10.6.7 security update not long ago. Is it possible that you have your system set to automatically install updates and it did that recently? It would have rebooted if it had done that.
If I read the source correctly, by default it would try to create a directory named felix-cache under the current directory. But that's the default for the Felix code, and I do not know what MATLAB might be setting as the default.
If you start up the system console, then it appears that the exact directory name involved should have been logged in one of the logs; I'm not sure which one.
i have automatic updates off and i have not downloaded anything since before matlab was last working for me
is logging in as root different logging in as normal
also I am still sorta learning matlab so i don't know what sudo matlab is
i took an engineering class this last spring and i'm trying to learn more about matlab on my own
"sudo" is an OS-X command that would be entered in to a Terminal window. The Terminal app should be in the Utilities subdirectory of the Applications directory. You would open a terminal window and type
sudo matlab
there. You would be prompted for the name and password of an administrator (e.g., your own username and password.) It would then start matlab as a privileged user, hopefully allowing the problem to be bypassed.
Sorry, I missed your question "is logging in as root different logging in as normal". The answer is Yes, and that you would not normally be able to log in directly as root (but it is possible to configure the system to allow it.) Anyhow, if the question doesn't mean anything to you, then you very likely are _not_ logging in as root.
i did the sudo matlab and it only displayed this message in the terminal
matlab: No MATLAB bin directory for this machine architecture.
ARCH = maci64
i tried the command twice and it didn't open up matlab
however i opened up matlab like normal and only got one of the error messages
so i tried running the sudo matlab again and opened matlab again and had no error messages
thanks for your help
i think the problem has been fixed
Hmmm.... You might have to look under /Applications/MATLAB_R2010aSV.app to find the proper start-up script. It might be a shell script named "matlab" in a "bin" subdirectory of that directory.
Sorry, I have OS-X 10.6.6 (Leopard) on my laptop here, but Matlab is instead installed on the Linux machines at work, so I do not know the precise directory structure used by Matlab on OS-X.
If the errors are gone, that's good ;-) As long as matlab works right for you.
turns out that when i reset my computer the problems came back
but the next day my computer stopped working all together.
i had to have the logicboard replaced but now matlab works perfectly.
thanks for all your help

Sign in to comment.

More Answers (0)

Categories

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!