pub.client:http gives java.lang.NullPointerException on GET requests to https sites

Hi,

We have run into a problem when using the pub.client.http service and making GET requests to an https resource (eg. https://www.google.com). The result of the call is an Exception and the following messages (from pub.flow.getLastError):
error: null
errorType: java.lang.NullPointerException
errorDump: java.lang.NullPointerException
service: pub.client.http

Server log is empty.
Error log shows the pub.client.http service with the Error message: null

How we reproduce the problem:

  1. Run pub.client.http with an url the points to an https resource, eg. https://www.google.com and the method set to “get”

Does anyone have any insight into what the problem might be? HTTP resources and resources that demands the client to present certificates (using pub.security.keystore:setKeyAndChain) works fine

We are using webMethods IS 9.9.0.0 on a Red Hat Enterprise Linux Server release 7.5 (Maipo) with the following updates:
IS_9.9_SPM_Fix1
IS_9.9_SPM_Fix2
IS_9.9_Core_Fix23
and
Build Number: 102

Can you please try to increase Network & Service log (set it to TRACE if it is non-prod) from server logger and replicate the issue?

I have now put the Network Service to trace logging and unfortunately the only thing that is different are these two rows in the server.log:

[975]2018-05-17 16:32:51 CEST [ISC.0064.0015T] Opening Socket https://www.google.com
[974]2018-05-17 16:32:51 CEST [ISC.0064.0002T] HTTP Get https://www.google.com

All error messages are still null

Thanks for the tip though :slight_smile:

For anyone else getting this “error”, the solution for us was to add the google https ssl cert to our IS truststore

1 Like

Hi,

You need to set the debug options for SSL to be able to follow the connection errors.

The pub.client.http and others do not return any meaningful error codes or messages on SSL errors.

Best regards,