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
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  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

    Cluster / Node Manager « WebLogic

    middlewaremagic.com | 10 months ago
    org.apache.cxf.interceptor.Fault: argument type mismatch while invoking public com.nsn.see.application.callerid.Registration com.nsn.see.application.callerid.CallerIdService.registration(com.nsn.see.application.callerid.Register) with params [com.nsn.see.application.callerid.Register@1d03015d].
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Polymorphic Deserialization - object is not an instance of declaring class - Jackson JSON User Group

    ning.com | 11 months ago
    com.fasterxml.jackson.databind.JsonMappingException: Problem deserializing property 'data' (expected type: [simple type, class java.lang.Object]; actual type: ItemTest$Device), problem: object is not an instance of declaring class (through reference chain: java.util.ArrayList[0])
  6. 0

    Works both for me, but not together: Encountered an error executing the step: class java.lang.IllegalArgumentException: Unable to invoke method: [public void XXXReader.beforeStep(org.springframework.batch.core.StepExecution)] on object: [XXXReader@8b567c] with arguments: [[StepExecution: id=0, name=writeDatasheetXml, status=STARTED, exitStatus=EXECUTING, readCount=0, filterCount=0, writeCount=0 readSkipCount=0, writeSkipCount=0, commitCount=0, rollbackCount=0, exitDescription=]] java.lang.IllegalArgumentException: Unable to invoke method: [public void XXXReader.beforeStep(org.springframework.batch.core.StepExecution)] on object: [XXXReader@8b567c] with arguments: [[StepExecution: id=0, name=XXX, status=STARTED, exitStatus=EXECUTING, readCount=0, filterCount=0, writeCount=0 readSkipCount=0, writeSkipCount=0, commitCount=0, rollbackCount=0, exitDescription=]] at org.springframework.batch.support.SimpleMethodInvoker.invokeMethod(SimpleMethodInvoker.java:97) at org.springframework.batch.core.listener.MethodInvokerMethodInterceptor.invoke(MethodInvokerMethodInterceptor.java:68) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy18.beforeStep(Unknown Source) at org.springframework.batch.core.listener.CompositeStepExecutionListener.beforeStep(CompositeStepExecutionListener.java:76) at org.springframework.batch.core.step.AbstractStep.execute(AbstractStep.java:193) at org.springframework.batch.core.job.AbstractJob.handleStep(AbstractJob.java:348) at org.springframework.batch.core.job.flow.FlowJob.access$100(FlowJob.java:43) at org.springframework.batch.core.job.flow.FlowJob$JobFlowExecutor.executeStep(FlowJob.java:137) at org.springframework.batch.core.job.flow.support.state.StepState.handle(StepState.java:60) at org.springframework.batch.core.job.flow.support.SimpleFlow.resume(SimpleFlow.java:144) at org.springframework.batch.core.job.flow.support.SimpleFlow.start(SimpleFlow.java:124) at org.springframework.batch.core.job.flow.FlowJob.doExecute(FlowJob.java:105) at org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:250) at org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:110) at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49) at org.springframework.batch.core.launch.support.SimpleJobLauncher.run(SimpleJobLauncher.java:105) at org.springframework.batch.core.launch.support.CommandLineJobRunner.start(CommandLineJobRunner.java:207) at org.springframework.batch.core.launch.support.CommandLineJobRunner.main(CommandLineJobRunner.java:254) Caused by: java.lang.IllegalArgumentException: object is not an instance of declaring class at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.batch.support.SimpleMethodInvoker.invokeMethod(SimpleMethodInvoker.java:95) ... 19 more

    Spring JIRA | 8 years ago | Jörg Gottschling
    java.lang.IllegalArgumentException: Unable to invoke method: [public void XXXReader.beforeStep(org.springframework.batch.core.StepExecution)] on object: [XXXReader@8b567c] with arguments: [[StepExecution: id=0, name=XXX, status=STARTED, exitStatus=EXECUTING, readCount=0, filterCount=0, writeCount=0 readSkipCount=0, writeSkipCount=0, commitCount=0, rollbackCount=0, exitDescription=]]

    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