Javamail check for no SMTP authentication required

Some SMTP servers do not require authentication and with raw SMTP, you can send a MAIL FROM: <[email protected]> and if authentication is required, it will notify. However, I don't know if there is an easy built in way to do this with JavaMail (or if it is possible right now).
Edited by: gl_sac on Sep 16, 2010 1:32 PM

Thanks for the answer. Is there a way of doing it without sending the message? I wonder if I can just initiate sending to get the authentication error? Basically, if error - it will be interrupted by Authentication error. But if all goes well, it will be sent. I don't want it to be sent. I just wonder can we initiate sending, issue some commands (to provocate auth error), and if all goes good close connection (to avoid dummy mail to be sent). Here is how I saw that it could be done from telnet (at least on some servers) and wonder if it can be done in JavaMail:
[note: gmail just used as example, it is a different server that I ran test on}
MAIL FROM: <[email protected]>
1. putty -telnet smtp.abc.com -P 25
2. EHLO sfsdfs
3. MAIL FROM: <[email protected]>
554 5.7.1 <[email protected]>: Sender address rejected: Access denied
The error is before DATA called.

Similar Messages

  • Configure for no smtp authentication

    Hi all,
    I have one machine (192.168.0.10)
    I have domain a.com, b.com and c.com.
    1. Is it possible to configure messaging server without needing SMTP authentication when this machine (192.168.0.10) sent the email out?
    2. I also want to limit above IP address sending (with no SMTP authentication) to only domain c.com. Is it possible technically?
    Following is my messaging server version:
    # ./imsimta version
    Sun Java(tm) System Messaging Server 6.2-7.05 (built Sep 5 2006)
    libimta.so 6.2-7.05 (built 12:18:44, Sep 5 2006)
    SunOS ms1 5.9 Generic_118558-37 sun4u sparc SUNW,Sun-Fire-880

    Yap wrote:
    I have one machine (192.168.0.10)
    I have domain a.com, b.com and c.com.
    1. Is it possible to configure messaging server without needing SMTP authentication when this machine (192.168.0.10) sent the email out?Yes, you can add the IP address of the machine to the INTERNAL_IP mapping table. This will cause any emails coming from that machine to be regarded as "INTERNAL" (tcp_intranet source channel) and will not require SMTP authentication to relay emails.
    e.g.
    INTERNAL_IP
       $(192.168.0.10/32)     $Y
    2. I also want to limit above IP address sending (with no SMTP authentication) to only domain c.com. Is it possible technically?Yes, you can achieve this with a ORIG_MAIL_ACCESS mapping table rule e.g.
    ORIG_MAIL_ACCESS
      ! Deny access to any addresses except *@c.com
      TCP|*|25|192.168.0.10|*|SMTP*|MAIL|tcp_*|*|*|*@c.com      $Y
      TCP|*|*|192.168.0.10|*|SMTP*|MAIL|tcp_*|*|*|*@* $NAccess$ Denied$ for$ domain$ $8Note that both of these steps were already outlined in the manual:
    http://docs.sun.com/app/docs/doc/819-4428/bgauv?a=view
    Regards,
    Shane.

  • After making large purchase, "checking for purchases" gives error

    I made a large purchase, and my PayPal account got
    debited, and the shopping cart got emptied, but the
    download didn't start. Since then, over the last 7 or
    8 hours, I've done "check for purchases" many times,
    without success. After 30 seconds or so, I get an
    error message:
    "Unable to check purchases. An unknown error occurred (3)"
    I don't think the problem is on my end, because I
    previously made a few (smaller) purchases/downloads
    succesfully.
    Can anyone help?
    thanks.
    Gateway   Windows XP  

    If you google "itunes error 9808" you'll get lots of ideas, three of which I've listed:
    - reset your router/cable modem
    - turn off security software
    - Go to Start > Control Panel > Internet Options > Advanced, make sure that SSL 3.0 is checked and TLS 1.0 is checked. Also under Security make sure that the "Check for server certificate revocation (requires restart)" is unchecked.

  • HT2954 keeps asking for password when checking for mail and says its wrong password

    my mobile me account that i converted to i cloud was working then it has now stoped... it keeps saying the password is wrong but it works to login into i cloud

    Hi Roger,
    I think they're slowly nudging people to switch, .mac & MobileMe are going away about July, may as well set it up now.
    I understand .mac mail will still come through.
    iCloud Mail setup, do not choose .mac or MobileMe as type, but choose IMAP, don't delete the old account yet...
    IMAP (Incoming Mail Server) information:
              ▪          Server name: imap.mail.me.com
              ▪          SSL Required: Yes
              ▪          Port: 993
              ▪          Username: [email protected] (use your @me.com address from your iCloud account)
              ▪          Password: Your iCloud password
    SMTP (outgoing mail server) information:
              ▪          Server name: smtp.mail.me.com
              ▪          SSL Required: Yes
              ▪          Port: 587
              ▪          SMTP Authentication Required: Yes
              ▪          Username: [email protected] (use your @me.com address from your iCloud account)
              ▪          Password: Your iCloud password

  • JavaMail: How to tell if SMTP server requires authentication

    I am writing an application that sends notification emails. I have a configuration screen for the user to specify the SMTP hostname and optionally a username and password, and I want to validate the settings. Here is the code I am using to do this:
    Properties props = new Properties();
    props.put("mail.transport.protocol", "smtp");
    if (mailUsername != null || mailPassword != null)
        props.put("mail.smtp.auth", "true");
    Session session = Session.getInstance(props, null);
    transport = session.getTransport();
    transport.connect(mailHostname, mailUsername, mailPassword);
    transport.close();This works if the user enters a username and password (whether they are valid or not), or if the username and password are empty but the SMTP server does not require authentication. However, if the server requires authentication and the username and password are empty, the call to transport.connect() succeeds, but the user will get an error later on when the app tries to actually send an email. I want to query the SMTP server to find out if authentication is required (not just supported), and inform the user when they are configuring the email settings. Is there any way to do this? I suppose I could try sending a test email to a dummy address, but I was hoping there would be a cleaner way.

    Thanks for your help. This is what I ended up doing, and it seems to work. For anyone else interested, after the code above (before transport.close(), I try to send an empty email, which causes JavaMail to throw an IOException, which I ignore. If some other MessagingException occurs, then there is some other problem (authentication required, invalid from address, etc).
    try
       // ...code from above...
       // Try sending an empty  message, which should fail with an
       // IOException if all other settings are correct.
       MimeMessage msg = new MimeMessage(session);
       if (mailFromAddress != null)
           msg.setFrom(new InternetAddress(mailFromAddress));
       msg.saveChanges();
       transport.sendMessage(msg,
           new InternetAddress[] {new InternetAddress("[email protected]")});
    catch (MessagingException e)
        // IOException is expected, anything else (including subclasses
        // of IOException like UnknownHostException) is an error.
        if (!e.getNextException().getClass().equals(IOException.class))
            // Handle other exceptions
    }Edited by: svattom on Jan 7, 2009 7:37 PM
    Edited by: svattom on Jan 7, 2009 10:01 PM
    Changed handling of subclasses of IOException like UnknownHostException

  • Mail service not requiring SMTP Authentication

    hello everyone,
    I have been trying to find an answer and could not. I want my mail server to require SMTP Authentication. I have "CRAM-MD5" and "Login" checked in Server Admin -> Computers & Services -> Mail -> Advanced -> Security. Still, I can set up a mail account with any name and domain and SMTP through my server. (It does require a password for POP, so at least no one can read others folks mail)
    I have begun to notice that I get many returned mails that I never sent, from accounts that are not on my server. So, I am thinking that spammers are relaying or just using my server to spam. I would like that to stop.
    I have changed the configurations with Server Admin, stopped service, started service, and even restarted the whole server. Still, mail will not require SMTP Authentication.
    Can anyone help me do this with Terminal or manually?

    thanks, for any help in advance.
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    content_filter = smtp-amavis:[127.0.0.1]:10024
    daemon_directory = /usr/libexec/postfix
    debugpeerlevel = 2
    enableserveroptions = yes
    html_directory = no
    inet_interfaces = all
    localrecipientmaps = proxy:unix:passwd.byname $alias_maps
    luser_relay =
    mail_owner = postfix
    mailboxsizelimit = 0
    mailbox_transport = cyrus
    mailq_path = /usr/bin/mailq
    manpage_directory = /usr/share/man
    mapsrbldomains =
    messagesizelimit = 52428800
    mydestination = $myhostname,localhost.$mydomain,localhost,highlevelit.eu
    mydomain = highlevelit.eu
    mydomain_fallback = localhost
    myhostname = mailx.highlevelit.eu
    mynetworks = 127.0.0.0/8
    mynetworks_style = host
    newaliases_path = /usr/bin/newaliases
    queue_directory = /private/var/spool/postfix
    readme_directory = /usr/share/doc/postfix
    sample_directory = /usr/share/doc/postfix/examples
    sendmail_path = /usr/sbin/sendmail
    setgid_group = postdrop
    smtpdclientrestrictions = permit_mynetworks permit
    smtpdenforcetls = no
    smtpdpw_server_securityoptions = login
    smtpdrecipientrestrictions = permitsasl_authenticated,permit_mynetworks,reject_unauthdestination,permit
    smtpdsasl_authenable = yes
    smtpdtls_certfile = /etc/certificates/mailx.highlevelit.eu.crt
    smtpdtls_keyfile = /etc/certificates/mailx.highlevelit.eu.key
    smtpduse_pwserver = yes
    smtpdusetls = yes
    unknownlocal_recipient_rejectcode = 550
    virtualmailboxdomains = hash:/etc/postfix/virtual_domains
    virtual_transport = lmtp:unix:/var/imap/socket/lmtp

  • UTL_SMTP and SMTP-Error: 530 Authentication required

    Hi,
    I wanna use the utl_smtp-package and while testing the example of the 9i-documentation, I got the error:
    ORA-29279: Permanent SMTP-Error: 530 Authentication required
    The only help I found was the sentence in the docu:
    530: Must issue a STARTTLS command first. Encryption required for requested authentication mechanism.
    What does it mean and how can I avoid this error?
    It's true, that my smtp-account of my provider needs an authentication (pop3 before smtp!)
    Thanx a lot!
    Wolfgang

    Hey, Community Girl!  I just spent 2 days ripping my hair out over this same issue...  The answer was maddeningly simple/stupid.  In Outlook...  they ASK for your "user name" and "Password" (on the More Settings Tab).  What they
    actually WANT is your "email address" NOT your "user name", followed by your password.  This is easy.. I hope it works the same for you.
    In Outlook, go to Tools, Email Accounts, View or Change, click Next.  Highlight account information and click change.  In the lower right of the page... Click More Settings.
    Click the Outgoing Server Tab.
    Check the My outgoing server SMTP requires authorization.
    Check Log on Using:
    User Name:  Do NOT type your user name here... type your email address!
    Password:  Type in your password.
    Check the Remember password box.  OK
    That one small change FIXED 2 days of hair pulling on my part... I hope that does it for you too.
    Let me know...  I'd be interested if you fixed it.  Wish they had actually asked for what they wanted... User Name or Email Address ARE two different things!  Good luck!
    South Texan, you're a genius!  This 530 Authentication error has plagued me for 3 years now; when I call my internet service, they say it's a router firewall issue; when I call them, they say it's not their issue.  Changing the User Name field to
    my email address instead of my user account name worked!!!!! Thank you!!

  • Outgoing SMTP for Mac Mail Authentication (none or password)?

    i have had to set up a test account due to some corruption issues and i have a new temporary password for iCloud.
    and i am in the outgoing SMTP > ADVANCED section of mail.
    does anyone know if i set up a SMTP server for Mac Mail as having an authentication set to "none" or set to "password" and whether this password should be my new temp pass?

    If your ISP requires POP before SMTP authentication which requires checking the account's incoming mail server for new mail before being able to send with the account's SMTP server (checking the account for new mail should be required once per session only), then authentication for the SMTP server should be set to None.
    Go to Mail > Preferences > Accounts and under the account information tab for the account preferences at the SMTP server selection, select the Server Setting button below.
    If Password is selected for SMTP authentication, change it to None and test if this resolves the problem.
    If None is selected and your ISP requires password authentication for their SMTP server, select Password and enter the account's user name and password required for the authentication.

  • Smtp authentication for remote relaying ?

    hi all
    i've just setup the mail server and all works well, no issues.
    i can send and receive email.
    question...
    i want to be able to send/relay via the smtp server while outside the LAN.
    any suggestions ?

    Thanks for the link---I was looking for an answer to the same question.
    I will try this alternate SMTP submission port. But my question is why does sending mail from outside the LAN on port 25 not work? With authentication required on the server and set up on the mail client, Mail app always reports the server as being offline. If I turn authentication off in Mail app, it connects to the server fine but then (of course) the server refuses the mail because it's not authenticated.
    So is it only possible to send authenticated SMTP mail on port 587 and this is why you have to set up an alternate SMTP port?
    Thanks for helping me to understand these things!
    Peter

  • How to check whether a SMTP server is supporting Authentication or not

    Hi All,
    We are using Java Mail API 1.3.1/1.3.2 to send the messages. some of the SMTP servers that we use are supporting authentication and some of them are not.
    As the SMTPTransport.supportsAuthentication() is not available only in Java mail API 1.4.1, we are identifying the SMTP server whether it is supporting authentication or not in the following way.
    Socket clientSocket = null;
    InetSocketAddress socketAddress = null;
    OutputStream outStream = null;
    InputStream inStream = null;
    InputStreamReader inReader = null;
    OutputStreamWriter outWritter = null;
    try
    clientSocket = new Socket();
    socketAddress = new InetSocketAddress(host, port);
    clientSocket.connect(socketAddress, timeout*1000); // convert timeout from second to miliseconds
    // 1: now try to execute the given command by passing that on Out-Socket
    outStream = clientSocket.getOutputStream();
    outWritter = new OutputStreamWriter(outStream);
    outWritter.write("ehlo localhost" +"\n");
    outWritter.flush();
    // 2:Read output of above command
    inStream = clientSocket.getInputStream();
    inReader = new InputStreamReader(inStream);
    // This array limit would be fine to get "AUTH" extension of smtp server.
    char[] arr = new char[16384];
    StringBuilder strBuilder = new StringBuilder();
    inReader.read(arr);
    for(int i=0; i< arr.length; i++)
    strBuilder.append(arr);
    System.out.println(METHOD_NAME + "SMTP server response for ehlo localhost command ->"+strBuilder.toString());
    // The output EHLO command comes like below :
    // ehlo localhost
    // 250-ap9058pc.us.oracle.com Hello ap614ses.us.oracle.com [130.35.33.43], pleased to meet you
    // 250-ENHANCEDSTATUSCODES
    // 250-PIPELINING
    // 250-8BITMIME
    // 250-SIZE
    // 250-DSN
    // 250-ETRN
    // 250-AUTH GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN
    // Since for XATUH ( like internal IP),
    // we are not sure, so just checking for AUTH capability.
    supported = strBuilder.indexOf("250-AUTH") >=0? true : false;
    As shown in above code, we are issuing 'ehlo localhost' command to SMTP server, if the response i. 'strBuilder' contains '250-AUTH' then we are assuming that it is supporting authentication.
    But for one SMTP server the 'strBuilder' value is showing as '220 mail.durofelguera.com ESMTP Service (Lotus Domino Release 8.5.2) ready at Thu, 16 Feb 2012 13:57:20 +0100' only which is socket connection output but not 'ehlo localhost' command output.
    where as the telnet test output is showing correct only as below
    # telnet mail.durofelguera.com 25
    Trying 172.20.16.65...
    Connected to mail.durofelguera.com.
    Escape character is '^]'.
    220 mail.durofelguera.com ESMTP Service (Lotus Domino Release 8.5.2) ready
    at 0
    ehlo localhost
    250-mail.durofelguera.com Hello localhost ([172.20.15.209]), pleased to meet
    yu
    250-HELP
    250-AUTH LOGIN
    250-SIZE
    250 PIPELINING
    AUTH LOGIN
    The question is why the 'strBuilder' is not showing 'ehlo localhost' conad output where as the telnet test results are showing correctly, what is going wrong here?
    Is there any other way to check that whether SMTP server is supporting authentication or not?
    Edited by: sarojak on Feb 19, 2012 10:11 PM

    There are so many things wrong with your code, it's hard to know where to start...
    Basically, the problem is not as simple as you think it is.
    For example, some servers might not allow authentication until you've issued
    the STARTTLS command.
    These days, essentially all servers allow authentication. You're probably better
    off just assuming the server supports.

  • The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required.

     try
                    MailMessage mail = new MailMessage();
                    SmtpClient SmtpServer = new SmtpClient("smtp.gmail.com");
                    mail.From = new MailAddress("[email protected]");
                    mail.To.Add("[email protected]");
                    mail.Subject = "Test Mail..!!!!";
                    mail.Body = "mail with attachment";
                    System.Net.Mail.Attachment attachment;
                    attachment = new System.Net.Mail.Attachment(@"C:\Attachment.txt");
                    mail.Attachments.Add(attachment);
                    SmtpServer.Port = 587;
                    SmtpServer.UseDefaultCredentials = true;
                    SmtpServer.Credentials = new System.Net.NetworkCredential("userid", "Password");
                    SmtpServer.EnableSsl = true;
                    SmtpServer.Send(mail);
    Catch(Exception exception)
    When i m run this part of code it throw an Ecxeption                                                          
            Given Below is the Error.. 
        The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required.
    Bikky Kumar

     try
                    MailMessage mail = new MailMessage();
                    SmtpClient SmtpServer = new SmtpClient("smtp.gmail.com");
                    mail.From = new MailAddress("[email protected]");
                    mail.To.Add("[email protected]");
                    mail.Subject = "Test Mail..!!!!";
                    mail.Body = "mail with attachment";
                    System.Net.Mail.Attachment attachment;
                    attachment = new System.Net.Mail.Attachment(@"C:\Attachment.txt");
                    mail.Attachments.Add(attachment);
                    SmtpServer.Port = 587;
    SmtpServer.UseDefaultCredentials = true;    ///Set it to false, or remove this line
                    SmtpServer.Credentials = new System.Net.NetworkCredential("userid", "Password");
                    SmtpServer.EnableSsl = true;
                    SmtpServer.Send(mail);
    Catch(Exception exception)
    Given Below is the Error..      The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required.
    Solution:
    The error might occur due to following cases.
    case 1: when the password is wrong
    case 2: when you try to login from some App
    case 3: when you try to login from the domain other than your time zone/domain/computer (This
    is the case in most of scenarios when sending mail from code)
    There is a solution for each
    solution for case 1: Enter the correct password.
    Recomended: solution for case 2: go to
    security settings at the following link https://www.google.com/settings/security/lesssecureapps and
    enable less secure apps . So that you will be able to login from all apps.
    solution 1 for case 3: (This might be helpful) you need to review the activity. but reviewing the activity will not be helpful due to latest security
    standards the link will not be useful. So try the below case.
    solution 2 for case 3: If you have hosted your code somewhere on production server and if you have access to the production server, than take remote
    desktop connection to the production server and try to login once from the browser of the production server. This will add exception for login to google and you will be allowed to login from code.
    But what if you don't have access to the production server. try
    the solution 3
    solution 3 for case 3: You have to enable
    login from other timezone / ip for your google account.
    to do this follow the link https://g.co/allowaccess and
    allow access by clicking the continue button.
    And that's it. Here you go. Now you will be able to login from any of the computer and by any means of app to your google account.
    Regards,
    Nabeel Arif

  • SMTP authentication for wap baesd email

    Hi...
    I m trying my hands on WAP based email system... I m working with javamail and servlets for the same..
    The application developed so far works well except while sending mails, SMTP authentication is requred..
    can some one elaborate how to handle this thru java as in while creating SMTP session smtpsession, how do we use the authentication feature....
    Thnkcx
    v!
    More details.. this is my send mail function.
    public void send(HttpServletRequest request,HttpServletResponse response, UserSessionData userSessionData)
    throws ServletException, IOException, MessagingException {
    try {
    String from = userSessionData.getEmailAddress();
    String to = request.getParameter("to");
    String cc = request.getParameter("cc");
    String subject = request.getParameter("subject");
    String text = request.getParameter("text");
    //Define message
    MimeMessage message = new MimeMessage(userSessionData.getSmtpSession());
    message.setFrom(new InternetAddress(from));
    message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
    try {
    message.addRecipient(Message.RecipientType.CC, new InternetAddress(cc));
    } catch (AddressException ae) {
    //Bad cc address
    message.setSubject(subject);
    message.setText(text);
    //send message
    Transport.send(message);
    this.mainMenu(request, response, userSessionData);
    }catch (Exception e) {
    e.printStackTrace();
    Any suggestions guys ?

    I hope this help you
    //Define message
    Session session = userSessionData.getSmtpSession();
    MimeMessage message = new MimeMessage(session);
    // Send message
    Transport transport = session.getTransport("smtp");
    transport.connect(HOST, MAIL_USER, MAIL_PWD);transport.sendMessage(message);

  • E-mail sending from PL/SQL fails with SMTP error 550 must check for new....

    We have a issue like this. We have a e-mail program (PL/SQL stored procedure which is called from a 10g R2 form) which sends e-mails using UTL_SMTP. It was working but suddenly from day-before-yesterday stopped working. Mail admin says he did not change any mail server paras.
    The DB is in Linux so is the mail server. We finally did a code change. Now the mail goes to SMTP server but the mail does not go out of it (to a gmail address). We did a trace of the SMTP log and found out that it throws *550 [email protected] must check for new mail first* .
    Here is the SMTP server log:
    [192.168.0.6:25]
    Wed 2012-04-25 18:52:46: --> 220 suninsurance.com.fj ESMTP MDaemon 12.5.4; Wed, 25 Apr 2012 18:52:46 +1200
    Wed 2012-04-25 18:52:46: <-- HELO 192.168.0.6
    Wed 2012-04-25 18:52:46: --> 250 suninsurance.com.fj Hello 192.168.0.6, pleased to meet you
    Wed 2012-04-25 18:52:46: <-- MAIL FROM:[email protected]
    Wed 2012-04-25 18:52:46: --> 250 <[email protected]>, Sender ok
    Wed 2012-04-25 18:52:46: <-- RCPT TO:[email protected]
    Wed 2012-04-25 18:52:46: --> 550 [email protected] must check for new mail first
    Wed 2012-04-25 19:02:45: Connection timed out!
    Wed 2012-04-25 19:02:45: SMTP session terminated (Bytes in/out: 96/256)
    Wed 2012-04-25 19:02:46: ----------
    Wed 2012-04-25 19:20:11: Session 17159; child 1What could be the problem here? Any help would be greatly appreciated.

    Finally figured out the problem and fixed it. Now it is working.
    *"must check for new mail first"* means that before sending mail you have to check your mails (i.e. download) your mails first from the mail server, because the normal setting is for SMTP servers is that you can send mail only if you received a mail. So, when you receive a mail (i.e. check mail), your IP is recorded in the SMTP server log. Now if you send a mail, only mails with the IPs which has received any mail will be allowed to send mails outside.
    In order to only a send a mail without receiving any mail first you have to use SMTP authentication.
    I.e. After
    c := utl_smtp.open_connection(p_smtp_host, p_smtp_port);      
    utl_smtp.EHLO(c, p_smtp_host);  You have to give UID/PWD for the SMTP server like this:
    utl_smtp.command( c, 'AUTH LOGIN');
    utl_smtp.command( c, utl_raw.cast_to_varchar2( utl_encode.base64_encode( utl_raw.cast_to_raw( p_un))) );
    utl_smtp.command( c, utl_raw.cast_to_varchar2( utl_encode.base64_encode( utl_raw.cast_to_raw( p_pwd))) );However, when we sent like this we got a another SMTP error:
    554 Message is not RFC compliant; missing "Date" header To solve this do this: Go to Setup -> Default Domain & Servers, Servers, uncheck ...refuse
    messages which are not RFC compliant. That will allow MDaemon to accept  the malformed messages without date headers..Doing this solved the problem. Now we can send mails to outside mail boxes (like Gmail). In Gmail, when we checked the inbox there was no mail. It had gone the Spam folder. This is also important since you have to check the spam folder since Gmail will think it is spam. Once the mail is flagged as "not spam" it will start coming to your inbox.

  • HTTP/1.1 407 Proxy Authentication Required for cloud connection

    I am using Jdeveloper version 11.1.1.7.1 for ADF deployment on cloud service(Java and DB services).As instructed ,I have followed all the steps and in jdeveloper .when I tried to Authenticate the created connection with username and password, i am getting HTTP/1.1 407 Proxy Authentication Required .I am clueless how to solve this,Followed all the blogs but no luck.Please help on this,

    Presumably you are behind a FW, does your proxy require authentication if so did you set it with "Tools > Preferences > Web Browser and Proxy > Proxy Server Requires Authentication". Also what is the version of your JCS SDK ? You can check it by:
    java -jar javacloud.jar -version
    It should be something like 15.1.2.0 or later ..
    Jani Rautiainen
    Fusion Applications Developer Relations
    https://blogs.oracle.com/fadevrel/

  • Check for required fields before locking subforms and submitting

    Hello,
    I have a 5-page form with many questions, to be completed by the original requestor and multiple approvers.  What I'm trying to do is have the original requestor's Submit button on p. 3 lock the input on the first three pages, but first check if all those fields have some content.  I currently have all the fields on pp. 1-3 set to "Required" in the object properties, but my script still locks them when there's is one empty one.  Here's what I have:
    //Lock portions of form
    Page1.access = "readOnly"
    Page2.access = "readOnly"
    Page3.access = "readOnly"
    //Save document, allow user to change name
    app.execMenuItem("SaveAs");
    //Submit via e-mail
    Submit_REAL.event__click.submit.target = "mailto:[email protected]" +
    "?subject=Subject text" +
    "&body=Message";
    Submit_REAL.execEvent("click");
    The automatic check for required fields happens after the pages get locked.  I would like the check to stop the process before it locks the pages.  Is there any way to check all at once that all "Required" fields on those pages have some content before allowing the script to proceed?  I know how to script it to manually check the 50 or so questions on those pages, but I would like to avoid that.  Thanks for any help.

    There are a few problems that I can see from the start. First, your code is going to pick up EVERY node that exists on these pages. Some of those nodes will not have a rawValue, and some will not have an actual name. As an example, you can take your code and create a text field to dump all of the names of the nodes that you get when you pull in all of the nodes this way. Here's an example:
    The result:
    Now, the question is, do you have a consistent naming convention for your fields that might be empty? That could be text fields, radio button lists, etc. For instance, I always prefix the names of objects in order to more easily keep track of what they are in scripts. Since I'm doing that, I can check the name of the field for tf, nf, rbl, cb, or whatever I have included to make sure that I'm checking an actual field before I check for things like rawValue.
    var nodeName = oNodes.item(nNodeCount).name;
    if (nodeName.indexOf("tf")>-1 || nodeName.indexOf("rbl") > -1 || /*check other field types*/) {
      //insert your code to check for empty answers here
    As for your line 7 issue. The syntax problem is that you've put extra parentheses in your if statement. Take out the parentheses that are just before and after the or "||".
    *This is my fourth attempt to reply. Something was going on with Adobe/Jive earlier, I suppose.

Maybe you are looking for