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.

Stacktrace printed

See original GitHub issue

I guess this should not happen?

https://github.com/jmrozanec/cron-utils/blob/dfbf4127afd2c28b6e44a76e2379be59e6137556/src/main/java/com/cronutils/model/time/generator/EveryFieldValueGenerator.java#L70

com.cronutils.model.time.generator.NoSuchValueException
    at com.cronutils.model.time.generator.EveryFieldValueGenerator.generateNextValue(EveryFieldValueGenerator.java:43)
    at com.cronutils.model.time.generator.EveryFieldValueGenerator.generateCandidatesNotIncludingIntervalExtremes(EveryFieldValueGenerator.java:67)
    at com.cronutils.model.time.generator.FieldValueGenerator.generateCandidates(FieldValueGenerator.java:55)
    at com.cronutils.model.time.ExecutionTimeBuilder.forMinutesMatching(ExecutionTimeBuilder.java:51)
    at com.cronutils.model.time.ExecutionTime.forCron(ExecutionTime.java:92)

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
jmrozaneccommented, Apr 15, 2016

@augusto-altman Hello Augusto, we have no fix for it yet. I may have a look to this issue during weekend, but cannot guarantee to solve it. Anyway, a new release will be created until Sunday, with some new issues we fixed. If you have some spare time, you are always welcome to contribute.

1reaction
jmrozaneccommented, Mar 9, 2016

@francisdb The expected behavior in that part of the code is that if no value exists in interval, we should return an empty list. Exceptions should not take place. We may log the exception to keep track of such a case, just to be sure to have information on potential bug. Maybe I am missing something? Thank you for pointing it out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Print the stack trace of an exception - java
How do I print the stack trace of an exception to a stream other than stderr? One way I found is to use...
Read more >
13 Printing Event Stack Trace - Java - Oracle Help Center
This method creates an event named WithStackTrace . Every time an WithStackTrace occurs, information about the event's stack trace is printed. Copy import...
Read more >
Throwable printStackTrace() method in Java with Examples
This method prints a stack trace for this Throwable object on the standard error output stream. The first line of output shows the...
Read more >
Print stack trace in Java - Tutorialspoint
The printStackTrace() method prints the throwable and its backtrace in the standard error stream. Declaration - The java.lang.Throwable.
Read more >
traceback — Print or retrieve a stack traceback — Python 3.11 ...
It exactly mimics the behavior of the Python interpreter when it prints a stack trace. This is useful when you want to print...
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