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

getting IPP connection causes disabling jar caches

XMLWordPrintable

    • 2d
    • b131
    • sparc
    • solaris_10

      FULL PRODUCT VERSION :
      1.5.x or 1.6.x

      ADDITIONAL OS VERSION INFORMATION :
      Mac OSX, Solaris ... those uses IPP(Internet Printing Protocol) for printing foundation

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      attach network printer on Mac OSX.

      A DESCRIPTION OF THE PROBLEM :
      look the method IPPService.getIPPConnection(URL url)
      ( http://www.krugle.com/examples/p-bcTU9hnLZq18ZYSz/IPPPrintService.java ).
      you can see following code
      'connection.setDefaultUsesCaches(false)'.
      the variable 'connection' is instance of HttpUrlConnection.
      so, calling this makes following all new URLConnection disable cache.

      this is critical if when it's in applet code.
      whenever we access to resources inside jar using 'jar://' protocol,
      network connection will made.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      make a applet that uses IPP connection.
      after getting IPPConnetion, all 'jar://' url connection make re-downloading of jar.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      using a printer should not affect class loading or other URLConnection
      ACTUAL -
      using a printer affects class loading or other URLConnection

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      no special error message. but there are performance down.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      no available example code
      ---------- END SOURCE ----------

            psadhukhan Prasanta Sadhukhan
            prr Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: