-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
301 erorr thrown when trying to update Jira via Serenity BDD #94
Comments
The following trace might additional information as to what the issue is. Thanking you in advance |
**We have a valid epic eg the folloiwng query is valid in Jira
issuetype = epic AND project =SAL
OUR SERENITY PROEPRTIES ARE**
serenity.requirements.types=capability,feature,story
jira.url=http://mycompany.atlassian.net
jira.project=SAL
jira.username=myusername
jira.password=mypassword
serenity.public.url=file:///C:/workspace4/SFTestPack/target/site/serenity/
show.pie.charts=true
serenity.jira.workflow.active=true
serenity.jira.workflow=jira-workflow.groovy
serenity.proxy.http=myproxyserver
serenity.proxy.http_port=8080
OUR pom.xml contains
org.glassfish.jersey.core
jersey-common
2.25.1
net.serenity-bdd
serenity-jira-requirements-provider
1.11.0
net.serenity-bdd
serenity-jira-plugin
1.9.0
com.googlecode.lambdaj
lambdaj
2.3.3
com.opencsv
opencsv
${opencsv.version}
com.microsoft.sqlserver
mssql-jdbc
${com.microsoft.sqlserver.version}
net.serenity-bdd
serenity-core
2.0.32
net.serenity-bdd
serenity-cucumber
1.9.23
org.seleniumhq.selenium
selenium-java
${selenium.webdriver.version}
org.slf4j
slf4j-api
1.7.5
ch.qos.logback
logback-classic
1.1.2
validate
src/main/resources
true
org.apache.maven.plugins
maven-jar-plugin
2.5
org.apache.maven.plugins
maven-compiler-plugin
3.1
${project.build.sourceEncoding}
JIRA IS NOT BEING UPDATED WHEN ISSUING MVN VERIFY A 301 IS THROWN
[net.thucydides.core.requirements.RequirementsTagProvider:28] - Failed to load requirements: net.serenitybdd.plugins.jira.model.JQLException: net.serenitybdd.plugins.jira.model.JQLException: JIRA query failed: error 301
java.lang.IllegalArgumentException: net.serenitybdd.plugins.jira.model.JQLException: net.serenitybdd.plugins.jira.model.JQLException: JIRA query failed: error 301
at net.serenitybdd.plugins.jira.requirements.JIRARequirementsProvider.getParentRequirementOf(JIRARequirementsProvider.java:266) ~[serenity-jira-requirements-provider-1.11.0.jar:na]
at net.thucydides.core.requirements.ParentRequirementsProvided.forOutcome(ParentRequirementsProvided.java:26) ~[serenity-model-2.0.32.jar:2.0.32]
at net.thucydides.core.requirements.BaseRequirementsService.getParentRequirementOf(BaseRequirementsService.java:156) [serenity-model-2.0.32.jar:2.0.32]
at net.thucydides.core.requirements.BaseRequirementsService.getParentRequirementFor(BaseRequirementsService.java:61) [serenity-model-2.0.32.jar:2.0.32]
at net.thucydides.core.reports.html.HtmlAcceptanceTestReporter.addParentRequirmentFieldToContext(HtmlAcceptanceTestReporter.java:168) [serenity-reports-2.0.32.jar:2.0.32]
at net.thucydides.core.reports.html.HtmlAcceptanceTestReporter.addTestOutcomeToContext(HtmlAcceptanceTestReporter.java:162) [serenity-reports-2.0.32.jar:2.0.32]
at net.thucydides.core.reports.html.HtmlAcceptanceTestReporter.generateReportFor(HtmlAcceptanceTestReporter.java:106) [serenity-reports-2.0.32.jar:2.0.32]
at net.thucydides.core.reports.ReportService.generateReportFor(ReportService.java:239) [serenity-model-2.0.32.jar:2.0.32]
at net.thucydides.core.reports.ReportService.lambda$generateReportsFor$0(ReportService.java:175) [serenity-model-2.0.32.jar:2.0.32]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_161]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_161]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_161]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_161]
at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_161]
Caused by: net.serenitybdd.plugins.jira.model.JQLException: net.serenitybdd.plugins.jira.model.JQLException: JIRA query failed: error 301
at net.serenitybdd.plugins.jira.client.JerseyJiraClient.findByKey(JerseyJiraClient.java:251) ~[serenity-jira-plugin-1.9.0.jar:na]
at net.serenitybdd.plugins.jira.requirements.JIRARequirementsProvider.getParentRequirementOf(JIRARequirementsProvider.java:255) ~[serenity-jira-requirements-provider-1.11.0.jar:na]
... 13 common frames omitted
Caused by: net.serenitybdd.plugins.jira.model.JQLException: JIRA query failed: error 301
at net.serenitybdd.plugins.jira.client.JerseyJiraClient.checkValid(JerseyJiraClient.java:574) ~[serenity-jira-plugin-1.9.0.jar:na]
at net.serenitybdd.plugins.jira.client.JerseyJiraClient.readFieldValues(JerseyJiraClient.java:501) ~[serenity-jira-plugin-1.9.0.jar:na]
at net.serenitybdd.plugins.jira.client.JerseyJiraClient.loadByKey(JerseyJiraClient.java:257) ~[serenity-jira-plugin-1.9.0.jar:na]
at net.serenitybdd.plugins.jira.client.FindByKeyLoader.load(FindByKeyLoader.java:17) ~[serenity-jira-plugin-1.9.0.jar:na]
at net.serenitybdd.plugins.jira.client.FindByKeyLoader.load(FindByKeyLoader.java:8) ~[serenity-jira-plugin-1.9.0.jar:na]
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3529) ~[guava-25.0-jre.jar:na]
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2278) ~[guava-25.0-jre.jar:na]
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2156) ~[guava-25.0-jre.jar:na]
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2046) ~[guava-25.0-jre.jar:na]
at com.google.common.cache.LocalCache.get(LocalCache.java:3948) ~[guava-25.0-jre.jar:na]
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3972) ~[guava-25.0-jre.jar:na]
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4957) ~[guava-25.0-jre.jar:na]
at net.serenitybdd.plugins.jira.client.JerseyJiraClient.findByKey(JerseyJiraClient.java:247) ~[serenity-jira-plugin-1.9.0.jar:na]
... 14 common frames omitted
[WARN ] 2019-01-16 15:11:54,409 [pool-10-thread-2] [net.thucydides.core.requirements.RequirementsTagProvider:28] - Failed to load requirements: net.serenitybdd.plugins.jira.model.JQLException: net.serenitybdd.plugins.jira.model.JQLException: JIRA query failed: error 301
java.lang.IllegalArgumentException: net.serenitybdd.plugins.jira.model.JQLException: net.serenitybdd.plugins.jira.model.JQLException: JIRA query failed: error 301
at net.serenitybdd.plugins.jira.requirements.JIRARequirementsProvider.getParentRequirementOf(JIRARequirementsProvider.java:266) ~[serenity-jira-requirements-provider-1.11.0.jar:na]
at net.thucydides.core.requirements.ParentRequirementsProvided.forOutcome(ParentRequirementsProvided.java:26) ~[serenity-model-2.0.32.jar:2.0.32]
at net.thucydides.core.requirements.BaseRequirementsService.getParentRequirementOf(BaseRequirementsService.java:156) [serenity-model-2.0.32.jar:2.0.32]
at net.thucydides.core.requirements.BaseRequirementsService.getParentRequirementFor(BaseRequirementsService.java:61) [serenity-model-2.0.32.jar:2.0.32]
at net.thucydides.core.reports.html.HtmlAcceptanceTestReporter.addParentRequirmentFieldToContext(HtmlAcceptanceTestReporter.java:168) [serenity-reports-2.0.32.jar:2.0.32]
at net.thucydides.core.reports.html.HtmlAcceptanceTestReporter.addTestOutcomeToContext(HtmlAcceptanceTestReporter.java:162) [serenity-reports-2.0.32.jar:2.0.32]
at net.thucydides.core.reports.html.HtmlAcceptanceTestReporter.generateReportFor(HtmlAcceptanceTestReporter.java:106) [serenity-reports-2.0.32.jar:2.0.32]
at net.thucydides.core.reports.ReportService.generateReportFor(ReportService.java:239) [serenity-model-2.0.32.jar:2.0.32]
at net.thucydides.core.reports.ReportService.lambda$generateReportsFor$0(ReportService.java:175) [serenity-model-2.0.32.jar:2.0.32]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_161]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_161]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_161]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_161]
at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_161]
Caused by: net.serenitybdd.plugins.jira.model.JQLException: net.serenitybdd.plugins.jira.model.JQLException: JIRA query failed: error 301
at net.serenitybdd.plugins.jira.client.JerseyJiraClient.findByKey(JerseyJiraClient.java:251) ~[serenity-jira-plugin-1.9.0.jar:na]
at net.serenitybdd.plugins.jira.requirements.JIRARequirementsProvider.getParentRequirementOf(JIRARequirementsProvider.java:255) ~[serenity-jira-requirements-provider-1.11.0.jar:na]
... 13 common frames omitted
Caused by: net.serenitybdd.plugins.jira.model.JQLException: JIRA query failed: error 301
at net.serenitybdd.plugins.jira.client.JerseyJiraClient.checkValid(JerseyJiraClient.java:574) ~[serenity-jira-plugin-1.9.0.jar:na]
at net.serenitybdd.plugins.jira.client.JerseyJiraClient.readFieldValues(JerseyJiraClient.java:501) ~[serenity-jira-plugin-1.9.0.jar:na]
at net.serenitybdd.plugins.jira.client.JerseyJiraClient.loadByKey(JerseyJiraClient.java:257) ~[serenity-jira-plugin-1.9.0.jar:na]
at net.serenitybdd.plugins.jira.client.FindByKeyLoader.load(FindByKeyLoader.java:17) ~[serenity-jira-plugin-1.9.0.jar:na]
at net.serenitybdd.plugins.jira.client.FindByKeyLoader.load(FindByKeyLoader.java:8) ~[serenity-jira-plugin-1.9.0.jar:na]
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3529) ~[guava-25.0-jre.jar:na]
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2278) ~[guava-25.0-jre.jar:na]
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2156) ~[guava-25.0-jre.jar:na]
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2046) ~[guava-25.0-jre.jar:na]
at com.google.common.cache.LocalCache.get(LocalCache.java:3948) ~[guava-25.0-jre.jar:na]
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3972) ~[guava-25.0-jre.jar:na]
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4957) ~[guava-25.0-jre.jar:na]
at net.serenitybdd.plugins.jira.client.JerseyJiraClient.findByKey(JerseyJiraClient.java:247) ~[serenity-jira-plugin-1.9.0.jar:na]
... 14 common frames omitted
[WARN ] 2019-01-16 15:11:54,409 [pool-10-thread-3] [net.thucydides.core.requirements.RequirementsTagProvider:28] - Failed to load requirements: net.serenitybdd.plugins.jira.model.JQLException: net.serenitybdd.plugins.jira.model.JQLException: JIRA query failed: error 301
The text was updated successfully, but these errors were encountered: