Skip to Main Content

Analytics Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Mail configuration OBIEE 11g

user8007837Apr 26 2011 — edited Sep 28 2011
Hi,

I am getting the following error when I run the agent, which I have created for testing. My OS is MS Windows Server 2008 R2.
Eventually succeeded, but encountered and resolved errors...
    Number of skipped recipients: 2 of 3

    AgentID: /users/jorge/UsageTrackingAgent
[nQSError: 75005] Failed to send AUTH command. 5.7.8 Error: authentication failed: UGFzc3dvcmQ6    AgentID: /users/jorge/UsageTrackingAgent
    ...Trying SMTP Delivery loop again... Sleeping for 3 seconds.    AgentID: /users/jorge/UsageTrackingAgent
[nQSError: 75005] Failed to send AUTH command. 5.7.8 Error: authentication failed: UGFzc3dvcmQ6    AgentID: /users/jorge/UsageTrackingAgent
    ...Trying SMTP Delivery loop again... Sleeping for 5 seconds.    AgentID: /users/jorge/UsageTrackingAgent
[nQSError: 75005] Failed to send AUTH command. 5.7.8 Error: authentication failed: UGFzc3dvcmQ6    AgentID: /users/jorge/UsageTrackingAgent
    ...Trying SMTP Delivery loop again... Sleeping for 8 seconds.    AgentID: /users/jorge/UsageTrackingAgent
[nQSError: 75005] Failed to send AUTH command. 5.7.8 Error: authentication failed: UGFzc3dvcmQ6    AgentID: /users/jorge/UsageTrackingAgent
    Exceeded number of SMTP delivery retries.
This is how I have configured Mail setting at Enterprise Manager.
*SMTP server:*smtp.gmail.com (I tried smtp.emailsrvr.com, port 25)
*Port:* 587	
*Display name of sender:* jorge	
*Email address of sender:* jorge.xyz@gmail.com	
*Username:*jorge.xyz@gmail.com	
*Password:* Password of my email
*Confirm password:* Password of my email	
*Number of retries upon failure:* 1	
*Maximum recipients (enter zero for no maximum):* 0
*Addressing method:* Blind Copy Recipient (Bcc) ( I tried To also)	

Please help to fix this issue. 
then Activated cnages and Restarted services with no errors.

Please help to fix this issue.

Comments

843811
i have stripped the code to the minimum to produce the 403 error, and here it is:
import java.io.*;
import java.net.*;
import java.util.StringTokenizer;
import com.sun.net.ssl.HttpsURLConnection;
import com.sun.net.ssl.KeyManager;
import com.sun.net.ssl.TrustManager;
import com.sun.net.ssl.SSLContext;
import com.sun.net.ssl.X509TrustManager;
import javax.net.ssl.SSLSocketFactory;

public class httpsquery {
    
    public static void main(String[] args) throws Exception {
        URL url;
        HttpsURLConnection urlConn;
        String sessionCookie = null;
        BufferedInputStream httpResponseStream;
        DataOutputStream httpRequestStream;
        System.setProperty("https.proxyHost","proxy.at.int.atosorigin.com");
        System.setProperty("https.proxyPort","8080");
        System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");
        java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
        try {
            javax.net.ssl.SSLSocket sock = null;
            X509TrustManager tm = new DummyX509TrustManager();
            KeyManager[] km = null;
            TrustManager[]tma = { tm };
            SSLContext sc = SSLContext.getInstance("SSLv3");
            sc.init(km,tma,new java.security.SecureRandom());
            SSLSocketFactory sf1 = sc.getSocketFactory();
            HttpsURLConnection.setDefaultSSLSocketFactory(sf1);

            System.out.println("opening connection");
            url = new URL("https://ebmxdev.extra.daimlerchrysler.com/servlet/ebmxcontroller?function=basictest&username=BASICTEST");
            urlConn = (HttpsURLConnection)url.openConnection();
            urlConn.setDoInput (true);
            urlConn.setDoOutput (true);
            urlConn.setUseCaches (false);
            urlConn.setRequestMethod("GET");
            urlConn.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
            urlConn.setRequestProperty("Authorization", "Basic");
            if (sessionCookie != null) urlConn.setRequestProperty("Cookie",sessionCookie);
            System.out.println("connection opened");
            for (int i = 1; i <= 6; ++i) { System.out.println(" Header " + i + ": " + urlConn.getHeaderFieldKey(i) + ": " + urlConn.getHeaderField(i)); } 
            if (sessionCookie == null) {
                String setCookie = urlConn.getHeaderField("Set-Cookie");
                if (setCookie == null) setCookie = urlConn.getHeaderField("Set-cookie");
                if (setCookie == null) System.out.println("no cookie!!!!!!");
                StringTokenizer st = new StringTokenizer("" + setCookie,";");
                sessionCookie = st.nextToken();
            }
            System.out.println("cookie is " + sessionCookie);

            httpResponseStream = new BufferedInputStream(urlConn.getInputStream ());
            int c;
            byte[] buffer = new byte[1024];
            while ((c = httpResponseStream.read(buffer)) != -1) {
                System.out.write(buffer,0,c);
            }
            httpResponseStream.close();

            // close connection
            urlConn.disconnect();
            System.out.println("connection closed");
            System.out.println("called basictest");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

class DummyX509TrustManager implements X509TrustManager { 
    public boolean isClientTrusted(java.security.cert.X509Certificate[] chain) { return true; } 
    public boolean isServerTrusted(java.security.cert.X509Certificate[] chain) { return true; } 
    public java.security.cert.X509Certificate[] getAcceptedIssuers() { return null; } 
}
hope a java guru will find what i'm doing wrong
i have also tried it with POST, but the effect was the same

any help welcome

thanks,
big nell
1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details