Can't save simbiology model - java error

2 views (last 30 days)
Alex
Alex on 30 Oct 2014
Commented: Alex on 31 Oct 2014
I am experiencing a java error that is preventing me from saving my simbiology experiment. I am running Mac OS yosemite and Matlab 2014b. I have been running 2014b on Yosemite for over a week and this is the first problem that I have encountered. There is also a java error in the command line of the main matlab window that reads:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at com.mathworks.toolbox.simbio.util.tablecell.BooleanCellRenderer.getTableCellRendererComponent(BooleanCellRenderer.java:44) at javax.swing.JTable$AccessibleJTable.getAccessibleChild(JTable.java:7039) at com.mathworks.mwswing.MJTable$ExtAccessibleJTable.getAccessibleChild(MJTable.java:935) at javax.swing.JTable$AccessibleJTable.getAccessibleAt(JTable.java:7426) ...along with ~100 more lines
The error code that I receive when I try to save the project is in the screenshot.
Please help! I'm worried the whole thing will crash and I'll need to rework the entire model.
  2 Comments
Geoff Hayes
Geoff Hayes on 30 Oct 2014
Alex - you didn't attach a screenshot. Make sure that you press the Attach File button.
Alex
Alex on 31 Oct 2014
Sorry Geoff, the screenshot is now up.
I received a reply this morning from Vijay, a simbiology developer, with instructions on how to output and save my model from the matlab command line.
His instructions worked for me:
"As a workaround, I would suggest exporting the model to the MATLAB workspace by going to the Model Tab -> Export -> Export Model to Workspace, this typically exports the model with a default name of m1.
After your model is exported to the MATLAB workspace, you can save it by calling: sbiosaveproject('<projectname>', '<model_name>') .This should save the model in an sbproj file in your MATLAB current folder.
This will save your model, but not any tasks you might have."

Sign in to comment.

Answers (0)

Categories

Find more on Extend Modeling Environment in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!