Topic
  • No replies
Kurtymckurt
Kurtymckurt
1 Post

Pinned topic Java and printing on AIX 6

‏2011-03-24T16:57:15Z |
I'm having a problem using Java when printing to a printer that's set up as a raw printing device. Whenever I try to print a page I receive the following Exception:

javax.print.PrintException: Printer is not accepting job.
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:234)
at java.util.concurrent.FutureTask.get(FutureTask.java:95)
at TestPrintService.main(TestPrintService.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:600)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: javax.print.PrintException: Printer is not accepting job.
at sun.print.UnixPrintJob.print(UnixPrintJob.java:295)
at TestPrintService$PrintThread.call(TestPrintService.java:270)
at TestPrintService$PrintThread.call(TestPrintService.java:1)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:315)
at java.util.concurrent.FutureTask.run(FutureTask.java:150)
at java.lang.Thread.run(Thread.java:736)
My java version is:

:>java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build pap3260sr8fp1-20100624_01(SR8 FP1))
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 AIX ppc-32 jvmap3260sr8ifx-20100609_59383 (JIT enabled, AOT enabled)
J9VM - 20100609_059383
JIT - r9_20100401_15339ifx2
GC - 20100308_AA)
JCL - 20100624_01
This happens anytime I try to print to any printer ONLY using java. These printers are network printers. Also, printing using lpr works fine.

Has anyone encountered this before?