Jira is not starting due to: Cannot load the application properties metadata file jpm.xml
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
The Jira instance doesn't start due to the error: Cannot load the application properties metadata file jpm.xml, and the symptoms in the following KBs have been discarded:
Jira fails to start with DataAccessException: Cannot load the application properties metadata file
Advanced Jira application configuration - The jpm.xml file You made sure you carried over any change made to this file just if Atlassian support recommended it. Otherwise, note that the
jpm.xml
file should not be edited, as explained in the document.
Environment
Any Jira version supported
Diagnosis
The following errors are shown in the atlassian-jira.log file during the Jira starting process:
1
2
3
4
5
6
7
8
___ Starting the JIRA Plugin System _________________
2023-01-01 00:00:00,000+0000 JIRA-Bootstrap ERROR [c.a.jira.startup.BootstrapContainerLauncher] A fatal error occurred during bootstrapping. JIRA has been locked.
io.atlassian.util.concurrent.LazyReference$InitializationException: io.atlassian.util.concurrent.LazyReference$InitializationException: com.atlassian.jira.exception.DataAccessException: Cannot load the application properties metadata file jpm.xml
at io.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:156)
at io.atlassian.util.concurrent.LazyReference.get(LazyReference.java:116)
at io.atlassian.util.concurrent.ResettableLazyReference.get(ResettableLazyReference.java:95)
1
2
3
2023-01-01 00:00:00,000+0000 JIRA-Bootstrap ERROR [c.a.event.internal.AsynchronousAbleEventDispatcher] There was an exception thrown trying to dispatch event [com.atlassian.plugin.event.events.PluginFrameworkStartingEvent@251434f6] from the invoker [com.atlassian.event.internal.ComparableListenerInvoker@7ff60f27]
java.lang.RuntimeException: io.atlassian.util.concurrent.LazyReference$InitializationException: com.atlassian.jira.exception.DataAccessException: Cannot load the application properties metadata file jpm.xml. Listener: com.atlassian.jira.plugin.JiraOsgiContainerManager event: com.atlassian.plugin.event.events.PluginFrameworkStartingEvent
at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:53)
1
2
3
4
5
6
7
2023-01-01 00:00:00,000+0000 JIRA-Bootstrap ERROR [c.a.plugin.loaders.SinglePluginLoader] Error loading plugin or descriptor: system-webresources-plugin.xml
java.lang.NullPointerException
at org.dom4j.io.DOMReader.createDocument(DOMReader.java:251)
at org.dom4j.io.DOMReader.read(DOMReader.java:74)
at com.atlassian.plugin.parsers.XmlDescriptorParser.createDocument(XmlDescriptorParser.java:106)
at com.atlassian.plugin.parsers.XmlDescriptorParser.<init>(XmlDescriptorParser.java:78)
at com.atlassian.plugin.parsers.XmlDescriptorParserFactory.getInstance(XmlDescriptorParserFacto
1
2
3
4
5
2023-01-01 00:00:00,000+0000 http-nio-8081-exec-1 ERROR anonymous 000x0x0 - IP /rest/api/2/search [c.a.j.w.f.s.security.csp.DynamicContentSecurityPolicyResponseWrapperFactory] Failed to read property 'jira.security.csp.sandbox.excluded.content.type'. Check if jira.home is set.
io.atlassian.util.concurrent.LazyReference$InitializationException: io.atlassian.util.concurrent.LazyReference$InitializationException: com.atlassian.jira.exception.DataAccessException: Cannot load the application properties metadata file jpm.xml
at io.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:156)
at io.atlassian.util.concurrent.LazyReference.get(LazyReference.java:116)
Cause
The setenv.sh format is completely changed.
Typos JVM parameters configured in the setenv.sh file.
Unsupported JVM parameters configured in the setenv.sh file.
Solution
Replace the current setenv.sh by the one shipped with the original Jira version.
Look for any typo in the setenv.sh file and fix it.
Manually configure your JVM properties as suggested in Setting properties and options on startup - Linux
Was this helpful?