java.lang.IllegalArgumentException: The provided cron string does not have 7 parts: 0 0 * * * ? * 2,3,4,5,6

Atlassian JIRA | Yilin Mo [Atlassian] | 5 years ago
  1. 0

    When creating a new subscription for a filter, add a job with the following cron expression: {code} 0 0 * * * ? * 2,3,4,5,6 {code} The job can be successfully created (as in the screenshot creation.png), but when we edit, it throw a system error(detail in the file cron_error) like : {noformat} Cause: java.lang.IllegalArgumentException: The provided cron string does not have 7 parts: 0 0 * * * ? * 2,3,4,5,6 Stack Trace: [hide] java.lang.IllegalArgumentException: The provided cron string does not have 7 parts: 0 0 * * * ? * 2,3,4,5,6 at com.atlassian.jira.web.component.cron.parser.CronExpressionParser.parseCronString(CronExpressionParser.java:322) at com.atlassian.jira.web.component.cron.parser.CronExpressionParser.parseAndValidateCronString(CronExpressionParser.java:305) at com.atlassian.jira.web.component.cron.parser.CronExpressionParser.<init>(CronExpressionParser.java:75) at com.atlassian.jira.web.action.filter.FilterSubscription.doDefault(FilterSubscription.java:107) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) {noformat} It looks like the Cron expression will only check the first 6 components, if they're OK, the job can be create even the expression is illegal for example: {code} 0 0 * * * ? * 2,3,4,5,6 8 0 0 * * * ? * 2,3,4,5,6 8 11 21 .... {code} The only workaround solution is to delete the job.

    Atlassian JIRA | 5 years ago | Yilin MO [Atlassian]
    java.lang.IllegalArgumentException: The provided cron string does not have 7 parts: 0 0 * * * ? * 2,3,4,5,6
  2. 0

    When creating a new subscription for a filter, add a job with the following cron expression: {code} 0 0 * * * ? * 2,3,4,5,6 {code} The job can be successfully created (as in the screenshot creation.png), but when we edit, it throw a system error(detail in the file cron_error) like : {noformat} Cause: java.lang.IllegalArgumentException: The provided cron string does not have 7 parts: 0 0 * * * ? * 2,3,4,5,6 Stack Trace: [hide] java.lang.IllegalArgumentException: The provided cron string does not have 7 parts: 0 0 * * * ? * 2,3,4,5,6 at com.atlassian.jira.web.component.cron.parser.CronExpressionParser.parseCronString(CronExpressionParser.java:322) at com.atlassian.jira.web.component.cron.parser.CronExpressionParser.parseAndValidateCronString(CronExpressionParser.java:305) at com.atlassian.jira.web.component.cron.parser.CronExpressionParser.<init>(CronExpressionParser.java:75) at com.atlassian.jira.web.action.filter.FilterSubscription.doDefault(FilterSubscription.java:107) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) {noformat} It looks like the Cron expression will only check the first 6 components, if they're OK, the job can be create even the expression is illegal for example: {code} 0 0 * * * ? * 2,3,4,5,6 8 0 0 * * * ? * 2,3,4,5,6 8 11 21 .... {code} The only workaround solution is to delete the job.

    Atlassian JIRA | 5 years ago | Yilin Mo [Atlassian]
    java.lang.IllegalArgumentException: The provided cron string does not have 7 parts: 0 0 * * * ? * 2,3,4,5,6
  3. 0
    I was missing a partitioning column because I did not specify the "basePath" option on read
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    URI part of the request contains invalid characters. You may try to encode the path from the URI. Check RFC7230 and RFC3986 documentation below. https://www.ietf.org/rfc/rfc3986.txt and https://tools.ietf.org/html/rfc7230
  6. 0

    Quartz job exists even after deleting it?

    Stack Overflow | 5 months ago | user734861
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginManager' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Unable to locate constructor with Class parameter for class grails.plugins.quartz.DefaultGrailsJobClass

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      The provided cron string does not have 7 parts: 0 0 * * * ? * 2,3,4,5,6

      at com.atlassian.jira.web.component.cron.parser.CronExpressionParser.parseCronString()
    2. com.atlassian.jira
      FilterSubscription.doDefault
      1. com.atlassian.jira.web.component.cron.parser.CronExpressionParser.parseCronString(CronExpressionParser.java:322)
      2. com.atlassian.jira.web.component.cron.parser.CronExpressionParser.parseAndValidateCronString(CronExpressionParser.java:305)
      3. com.atlassian.jira.web.component.cron.parser.CronExpressionParser.<init>(CronExpressionParser.java:75)
      4. com.atlassian.jira.web.action.filter.FilterSubscription.doDefault(FilterSubscription.java:107)
      4 frames
    3. Java RT
      NativeMethodAccessorImpl.invoke0
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      1 frame