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

wscompile.properties contains incorrect property value syntax

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 8u40
    • xml
    • None
    • Found using
      Linux,Windows

      java version "1.8.0_40-ea"
      Java(TM) SE Runtime Environment (build 1.8.0_40-ea-b07)
      Java HotSpot(TM) Client VM (build 25.40-b11, mixed mode)

    • generic
    • generic

      The property "wsgen.cannot.gen.wsdl.for.soap12.binding" in properties file
      jaxws/drop/jaxws_src/src/com/sun/tools/internal/ws/resources/wscompile.properties

      has a value with embedded \n characters. When parsing this value the property is truncated at the first newline, and the error message is not displayed with the intended effect.

      For example: use any SEI and unsupported transport protocol such as

      wsgen.exe -wsdl:soap1.1/HTTP_MTOM -cp . com.ibm.was.wssample.sei.echo.EchoService12PortImpl

      The observed result is:
      wsgen can not generate WSDL for SOAP 1.2 binding: http://www.w3.org/2003/05/soap/bindings/HTTP/ on class: com.ibm.was.wssample.sei.echo.Echo
      Service12PortImpl.

      The expected result is:
      wsgen can not generate WSDL for SOAP 1.2 binding: http://www.w3.org/2003/05/soap/bindings/HTTP/ on class: com.ibm.was.wssample.sei.echo.Echo.Please specify "-extension" and "-wsdl:protocol XSoap1.2" switches. For
      example:wsgen -wsdl:protocol XSoap1.2 -extension com.ibm.was.wssample.sei.echo.Echo

      The proposed fix is to remove the \n chars:
      161,162c161,162
      < wsgen.cannot.gen.wsdl.for.soap12.binding=wsgen can not generate WSDL for SOAP 1.2 binding: {0} on class: {1}.\n
      < Please specify \"-extension\" and \"-wsdl:protocol XSoap1.2\" switches. For example:\n\n
      ---
      > wsgen.cannot.gen.wsdl.for.soap12.binding=wsgen can not generate WSDL for SOAP 1.2 binding: {0} on class: {1}. \
      > Please specify \"-extension\" and \"-wsdl:protocol XSoap1.2\" switches. For example: \

            mkos Miroslav Kos (Inactive)
            tellison Tim Ellison
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: