Hitachi Vantara Pentaho Community Forums
Results 1 to 1 of 1

Thread: Proxy Problem sending email with MAIL Spoon component

  1. #1
    Join Date
    Jun 2012
    Posts
    1

    Default Proxy Problem sending email with MAIL Spoon component

    Hi, i write this because i have a problem with Spoon. I'm using Spoon (PDI 4.2.1-stable), and i have a transformation that uses the MAIL component, (located in Utilies - Mail), and i send the parameters (smtp server, user, pass, sender, subjecc, etc...) correctly, but when i execute it in a network with proxy i receive an error: "Couldn't conect with smtp.... at port: 25". When i execute the same script in a network without proxy, the script was executed without problems.

    I cannot find any option about configure the MAIL component for using proxys.

    I've looked for a lot, and i only found a thread: http://forums.pentaho.com/showthread...o-the-internet with apparently has the same problem, but to the case for receiving (POP instead of SMTP). I think that the solution is similar.

    I've downloaded the source code of kettle (version 4.4.0) from the repository in order to inspect it. And i'm using Eclipse. I suposse the class org/pentaho/di/trans/steps/mail/Mail.java references this component, and i have tried to insert this lines in the "sendMail()" method:


    public void sendMail(Object[] r,String server, int port,
    String senderAddress,String senderName,String destination,String destinationCc,
    String destinationBCc,
    String contactPerson, String contactPhone,
    String authenticationUser,String authenticationPassword,
    String mailsubject, String comment, String replyToAddresses) throws Exception
    {
    ...
    ...
    ...
    data.props.put("mail." + protocol + ".socks.host", "10.***.***.***");
    data.props.put("mail." + protocol + ".socks.port", "8080");
    ...
    ...
    }

    Notice that i'm only trying and parameters are hardcoded (i'm sorry), but when i compiled it, i receive an error:

    Exception in thread "main" java.lang.UnsupportedClassVersionError: (Unsupported major.minor version 51.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)

    I have used diferents jdk's: jdk1.5, jdk1.6, jdk1.7, but i cannot compile it correctly.

    I'm newbye with pentaho, but i need to know how solve this (Problem with compile and problem with mail component and if there is another solution).

    Thanks
    Last edited by hystd; 06-05-2012 at 03:17 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.