While trying to print a figure from the figure window, or a MATLAB file from the editor window, I receive the following Java error messages even though I am able to print successfully from the Command line using PRINT.
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: null attribute at sun.print.IPPPrintService.isAttributeValueSupported(Unknown Source) at sun.print.ServiceDialog$OrientationPanel.updateInfo(Unknown Source) at sun.print.ServiceDialog$PageSetupPanel.updateInfo(Unknown Source) at sun.print.ServiceDialog.updatePanels(Unknown Source) at sun.print.ServiceDialog.initPrintDialog(Unknown Source) at sun.print.ServiceDialog.<init>(Unknown Source) at javax.print.ServiceUI.printDialog(Unknown Source) at com.mathworks.widgets.text.print.PrintSettings.showPrintDialog(PrintSettings.java:665) at com.mathworks.widgets.SyntaxTextPaneBase.printDocument(SyntaxTextPaneBase.java:2302) at com.mathworks.widgets.SyntaxTextPaneMultiView.printDocument(SyntaxTextPaneMultiView.java:740) at com.mathworks.mde.editor.EditorView.doPrint(EditorView.java:1342) at com.mathworks.mde.editor.EditorView.access$2700(EditorView.java:53) at com.mathworks.mde.editor.EditorView$7.update(EditorView.java:604) at com.mathworks.mde.editor.EditorAction$ObservableAction.actionPerformed(EditorAction.java:52) at javax.swing.AbstractButton.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.AbstractButton.doClick(Unknown Source) at com.mathworks.mwswing.plaf.MBasicMenuItemUI.doClick(MBasicMenuItemUI.java:1141) at com.mathworks.mwswing.plaf.MBasicMenuItemUI
Best Answer