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

xjc fails over httpproxy. api/javax_xml/bind/JAXBContext/java2schema/CustomizedMapping JCK test fails.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2
    • None
    • 8
    • xml

    Description

      The following JCK tests started failing in JCK-devtools-8c for all the JDK 8c builds after Sep 02.
      api/javax_xml/bind/JAXBContext/java2schema/CustomizedMapping/packages/XmlAccessorType/srcInherit5.html#testCase0001
      api/javax_xml/bind/JAXBContext/java2schema/CustomizedMapping/packages/XmlAccessorType/srcInherit5.html#testCase0002
      api/javax_xml/bind/JAXBContext/java2schema/CustomizedMapping/packages/XmlAccessorType/srcInherit5.html#testCase0003
      api/javax_xml/bind/JAXBContext/java2schema/CustomizedMapping/packages/XmlAccessorType/srcNone.html#testCase0001
      api/javax_xml/bind/JAXBContext/java2schema/CustomizedMapping/packages/XmlAccessorType/srcNone.html#testCase0002
      api/javax_xml/bind/JAXBContext/java2schema/CustomizedMapping/packages/XmlAccessorType/srcNone.html#testCase0003
      api/javax_xml/bind/JAXBContext/java2schema/CustomizedMapping/property_fields/XmlMimeType/src01.html#testCase0001
      api/javax_xml/bind/JAXBContext/java2schema/CustomizedMapping/property_fields/XmlMimeType/src01.html#testCase0002

      The error output is:
      [ERROR] Premature end of file.
        line 1 of http://www.w3.org/2005/05/xmlmime

      Failed to parse a schema.

      Breakdown of these test is:
      saturn$ ../../../8c/java-se-8u41-ri/bin/schemagen -d . tests/java2schema/CustomizedMapping/property_fields/XmlMimeType/s
      rc01.java
      saturn$ ll schema1.xsd
      -rw-r--r-- 1 ... ... 537 Sep 12 05:28 schema1.xsd

      With proxy:
      $ time ../../../8c/java-se-8u41-ri/bin/xjc -verbose -httpproxy $proxy schema1.xsd
      parsing a schema...
      [ERROR] Premature end of file.
        line 1 of http://www.w3.org/2005/05/xmlmime

      Failed to parse a schema.

      real 0m1.341s
      user 0m0.188s
      sys 0m0.054s

      No proxy:
      saturn$ time ../../../8c/java-se-8u41-ri/bin/xjc -verbose schema1.xsd
      parsing a schema...
      [WARNING] schema_reference.4: Failed to read schema document 'http://www.w3.org/2005/05/xmlmime&#39;, because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
        line 4 of file:/scratch/pchinnas/jenkins/8c/JCK-devtools-8c/schema1.xsd

      [WARNING] java.net.ConnectException: Connection timed out
        line 4 of file:/scratch/pchinnas/jenkins/8c/JCK-devtools-8c/schema1.xsd

      compiling a schema...
      [INFO] generating code
      unknown location

      generated/ObjectFactory.java
      generated/Src.java

      real 4m22.883s
      user 0m0.769s
      sys 0m0.150s
       

      Attachments

        Activity

          People

            wxiao Weibing Xiao
            pchinnasamy Prabushankar Chinnasamy
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: