moqui / moqui-framework

Use Moqui Framework to build enterprise applications based on Java. It includes tools for databases (relational, graph, document), local and web services, web and other UI with screens and forms, security, file/resource access, scripts, templates, l10n, caching, logging, search, rules, workflow, multi-instance, and integration.
http://www.moqui.org
Other
284 stars 204 forks source link

Error running poll#EmailServer - NoSuchFieldError: SIZE #165

Closed mrovnanik closed 7 years ago

mrovnanik commented 7 years ago

While running on local, no problems. After deploying to server, this error occurred: emailerror

After surfing the web, there seems to be a possible solution. http://stackoverflow.com/questions/40938389/nosuchfielderror-size-when-fetching-email-through-imap

Can provide more info if necessary.

mrovnanik commented 7 years ago

When local, I run the app with MoquiDevConf.xml. On server with MoquiProductionConf.xml. Which is obvious.

mrovnanik commented 7 years ago

It looks like the Jetty is using javax.mail.glassfish-1.4.1.v201005082020.jar. This may be the problem. I shall override jetty's configuration. Probably.

mrovnanik commented 7 years ago

I solved the issue by placing javax.mail.1.5.6.jar to /lib/ext of the Jetty. It is probably only a workaround and needs a more robust solution. But at least there is a hint on how to solve such issue, should anyone face it in the future.

jetty_javax_mail

jonesde commented 7 years ago

So it looks like the issue is that Jetty has an older version of javax.mail that was getting picked up. I don't think there is anything that can be, or needs to be, done in moqui-framework. This is a deployment issue with a classpath conflict (BTW generally best to remove the other jar to make sure it doesn't get picked up) so I'll close the issue. Thank you for documenting it for others who run into it.