Jump to content
Server Maintenance This Week. ×

EmailReadMessages() ERROR


This topic is 1766 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

Having changed nothing on my server or script that has been functioning fine for several months, I'm now getting an error when trying to fetch messages via the EmailReadMessages() function.

“java.lang.NumberFormatException: For input string: “null””

The log file says:

Jun 26, 2019 2:49:10 PM com.prosc.fmkit.Plugin setLastError
SEVERE: PluginFunction PluginFunction{name='EmailReadMessages', minArgs=0, maxArgs=-1} got an error with converted args [[uid=null, mailbox=INBOX, readonly=false, attachmentsAll=true, max=5, progress=true]]

I am passing the uid via a $uid variable, and if I Show Custom Dialog in a script step, the $uid variable is indeed set.

Thank you,

  - Justin

360Works_Email_FMAdvanced.log

Link to comment
Share on other sites

  • Newbies

In case anyone else gets this particular situation:

For some reason, the IMAP server that I’m connected to must have passed, literally, “null” as a message id (strange). Then, when we went to find all messages with an id greater than “null”, we had a problem.
 
I’ve cleared that field, made my script so that it won’t write null into the uid field, and all seems to be well.
Link to comment
Share on other sites

This topic is 1766 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.