Announcement

Collapse
No announcement yet.

Java applications won't print (SOLVED)

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Java applications won't print (SOLVED)

    Java-based applications (jEdit, Freemind) fail to print, instead generating a beanshell error. This happens with java versions 1.5 and 1.6. The same problem has cropped up on the Ubuntu forums, so it's not a Kubuntu-specific issue.

    Has anyone else had the same problem? If so, any ideas?

    I'm thinking of trying the GNU version of java, but am concerned that I might encounter incompatibility problems.

    #2
    Re: Java applications won't print

    What's the error?
    For external use only.

    Comment


      #3
      Re: Java applications won't print

      beanshell error message caused by trying to print from jEdit or Freemind:

      2:27:38 PM [error] BeanShellAction: java.lang.NullPointerException: null attribute
      2:27:38 PM [error] BeanShellAction: at sun.print.IPPPrintService.isAttributeValueSupporte d(IPPPrintService.java:1100)
      2:27:38 PM [error] BeanShellAction: at sun.print.ServiceDialog$OrientationPanel.updateInf o(ServiceDialog.java:2092)
      2:27:38 PM [error] BeanShellAction: at sun.print.ServiceDialog$PageSetupPanel.updateInfo( ServiceDialog.java:1234)
      2:27:38 PM [error] BeanShellAction: at sun.print.ServiceDialog.updatePanels(ServiceDialog .java:428)
      2:27:38 PM [error] BeanShellAction: at sun.print.ServiceDialog.initPrintDialog(ServiceDia log.java:193)
      2:27:38 PM [error] BeanShellAction: at sun.print.ServiceDialog.<init>(ServiceDialog.java: 141)
      2:27:38 PM [error] BeanShellAction: at javax.print.ServiceUI.printDialog(ServiceUI.java:1 80)
      2:27:38 PM [error] BeanShellAction: at sun.print.RasterPrinterJob.printDialog(RasterPrint erJob.java:852)
      2:27:38 PM [error] BeanShellAction: at sun.print.PSPrinterJob.printDialog(PSPrinterJob.ja va:418)
      2:27:38 PM [error] BeanShellAction: at org.gjt.sp.jedit.print.BufferPrinter1_3.print(Buff erPrinter1_3.java:97)
      2:27:38 PM [error] BeanShellAction: at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
      2:27:38 PM [error] BeanShellAction: at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
      2:27:38 PM [error] BeanShellAction: at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.jav
      a:25)
      2:27:38 PM [error] BeanShellAction: at java.lang.reflect.Method.invoke(Method.java:585)
      2:27:38 PM [error] BeanShellAction: at bsh.Reflect.invokeMethod(Reflect.java:134)
      2:27:38 PM [error] BeanShellAction: at bsh.Reflect.invokeStaticMethod(Reflect.java:98)
      2:27:38 PM [error] BeanShellAction: at bsh.Name.invokeMethod(Name.java:874)
      2:27:38 PM [error] BeanShellAction: at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.j ava:75)
      2:27:38 PM [error] BeanShellAction: at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression .java:102)
      2:27:38 PM [error] BeanShellAction: at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression .java:47)
      2:27:38 PM [error] BeanShellAction: at bsh.BSHIfStatement.eval(BSHIfStatement.java:48)
      2:27:38 PM [error] BeanShellAction: at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
      2:27:38 PM [error] BeanShellAction: at bsh.BSHBlock.eval(BSHBlock.java:80)
      2:27:38 PM [error] BeanShellAction: at bsh.BshMethod.invokeImpl(BshMethod.java:362)
      2:27:38 PM [error] BeanShellAction: at bsh.BshMethod.invoke(BshMethod.java:258)
      2:27:38 PM [error] BeanShellAction: at bsh.BshMethod.invoke(BshMethod.java:186)
      2:27:38 PM [error] BeanShellAction: at org.gjt.sp.jedit.BeanShell.runCachedBlock(BeanShel l.java:509)
      2:27:38 PM [error] BeanShellAction: at org.gjt.sp.jedit.BeanShellAction.invoke(BeanShellA ction.java:76)
      2:27:38 PM [error] BeanShellAction: at org.gjt.sp.jedit.gui.InputHandler.invokeAction(Inp utHandler.java:418)
      2:27:38 PM [error] BeanShellAction: at org.gjt.sp.jedit.gui.InputHandler.invokeAction(Inp utHandler.java:384)
      2:27:38 PM [error] BeanShellAction: at org.gjt.sp.jedit.gui.DefaultInputHandler.handleKey (DefaultInputHandler.java:373)
      2:27:38 PM [error] BeanShellAction: at org.gjt.sp.jedit.input.AbstractInputHandler.proces sKeyEventKeyStrokeHandling(Abs
      tractInputHandler.java:129)
      2:27:38 PM [error] BeanShellAction: at org.gjt.sp.jedit.gui.InputHandler.processKeyEvent( InputHandler.java:187)
      2:27:38 PM [error] BeanShellAction: at org.gjt.sp.jedit.textarea.TextArea.processKeyEvent (TextArea.java:4596)
      2:27:38 PM [error] BeanShellAction: at java.awt.Component.processEvent(Component.java:529 4)
      2:27:38 PM [error] BeanShellAction: at java.awt.Container.processEvent(Container.java:196 6)
      2:27:38 PM [error] BeanShellAction: at java.awt.Component.dispatchEventImpl(Component.jav a:3984)
      2:27:38 PM [error] BeanShellAction: at java.awt.Container.dispatchEventImpl(Container.jav a:2024)
      2:27:38 PM [error] BeanShellAction: at java.awt.Component.dispatchEvent(Component.java:38 19)
      2:27:38 PM [error] BeanShellAction: at java.awt.KeyboardFocusManager.redispatchEvent(Keyb oardFocusManager.java:1826)
      2:27:38 PM [error] BeanShellAction: at java.awt.DefaultKeyboardFocusManager.dispatchKeyEv ent(DefaultKeyboardFocusManage r.java:681)
      2:27:38 PM [error] BeanShellAction: at java.awt.DefaultKeyboardFocusManager.preDispatchKe yEvent(DefaultKeyboardFocusMan ager.java:938)
      2:27:38 PM [error] BeanShellAction: at java.awt.DefaultKeyboardFocusManager.typeAheadAsse rtions(DefaultKeyboardFocusMan ager.java:810)
      2:27:38 PM [error] BeanShellAction: at java.awt.DefaultKeyboardFocusManager.dispatchEvent (DefaultKeyboardFocusManager.j ava:645)
      2:27:38 PM [error] BeanShellAction: at java.awt.Component.dispatchEventImpl(Component.jav a:3857)
      2:27:38 PM [error] BeanShellAction: at java.awt.Container.dispatchEventImpl(Container.jav a:2024)
      2:27:38 PM [error] BeanShellAction: at java.awt.Window.dispatchEventImpl(Window.java:1791 )
      2:27:38 PM [error] BeanShellAction: at java.awt.Component.dispatchEvent(Component.java:38 19)
      2:27:38 PM [error] BeanShellAction: at java.awt.EventQueue.dispatchEvent(EventQueue.java: 463)
      2:27:38 PM [error] BeanShellAction: at java.awt.EventDispatchThread.pumpOneEventForHierar chy(EventDispatchThread.java:2 42)
      2:27:38 PM [error] BeanShellAction: at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:163 )
      2:27:38 PM [error] BeanShellAction: at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:157)
      2:27:38 PM [error] BeanShellAction: at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:149)
      2:27:38 PM [error] BeanShellAction: at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:110)


      Comment


        #4
        Re: Java applications won't print

        Do you have printers set up?
        For external use only.

        Comment


          #5
          Re: Java applications won't print

          Yes, all non-Java applications print fine. It's only Java-based programs that have a problem. JEdit worked fine on earlier versions of Kubuntu, btw.

          Comment


            #6
            Re: Java applications won't print (SOLVED)

            A search of the Ubuntu forum turned up the solution, which was to downgrade cupsys from the latest version to 1.2.8. Searching there for "java printing problem", I found a link to a script that performs the downgrade automatically.

            Comment

            Working...
            X