Hello Jose,
I did what you asked me,but I didn't find errors or
mail-1.4.jar in cabusinessintelligencetomcat-stderr.2020-11-06.Follows the logs below:06-Nov-2020 12:59:04.412 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log MailcapCommandMap: load HOME
06-Nov-2020 12:59:04.414 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log new MailcapFile: file C:\Users\Administrator\.mailcap
06-Nov-2020 12:59:04.415 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log parse: text/plain;; x-java-content-handler=com.sun.mail.handlers.text_plain
06-Nov-2020 12:59:04.416 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log Type: text/plain
06-Nov-2020 12:59:04.416 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log Command: content-handler, Class: com.sun.mail.handlers.text_plain
06-Nov-2020 12:59:04.416 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log parse: text/html;; x-java-content-handler=com.sun.mail.handlers.text_html
06-Nov-2020 12:59:04.416 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log Type: text/html
06-Nov-2020 12:59:04.416 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log Command: content-handler, Class: com.sun.mail.handlers.text_html
06-Nov-2020 12:59:04.417 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log parse: text/xml;; x-java-content-handler=com.sun.mail.handlers.text_xml
06-Nov-2020 12:59:04.417 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log Type: text/xml
06-Nov-2020 12:59:04.417 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log Command: content-handler, Class: com.sun.mail.handlers.text_xml
06-Nov-2020 12:59:04.417 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log parse: multipart/*;; x-java-content-handler=com.sun.mail.handlers.multipart_mixed; x-java-fallback-entry=true
06-Nov-2020 12:59:04.417 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log Type: multipart/*
06-Nov-2020 12:59:04.417 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log Command: content-handler, Class: com.sun.mail.handlers.multipart_mixed
06-Nov-2020 12:59:04.418 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log parse: message/rfc822;; x-java-content-handler=com.sun.mail.handlers.message_rfc822
06-Nov-2020 12:59:04.418 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log Type: message/rfc822
06-Nov-2020 12:59:04.418 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log Command: content-handler, Class: com.sun.mail.handlers.message_rfc822
06-Nov-2020 12:59:04.418 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log MailcapCommandMap: load SYS
06-Nov-2020 12:59:04.418 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log new MailcapFile: file E:\CA\JASPER\jre\lib\mailcap
06-Nov-2020 12:59:04.419 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log MailcapCommandMap: load JAR
06-Nov-2020 12:59:04.421 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log MailcapCommandMap: !anyLoaded
06-Nov-2020 12:59:04.421 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log MailcapCommandMap: not loading mailcap file: /META-INF/mailcap
06-Nov-2020 12:59:04.427 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log MailcapCommandMap: load DEF
06-Nov-2020 12:59:04.427 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log new MailcapFile: InputStream
06-Nov-2020 12:59:04.429 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log parse: image/gif;; x-java-view=com.sun.activation.viewers.ImageViewer
06-Nov-2020 12:59:04.430 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log Type: image/gif
06-Nov-2020 12:59:04.430 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log Command: view, Class: com.sun.activation.viewers.ImageViewer
06-Nov-2020 12:59:04.430 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log parse: image/jpeg;; x-java-view=com.sun.activation.viewers.ImageViewer
06-Nov-2020 12:59:04.432 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log Type: image/jpeg
06-Nov-2020 12:59:04.433 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log Command: view, Class: com.sun.activation.viewers.ImageViewer
06-Nov-2020 12:59:04.433 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log parse: text/*;; x-java-view=com.sun.activation.viewers.TextViewer
06-Nov-2020 12:59:04.433 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log Type: text/*
06-Nov-2020 12:59:04.433 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log Command: view, Class: com.sun.activation.viewers.TextViewer
06-Nov-2020 12:59:04.433 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log parse: text/*;; x-java-edit=com.sun.activation.viewers.TextEditor
06-Nov-2020 12:59:04.434 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log Type: text/*
06-Nov-2020 12:59:04.434 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log Command: edit, Class: com.sun.activation.viewers.TextEditor
06-Nov-2020 12:59:04.434 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log Merging commands for type text/*
06-Nov-2020 12:59:04.434 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log MailcapCommandMap: successfully loaded mailcap file: /META-INF/mailcap.default
06-Nov-2020 12:59:04.435 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log MailcapCommandMap: load HOME
06-Nov-2020 12:59:04.435 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log new MailcapFile: file C:\Users\Administrator\.mailcap
06-Nov-2020 12:59:04.437 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log parse: text/plain;; x-java-content-handler=com.sun.mail.handlers.text_plain
06-Nov-2020 12:59:04.437 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log Type: text/plain
06-Nov-2020 12:59:04.437 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log Command: content-handler, Class: com.sun.mail.handlers.text_plain
06-Nov-2020 12:59:04.438 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log parse: text/html;; x-java-content-handler=com.sun.mail.handlers.text_html
06-Nov-2020 12:59:04.438 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log Type: text/html
06-Nov-2020 12:59:04.439 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log Command: content-handler, Class: com.sun.mail.handlers.text_html
06-Nov-2020 12:59:04.439 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log parse: text/xml;; x-java-content-handler=com.sun.mail.handlers.text_xml
06-Nov-2020 12:59:04.439 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log Type: text/xml
06-Nov-2020 12:59:04.439 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log Command: content-handler, Class: com.sun.mail.handlers.text_xml
06-Nov-2020 12:59:04.439 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log parse: multipart/*;; x-java-content-handler=com.sun.mail.handlers.multipart_mixed; x-java-fallback-entry=true
06-Nov-2020 12:59:04.439 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log Type: multipart/*
06-Nov-2020 12:59:04.439 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log Command: content-handler, Class: com.sun.mail.handlers.multipart_mixed
06-Nov-2020 12:59:04.440 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log parse: message/rfc822;; x-java-content-handler=com.sun.mail.handlers.message_rfc822
06-Nov-2020 12:59:04.440 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log Type: message/rfc822
06-Nov-2020 12:59:04.440 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log Command: content-handler, Class: com.sun.mail.handlers.message_rfc822
06-Nov-2020 12:59:04.440 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log MailcapCommandMap: load SYS
06-Nov-2020 12:59:04.440 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log new MailcapFile: file E:\CA\JASPER\jre\lib\mailcap
06-Nov-2020 12:59:04.440 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log MailcapCommandMap: load JAR
06-Nov-2020 12:59:04.441 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log MailcapCommandMap: !anyLoaded
06-Nov-2020 12:59:04.441 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log MailcapCommandMap: not loading mailcap file: /META-INF/mailcap
06-Nov-2020 12:59:04.442 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log MailcapCommandMap: load DEF
06-Nov-2020 12:59:04.444 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log MailcapCommandMap: add to PROG
06-Nov-2020 12:59:04.444 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log new MailcapFile: default
06-Nov-2020 12:59:04.444 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log appendToMailcap: image/*;;x-java-content-handler=org.apache.cxf.attachment.ImageDataContentHandler
06-Nov-2020 12:59:04.445 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log parse: image/*;;x-java-content-handler=org.apache.cxf.attachment.ImageDataContentHandler
06-Nov-2020 12:59:04.446 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log Type: image/*
06-Nov-2020 12:59:04.447 FINE [http-nio-8080-exec-7] com.sun.activation.registries.LogSupport.log Command: content-handler, Class: org.apache.cxf.attachment.ImageDataContentHandler
I have removed the append line as you told in service.bat.
thank you
Original Message:
Sent: 11-06-2020 04:01 AM
From: Jose Vicente Espinosa
Subject: jasper reports e-mail
Hi Valeria,
in that case, we can remove it and create the service again using service.bat script
Here the example:
Just after removing the service, edit service.bat and modify the line --StartPath to include the new parameter at the end.
Remember to undo the changes after the test.
Regards
Original Message:
Sent: 11-05-2020 02:40 PM
From: Valeria Cunha
Subject: jasper reports e-mail
Hello Jose,
Doesn't have the tomcat7w.exe in this directory.Follow the picture below to help you :
thank you,
Original Message:
Sent: 11-05-2020 02:11 PM
From: Jose Vicente Espinosa
Subject: jasper reports e-mail
Hi Valeria,
I am doing my tests in CABI 7.1.1. Maybe in 6.4.2 is different.
Does a similar .exe exist? Maybe tomcat7w.exe?
What do you have in bin folder?
Regards
Original Message:
Sent: 11-05-2020 01:41 PM
From: Valeria Cunha
Subject: jasper reports e-mail
------------------------------
Valéria Revheim
Original Message:
Sent: 11-05-2020 01:11 PM
From: Jose Vicente Espinosa
Subject: jasper reports e-mail
Hi Valerie,
there is a typo in your command.
Correct command is (look at the w after tomcat8)
tomcat8w.exe //ES//cabusinessintelligencetomcat
Regards
Original Message:
Sent: 11-05-2020 12:47 PM
From: Valeria Cunha
Subject: jasper reports e-mail
Hello Jose,
I've tried to run the command "tomcat8.exe //ES//cabusinessintelligencetomcat" on directory E:\CA\JASPER\apache-tomcat\bin but this command restart again the tomcat and couldn't see the java tab as you told me.
thank you
Original Message:
Sent: 11-05-2020 10:19 AM
From: Jose Vicente Espinosa
Subject: jasper reports e-mail
Hi Valerie,
happy to hear that the workaround worked.
Regarding why mail-1.4.jar file is not found by the webapp classloader, I think it can be a permission problem in the Security Manager.
Did you modify this file E:\CA\JASPER\apache-tomcat\conf\catalina.policy?
What we can do is to debug the Security Manager errors. For doing that:
1) Stop CABI tomcat
2) Open a CMD terminal and go to E:\CA\JASPER\apache-tomcat\bin
3) Execute command
tomcat8w.exe //ES//cabusinessintelligencetomcat
4) Go to Java tab and append the highlighted line in the parameters
Original Message:
Sent: 11-05-2020 08:45 AM
From: Valeria Cunha
Subject: jasper reports e-mail
Hello Jose,
Sorry for the misunderstanding.I didn't see the zip file attached here.
The workaround worked perfectly,but what happened about classloader mail-1.4.jar that suddenly stopped working.
thank you so much
Original Message:
Sent: 11-04-2020 04:49 PM
From: Jose Vicente Espinosa
Subject: jasper reports e-mail
Hi Valerie,
I am confusing. Why do you ask me this?
Do you want to download the file .jar and copy it to E:\CA\JASPER\apache-tomcat\webapps\jasperserver-pro\WEB-INF\lib ?
If mail-1.4.jar file is already located in that folder why you would need to download it and copy there.
Have you tested the workaround I propose?
Regards
Original Message:
Sent: 11-04-2020 04:36 PM
From: Valeria Cunha
Subject: jasper reports e-mail
Hello Jose,
Aswering your questions:
- Does mail-1.4.jar exist in E:\CA\JASPER\apache-tomcat\webapps\jasperserver-pro\WEB-INF\lib from the beginning? Or did you download and copy it from Internet?
the mail-1.4.zjar already existed.
- Can you check the file permission of mail-1.4.jar file?
Yes.There are groups like "System","Administrators" and Users.
System and Administrators have full control but the users doesn't have.
Do you want to download the file .jar and copy it to E:\CA\JASPER\apache-tomcat\webapps\jasperserver-pro\WEB-INF\lib ?
Thank you,
------------------------------
Valéria Revheim
Original Message:
Sent: 11-04-2020 03:01 PM
From: Jose Vicente Espinosa
Subject: jasper reports e-mail
Hi Valerie,
it is clear that you have a problem with your classloader in tomcat because it should load mailcap from mail-1.4.jar
Two questions:
- Does mail-1.4.jar exist in E:\CA\JASPER\apache-tomcat\webapps\jasperserver-pro\WEB-INF\lib from the beginning? Or did you download and copy it from Internet?
- Can you check the file permission of mail-1.4.jar file?
As a workaround, extract the attached zip file in C:\Users\Administrator\ and restart CABI tomcat
Note: after zip extraction a file C:\Users\Administrator\.mailcap must exist (including . in the file name)
Test after that and let me know
Regards
Original Message:
Sent: 11-04-2020 01:44 PM
From: Valeria Cunha
Subject: jasper reports e-mail
Hello Jose,
I did what you asked me do.Follow the logs below:
04-Nov-2020 16:37:03.791 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log new MailcapFile: file C:\Users\Administrator\.mailcap
04-Nov-2020 16:37:03.791 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log MailcapCommandMap: load SYS
04-Nov-2020 16:37:03.792 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log new MailcapFile: file E:\CA\JASPER\jre\lib\mailcap
04-Nov-2020 16:37:03.792 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log MailcapCommandMap: load JAR
04-Nov-2020 16:37:03.793 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log MailcapCommandMap: !anyLoaded
04-Nov-2020 16:37:03.793 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log MailcapCommandMap: not loading mailcap file: /META-INF/mailcap
04-Nov-2020 16:37:03.794 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log MailcapCommandMap: load DEF
04-Nov-2020 16:37:03.794 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log new MailcapFile: InputStream
04-Nov-2020 16:37:03.795 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log parse: image/gif;; x-java-view=com.sun.activation.viewers.ImageViewer
04-Nov-2020 16:37:03.795 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log Type: image/gif
04-Nov-2020 16:37:03.796 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log Command: view, Class: com.sun.activation.viewers.ImageViewer
04-Nov-2020 16:37:03.796 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log parse: image/jpeg;; x-java-view=com.sun.activation.viewers.ImageViewer
04-Nov-2020 16:37:03.796 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log Type: image/jpeg
04-Nov-2020 16:37:03.796 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log Command: view, Class: com.sun.activation.viewers.ImageViewer
04-Nov-2020 16:37:03.796 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log parse: text/*;; x-java-view=com.sun.activation.viewers.TextViewer
04-Nov-2020 16:37:03.796 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log Type: text/*
04-Nov-2020 16:37:03.797 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log Command: view, Class: com.sun.activation.viewers.TextViewer
04-Nov-2020 16:37:03.797 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log parse: text/*;; x-java-edit=com.sun.activation.viewers.TextEditor
04-Nov-2020 16:37:03.797 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log Type: text/*
04-Nov-2020 16:37:03.797 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log Command: edit, Class: com.sun.activation.viewers.TextEditor
04-Nov-2020 16:37:03.797 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log Merging commands for type text/*
04-Nov-2020 16:37:03.798 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log MailcapCommandMap: successfully loaded mailcap file: /META-INF/mailcap.default
04-Nov-2020 16:37:03.798 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log MailcapCommandMap: load HOME
04-Nov-2020 16:37:03.798 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log new MailcapFile: file C:\Users\Administrator\.mailcap
04-Nov-2020 16:37:03.799 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log MailcapCommandMap: load SYS
04-Nov-2020 16:37:03.799 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log new MailcapFile: file E:\CA\JASPER\jre\lib\mailcap
04-Nov-2020 16:37:03.799 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log MailcapCommandMap: load JAR
04-Nov-2020 16:37:03.800 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log MailcapCommandMap: !anyLoaded
04-Nov-2020 16:37:03.800 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log MailcapCommandMap: not loading mailcap file: /META-INF/mailcap
04-Nov-2020 16:37:03.801 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log MailcapCommandMap: load DEF
04-Nov-2020 16:37:03.803 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log MailcapCommandMap: add to PROG
04-Nov-2020 16:37:03.803 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log new MailcapFile: default
04-Nov-2020 16:37:03.803 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log appendToMailcap: image/*;;x-java-content-handler=org.apache.cxf.attachment.ImageDataContentHandler
04-Nov-2020 16:37:03.803 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log parse: image/*;;x-java-content-handler=org.apache.cxf.attachment.ImageDataContentHandler
04-Nov-2020 16:37:03.804 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log Type: image/*
04-Nov-2020 16:37:03.804 FINE [http-nio-8080-exec-9] com.sun.activation.registries.LogSupport.log Command: content-handler, Class: org.apache.cxf.attachment.ImageDataContentHandler
04-Nov-2020 16:37:53.113 FINE [quartzScheduler_Worker-1] com.sun.activation.registries.LogSupport.log MailcapCommandMap: createDataContentHandler for text/plain
04-Nov-2020 16:37:53.113 FINE [quartzScheduler_Worker-1] com.sun.activation.registries.LogSupport.log search DB #1
04-Nov-2020 16:37:53.113 FINE [quartzScheduler_Worker-1] com.sun.activation.registries.LogSupport.log search fallback DB #1
04-Nov-2020 16:37:53.124 FINE [quartzScheduler_Worker-1] com.sun.activation.registries.LogSupport.log MailcapCommandMap: createDataContentHandler for multipart/mixed
04-Nov-2020 16:37:53.124 FINE [quartzScheduler_Worker-1] com.sun.activation.registries.LogSupport.log search DB #1
04-Nov-2020 16:37:53.124 FINE [quartzScheduler_Worker-1] com.sun.activation.registries.LogSupport.log search fallback DB #1
------------------------------
Valéria Revheim
Original Message:
Sent: 10-30-2020 05:32 AM
From: Jose Vicente Espinosa
Subject: jasper reports e-mail
Hi Valerie,
The only reason for that Exception is because the handler is not found for any strange reason. I confirmed in the source code.
I have realized the tomcat in Windows starts differently and this is why the debug flag did not apply.
For doing the test again:
1) Stop CABI as usual from services panel
2) Edit the file E:\CA\JASPER\apache-tomcat\conf\logging.properties
3) Add this line at the end
javax.activation.level = ALL
4) Save the file
5) Start CABI as usual from services panel
The output will be printed in catalina.out
Regards
Original Message:
Sent: 10-29-2020 04:58 PM
From: Valeria Cunha
Subject: jasper reports e-mail
Hello Jose Vicente,
I did what you asked me,but I didn't find theses errors that you told me in catalina.out,:
MailcapCommandMap: createDataContentHandler for multipart/mixed
search DB #1
search DB #2
search fallback DB #1
got content-handler
class com.sun.mail.handlers.multipart_mixed
but I realized when i did the process again to send an e-mail the error appeared inside of logs but the hour was wrong because when I did it was 17:32 o'clock and appeared as 18:32 o',clock:
2020-10-29 18:32:21,802 ERROR ReportExecutionJob,quartzScheduler_Worker-1:366 - The job error notification was not completed. An error occurred while sending it.
org.springframework.mail.MailSendException: Failed messages: javax.mail.MessagingException: IOException while sending message;
nested exception is:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed;
boundary="----=_Part_0_630052124.1604003541717"; message exception details (1) are:
Failed message 1:
javax.mail.MessagingException: IOException while sending message;
nested exception is:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed;
boundary="----=_Part_0_630052124.1604003541717"
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:625)
at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:416)
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:340)
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:336)
at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJobMailNotificationImpl.sendMailNotification(ReportExecutionJobMailNotificationImpl.java:140)
at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.sendMailNotification(ReportExecutionJob.java:1123)
at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.executeAndSendReport(ReportExecutionJob.java:581)
at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.execute(ReportExecutionJob.java:248)
at com.jaspersoft.ji.report.options.engine.ReportOptionsExecutionJob.execute(ReportOptionsExecutionJob.java:48)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
Caused by: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed;
boundary="----=_Part_0_630052124.1604003541717"
at javax.activation.ObjectDataContentHandler.writeTo(Unknown Source)
at javax.activation.DataHandler.writeTo(Unknown Source)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1350)
at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1683)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:585)
... 10 more
The jasper reports server was the hour correct but in the logs I always see the wrong hour (it's seems like1 hour ahead).
Original Message:
Sent: 10-28-2020 03:56 PM
From: Jose Vicente Espinosa
Subject: jasper reports e-mail
Hi Valerie,
I think the problem comes from the fault to load the proper class to manage "multipart/mixed" mime-type.
This is mapped in a file inside mail-1.4.jar
Can you extract the file META-INF/mailcap from mail-1.4.jar file and check if it contains the following line?
multipart/*;; x-java-content-handler=com.sun.mail.handlers.multipart_mixed; x-java-fallback-entry=true
To extract it, make a copy of mail-1.4.jar file to a different location, change the extension of the file to zip and extract as usual.
In order to debug the problem, can you follow these steps?
1. Stop CABI
2. Edit E:\CA\JASPER\apache-tomcat\bin\catalina.bat and place the following line after nolocal line (around line 372)
set JAVA_OPTS="-Djavax.activation.debug=true"
3. Start CABI
4. Reproduce the issue and look for lines like the following in catalina.out
MailcapCommandMap: createDataContentHandler for multipart/mixed
search DB #1
search DB #2
search fallback DB #1
got content-handler
class com.sun.mail.handlers.multipart_mixed
Regards
Original Message:
Sent: 10-27-2020 05:31 PM
From: Valeria Cunha
Subject: jasper reports e-mail
Hello Jose,
I have 2 jar libraries that you told me :mail-1.4.jar and activation-1.1.jar in E:\CA\JASPER\apache-tomcat\webapps\jasperserver-pro\WEB-INF\lib
Original Message:
Sent: 10-27-2020 10:21 AM
From: Valeria Cunha
Subject: jasper reports e-mail
Hello Jose,
How can I make the installation on my cabi server?Only run mail-1.4.jar or activation-1.1.jar after downloading it?
thank you
Original Message:
Sent: 10-27-2020 04:15 AM
From: Jose Vicente Espinosa
Subject: jasper reports e-mail
Hi Valerie,
my research points to a classpath issue. Can you please search for mail and activation jar libraries under apache-tomcat folder?
Have in mind that libraries can have the version in the name like mail-1.4.jar or activation-1.1.jar
Regards
Original Message:
Sent: 10-26-2020 07:58 AM
From: Valeria Cunha
Subject: jasper reports e-mail
Hello Jose Vicente,
I'm using 6.4.2 Jasper Reports and the last version of java (Java 8 Update 261).Yes,I'm attaching the report to mail as pdf and below you can see the error on logs in Jasper Server :
2020-10-23 19:56:43,556 ERROR ReportExecutionJob,quartzScheduler_Worker-1:366 - The job error notification was not completed. An error occurred while sending it.
org.springframework.mail.MailSendException: Failed messages: javax.mail.MessagingException: IOException while sending message;
nested exception is:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed;
boundary="----=_Part_0_997195499.1603490203462"; message exception details (1) are:
Failed message 1:
javax.mail.MessagingException: IOException while sending message;
nested exception is:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed;
boundary="----=_Part_0_997195499.1603490203462"
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:625)
at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:416)
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:340)
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:336)
at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJobMailNotificationImpl.sendMailNotification(ReportExecutionJobMailNotificationImpl.java:140)
at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.sendMailNotification(ReportExecutionJob.java:1123)
at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.executeAndSendReport(ReportExecutionJob.java:581)
at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.execute(ReportExecutionJob.java:248)
at com.jaspersoft.ji.report.options.engine.ReportOptionsExecutionJob.execute(ReportOptionsExecutionJob.java:48)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
Caused by: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed;
boundary="----=_Part_0_997195499.1603490203462"
at javax.activation.ObjectDataContentHandler.writeTo(Unknown Source)
at javax.activation.DataHandler.writeTo(Unknown Source)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1350)
at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1683)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:585)
... 10 more
thank you,
Original Message:
Sent: 10-24-2020 04:23 AM
From: Jose Vicente Espinosa
Subject: jasper reports e-mail
Hi Valeria,
what version of Jaspersoft are you running? And what java version?
Can you share a screenshoft of the Notification configuration? How are you attaching the report to mail? As a zip?
Regards
Original Message:
Sent: 10-23-2020 08:48 AM
From: Valeria Cunha
Subject: jasper reports e-mail
Hello Community,
I can't send e-mail by jasper reports anymore,today when I tried to send an e-mail using jasper reports I saw this error in logs on jasper server:
2020-10-23 10:43:19,393 ERROR ReportExecutionJob,quartzScheduler_Worker-2:366 - The job error notification was not completed. An error occurred while sending it.
org.springframework.mail.MailSendException: Failed messages: javax.mail.MessagingException: IOException while sending message;
nested exception is:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed;
boundary="----=_Part_2_1977045253.1603456999368"; message exception details (1) are:
Failed message 1:
javax.mail.MessagingException: IOException while sending message;
nested exception is:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed;
boundary="----=_Part_2_1977045253.1603456999368"
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:625)
at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:416)
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:340)
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:336)
at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJobMailNotificationImpl.sendMailNotification(ReportExecutionJobMailNotificationImpl.java:140)
at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.sendMailNotification(ReportExecutionJob.java:1123)
at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.executeAndSendReport(ReportExecutionJob.java:581)
at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.execute(ReportExecutionJob.java:248)
at com.jaspersoft.ji.report.options.engine.ReportOptionsExecutionJob.execute(ReportOptionsExecutionJob.java:48)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
Caused by: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed;
boundary="----=_Part_2_1977045253.1603456999368"
at javax.activation.ObjectDataContentHandler.writeTo(Unknown Source)
at javax.activation.DataHandler.writeTo(Unknown Source)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1350)
at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1683)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:585)
... 10 more
What i need to do to fix this error ?
thank you
------------------------------
Valéria Revheim
------------------------------