Monday, June 8, 2015

Clarity: XOG Invoke Failed with a Java SocketException

Clarity: XOG Invoke Failed with a Java SocketException

Description:
I am using a command line window to log into CA PPM XML Open Gateway (XOG) and it fails with an error message.
Steps to Reproduce:
  1. Download the CA PPM XOG Client from Administration, Client Downloads and install on your personal computer
  2. Launch a Microsoft Windows 'cmd' window
  3. Navigate to the XOG Client 'bin' directory
  4. At the prompt, enter the appropriate login details
    > login user/pass@server:port
Expected Result: Login Successful
Actual Result: Error message appears
XOG Invoke Failed
java.net.SocketException: Unexpected end of file from server
at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at com.niku.union.xml.SimpleSOAPMessage.processRequest(SimpleSOAPMessage.java:261)
Solution:
This CA PPM Application Server is configured to use SSL. This error message will appear if the XOG client does not have SSL Enabled.
Before executing the 'login' command, enable the SSL for use with XOG as follows:
  1. Launch a Microsoft Windows 'cmd' window
  2. Navigate to the XOG Client 'bin' directory
  3. At the prompt, enter the command to enable SSL
    xog -sslenabled true
  4. At the prompt, enter the appropriate login details
    > login user/pass@server:portc