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:
- Log on to the administrative console of the WebSphere Process Server. In the administrative console navigation frame, expand Servers and click Application servers.
- Click the name of the application server. For the default application server profile, the server name is server1.
- Click Ports.
- Verify the WC_defaulthost port number.
If you need to change the port number,
- click WC_defaulthost.
- Type the new port number in the Port field.
- Click OK.
- To save the configuration changes, click Save.
Was this topic helpful?
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