IBM Support

java.io.IOException: Invalid LF found in token

Troubleshooting


Problem

Exception thrown by Web Service Export at runtime: javax.xml.ws.WebServiceException: java.io.IOException: Invalid LF found in token.

Symptom

An exception similar to the following is thrown at runtime when the Web service export is being invoked:
javax.xml.ws.WebServiceException: java.io.IOException: Invalid LF found in token at org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:175) at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:70) at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:128) ......

Cause

The endpoint URL of the Web service export references a port being used by the WebSphere Process Server as the SOAP port (default is 8880) and the connection type used is SOAP. For instance, http://localhost:8880/ExampleHelloServiceWeb/sca/HelloServiceExport1

Using any other server ports other than the Web container port will yield other types of exception at runtime.

Resolving The Problem

Make sure to use the Web container port configured on the server in the endpoint URL. The correct server port to use for the Web service request is the Web container port which is the TCP/IP port on which the Web container listens for requests from the Web server. To find out the Web container port to use, do the following:

  1. Log on to the administrative console of the WebSphere Process Server. In the administrative console navigation frame, expand Servers and click Application servers.
  2. Click the name of the application server. For the default application server profile, the server name is server1.
  3. Click Ports.
  4. Verify the WC_defaulthost port number.

If you need to change the port number,
  1. click WC_defaulthost.
  2. Type the new port number in the Port field.
  3. Click OK.
  4. To save the configuration changes, click Save.
[{"Product":{"code":"SSQQFK","label":"WebSphere Integration Developer"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"--","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"7.0.0.1;7.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSQH9M","label":"WebSphere Process Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

More support for:
WebSphere Integration Developer

Software version:
7.0.0.1, 7.0

Operating system(s):
Linux, Windows

Document number:
406649

Modified date:
15 June 2018

UID

swg21430455

Manage My Notification Subscriptions