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

sun.net.www.protocol.file.FileURLConnection cannot be cast to java.net.HttpURLConnection

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      b119
    • CPU:
      x86_64
    • OS:
      linux_suse_sles_10
    • Verification:
      Verified

      Description

      several tests fail with this exception on jdk1.8.0b116, jdk1.8.0b115. Passes on jdk1.7.0_45b18

      ----------System.out:(2/108)----------
      This test is to verify that the getPageDimension and getPageResolution methods
       return appropriate values.
      ----------System.err:(23/1531)----------
      java.lang.ClassCastException: sun.net.www.protocol.file.FileURLConnection cannot be cast to java.net.HttpURLConnection
      at sun.print.IPPPrintService.getIPPConnection(IPPPrintService.java:1611)
      at sun.print.IPPPrintService.initAttributes(IPPPrintService.java:393)
      at sun.print.IPPPrintService.getSupportedDocFlavors(IPPPrintService.java:829)
      at sun.print.IPPPrintService.isDocFlavorSupported(IPPPrintService.java:915)
      at sun.print.RasterPrinterJob.getPrintService(RasterPrinterJob.java:471)
      at sun.print.PrintJob2D.printDialog(PrintJob2D.java:401)
      at sun.awt.X11.XToolkit.getPrintJob(XToolkit.java:1220)
      at Printing.testDimandResTest(Printing.java:63)
      at Printing.test(Printing.java:44)
      at Printing.<init>(Printing.java:29)
      at Printing.main(Printing.java:24)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:483)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:744)

      JavaTest Message: Test threw exception: java.lang.ClassCastException: sun.net.www.protocol.file.FileURLConnection cannot be cast to java.net.HttpURLConnection
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.ClassCastException: sun.net.www.protocol.file.FileURLConnection cannot be cast to java.net.HttpURLConnection
      result: Failed. Execution failed: `main' threw exception: java.lang.ClassCastException: sun.net.www.protocol.file.FileURLConnection cannot be cast to java.net.HttpURLConnection


      test result: Failed. Execution failed: `main' threw exception: java.lang.ClassCastException: sun.net.www.protocol.file.FileURLConnection cannot be cast to java.net.HttpURLConnection

        Attachments

          Activity

            People

            • Assignee:
              jgodinez Jennifer Godinez (Inactive)
              Reporter:
              asakharu Aleksandr Sakharuk (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: