Home > Http Status > Http Status 400 Error In The Jql Query

Http Status 400 Error In The Jql Query

java.lang.NullPointerException: null at com.capitalone.dashboard.client.team.TeamDataClientSetupImpl.updateObjectInformation(TeamDataClientSetupImpl.java:85) ~[jira-feature-collector.jar!/:1.5.0-SNAPSHOT] at com.capitalone.dashboard.client.team.TeamDataClientImpl.updateTeamInformation(TeamDataClientImpl.java:130) ~[jira-feature-collector.jar!/:1.5.0-SNAPSHOT] at com.capitalone.dashboard.collector.FeatureCollectorTask.collect(FeatureCollectorTask.java:99) ~[jira-feature-collector.jar!/:1.5.0-SNAPSHOT] at com.capitalone.dashboard.collector.FeatureCollectorTask.collect(FeatureCollectorTask.java:26) ~[jira-feature-collector.jar!/:1.5.0-SNAPSHOT] at com.capitalone.dashboard.collector.CollectorTask.run(CollectorTask.java:63) ~[core-1.5.0-SNAPSHOT.jar!/:1.5.0-SNAPSHOT] at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) ~[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81) [spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_31] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_31] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_31] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_31] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_31] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_31] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_31] Above is the error now, Attached my properties details for your reference, I believe my configuration is correct.. Let me know what the object instance "rs" contains at that point On your deployment region, please run the following command (or Windows equivalent) to test connectivity to your Jira instance: curl https://jira.your.instance.com/status. kv113813 commented Apr 8, 2016 I still have the same issue, I am getting the project name (Jira - Dashboard) but no other details: Scope: Jira - Dashboard Sprint: [No Sprint Available] [N/A] Total 0 WIP 0 Done 0 I suspect on Epic & sprint field id/name. Is the measure of the sum equal to the sum of the measures? his comment is here

