Why am I getting a NumberFormatException?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2022 03:34 PM
I have an email script that gets called by a number of different notifications using several email templates. It has been working as expected. Today I went to use it on an updated version of the incident commented notification. When I run that notification, I get this error java.lang.NumberFormatException.forInputString(NumberFormatException.java:65
From what I'm finding online this comes from trying to convert alphanumeric characters to a numeric format. The problem is that I'm not doing anything like that. I've even gone so far as to create an empty script and it still gets this error. I thought that maybe the script got corrupted so I built a new version with the same result.
Since this notification runs from an event, I wrote a little script to test it. If I use a different event holding all the other factors constant everything works as expected. When I use incident.commented as the event I get the error.
I know this makes no sense but I'm hoping someone has also run into this and found a solution. All suggestions are gratefully accepted.
:{).
:{)
Helpful and Correct tags are appreciated and help others to find information faster
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2022 06:15 PM
Hi, if you could share your email script in plain text, with clear details of custom fields\references (if any), and your test script; the forum would be in a better position to review and advise otherwise there is not much that can be diagnosed from an error message with no context.