tonyjunkes / pdfservices-java-sdk-cfml-samples

Samples for the PDF Services Java SDK Using CFML
MIT License
7 stars 0 forks source link

conflict #1

Open danderson421 opened 2 years ago

danderson421 commented 2 years ago

when the jar is dropped in CF class path, sending cfmail with causes a java io in the mail log and mail messages end up in the undeliverable folder.

tonyjunkes commented 2 years ago

Hi there.

I did a quick test of loading the JAR on the CF class path and sending an email via cfmail, but could not produce an error. The mail sent just fine. I'll need some more details, such as what engine/version you are using, and a stack trace would be super helpful as well.

Thanks!

danderson421 commented 2 years ago

Server Product ColdFusion 2016
Version 2016.0.03.301771
Tomcat Version 8.0.32.0
Edition Standard
Operating System Windows Server 2012 R2
OS Version 6.3
Adobe Driver Version 5.1.4 (Build 0001)
JVM Details
Java Version 1.8.0_112

There was only an issue with (sorry it was stripped from my previous post): <cfmailparam name="Content-Type" value="text/x-gm-impdata">

Log Entry javax.mail.MessagingException: IOException while sending message; nested exception is: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/x-gm-impdata

tonyjunkes commented 2 years ago

Adding that cfmailparam does result in the exception you refer to.

I tested 3 scenarios, all fresh instances, and received the exception.

  1. Build the JAR as is, execute the cfmail tag with the cfmailparam and the JAR file on the CF class path.
  2. Build the JAR to exclude the javax.mail dependency, execute the cfmail tag with the cfmailparam and the JAR file on the CF class path.
  3. Exclude the JAR from the class path entirely, execute the cfmail tag with the cfmailparam.

Because I was able to reproduce the exception without the JAR file, it leads me to believe there is something else going on and not directly related to the JAR. Unfortunately, I can't suggest much else beyond this.