IBM Support

Changing a webservice port name will result in a "java.lang.IllegalArgumentException: The specified url can not be null" error

Troubleshooting


Problem

If a WSDLs Port name is changed in WID an "java.lang.IllegalArgumentException: The specified url can not be null" error will be thrown when trying to publish the application to the server.

Cause

Since there is no automatic refactoring functionality in WID for changing a webservices name one could miss to modify all necessary places that need to be changed. For example if the name is only changed in the wsdl as shown in the screenshot below, this will result in the error message as mentioned.

Resolving The Problem

Open the Web Services Ports/PMRTestHttpPort in the XML editor




and change the names in the following locations to your need:

as well as here:


Furthermore you have to change the name within the export file. Therefore please open the Navigator View (Window -> Show View -> Navigator). In your Module search for the *.export file (according to your webservice component) open it and change the following line accordingly:

[{"Product":{"code":"SSQQFK","label":"WebSphere Integration Developer"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Interface Editor","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"7.0.0.3;7.0.0.2;7.0.0.1;7.0","Edition":"All Editions","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg21499916