IBM Support

PM08257: java.net.URISyntaxException error may occur when a JAX-WS application uses a WSDL URL that contains a space.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • A java.net.URISyntaxException may occur when there is a space
    in the WSDL location URL.
    
    For example, when the WSDL document is located at:
    C:/Documents and Settings/Administrator/IBM/tmp0/WEB-INF/wsdl/
    PurchaseOrderService.wsdl
    
    The following error occurs:
    javax.xml.ws.WebServiceException:  The following WSDL
    exception occurred: WSDLException:
    faultCode=WSDL4JWrapper : : java.net.URISyntaxException:
    Illegal character in path at index 18:
    file:/C:/Documents and Settings/Administrator/IBM/tmp0/WEB-INF/
    wsdl/xxxxx.wsdl
    at org.apache.axis2.jaxws.ExceptionFactory.
    createWebServiceException(ExceptionFactory.java:178)
    at org.apache.axis2.jaxws.ExceptionFactory.
    makeWebServiceException(ExceptionFactory.java:79)
    at org.apache.axis2.jaxws.description.impl.
    ServiceDescriptionImpl.
    setupWsdlDefinition(ServiceDescriptionImpl.java:590)
    at org.apache.axis2.jaxws.description.impl.
    ServiceDescriptionImpl.<init>(ServiceDescriptionImpl.java:148)
    at org.apache.axis2.jaxws.description.impl.
    DescriptionFactoryImpl.
    createServiceDescription(DescriptionFactoryImpl.java:119)
    at org.apache.axis2.jaxws.description.DescriptionFactory.
    createServiceDescription(DescriptionFactory.java:75)
    at org.apache.axis2.jaxws.spi.ServiceDelegate.
    <init>(ServiceDelegate.java:89)
    at org.apache.axis2.jaxws.spi.Provider.
    createServiceDelegate(Provider.java:45)
    at javax.xml.ws.Service.<init>(Service.java:57)
    ... ...
    Caused by: javax.wsdl.WSDLException: WSDLException:
    faultCode=WSDL4JWrapper : : java.net.URISyntaxException:
    Illegal character in path at index 18:
    file:/C:/Documents and Settings/Administrator/IBM/tmp0/
    WEB-INF/wsdl/xxxxx.wsdl
    at org.apache.axis2.jaxws.util.WSDL4JWrapper.
    <init>(WSDL4JWrapper.java:179)
    at org.apache.axis2.jaxws.description.impl.
    ServiceDescriptionImpl.
    setupWsdlDefinition(ServiceDescriptionImpl.java:588)
    ... 36 more
    Caused by: java.net.URISyntaxException: Illegal character in
    path at index 18: file:/C:/Documents and Settings/Administrator/
    IBM/tmp0/WEB-INF/wsdl/xxxxx.wsdl
    at java.net.URI$Parser.fail(URI.java:2834)
    at java.net.URI$Parser.checkChars(URI.java:3007)
    at java.net.URI$Parser.parseHierarchical(URI.java:3091)
    at java.net.URI$Parser.parse(URI.java:3039)
    at java.net.URI.<init>(URI.java:604)
    at java.net.URL.toURI(URL.java:951)
    at org.apache.axis2.jaxws.util.WSDL4JWrapper.
    <init>(WSDL4JWrapper.java:96)
    ... 37 more
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server Feature    *
    *                  Pack for Web Services users of JAX-WS       *
    ****************************************************************
    * PROBLEM DESCRIPTION: The java.net.URISyntaxException         *
    *                      may occur when there is a space in      *
    *                      the WSDL location URL.                  *
    ****************************************************************
    * RECOMMENDATION:  Install a fixpack containing this APAR.     *
    ****************************************************************
    A javax.xml.ws.WebServiceException error may occur when a
    JAX-WS application uses a WSDL URL that contains a space.
    
    Here is an example error:
    javax.xml.ws.WebServiceException:  The following WSDL
    exception occurred: WSDLException:
    faultCode=WSDL4JWrapper : : java.net.URISyntaxException:
    Illegal character in path at index 18:
    file:/C:/Documents and Settings/Administrator/IBM/tmp0/WEB-INF/
    wsdl/xxxxx.wsdl
    at org.apache.axis2.jaxws.ExceptionFactory.
    createWebServiceException(ExceptionFactory.java:178)
    at org.apache.axis2.jaxws.ExceptionFactory.
    makeWebServiceException(ExceptionFactory.java:79)
    at org.apache.axis2.jaxws.description.impl.
    ServiceDescriptionImpl.
    setupWsdlDefinition(ServiceDescriptionImpl.java:590)
    at org.apache.axis2.jaxws.description.impl.
    ServiceDescriptionImpl.<init>(ServiceDescriptionImpl.java:148)
    at org.apache.axis2.jaxws.description.impl.
    DescriptionFactoryImpl.
    createServiceDescription(DescriptionFactoryImpl.java:119)
    at org.apache.axis2.jaxws.description.DescriptionFactory.
    createServiceDescription(DescriptionFactory.java:75)
    at org.apache.axis2.jaxws.spi.ServiceDelegate.
    <init>(ServiceDelegate.java:89)
    at org.apache.axis2.jaxws.spi.Provider.
    createServiceDelegate(Provider.java:45)
    at javax.xml.ws.Service.<init>(Service.java:57)
    ... ...
    Caused by: javax.wsdl.WSDLException: WSDLException:
    faultCode=WSDL4JWrapper : : java.net.URISyntaxException:
    Illegal character in path at index 18:
    file:/C:/Documents and Settings/Administrator/IBM/tmp0/
    WEB-INF/wsdl/xxxxx.wsdl
    at org.apache.axis2.jaxws.util.WSDL4JWrapper.
    <init>(WSDL4JWrapper.java:179)
    at org.apache.axis2.jaxws.description.impl.
    ServiceDescriptionImpl.
    setupWsdlDefinition(ServiceDescriptionImpl.java:588)
    ... 36 more
    Caused by: java.net.URISyntaxException: Illegal character in
    path at index 18: file:/C:/Documents and Settings/Administrator/
    IBM/tmp0/WEB-INF/wsdl/xxxxx.wsdl
    at java.net.URI$Parser.fail(URI.java:2834)
    at java.net.URI$Parser.checkChars(URI.java:3007)
    at java.net.URI$Parser.parseHierarchical(URI.java:3091)
    at java.net.URI$Parser.parse(URI.java:3039)
    at java.net.URI.<init>(URI.java:604)
    at java.net.URL.toURI(URL.java:951)
    at org.apache.axis2.jaxws.util.WSDL4JWrapper.
    <init>(WSDL4JWrapper.java:96)
    ... 37 more
    
    It is generally not a best practice to have URLS that contain
    spaces.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PM08257

  • Reported component name

    WEBSERVIC FEATU

  • Reported component ID

    5724J0850

  • Reported release

    610

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-02-22

  • Closed date

    2010-03-26

  • Last modified date

    2010-03-26

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WEBSERVIC FEATU

  • Fixed component ID

    5724J0850

Applicable component levels

  • R610 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.1","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
24 October 2021