Wednesday, 14 August 2013

Not RESTing on my laurels - IBM BPM Standard and the ubiquitous localhost

I hit another localhost issue with Process Admin: -

when I clicked into the Process Inspector UI: -

which returned: -

Here's the detailed exception: - javax.servlet.ServletException: Error communicating with server at at at javax.servlet.http.HttpServlet.service( at javax.servlet.http.HttpServlet.service( at at at at com.lombardisoftware.servlet.SetUserTimeZoneFilter.doFilter( at at at com.lombardisoftware.servlet.SetCharacterEncodingFilter.doFilter( at at at at at at at at at at at at at at at at at$SSLReadCompletedCallback.complete( at at at at at at at$ at$ by: Error communicating with server at at at at at at ... 35 moreCaused by: hostname in certificate didn't match: <> != <localhost> at org.apache.commons.httpclient.protocol.AbstractVerifier.verify(Unknown Source) at org.apache.commons.httpclient.protocol.BrowserCompatHostnameVerifier.verify(Unknown Source) at org.apache.commons.httpclient.protocol.AbstractVerifier.verify(Unknown Source) at org.apache.commons.httpclient.protocol.AbstractVerifier.verify(Unknown Source) at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(Unknown Source) at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(Unknown Source) at at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry( at org.apache.commons.httpclient.HttpMethodDirector.executeMethod( at org.apache.commons.httpclient.HttpClient.executeMethod( at org.apache.commons.httpclient.HttpClient.executeMethod( at ... 40 moreError 500: javax.servlet.ServletException: javax.servlet.ServletException: Error communicating with server

Again, here's the reason why: -

WAS Console ( ISC ) > Services > REST services > REST service providers

I changed the Host name or virtual host in a load-balanced environment from: -


to: -

Note - this needs to be done for BOTH REST endpoints: -

and restarted my AppTarget cluster.

Job done :-)

For the record, the five REST endpoints are summarised here: -

No comments: