org.xml.sax.SAXException when integrating with JIRA

お困りですか?

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

コミュニティに質問

症状

Mouse over a JIRA issue key have following error in the atlassian-fisheye-<date>.log:

2013-10-04 10:24:02,078 DEBUG [qtp13803350-10115 ] fisheye JiraIssueUtil-handleJiraException - Exception encountered while contacting JIRA Server: org.xml.sax.SAXException: Bad envelope tag:  html
com.atlassian.fisheye.jira.RemoteJiraException: org.xml.sax.SAXException: Bad envelope tag:  html
	at com.atlassian.fisheye.jira.soap.JiraUALSoapInvoker.invokeOperation(JiraUALSoapInvoker.java:51)
	at com.atlassian.fisheye.jira.soap.AbstractJiraSoapInvoker.invoke(AbstractJiraSoapInvoker.java:31)
	at com.atlassian.fisheye.jira.JiraServerImpl.invoke(JiraServerImpl.java:246)
	at com.atlassian.fisheye.jira.JiraServerImpl.getIssue(JiraServerImpl.java:251)
	at com.atlassian.fisheye.jira.issue.JiraIssueServiceImpl.retrieveJiraIssue(JiraIssueServiceImpl.java:169)
	at com.atlassian.fisheye.jira.issue.JiraIssueServiceImpl.getJiraIssue(JiraIssueServiceImpl.java:97)
	at com.atlassian.fisheye.jira.action.JiraIssueAjaxAction.execute(JiraIssueAjaxAction.java:71)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:358)
	at com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:218)
...
Caused by: org.xml.sax.SAXException: Bad envelope tag:  html

診断

Enable Network Traffic debug logging and look for the following error: 

2013-10-04 10:24:02,037 DEBUG [qtp13803350-10115 ] httpclient.wire.content Wire-wire - << "<html><head><title>Apache Tomcat/7.0.29 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 503 - Remote API not activated for this JIRA installation.</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>Remote API not activated for this JIRA installation.</u></p><p><b>description</b> <u>The requested service (Remote API not activated for this JIRA installation.) is not currently available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.29</h3></body></html>"

原因

Remote API is not enabled in JIRA server.

ソリューション

Enable Accept remote API calls at JIRA Administration > System > General Configuration

Last modified on Mar 30, 2016

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

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