I was trying for automated jira issue creation if any test failures during test execution and facing below issue.
Could you please suggest "cause for dead link & page error404".
Jira version# Jira v8.2.0
Code i have written is -
try
{
BasicCredentials creds = new BasicCredentials("UserName", "password");
JiraClient jClient = new JiraClient("https://jira.abc.com ", creds);
log.info("Jira User logged in successfully");
FluentCreate newIssueFluentCreate = jClient.createIssue("PS", "Bug"); newIssueFluentCreate.field(Field.SUMMARY, "Automated Jira Issue Creation"); newIssueFluentCreate.field(Field.DESCRIPTION, "Issue raised During Automation suite Execution");
newIssueFluentCreate.field(Field.COMPONENTS, "ABCD"); newIssueFluentCreate.field(Field.ASSIGNEE, "shankar mekala");
Issue newIssue = newIssueFluentCreate.execute();
log.info("Jira Issue crated successfully #"+newIssue.getKey());
}catch(JiraException je)
{
log.error("Exception occured during Jira Issue creation :"+je);
if (je.getCause() != null)
log.error("Failure Cause : "+je.getCause().getMessage());
}
Issue:- :net.rcarz.jiraclient.JiraException: Failed to retrieve issue metadata
Failure Cause : 404 : <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title>Oops, you've found a dead link. - JIRA</title><script type="text/javascript">contextPath = "";</script><link type='text/css' rel='stylesheet' href='/static-assets/metal-all.css' media='all'><script src='/static-assets/jquery-min.js'></script><script src='/static-assets/metal-all.js'></script><meta name="decorator" content="none" /></head><body class=" error-page error404"><script type="text/javascript">document.body.className += " js-enabled";</script><div id="page"><header id="header" role="banner"></header><!-- #header -><section id="content" role="main"><div class="aui-page-panel"><div class="aui-page-panel-inner"><section class="aui-page-panel-content lowerContent"><div id="error-state"><span class="error-type"></span><h1>Oops, you've found a dead link.</h1><ul><li>Go back to the <a href="javascript:window.history.back()">previous page</a></li><li>Go to the <a href="/secure/MyJiraHome.jspa">Home Page</a></li></ul></div></section><!- .aui-page-panel-content -></div><!- .aui-page-panel-inner -></div><!- .aui-page-panel -></section><!- #content -><footer id="footer" role="contentinfo"><section class="footer-body"><ul class="atlassian-footer"> <li> Atlassian Jira <a class="seo-link" rel="nofollow" href="https://www.atlassian.com/software/jira">Project Management Software</a> <span id="footer-build-information">(v8.2.0#802000 -<span title='ac78d467d941cc4e2240c07a375c87a16651d1d4' data-commit-id='ac78d467d941cc4e2240c07a375c87a16651d1d4}'>sha1:ac78d46</span>)</span> </li> <li> <a id="about-link" rel="nofollow" href="/secure/AboutPage.jspa/secure/AboutPage.jspa">About Jira</a> </li> <li> <a id="footer-report-problem-link" rel="nofollow" href="/secure/CreateIssue!default.jspa">Report a problem</a> </li></ul> <ul class="atlassian-footer"> <li class="licensemessage"> </li> </ul><div id="footer-logo"><a href="http://www.atlassian.com/ " rel="nofollow">Atlassian</a></div></section></footer><!- #footer -></div><!- #page --></body></html>
>Could you please suggest "cause for dead link & page error404".
You have tried to get a url that does not exist. A 404 literally is "there is no page on this url"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.