Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
HTTPS connections fail with "Method failed" if trustmanager_trust_all is false and remote CA signed certificates are not explicitly added - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • HTTPS connections fail with "Method failed" if trustmanager_trust_all is false and remote CA signed certificates are not explicitly added
KB0639281

HTTPS connections fail with "Method failed" if trustmanager_trust_all is false and remote CA signed certificates are not explicitly added


6299 Views Last updated : Jan 28, 2024 public Copy Permalink
KB Summary by Now Assist

Description

HTTPS connections fail with "Method failed" if trustmanager_trust_all is false and remote CA signed certificates are not explicitly added. Symptoms of this issue include:

  • Connections to remote HTTPS services (REST,SOAP,LDAP) could fail with "java.io.IOException: Method failed"
  • The remote services certificates are self-signed and not explicitly added to the instance
  • The com.glide.communications.trustmanager_trust_all system property is set to false.

The following example shows a sample of a data source using an HTTPS Web Service.

com.glide.db.impex.datasource.DataSourceException: com.glide.db.impex.datasource.DataSourceException: java.io.IOException: Method failed:(REMOTESERVER) null with code: 0
at com.glide.processors.ImportProcessorWorker.loadDataSource(ImportProcessorWorker.java:181)
at com.glide.processors.ImportProcessorWorker.startWork(ImportProcessorWorker.java:104)
at com.glide.worker.AbstractProgressWorker.startAndWait(AbstractProgressWorker.java:86)
at com.glide.worker.HierarchicalProgressWorker.startAndWait(HierarchicalProgressWorker.java:37)
at com.glide.worker.ProgressWorkerThread.run(ProgressWorkerThread.java:53)
Caused by: com.glide.db.impex.datasource.DataSourceException: java.io.IOException: Method failed: (REMOTESERVER) null with code: 0
at com.glide.db.impex.datasource.DataSource.getFile(DataSource.java:312)
at com.glide.db.impex.datasource.DataSource.getFile(DataSource.java:252)
at com.glide.db.impex.CSVLoader.setDataSource(CSVLoader.java:127)
at com.glide.db.impex.JDBCLoader.setImportDataSource(JDBCLoader.java:551)
at com.glide.db.impex.datasource.CSVDataSource.getLoader(CSVDataSource.java:21)
at com.glide.processors.ImportProcessorWorker.loadDataSource(ImportProcessorWorker.java:139)
... 4 more
Caused by: java.io.IOException: Method failed: (REMOTESERVER) null with code: 0
at com.glide.protocol.http.HTTPURLConnection.connect(HTTPURLConnection.java:38)
at com.glide.protocol.http.HTTPURLConnection.getInputStream(HTTPURLConnection.java:46)
at com.glide.db.impex.datasource.DataSource.writeFile(DataSource.java:336)
at com.glide.db.impex.datasource.DataSource.getFile(DataSource.java:305)
... 9 more

Steps to Reproduce

  1. Go to /sys_properties_list.do and set the system property com.glide.communications.trustmanager_trust_all to false.

  2. Create a new data source with the following values:


    • File Retrieval Method: HTTPS
    • File path: Path of the file on destination server to be retrieved
    • Server: IP of the destination server

    For more information, see the product documentation topic Create a data source.

  3. Click Test Load 20 Records.

  4. Make sure the destination server is secured with a self-signed certificate and not by a trusted domain CA.

    Connection URL: https://serverip or dns /datafile

  5. Click Load All Records.

    An error message appears similar to the following example:

    com.glide.db.impex.datasource.DataSourceException: java.io.IOException: Method failed: (https://serverip or dns /datafile) null with code: 0



Workaround

Choose from one of the following workarounds:

  • Set the system property com.glide.communications.trustmanager_trust_all to true.
  • On the remote Web Service, replace the self-signed certificate with another one that is signed by a trusted Java Certificate Authority.

Related Problem: PRB1201373

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.