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.

[4.0.0] regression - NumberFormatException: For input string: "$"

See original GitHub issue

We have a test like this

  "throw an exception for invalid cron expression with unknown char" in {
      parse("* * * * $ ?") must throwA[IllegalArgumentException](
        Pattern.quote("Invalid chars in expression! Expression: $ Invalid chars: $")
      )
    }

but with 4.0.0 this now fails with a IllegalArgumentException with message java.lang.NumberFormatException: For input string: "$"' This is way to technical to show to an enduser

this seems to be a regression from #11 where this was fixed: https://github.com/jmrozanec/cron-utils/commit/7bb8f323d09a47776ae30a372ab721c32be80708#diff-6effbc1e4c5d8c95168d63f715564b44R149

Most of the tests only test for exceptions thrown without validating messages: https://github.com/jmrozanec/cron-utils/commit/7bb8f323d09a47776ae30a372ab721c32be80708#diff-b9ebcbf03bf1827c5a96cb483e84ea62R37

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jmrozaneccommented, May 29, 2016

Fix published in release 4.0.1

0reactions
jmrozaneccommented, May 27, 2016

@francisdb Fixed!

Read more comments on GitHub >

github_iconTop Results From Across the Web

java.lang.NumberFormatException: For input string
I'm assuming that dataValues_fluid[] is an array of String s. If this is the case, you can't use the == comparison operator -...
Read more >
XGBoost-Spark training fails sometimes due to "java.lang ...
We are meeting this exception when running a regression training repeatly with the ... NumberFormatException: For input string: "inf"" #4849.
Read more >
DWH service fails to start - java.lang.NumberFormatException ...
Description of problem: When staring DWH service, a Java exception is thrown and the service is then immediately stopped. Version-Release number of selected ......
Read more >
java.lang.numberformatexception for input string null
The java.lang.NumberFormatException comes when you try to parse a non-numeric String to a Number like Short, Integer, Float, Double etc.
Read more >
java.lang.NumberFormatException: For input string – GATK
Hi there, I had to redo the calling of two of my samples, and now I am trying to redo my genomic database...
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