Java Connector: getConfigContents() returns null

Last Published: April 25, 2020


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.


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


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

    • Legacy Products

    Receive notifications and find solutions for new or common issues

    Get summarized answers and video solutions from our new AI chatbot.

    Download the Esri Support App

    Discover more on this topic

    Get help from ArcGIS experts

    Contact technical support

    Download the Esri Support App

    Go to download options