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

HttpClient/ProxyTest.java failing with IAE HttpURLPermission.parseURI (and spec changes to HttpURLPermission)

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b113
    • Verification:
      Verified

      Description


      Looks like a test failure following the integration of JDK-8010464

      #Test Results (version 2)
      #Thu May 16 10:01:20 IST 2013
      #checksum:25fda3bc2f5122e2
      #-----testdescription-----
      $file=/u/alanb/ws/tl/jdk/test/sun/net/www/http/HttpClient/ProxyTest.java
      $root=/u/alanb/ws/tl/jdk/test
      keywords=bug4720715
      run=ASSUMED_ACTION main ProxyTest\n
      source=ProxyTest.java
      title=FTP with user and password doesn't work through proxy

      #-----environment-----

      #-----testresult-----
      description=file\:/u/alanb/ws/tl/jdk/test/sun/net/www/http/HttpClient/ProxyTest.java
      elapsed=95 0\:00\:00.095
      end=Thu May 16 10\:01\:20 IST 2013
      environment=regtest
      execStatus=Failed. Execution failed\: `main' threw exception\: java.lang.NullPointerException
      hostname=ashtown.ie.oracle.com
      javatestOS=Linux 3.2.0-23-generic (amd64)
      javatestVersion=4.4
      jtregVersion=jtreg 4.1 dev b00
      script=com.sun.javatest.regtest.RegressionScript
      sections=script_messages build compile main
      start=Thu May 16 10\:01\:20 IST 2013
      test=sun/net/www/http/HttpClient/ProxyTest.java
      user.name=albatem
      work=/u/alanb/testing/jtreg/JTwork/sun/net/www/http/HttpClient

      #section:script_messages
      ----------messages:(5/271)----------
      JDK under test: (/u/alanb/ws/tl/build/linux-x86_64-normal-server-release/images/j2sdk-image)
      java version "1.8.0-internal"
      Java(TM) SE Runtime Environment (build 1.8.0-internal-albatem_2013_05_14_14_15-b00)
      Java HotSpot(TM) 64-Bit Server VM (build 25.0-b31, mixed mode)


      #section:build
      ----------messages:(3/93)----------
      command: build ProxyTest
      reason: Named class compiled on demand
      elapsed time (seconds): 0.05
      result: Passed. Build successful

      #section:compile
      ----------messages:(3/191)----------
      command: compile -XDignore.symbol.file=true /u/alanb/ws/tl/jdk/test/sun/net/www/http/HttpClient/ProxyTest.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 0.049
      result: Passed. Compilation successful

      #section:main
      ----------messages:(3/117)----------
      command: main ProxyTest
      reason: Assumed action based on file name: run main ProxyTest
      elapsed time (seconds): 0.045
      ----------System.err:(30/1819)----------
      java.lang.IllegalArgumentException: unexpected URL scheme
      at java.net.HttpURLPermission.parseURI(HttpURLPermission.java:377)
      at java.net.HttpURLPermission.init(HttpURLPermission.java:135)
      at java.net.HttpURLPermission.<init>(HttpURLPermission.java:131)
      at sun.net.www.protocol.http.HttpURLConnection.URLtoSocketPermission(HttpURLConnection.java:972)
      at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:924)
      at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:886)
      at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:271)
      at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:393)
      at ProxyTest.<init>(ProxyTest.java:188)
      at ProxyTest.main(ProxyTest.java:175)
      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:491)
      at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:728)
      at java.lang.Thread.run(Thread.java:724)
      java.lang.NullPointerException
      at ProxyTest.<init>(ProxyTest.java:199)
      at ProxyTest.main(ProxyTest.java:175)
      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:491)
      at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:728)
      at java.lang.Thread.run(Thread.java:724)

      JavaTest Message: Test threw exception: java.lang.NullPointerException
      JavaTest Message: shutting down test

      result: Failed. Execution failed: `main' threw exception: java.lang.NullPointerException


      test result: Failed. Execution failed: `main' threw exception: java.lang.NullPointerException

        Attachments

          Activity

            People

            • Assignee:
              michaelm Michael McMahon
              Reporter:
              alanb Alan Bateman
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: