Jira is not starting due to: Cannot load the application properties metadata file jpm.xml

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

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:

Environment

Any Jira version supported

Diagnosis

The following errors are shown in the atlassian-jira.log file during the Jira starting process:

   ___ 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)
 
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) 
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
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

  1. The setenv.sh format is completely changed.
  2. Typos JVM parameters configured in the setenv.sh file.
  3. Unsupported JVM parameters configured in the setenv.sh file.

Solution

  1. Replace the current setenv.sh by the one shipped with the original Jira version.
  2. Look for any typo in the setenv.sh file and fix it.
  3. Manually configure your JVM properties as suggested in Setting properties and options on startup - Linux


Last modified on Sep 21, 2023

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.