BUG

Java Connector: getConfigContents() returns null

Last Published: April 25, 2020

Description

When attempting to retrieve the .AXL file content for an existing service using the getConfigContents() method in the com.esri.aims.mtier.model.admin.Service class, a null object is returned.

Cause

The getConfigContents() method will only return information for services that have been added using the setConfigContents() method during the same JVM session.

Workaround

In general, to retrieve the content of an axl file associated with an map service, you must have file system access. The getConfigFile() method will return the path to the .AXL file. Use the standard Java API to read the file and process/parse as needed.

    Article ID:000007724

    Software:
    • Legacy Products

    Get help from ArcGIS experts

    Contact technical support

    Download the Esri Support App

    Go to download options

    Discover more on this topic