Max Rydahl Andersen need your assistance here. Why does argv include the program name? amp5208 referenced this issue Mar 26, 2016 Open I am having trouble getting the custom field value for "feature.jiraEpicIdFieldName". When I configure yacc (or enable it with a configuration) PUT /rest/api/1.0/projects/DPA/repos/utilities/settings/hooks/com.isroot.stash.plugin.yacc:yaccHook/enabled/ {"commitMessageRegex":"","requireJiraIssue":true,"ignoreUnknownIssueProjectKeys":true,"issueJqlMatcher":"resolution = Unresolved","excludeByRegex":""} Status: 400 Bad Request {"errors":[{"context":"issueJqlMatcher","message":"Unable to validate JQL query with JIRA because there was an unexpected exception. https://answers.atlassian.com/questions/84598/search-query-returns-null-with-status-code-400

Should a spacecraft be launched towards the East? But as my issue list is arbitrarily long so I need this to to work in a post request. How would a creature produce and store Nitroglycerin?

The log clearly is indicated a successful response from Jira and data translation - this much is a good thing. Here is the code I have (company name edited): import java.io.*; import java.net.*; import java.util.*; public class JiraConnector { public static void main(String[] args) { try { //store necessary query information URL jiraURL = new URL("http://jira.somecompany.com/rest/api/2/search"); String data = "'{\"jql\":\"project = PROJ\"}'"; //establish connection and request properties HttpURLConnection connection = (HttpURLConnection)jiraURL.openConnection(); connection.setRequestMethod("POST"); connection.setRequestProperty("Accept", "*/*"); connection.setRequestProperty("Content-Type", "application/json"); connection.setDoOutput(true); connection.setDoInput(true); connection.connect(); OutputStreamWriter wr = new OutputStreamWriter(connection.getOutputStream()); wr.write(data.toString()); wr.flush(); wr.close(); Reader in = new BufferedReader(new InputStreamReader(connection.getInputStream())); for (int c; (c = in.read()) >= 0; System.out.print((char)c)); } catch (MalformedURLException e) { System.err.println("MalformedURLException: " + e.getMessage()); } catch (java.net.UnknownServiceException e) { System.err.println("UnknownServiceException: " + e.getMessage()); } catch (IOException e) { System.err.println("IOException: " + e.getMessage()); } } } For the record, using this curl command works: curl -D- -u- user:password -X POST -H "Content-Type: application/json" --data '{"jql:"project=PROF"}' "http://jira.somecompany.com/rest/api/2/search" java http post jira jira-rest-api share|improve this question edited Jun 24 '14 at 8:11 asked Jun 23 '14 at 14:39 user3758171 1466 add a comment| 4 Answers 4 active oldest votes up vote 0 down vote A general tip first: use for instance FireFox with the TamperData add-on, which enables to trace a regular form submit, and inspect everything. Please first validate your status mappings for your Jira installation. I feel like there's something really stupid that I'm missing, can anyone help me find out what's wrong with this?

Browse other questions tagged eclipse jira connector mylyn or ask your own question. Please validate your Jira credentials and authorizations with those credentials with your system administrator and check back; for Hygieia, you should be using an account that does not expire, and one that has full read permissions of all projects in Jira. Without encoding parameter the current platform encoding is taken; non-portable. You must surround ')' in quotation marks to use it as a value. (line 1, character 41)"],"errors":{}} and her can be seen fixVersion is empty which should not happen.

Can civilian aircraft fly through or land in restricted airspace in an emergency? more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. application.properties is spring.data.mongodb.database=dashboarddb spring.data.mongodb.host=127.0.0.1 spring.data.mongodb.port=27017 spring.data.mongodb.username=dashboarduser spring.data.mongodb.password=****** #Jira Connection Details feature.jiraBaseUrl=https://reside.jira.com/ feature.jiraCredentials=********* feature.jiraOauthAuthtoken=oauth, not used feature.jiraOauthRefreshtoken=oauth, not used feature.jiraOauthRedirecturi=uri.this.is.test:uri feature.jiraOauthExpiretime=234567890987 feature.jiraIssueTypeId=Bug feature.jiraSprintDataFieldName= feature.jiraEpicIdFieldName=DevOpsEpic Logs are:- 2016-09-01 07:26:41,956 INFO com.capitalone.dashboard.Application - Started Application in 14.198 seconds (JVM running for 16.431) 2016-09-01 07:27:00,006 INFO c.c.d.collector.CollectorTask - Running Collector: Jira 2016-09-01 07:27:00,010 INFO c.c.d.collector.CollectorTask - ----------------------------------- 2016-09-01 07:27:00,011 INFO c.c.d.collector.CollectorTask - https://reside.jira.com/ 2016-09-01 07:27:00,011 INFO c.c.d.collector.CollectorTask - ----------------------------------- 2016-09-01 07:27:02,571 INFO c.c.d.collector.CollectorTask - Team Data 1 2s 2016-09-01 07:27:03,050 INFO c.c.d.collector.CollectorTask - Project Data 1 0s 2016-09-01 07:27:03,752 INFO c.c.d.collector.CollectorTask - Story Data 0 0s 2016-09-01 07:27:03,752 INFO c.c.d.collector.CollectorTask - Finished 3s vikasm47 commented Sep 2, 2016 @tabladrum : can you please help to resolve this. Sign up for free to join this conversation on GitHub. There was a recent update with the newest master of the code which requires that you add the following 3 properties to your Jira properties file, depending on your specific Jira instance's configuration: . . . # In Jira, general IssueType IDs are associated to various "issue" # attributes.

Do you mind verifying that once. Note: You can retrieve your instance's IssueType Name listings via the following URI: https://[your-jira-domain-name]/rest/api/2/issuetype/. Please help here. #460 amp5208 commented Apr 8, 2016 @kv113813 , Please let me know if you have any further open issues regarding this forum. Simultaneous eigenbasis of the energy and momentum operator of a particle in a 1-dimensional box Visual IQ Puzzles with no apparent patterns?

Like a next version for maintanence. this content How does a migratory species farm? Stair skirt board protruding from wall by ~1/4" - can I use a belt sander to sand it down? tabladrum commented Mar 10, 2016 That's sad.

Following your example, I changed "key" to "issuekey" but that turned out not to make any difference. Please see Stash logs.","exceptionName":null}]} When configuring manually it's clear that there is no problem with the issueJqlMatcher and I'm unable to find any reference to any of this in ANY logs! Thankyou very much!! 😄 1 smsuresh commented Mar 12, 2016 Yes, curl is working, no firewall issue either smsuresh commented Mar 12, 2016 config details.docx smsuresh commented Mar 12, 2016 2016-03-12 12:58:00,000 INFO c.c.d.collector.CollectorTask - Running Collector: Jira 2016-03-12 12:58:00,008 INFO c.c.d.collector.FeatureCollectorTask - Starting Feature collection... 2016-03-12 12:58:00,027 INFO c.c.d.c.team.TeamDataClientSetupImpl - Beginning collection of team data at Sat Mar 12 12:58:00 UTC 2016 2016-03-12 12:58:00,029 ERROR o.s.s.s.TaskUtils$LoggingErrorHandler - Unexpected error occurred in scheduled task. weblink What is weird is why jbds_next_main_versions has content.

Avoiding the limit notation during long algebraic manipulations How to find positive things in a code review? However, a null pointer should not be being thrown here anyway; I will look into this and push a fix; I will tag the pull request here once it is ready for merge and review, for transparency. In both cases I get an 400 bad request response.

Reload to refresh your session.

Fixed - thus please remember just because the release of a maintanence is not planned we still know when the branch/work for it could at the earlist start. Try JIRA - bug tracking software for your team. Hide Permalink Max Rydahl Andersen added a comment - 01/May/16 2:17 PM inflight wifi is too slow for me to run this locally nor access jenkins to see the actual failing query. What could make an area of land be accessible only at certain times of the year?

Reload to refresh your session. Are there infinite number of sizes of gaps between primes? In advanced search this returns the two issues with the listed keys. check over here amp5208 commented Mar 14, 2016 @smsuresh, Based on the following error stack trace: java.lang.NullPointerException: null at com.capitalone.dashboard.client.team.TeamDataClientSetupImpl.updateObjectInformation(TeamDataClientSetupImpl.java:85) ~[jira-feature-collector.jar!/:1.5.0-SNAPSHOT] I can assume that the issue is coming from the following logical evaluation in the code: if (!this.featureSettings.getJiraProxyUrl().isEmpty() && (this.featureSettings.getJiraProxyPort() != null)) { proxyUri = this.featureSettings.getJiraProxyUrl(); proxyPort = this.featureSettings.getJiraProxyPort(); } please make sure that your have the Jira proxy values at least set to blank in your property file if you do not use a proxy; e.g.: ...

I think they need to be escaped.CommentCommentAdd your comment...Sign up or log in to answerWatchRelated questions Powered by Atlassian Confluence 5.7.3, Team Collaboration Software Printed by Atlassian Confluence 5.7.3, Team Collaboration Software. Show Max Rydahl Andersen added a comment - 02/May/16 5:28 AM now with better network. Note: You can retrieve your instance's sprint data field name via the following URI, and look for a package name com.atlassian.greenhopper.service.sprint.Sprint; your custom field name describes the values in this field: https://[your-jira-domain-name]/rest/api/2/issue/[some-issue-name] feature.jiraSprintDataFieldName=customfield_10360 In Jira, your instance will have its own custom field created for "super story" or "epic" back-end ID, which includes a list of information. Please confirm.