Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7169638

When printing documents from the Java app, it prints blank pages

    Details

    • Subcomponent:
      2d
    • Introduced In Version:
      7u4
    • CPU:
      x86
    • OS:
      windows_7

      Description

      A user reported:
      "with 7u4 - When printing documents from the Java app, it prints blank pages.
      I was able to download 6u31, and now its working again. The desktops this was happening on were a mix of windows 7 pro machines some 64 bit and some 32 bit.

      1) I think it is explicit use of Java printing, but I'm not sure. The page is used to view .tiff images for our local County Clerks deed records, it pops up a window that is Java, and you can print directly from that window, by clicking on the "print" icon. You can view the file just fine, but when you print it prints blank pages. I even tried using a PDF writer (cutePDF), and it also produced blank pages.

      2) Browser: Firefox was v.12, and it wouldn't work in IE or Chrome

      3)Java Version 7u4

      4) I would, but the site this happens on is a pay site (https://gov.propertyinfo.com/TX-Brewster/), and it is run by, http://portal.propertyinfo.com/. I emailed them also, and they told me it was a printer driver problem, so I updated my printer drivers and it didn't make any difference. Like I said in the beginning, I've installed Java 6u31, and it's working again. But I don't like to get too far behind with updates, so I'll periodically check when a new version of Java comes out."
      Here is the resutls of my testing. I called the company who makes the software and there is another customer who allows access to their documents for free. This was on Windows 7 with FF. I did not try on IE.
      The error seems to happen when printing any document on the site below, the steps are only provided to make it easier to find an docuemtn to print.

      Steps to reproduce:
      URL https://gov.propertyinfo.com/TX-Bexar/
      user [see comments]
      pass [see comments]

      Print an 'image' from the site.
      Steps to find image
         Login
      Click on 'Document#'
      Select saved search 'Java 7u4 Print error #1'
      Click Go Search at bottom left
       Click 'View Image'
      Applet will start and load image to print
      Click Print
      Blank Document will be printed


      There are two errors that are seen in the console. The first is when accepting the cert. The second is when trying to print. Both errors are below.


      Accepting the Cert:
      Console output
          Java Plug-in 10.4.1.255
          Using JRE version 1.7.0_04-b22 Java HotSpot(TM) Client VM
          User home directory = C:\Users\Dutchman
          ----------------------------------------------------
          c: clear console window
          f: finalize objects on finalization queue
          g: garbage collect
          h: display this help message
          l: dump classloader list
          m: print memory usage
          o: trigger logging
          q: hide console
          r: reload policy configuration
          s: dump system and deployment properties
          t: dump thread list
          v: dump thread stack
          x: clear classloader cache
          0-5: set trace level to <n>
          ----------------------------------------------------
          Exception in thread "AWT-EventQueue-2" java.lang.ClassCastException: [S cannot be cast to [I
              at java.awt.image.DirectColorModel.getRGB(Unknown Source)
              at sun.java2d.loops.OpaqueCopyAnyToArgb.Blit(Unknown Source)
              at sun.java2d.loops.GraphicsPrimitive.convertFrom(Unknown Source)
              at sun.java2d.loops.GraphicsPrimitive.convertFrom(Unknown Source)
              at sun.java2d.loops.MaskBlit$General.MaskBlit(Unknown Source)
              at sun.java2d.loops.Blit$GeneralMaskBlit.Blit(Unknown Source)
              at sun.java2d.pipe.DrawImage.blitSurfaceData(Unknown Source)
              at sun.java2d.pipe.DrawImage.renderImageCopy(Unknown Source)
              at sun.java2d.pipe.DrawImage.copyImage(Unknown Source)
              at sun.java2d.pipe.DrawImage.copyImage(Unknown Source)
              at sun.java2d.SunGraphics2D.drawImage(Unknown Source)
              at sun.awt.image.ImageRepresentation.drawToBufImage(Unknown Source)
              at sun.java2d.pipe.DrawImage.copyImage(Unknown Source)
              at sun.java2d.SunGraphics2D.drawImage(Unknown Source)
              at sun.java2d.SunGraphics2D.drawImage(Unknown Source)
              at com.acordex.vtj.am.paint(Unknown Source)
              at sun.awt.RepaintArea.paintComponent(Unknown Source)
              at sun.awt.RepaintArea.paint(Unknown Source)
              at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
              at java.awt.Component.dispatchEventImpl(Unknown Source)
              at java.awt.Component.dispatchEvent(Unknown Source)
              at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
              at java.awt.EventQueue.access$000(Unknown Source)
              at java.awt.EventQueue$3.run(Unknown Source)
              at java.awt.EventQueue$3.run(Unknown Source)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
              at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
              at java.awt.EventQueue$4.run(Unknown Source)
              at java.awt.EventQueue$4.run(Unknown Source)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.security.ProtectionDomain$1.doIntersectionPrivilege(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)
      ===================================

      Tring to print after accepting the cert:


          Java Plug-in 10.4.1.255
          Using JRE version 1.7.0_04-b22 Java HotSpot(TM) Client VM
          User home directory = C:\Users\Dutchman
          ----------------------------------------------------
          c: clear console window
          f: finalize objects on finalization queue
          g: garbage collect
          h: display this help message
          l: dump classloader list
          m: print memory usage
          o: trigger logging
          q: hide console
          r: reload policy configuration
          s: dump system and deployment properties
          t: dump thread list
          v: dump thread stack
          x: clear classloader cache
          0-5: set trace level to <n>
          ----------------------------------------------------
          Error accessing print help file https://govapps1.propertyinfo.com/wam3/ViewTIFFJava/javabin/Java_PrintPeer.dat (https://govapps1.propertyinfo.com/wam3/ViewTIFFJava/javabin/Java_PrintPeer.dat)
          Line not processed 0 of 2889, mem error

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bae Andrew Brygin
                Reporter:
                sharehma Shakeel Rehman (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: