question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing expression and invalid chars in error message

See original GitHub issue

Tried to parse * * -1 * * ? and got the following message

java.lang.IllegalArgumentException: Invalid chars in expression! Expression:  Invalid chars:  (FieldParser.java:247)
[error] com.cronutils.parser.FieldParser.stringToInt(FieldParser.java:247)
[error] com.cronutils.parser.FieldParser.map(FieldParser.java:228)
[error] com.cronutils.parser.FieldParser.parseBetween(FieldParser.java:142)
[error] com.cronutils.parser.FieldParser.dashSplitResult(FieldParser.java:90)
[error] com.cronutils.parser.FieldParser.parse(FieldParser.java:83)
[error] com.cronutils.parser.CronParserField.parse(CronParserField.java:61)
[error] com.cronutils.parser.CronParser.parse(CronParser.java:95)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jmrozaneccommented, Nov 17, 2016

@francisdb @espiegel Just checked this issue and provided a workaround. We detect the issue and throw an exception, with the following message: “Failed to parse ‘* * -1 * * ?’. Invalid expression! Expression: -1 does not describe a range. Negative numbers are not allowed.” Thank you for reporting it.

0reactions
jmrozaneccommented, Nov 29, 2016

@francisdb @espiegel The fix was released with version 5.0.5

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid expression. Check for missing or extra characters.
When I run my code I got an error message "Invalid expression. Check for missing or extra characters" for my if loop. I...
Read more >
Errors using special characters in Access databases - Office
Error message when you use special characters in Access databases ... error message: The Expression you entered contains invalid syntax.
Read more >
How to get rid of Error "Missing Expression" while using the ...
1 Answer 1 · I get an error saying -- ORA-00904: "RIGHT": invalid identifier.. · I asume he copied the RIGHT() from your...
Read more >
Synchronize Portfolio Investments Job fails with error ORA ...
The portfolio synch job is failing with the below error when we create a large power filter expression Job fails if certain threshold...
Read more >
Question on Forms personlization - Oracle Communities
could not be evaluated because of error ORA-00911: invalid character. The condition block actually should check if the value returned by the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found