You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Dennis Kieselhorst (JIRA)" <ji...@apache.org> on 2018/10/28 08:56:00 UTC

[jira] [Commented] (CXF-7697) wsdl2java client jar generation fails if the WSDL URL contains a question mark in between

    [ https://issues.apache.org/jira/browse/CXF-7697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16666331#comment-16666331 ] 

Dennis Kieselhorst commented on CXF-7697:
-----------------------------------------

Which JDK version are you using? Please add the command line or build tool configuration that you're using to call the wsdl2java. Thanks.

> wsdl2java client jar generation fails if the WSDL URL contains a question mark in between
> -----------------------------------------------------------------------------------------
>
>                 Key: CXF-7697
>                 URL: https://issues.apache.org/jira/browse/CXF-7697
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 3.2.4
>         Environment: Tested on Windows.
>            Reporter: Peter Stöckli
>            Priority: Major
>
> Hi,
> The wsdl2java client jar generation fails if WSDL URL contains a question mark in between.
> E.g. If a WSDL Url like
> [http://localhost:7077/mockedPublicServices?WSDL&interface=WF_READ_DATA_soap12&part=wf_read_data.wsdl]
> is used (URL was generated by SoapUI).
>  
> The client jar generation on Windows fails with following exception:
> {code:java}
> org.apache.cxf.tools.common.ToolException: Failed to generate local wsdl for clientjar
>     at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.generateLocalWSDL(WSDLToJavaContainer.java:866)
>     at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processClientJar(WSDLToJavaContainer.java:348)
>     at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:314)
>     at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:164)
>     at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:412)
>     at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:105)
>     at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113)
>     at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86)
>     [..]
> Caused by: java.nio.file.InvalidPathException: Illegal char <?> at index 80: C:\Users\[.]\AppData\Local\Temp\cxf-tmp-1384349023709005866\mockedPublicServices?WSDL&interface=WF_READ_DATA_soap12&part=wf_read_data.wsdl
>     at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
>     at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
>     at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
>     at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
>     at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
>     at java.io.File.toPath(File.java:2234)
>     at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.generateLocalWSDL(WSDLToJavaContainer.java:830)
>     ... 63 more
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)