JDK-8065107 : wscompile.properties contains incorrect property value syntax
  • Type: Bug
  • Component: xml
  • Sub-Component: jax-ws
  • Affected Version: 8u40
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2014-11-17
  • Updated: 2014-12-02
  • Resolved: 2014-12-02
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Fixed
Related Reports
Relates :  
Description
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: \

Comments
Fixed together with JDK-8065870.
02-12-2014

fixed in upstream, in the next jdk9 integration will be fixed.
18-11-2014