Why am I unable to print in MATLAB using CUPS 1.3.4?

2 views (last 30 days)
I am trying to print in MATLAB 7.5 (R2007b) and am getting Java errors. I am unable to print within MATLAB, but can print from other applications. I am using CUPS version 1.3.4 and have Java 1.6, but have also tried other versions of Java.
ERROR: 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.page.export.printdlg.Printdlg.setVisible(Printdlg.java:470) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.mathworks.jmi.AWTUtilities$Invoker$2.runWithOutput(AWTUtilities.java:135) at com.mathworks.jmi.AWTUtilities$Invoker$1.run(AWTUtilities.java:103) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.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)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 30 Aug 2024
Edited: MathWorks Support Team on 30 Aug 2024
The following report discusses the CUPS issue:
referencing problems with /usr/lib/libcups.so
This is a soft link that is not usually created, but (at least in Debian) comes with the libcupsys2-dev package (which in turn is installed by other packages, i.e. when one wants to configure the kernel with a GUI menu).
Attempting to delete this soft link may cause MATLAB to be able to print again.

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products


Release

R2007b

Community Treasure Hunt

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

Start Hunting!