jEdit Community - Resources for users of the jEdit Text Editor
Printing fails with a Beanshell error
Submitted by cherax on Friday, 23 November, 2007 - 05:28
When I attempt to print a text file, I get a long Beanshell error (and no printing) that starts with:

java.lang.NullPointerException: null attribute
at sun.print.IPPPrintService.isAttributeValueSupported(IPPPrintService.java:1100)
at sun.print.ServiceDialog$OrientationPanel.updateInfo(ServiceDialog.java:2092)
etc. etc. etc.

Checking the "use old printing API" doesn't help.

This happens with jEdit 4.2 stable and with 4.3pre11, and with java 5 and 6. I'm using Kubuntu 7.10.

Any ideas?
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
Java Printing Fix for Linux with CUPS
by davo on Fri, 13/03/2009 - 18:33
hi, i found a solution in this blog:
http://www.pikopong.com/blog/2008/09/09/java-printing-fix-for-linux-with-cups/
#append orientation option into printers.conf
vi /etc/cups/printers.conf
  ....
  Option orientation-requested 3


#restart cups
/etc/init.d/cups restart

jEdit won't print in Kubuntu 7.10 (SOLVED)
by cherax on Tue, 18/12/2007 - 00:56
The problem was with Ubuntu/Kubuntu's latest version of cupsys. Downgrading to version 1.2.8 fixed the problem. Searching the Ubuntu forum for "java printing problem" turned up the solution, which is a script that performs the downgrade automatically.
Probably a silly question.
by elberry on Fri, 23/11/2007 - 07:05
I've never had this issue before, though I haven't used jEdit on 7.10 yet. 7.10 is really new right? I just want to make sure you are using sun's java, not the gnu java that comes installed by default on ubuntu.

Also, are you having any troubles printing from any other application?


Learn from the past. Live in the present. Plan for the future.
 
beanshell printing errors
by cherax on Fri, 23/11/2007 - 19:19
Forgot to answer your other question - I'm using java 1.5 now. Version 1.6 gave the same problem. GNU java uninstalled, but maybe I should try it!
 
beanshell printing error
by cherax on Fri, 23/11/2007 - 19:13
"Also, are you having any troubles printing from any other application?"

Bingo, elberry! Yes, trying to print from Freemind generates exactly the same error output. I should have checked that before blaming jEdit! Nothing on the Kubuntu forums, but the Ubuntu forums do show a number of similar reports about printing from java apps - printing just fails completely. Non-java apps print fine.

I haven't had the problem with earlier Kubuntu versions, so this must be a 7.10 problem.

I guess I'll follow the Ubuntu thread and post on the Kubuntu forums, and hope for the best.

Thanks for your prompt response.
User login
Browse archives
« March 2024  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   82338
Context Free Art (*.cfdg)   0.31   46043
JBuilder scheme   .001   18487
BBEdit scheme   1.0   18107
ColdFusion scheme   1.0   18015
R Edit Mode - extensive version   0.1   17461
Advanced HTML edit mode   1.0   16194
Matlab Edit Mode   1.0   16057
jEdit XP icons   1.0   15220
XP icons for jEdit   1.1   14281