Unable to start JIRA due to Java Error

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

症状

JIRA unable to startup and the following appears in the atlassian-jira.log:

2015-06-16 21:16:51,898 localhost-startStop-1 ERROR      [atlassian.jira.startup.LauncherContextListener] Unable to start JIRA due to Java Error.
java.lang.NoSuchMethodError: com.atlassian.jira.component.ComponentAccessor.getComponentReference(Ljava/lang/Class;)Lcom/atlassian/jira/component/ComponentReference;
	at com.atlassian.jira.startup.DatabaseLauncher.<init>(DatabaseLauncher.java:48)
	at com.atlassian.jira.startup.DefaultJiraLauncher.<init>(DefaultJiraLauncher.java:63)
	at com.atlassian.jira.startup.LauncherContextListener.contextInitialized(LauncherContextListener.java:71)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)

診断

JIRA is running on unsupported JDK version. 

原因

JIRA requires Oracle's (formerly Sun's) Java Development Kit (JDK) or Java Runtime Environment (JRE) platform to run. Refer to Supported Platforms for details on the Java platform versions that JIRA supports. During upgrade, due to unknown reason, the JIRA's Windows service is not recreated so that JIRA will use the JAVA that bundled in the installer.

ソリューション

  1. Change to supported Oracle's JDK. You can refer to Installing Java.
  2. Jira を再起動します。

Please check your System Information page JIRA Admin > System Information and see if JIRA is running on a supported JAVA version. If there is no changes, then if you are using Windows service to start and stop JIRA, then the Windows service might need to be recreated.

Before deleting the Windows service, please copy out all the additional JVM arguments in the service.

  1. Open CMD and run the following command to check what version the JIRA is using:

    tomcat7w //ES//<SERVICENAME>
  2. Run the following command to delete the old JIRA service:

    sc delete <SERVICENAME>
  3. Please make sure you cd to "JIRA Installation Directory\bin". Run the following command to create JIRA service:

    service.bat install <SERVICENAME>

Please add all the additional JVM arguments from the deleted Windows Service to the new service.

最終更新日 2018 年 11 月 1 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.