• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Email send via Valence Serviceprogramm

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Email send via Valence Serviceprogramm

    Hi all,
    my customer just switcht to V7R6 and i update Valence to version 6.3.20260421.0.
    Valence Service Programm is also used to send emails from the portal apps. After this update it was not possible.
    Java VM was started but thow an error "java.lang.NoClassDefFoundError: javax.activation.DataHandler".
    I checked the Class_path in the CGI Job and not found the corresponding jarfile.
    After adding [ROOT_PATH]java/activation.jar, the email was sent.
    The rest of class_path was nearly the same.
    Can enyone comment this? May be i overseeing something.
    Thanks in Advance.

  • #2
    Hi Boris, to confirm: Adding activation.jar to the classpath fixed the email problem? You're just wondering if somehow the upgrade process removed that entry from the classpath?

    Comment


    • #3
      Hi Rob,
      yepp. I added activation.jar to Class_path settings variable and it does the job. In previous Valence release this jar was not in Class_path settings variable and all works fine.
      The question : is there any shadow process that adjust the class_path settings variable to adopt activation.jar in previous Valence releases?

      Comment


      • #4
        This is puzzling because the requirement for activation.jar was removed from the Valence email routine many years ago. So yes, there is logic in the installer to remove it from the classpath... Perhaps your customer is using an older version of the Java mail logic?

        Comment


        • #5
          Hi Rob, I’ll review the code, but I’m pretty sure it’s based on some older Java mail logic. I’m also planning to redesign this part—do you have any suggestions??

          Comment


          • #6
            Hi Boris, just getting back to you on this... The best suggestion I can offer is to use an exit program to send emails. The exit program can then call any already-proven and working alternative method they currently have on their system.

            The VVMAIL exit program procedure is explained here:
            If you're creating NAB forms or custom apps that send emails using the VVMAIL service program module, as demonstrated in the "Send Email" utility nested inside the Examples app, you can set up a back-end routine to globally intercept all outbound messages using an exit program. The exit program you create can…

            Comment


            • #7
              Hi Rob, many thanks for your reply. I already shown for the other email service and will try to implement a POC. The way out with exit program works good.

              Comment

              Working...
              X