Troubleshooting
Could not read catapult properties: fix an empty gateway.xml
Short answer
The IllegalStateException: Could not read catapult properties at an Ignition 8.0.16 edge gateway startup means the gateway failed to parse its persisted properties file, not that permissions are wrong. In the recorded case gateway.xml in the data folder was zero bytes. Stop the service, rename gateway.xml, and the gateway starts from gateway.xml_clean; then reapply the gateway-level settings the damaged file held.
On this page
An Ignition 8.0.16 edge gateway that stops at startup with java.lang.IllegalStateException: Could not read catapult properties in wrapper.log is failing to parse its persisted properties file, not to open it. In the recorded case the file was gateway.xml in the data folder and it was zero bytes; the XML properties parser rejected the empty stream, and the gateway exited before its web manager existed. The fix is to stop the service, move gateway.xml aside, and let the gateway load the gateway.xml_clean copy that sits beside it — in the recorded case that rename was the only change, and the gateway started normally. The sections below show which log lines prove a parse failure, why the permission changes did nothing, the exact steps, and what the fallback resets.
What the error means #
Catapult is the launcher that starts the Ignition gateway. During startup the gateway loads its persisted properties while it constructs the component that manages the web interface, and that load runs through the JDK method java.util.Properties.loadFromXML. The JDK documents this method as parsing the stream as an XML document and throwing InvalidPropertiesFormatException when the data is not in the properties XML form.
An empty or truncated stream fails at the parser's first step: a SAXParseException, which the JDK wraps in InvalidPropertiesFormatException, and the gateway wraps again in the catapult properties IllegalStateException. Nothing in the chain tolerates a bad file. The exception leaves a constructor, so the gateway object is never finished, and the NullPointerException at IgnitionGateway.start(IgnitionGateway.java:538) is only the follow-on: the start method dereferences what the failed constructor never produced. Fix the file and both errors disappear; the NullPointerException needs no separate remedy.
Which lines in wrapper.log prove a parse failure #
Read the captured run in hops and grade each one:
- The Java Service Wrapper, Standard Edition 3.5.42 (32-bit) in the capture, launches the JVM with
Launching a JVM…andWrapperManager: Initializing…— the wrapper and the JVM launch are healthy. - Logback configures completely, including the SQLite appender named DB, and ends with
End of configuration.— logging is healthy. - The next line is the failure:
Error initializing web manager:followed byjava.lang.IllegalStateException: Could not read catapult properties.
The cause chain under that exception is the proof. It runs from the web manager constructor into PersistentProperties.tryLoad, then Properties.loadFromXML, then a SAXParseException thrown from the JDK's internal SAX parser — parse frames, not file-open frames.
Worked example from the recorded run, all on the wrapper clock: the wrapper started at 14:08:30, logback finished at 14:08:47, the error landed at 14:08:48, and the <-- Wrapper Stopped line appeared at 14:08:50. From finished logging configuration to process death, 14:08:50 - 14:08:47 = 3 s. From the error line to the stop line, 14:08:50 - 14:08:48 = 2 s. A constructor that kills the process seconds after a clean logging setup is not a resource or network problem; the process died inside its own startup code.
One line needs care: the gateway's own frame is stamped 06:08:48 against the wrapper's 14:08:48 — the same second in two clock zones. Correlate by second, never by hour.
A startup that instead hangs or fails on a Java trust store message is a different fault with its own fix, covered in Ignition Edge stuck starting after a Java trust store corruption.
Why the permission changes changed nothing #
A permission fault and a content fault stop the startup at different layers, and the captured trace names the content layer: it reached the SAX parser, so opening and reading the file had already succeeded.
| State of gateway.xml | Where startup stops | Exception family |
|---|---|---|
| Wrong owner or ACL, service account cannot read | File open | I/O exception, no SAX frames |
| File missing | Open or default-creation path | Not-found style I/O exception |
| Zero-length file | First XML parse step | SAXParseException wrapped in InvalidPropertiesFormatException, as recorded |
| Truncated or hand-edited, not well-formed | Mid-document parse step | SAXParseException, usually with line and column text |
The permission updates applied during the hunt were harmless but aimed at the wrong layer. Once the gateway runs, revert any broad grants added along the way so the node keeps its intended service account access.
Move gateway.xml aside so the clean copy loads #
If operators or equipment depend on this edge node, tell them the restart is coming: a healthy gateway resumes its connections the moment it is up.
- Stop the Ignition service or daemon with the platform's service manager. A running wrapper holds the JVM and can rewrite files.
- Open the data folder under the Ignition installation directory —
$IGNITION/datain the gateway's own shorthand — and list both XML files with sizes and timestamps. - Confirm the damage:
gateway.xmlat Length 0 or visibly malformed, andgateway.xml_cleanwith a nonzero length. In the recorded case the live file was empty. - Rename
gateway.xmlrather than deleting it — for example togateway.xml.bad— so the damaged file stays available for inspection. - Start the service and watch wrapper.log.
# Windows PowerShell, run in the Ignition install directory
Get-Item .\data\gateway.xml, .\data\gateway.xml_clean | Select-Object Name, Length, LastWriteTime
Rename-Item .\data\gateway.xml gateway.xml.bad
# Linux
ls -l $IGNITION/data/gateway.xml*
mv $IGNITION/data/gateway.xml $IGNITION/data/gateway.xml.bad
The rename is the whole fix. The gateway finds the damaged name gone, loads gateway.xml_clean, and finishes its construction. In the recorded case the gateway started normally with no other change.
If gateway.xml_clean is also unusable #
The fallback works only when the clean copy parses. Apply the same test to it: nonzero length, and well-formed XML in the Java properties format that Properties.loadFromXML accepts. If both files are damaged, restore gateway.xml from a file-level backup of this node or from another installation of the same 8.0.16 build, then retest. Do not pass a restored file through a tool that changes its encoding or adds a byte-order mark unless you have confirmed the parser accepts the result. When the damaged file is non-empty and the cause matters, keep the renamed copy and diff it against the clean copy: the difference shows a file truncated mid-write or one edited by hand.
What the fallback resets #
Values that existed only in the damaged file are already unreadable, so nothing carries over. The vendor's gateway XML file reference documents networking properties, such as ports, among the file's contents, so treat the network settings as the first recheck: compare the gateway's actual listening ports and any hand-set values against your site documentation and reapply what is missing. Configuration kept elsewhere — projects, tag data, historian stores — sits outside the file that failed.
Prove the gateway is healthy #
- wrapper.log runs from
Launching a JVM…through logback'sEnd of configuration.into gateway startup lines, with noError initializing web manager, noCould not read catapult properties, and noNullPointerExceptionatIgnitionGateway.start. - No
<-- Wrapper Stoppedline within seconds of the launch; the failed run stopped 2 s after its error line. - List the data folder again and record sizes, so a later regression is visible against the healthy listing.
- The gateway web page answers on its configured port.
- Restart the service once more and repeat the log check, so a clean boot is proven and not just the first run after the change.
The decision for each case #
End the investigation with one of these calls:
- SAX parse frames under
Properties.loadFromXMLandgateway.xmlempty or malformed → move the file aside and run ongateway.xml_clean; that alone restored the recorded gateway. - The trace stops at file open with an I/O exception and no SAX frames → access, not content: give the service account read access to the data folder and leave the file alone.
- Both XML copies unusable → restore
gateway.xmlfrom a backup of this node or an identical 8.0.16 installation and retest before returning the node to service. - The gateway starts but the parent system lists it as offline → a different fault, covered in edge gateway shows offline: check the 3.5.16 requirement.
Questions asked
Does the gateway.xml_clean fallback change projects or tag history?
No. Projects, tag data and historian stores are kept outside this XML file; gateway.xml carries gateway-level settings, and the vendor's file reference lists networking properties such as ports among its contents. The rename touches only that file. Because anything the damaged file held that the clean copy lacks is gone, compare the listening ports and any hand-set values with your site record before clients reconnect.
Why do the wrapper and gateway log lines show different hours?
The Java Service Wrapper prints its own clock zone while the gateway's log lines print another, so one event can appear as 14:08:48 on a wrapper line and 06:08:48 on a gateway line, as in the recorded run. Match log events by the seconds field, not the hour, when you correlate the two.
Can I hand-edit gateway.xml instead of restoring a backup?
You can, but the loader is strict: the file must be well-formed XML in the Java properties format, and an editor that adds a byte-order mark or changes the encoding gets rejected at parse time just like an empty file. Edit a copy, prove it loads on a test start, and keep the renamed damaged file beside it for comparison.
Is this failure limited to the 8.0.16 edge build?
The recorded failure is from an 8.0.16 edge gateway, but the code that throws the error sits in the gateway's core launcher classes rather than an edge-only component, so a full gateway with a zero-length gateway.xml fails the same way at startup. The remedy is identical: stop the service, move the damaged file aside, and let the clean copy load.