Connect refused in Exchange Portlet

Hi,
I am trying to config the exchange portlet using URL-services and basic authentication. When I get to create web provider, the following error show up:
An error occurred when attempting to call the providers register
function. (WWC-43134)
An unexpected error occurred: ORA-29532: Java call terminated by uncaught Java
exception: java.net.ConnectException: Connection refused (WWC-43000)
An unexpected error occurred: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java)
at java.net.Socket.<init>(Socket.java)
at java.net.Socket.<init>(Socket.java)
at HTTPClient.HTTPConnection$EstablishConnection.run(HTTPConnection.java:574)
(WWC-43000)
Any idea?
Thanks.

Do you mean the IsItWorking page or the test.asp in exchange portlet?
They both work fine.
Thanks. I meant neither of these but the test page for provider. The
installation instructions document refers this in the file
"INSTALLING.MICROSOFT.EXCHANGE.55.PORTLETS.html" and under
"Configuring the Web Provider" section. You have to make sure
the provider's servlet alias
http://your_oracle_http_server_hostname:port/servlet/exchange55
is running fine before specifying this URL in the provider registration
screen.
Hope it is clear now :-)
Thanks,
Amjad.

Similar Messages

  • Mail refuses to connect to my Exchange Server

    I have an Exchange Server which also functions as an IMAP server. I cannot get mail to connect this server using the IMAP protocol. Thunderbird on the same machine connects to this exchange server just fine using IMAP. And Mail does not have problem connecting to other IMAP servers. Any idea on where I can look to troubleshoot?

    I'm in the same boat and have been banging my head against this all day. Have you found an answer yet?

  • EXCHANGE PORTLET IN CLUSTER MACHINE

    Hi,
    I was setting the exchange portlet, but the machine residing IIS and the outlook is in a cluster how can I configure the portlet in the cluster?, is there any special instruction to setting the portlet?, I have to do the same twice in each machine or this is not supported?
    Thanks a lot.
    Cecilia Vega

    Hi Cecilia,
    I have not tested Microsoft exchange portlets in a cluster environment. But I feel these portlets should work fine in a cluster environment too.
    A few questions though,
    1. "Outlook is in a cluster", can you please elaborate on this. As the there is no dependency on Outlook for the portlets to work.
    2. Can you let me know details of Cluster environment and the version of the Windows/ IIS and Exchange server that you are using.
    Answer to the above questions will allow me to answer with more specifics.
    But here are a few points for setting up Microsoft portlets in a cluster environment:-
    1. Once you set up the Replication and Clustering in IIS, then you will be pointing to one IIS machine where the .asps are hosted. And the failover will be taken care by the clustering environment, you will not have to do any additional settings.
    2. You need to keep in mind that ASP sessions do not fail over to other nodes in Microsoft Clustering. This means that clients will need to reestablish the connection if a failover occurs on the server.
    Please get back if you face any issues.
    Take care,
    Manoj

  • Error while connecting to Microsoft Exchange server using javamail: "com.sun.mail.util.MailConnectException: Couldn't connect to host, port: host name , 993; timeout -1"

    I am trying to read mails from my outlook microsoft exchange server. Following is the code:
    public void readEmailsFromOutlook(/*String host, String username, String password*/ ) throws MessagingException, IOException {
          String host = "hostname";
          String username = "domain\\username";
          String password = "password"
          // Create empty properties
          Properties props = System.getProperties();
          props.setProperty("mail.smtp.auth","true");
          props.setProperty("mail.store.protocol","imaps");
          props.setProperty("mail.imap.auth.plain.disable","true");
          props.setProperty("mail.imap.host",host);
          props.setProperty("mail.imap.port","993");
          props.setProperty("mail.imap.user",username);
          props.setProperty("mail.imap.pwd",password);
          props.setProperty("mail.imap.debug","true");
          props.setProperty("mail.imap.ssl.protocols","SSL");
          props.setProperty("mail.imap.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
          props.setProperty("mail.imap.socketFactory.fallback", "false");
          props.setProperty("mail.imap.socketFactory.port", "993");
          // Get session
                     Session session = Session.getInstance(props, new ExchangeAuthenticator(username, password));
          session.setDebug(true);
          // Get the store
          Store store = session.getStore("imaps");
          //Store store = session.getStore();
          store.connect(host, username, password);
          // Get folder
          Folder folder = store.getFolder("INBOX");
          folder.open(Folder.READ_ONLY);
          BufferedReader reader = new BufferedReader(new InputStreamReader(
              System.in));
          // Get directory
          Message message[] = folder.getMessages();
          for (int i = 0, n = message.length; i < n; i++) {
            System.out.println(i + ": " + message[i].getFrom()[0] + "\t"
                + message[i].getSubject());
            System.out.println("Read message? [YES to read/QUIT to end]");
            String line = reader.readLine();
            if ("YES".equalsIgnoreCase(line)) {
              System.out.println(message[i].getContent());
            } else if ("QUIT".equalsIgnoreCase(line)) {
              break;
          // Close connection
          folder.close(false);
          store.close();
    But it threw the following error:
    DEBUG: setDebug: JavaMail version 1.5.1
    DEBUG: getProvider() returning javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle]
    DEBUG IMAPS: mail.imap.fetchsize: 16384
    DEBUG IMAPS: mail.imap.ignorebodystructuresize: false
    DEBUG IMAPS: mail.imap.statuscachetimeout: 1000
    DEBUG IMAPS: mail.imap.appendbuffersize: -1
    DEBUG IMAPS: mail.imap.minidletime: 10
    DEBUG IMAPS: trying to connect to host <hostname>,port 993, isSSL true
    com.sun.mail.util.MailConnectException: Couldn't connect to host, port: 10.75.250.60, 993; timeout -1;
      nested exception is:
    java.net.ConnectException: Connection refused: connect
    at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:693)
    at javax.mail.Service.connect(Service.java:345)
    at javax.mail.Service.connect(Service.java:226)
    at com.capgemini.utilities.Utilities.readEmailsFromOutlook(Utilities.java:1261)
    Whats wrong with my code?
    Please help!!!!

    You're using the "imaps" protocol, but you've set properties for the "imap" protocol.  Change all the property names from mail.imap.* to mail.imaps.*.
    Also, get rid of all the socket factory properties.
    If you still can't connect, see these connection debugging tips.
    Most likely you're using the wrong host name or port number.  In almost all cases, it's better to just let JavaMail choose the correct port number.

  • Missing parameters for Exchange Portlet

    In the Exchange Portlet installation document on page 15 under
    Stage 3. Changes to zone.properties
    the line shows
    servlet.exchangeAppProv.initArgs=provider_root=c:\exchange, sessiontimeout=1800000
    it should read
    servlet.exchangeAppProv.initArgs=provider_root=c:\exchange, sessiontimeout=1800000, debuglevel=1
    This will allow the execution of the servlet/exchangeAppProv/ URL and verification of the exchange Portlet Provider configuration
    null

    Yes, I have been using $_REQUEST.
    The test script looks like this:
    <?php
    $latin_name = $_REQUEST['latname'];
    $common_name = $_REQUEST['commname'];
    if ($latin_name == "")
    $latin_name = "Not available";
    $common_name = "Not available";
    $connection = mysql_connect("localhost", "user", "pword") or
    die ("Unable to connect");
    mysql_select_db("balloonflash") or die ("Database not
    found");
    $query = "INSERT INTO species (latName, commName) VALUES
    ('$latin_name', '$common_name')";
    $result = mysql_query($query) or die ("Unable to execute
    query: " . mysql_error());
    mysql_close($connection);
    ?>
    It seems like the script is not triggered at all when I run
    the Flash form from HTML - I don't even get the default values
    entered into the database. Actually, yes I do, my mistake - but the
    variable values are not being passed over.
    The HTML source generated looks like this:
    <OBJECT
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
    WIDTH="291" HEIGHT="234" id="flashForm1" ALIGN="">
    <PARAM NAME=movie VALUE="flashForm1.swf"> <PARAM
    NAME=quality VALUE=high> <PARAM NAME=bgcolor
    VALUE=#66FFFF> <EMBED src="flashForm1.swf" quality=high
    bgcolor=#66FFFF WIDTH="291" HEIGHT="234" NAME="flashForm1" ALIGN=""
    TYPE="application/x-shockwave-flash" PLUGINSPAGE="
    http://www.macromedia.com/go/getflashplayer"></EMBED>
    </OBJECT>
    Alan

  • Client-Proxy-Server:  Connection refused

    I was meddling with a client-proxy-server toy program.
    Pardon my poor code construction. I have never had any previous knowledge in this field.
    I have created  a client side program with my main that handles IO serially.
    ProxY consists of 2 unscynchronized threads each interacts with client and server respectively.
    Packet exchange within ProxY is relayed using a PacketBuffer object.
    Server consist of a single threaded service. Below is the code for my main.
    import java.io.IOException;
    import java.net.ServerSocket;
    import java.net.Socket;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.Scanner;
    public class TestProxy
         public static void main(String[] args) throws IOException
              final int SERVER_PORT = 19989;
              final int PROXY_PORT = 19988;
              ServerSocket proxyServerSoc = new ServerSocket(PROXY_PORT);
              Socket proxyClientSoc = new Socket("127.0.0.9",SERVER_PORT); //127.0.0.9 is server IP
              Server serv = new Server(SERVER_PORT);                             //Server started
              ProxY prox = new ProxY(proxyClientSoc, proxyServerSoc);            //proxy started
              //Start Client side;
              Socket toProxy = new Socket("127.0.0.1", PROXY_PORT);
              InputStream in = toProxy.getInputStream();
              OutputStream out = toProxy.getOutputStream();
              Scanner keyboard = new Scanner(System.in);
              String input;
              while(true)
                   System.out.println("Enter data  : ");
                   input = keyboard.nextLine();
                   if(input.equals("exit")) break;
                   System.out.println("data in BYTE: "+input.getBytes());
                   System.out.println("Sending data to server ...");
                   out.write(input.getBytes());
                   try{
                        Thread.sleep(100);
                   catch(InterruptedException e)
                        e.printStackTrace();
                   System.out.println("Received from server :" + in.toString());
    }Compilation is a success, but there is a runtime error...
    When i attempt to run the program for the first time(tried on XP, Vista, 7, jdk1.6), windows prompts for network permission.
    Before i can [edit]unblock[edit] it, my console window shows following error
    C:\java\proxy>javac *.java
    C:\java\proxy>java TestProxy
    Exception in thread "main" java.net.ConnectException: Connection refused: connec
    t
            at java.net.PlainSocketImpl.socketConnect(Native Method)
            at java.net.PlainSocketImpl.doConnect(Unknown Source)
            at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
            at java.net.PlainSocketImpl.connect(Unknown Source)
            at java.net.SocksSocketImpl.connect(Unknown Source)
            at java.net.Socket.connect(Unknown Source)
            at java.net.Socket.connect(Unknown Source)
            at java.net.Socket.<init>(Unknown Source)
            at java.net.Socket.<init>(Unknown Source)
            at TestProxy.main(TestProxy.java:15)
    C:\java\proxy>Can someone advise me where might i be possibly wrong?
    Edited by: J-Ideas on Mar 10, 2010 10:50 PM

                   out.write(input.getBytes());
                   try{
                        Thread.sleep(100);
                   catch(InterruptedException e)
                        e.printStackTrace();
                   }What's that for?
                   System.out.println("Received from server :" + in.toString());No no no. 'in' is an input stream. in.toString() is just a string representation of that object. It certainly isn't anything received from the server. If you want to receive data from the server you must call one of the in.read() methods.
    When i attempt to run the program for the first time(tried on XP, Vista, 7, jdk1.6), windows prompts for network permission.
    Before i can [edit]unblock[edit] it, my console window shows following errorYou should separate your program into three: server, proxy, and client, each with their own main() methods, so you can deal with these problems one at a time.

  • Outlook Exchange Portlet

    Hi,
    We've been trying unsuccessfully for a few days now to get a portlet to connect to our Exchange 5.5 server. Our basic requirement is to have a portlet within our Oracle Portal that can display mailbox statistics (such as the number of unread messages) and that allows the user to 'drill-down' into the Outlook client and access their Inbox and Calendar etc.
    We were sent a small portlet from an Oracle consultant but have had no joy in getting it to connect to Exchange.
    Would really appreciate any ideas or comments anyone can offer. Surely others have tried something like this before, and surely it cant be too difficult?!
    Thanks,
    Don

    Hi,
    Have a look at the Exchange portlets provided by Oracle: http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/SAMPLES/WEBPORTLETS/V2/EXCHANGEPORTLET/EXCHANGE55.ZIP. There's also a version for release 1 on PortalStudio.
    It doesn't allow you to drill down into the Outlook client, but instead uses Outlook Web Access to "drill down". I've installed the Exchange 2000 portlets and they work great. You can view your inbox, calendar and contacts as portlets and it's fairly easy to use the supplied code to create your own portlets e.g. for displaying tasks or notes.
    If you absolutely need to "drill down" into the Outlook client, you need to run your Portal page as an Outlook Today page (inside Outlook). Look at msdn.microsoft.com for information on how to make your own Outlook Today page.
    /Jesper

  • Web Browser Management Connection Refused

    Since upgrading from my old Panther PowerBook to my new Tiger one, I have lost the ability to manage my Netgear router and my HP network printer via Safari. Strangely, my Netgear router at home actually works better (I used to have to go back into OS9 to change settings as Panther didn't work at all), but the devices on the corporate network at work don't seem to like Tiger. I get this message:
    (111) Connection refused
    I don't really now how to troubleshoot this...
    Oh, and it's the same with other people's Tiger Macs - and from 10.4.3ish on.
    Thanks!

    I don't think it can be that simple because it is consistent across more than one machine and it doesn't work from Firefox either (just checked that).
    I think it must be to do with being on the corporate network, so I need to know what might have changed in the Mac OS that would cause this issue. I recently lost the ability to access the Exchange server, which turned out to be due to a change in Mail's SOCKS access under 10.4.7 (fine under 10.4.6). Something similarly obscure (to me) could be causing this other issue, but I've no idea what...

  • JavaMail - Connection refused

    Hi, all,
    I have a trouble connecting to INBOX folder. Here is the code:
         Session session = Session.getInstance(new Properties());
              Store store = null;
              Folder folder = null;
              store = session.getStore("pop3");
              store.connect("real.host", "[email protected]", "correctpassword");
              folder = store.getFolder("INBOX");
              folder.open(Folder.READ_WRITE);          The parameters passed to connect() method of the sore are correct on 100%. However, I receive the following exception in line with store.connect();:
    javax.mail.MessagingException: Connect failed;
      nested exception is:
         java.net.ConnectException: Connection refused: connect
         at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:120)
         at javax.mail.Service.connect(Service.java:233)
         at javax.mail.Service.connect(Service.java:134)
         at com.rencap.jira.service.jasi.handler.LoadingEmailHandler.processEmail(LoadingEmailHandler.java:94)
         at com.rencap.jira.service.jasi.handler.LoadingEmailHandler.handle(LoadingEmailHandler.java:67)
         at com.rencap.jira.service.jasi.event.Topic.publish(Topic.java:31)
         at com.rencap.jira.service.jasi.IntegrationService.run(IntegrationService.java:62)
         at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:56)
         at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:61)
         at org.quartz.core.JobRunShell.run(JobRunShell.java:191)
         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)
            ....Can anybody help? Where can the reason for exception be?
    Thanks

    Indeed, the trouble was with exchange server. It hasn't been configured to get mail from mailbox. API works fine.As an advice I recommend to contact administrators about exchange server settings.
    Thanks

  • Office 2013 - The connection to Microsoft Exchange is unavailable. Outlook must be online or connected to complete.

    Hi Team,
    Just purchased and downloaded Office Home Premium and having trouble with Outlook. For what ever reason, I am unable to create account/add my email address ([email protected]) into the program. Through the set-up process it continuously
    tells me that it is unable to connect to Microsoft Exchange, and that it must be online or connected to complete. In the end, it comes up with this pop-up listing a file. Something like that. Any pointers on how to resolve this or are a lot of people having
    this problem..
    Also, I installed this on my laptop (OSX 10.8.2)
    and it worked fine, but not on my desktop (Win8 Pro 64-bit) 
    Thanks
    Andi

    Hello,
    Does OWA work?
    Does this issue occur on other users?
    In Exchange 2013, most of the internal and external client becomes to use Outlook Anywhere(RPC over http).
    Please make sure the autodiscover.domain.com is included in the certificate.
    Thanks,
    Simon Wu
    TechNet Community Support
    Hi I am having the same issue. Brand new computer, using Office 365 and trying to set up Outlook 2013 on Win 7 machine. OWA works fine. But cannot set up Exchange on my desktop.
    I don't know what you mean by "In Exchange 2013, most of the internal and external client becomes to use Outlook Anywhere(RPC over
    http).
    Please make sure the autodiscover.domain.com is included in
    the certificate."
    Can you please walk me through this? Thank you.

  • When I try to log in from desktop I get "Connection Refused" message. How do I fix this?

    I tried to activate Mozilla Firefox today using the normal & routine method, clicking on the Firefox Icon.
    Each time I tried I got the same message "Connection Refused".
    I went to the Firefox site and read the message regarding disabling Java, so I opened ADD ONS and Plug Ins and disabled Java.
    Still no change, so I shut down and restarted my computer.
    I keep getting the same Connection Refused message.
    What needs to be done to restore Firefox?

    Another user also reported a problem with the AT&T Yahoo home page in the past few minutes. When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    (1) Bypass Firefox's Cache
    Use Ctrl+Shift+r to reload the page fresh from the server.
    Alternately, you also can clear Firefox's cache completely using:
    orange Firefox button (or Tools menu) > Options > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now"
    If you have a large hard drive, this might take a few minutes.
    (2) Remove the site's cookies (save any pending work first). While viewing a page on the site:
    * right-click and choose View Page Info > Security > "View Cookies"
    * Alt+t (open the classic Tools menu) > Page Info > Security > "View Cookies"
    Then try reloading the page. Does that help?

  • Connection refused when trying to getOutputStream from https connection

    Hi all !
    I want to make an https connection with a server to send/get the request/response
    What can be the cause of the following error in the following code testHttps.java?
    java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(Unknown Source)
    at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
    at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(Unknown Source)
    at sun.net.NetworkClient.doConnect(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
    at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
    at Test.testHttps.main(testHttps.java:46)
    Exception in thread "main" java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(Unknown Source)
    at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
    at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(Unknown Source)
    at sun.net.NetworkClient.doConnect(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
    at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
    at Test.testHttps.main(testHttps.java:51)
    testHttps.java
    package Test;
    import java.io.;
    import java.net.;
    import javax.net.ssl.*;
    public class testHttps {
    public static void main(String args[]) throws Exception {
    //System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");
    // Create a trust manager that does not validate certificate chains
    TrustManager[] trustAllCerts = new TrustManager[]{
    new X509TrustManager() {
    public java.security.cert.X509Certificate[] getAcceptedIssuers() {
    return null;
    public void checkClientTrusted(
    java.security.cert.X509Certificate[] certs, String authType) {
    public void checkServerTrusted(
    java.security.cert.X509Certificate[] certs, String authType) {
    // Install the all-trusting trust manager
    try {
    SSLContext sc = SSLContext.getInstance("SSL");
    sc.init(null, trustAllCerts, new java.security.SecureRandom());
    HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());
    } catch (Exception e) {
    System.out.println("Error" e);
    // Now you can access an https URL without having the certificate in the truststore
    try {
    URL url = new URL("https://..............");-->//address of the server given here
    URLConnection conn = url.openConnection();
    HttpsURLConnection urlConn = (HttpsURLConnection) conn;
    urlConn.setDoOutput(true);
    OutputStreamWriter wr = null;
    try{
    wr = new OutputStreamWriter(conn.getOutputStream());
    catch(Exception e){
    e.printStackTrace();
    BufferedReader in = new BufferedReader(new InputStreamReader(urlConn.getInputStream()));
    String str;
    while( (str=in.readLine()) != null) {
    System.out.println(str);
    } catch (MalformedURLException e) {
    System.out.println("Error in SLL Connetion" +e);
    HostnameVerifier hv = new HostnameVerifier()
    public boolean verify(String urlHostName, SSLSession session)
    System.out.println("Warning: URL Host: " urlHostName " vs. "
    session.getPeerHost());
    return true;
    want to ignore certificate validation.
    plese help me..
    hi brucechapman, as you suggested me, i posted in Core API- networking forum, now please gimme a solution
    Thanks in advance.

    hi brucechapman,
    ran the NetTest program, got the following exception:
    trigger seeding of SecureRandom
    done seeding SecureRandom
    Exception in thread "main" java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.SocksSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
         at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(Unknown Source)
         at sun.net.NetworkClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
         at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
         at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
         at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
         at java.net.URL.openStream(Unknown Source)
         at Test.NetTest.main(NetTest.java:40)
    NetTest.java:40 -- InputStream is = url.openStream(); at this ling throwing exception.
    For the following program, i have added the argument -Djavax.net.ssl.trustStore=cacerts
    i have exported the certificate from IE and added to the keystore.
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.io.OutputStreamWriter;
    import java.security.Security;
    import javax.net.ssl.SSLSocket;
    import javax.net.ssl.SSLSocketFactory;
    public class Communicator {
    public static void main(String[] args) {
    try {
    int port = 34443;
         String strReq = "xml content ";
    Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
    SSLSocketFactory factory = (SSLSocketFactory) SSLSocketFactory.getDefault();
    SSLSocket socket = (SSLSocket) factory.createSocket("jyoti-win2k8-32", port);
    //Writer out = new OutputStreamWriter(socket.getOutputStream());
    //out.write("GET http://" + "hostname" + "/ HTTP 1.1\r\n");
    // out.write("\r\n");
    //out.write(strReq);
    //out.flush();
    OutputStreamWriter wr = null;
    try{
         wr = new OutputStreamWriter(socket.getOutputStream());
         catch(Exception e){
              e.printStackTrace();
         System.out.println("got output stream");
         try{
         wr.write(strReq);
         //System.out.println("response code : "+conn.getResponseCode());
         System.out.println("written");
         wr.flush();
         catch(IOException e){
              e.printStackTrace();
    InputStreamReader is = new InputStreamReader(socket.getInputStream(),"UTF8") ;
         BufferedReader rd = new BufferedReader(is);
         String line;int count=0;
         System.out.println("rd "+rd);
         while ((line = rd.readLine()) != null) {
              System.out.println("line "+line );
              System.out.println(count++);
              // Process line...
         System.out.println(count);
    rd.close();
    BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
    int c;
    while ((c = in.read()) != -1) {
    System.out.write(c);
    //out.close();
    in.close();
    socket.close();
    } catch(IOException ex) {
    ex.printStackTrace();
    Exception :
    javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
         at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(Unknown Source)
         at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)
         at sun.nio.cs.StreamEncoder.writeBytes(Unknown Source)
         at sun.nio.cs.StreamEncoder.implFlushBuffer(Unknown Source)
         at sun.nio.cs.StreamEncoder.implFlush(Unknown Source)
         at sun.nio.cs.StreamEncoder.flush(Unknown Source)
         at java.io.OutputStreamWriter.flush(Unknown Source)
         at Test.Communicator.main(Communicator.java:55)
    Caused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
         at sun.security.validator.PKIXValidator.<init>(Unknown Source)
         at sun.security.validator.Validator.getInstance(Unknown Source)
         at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.getValidator(Unknown Source)
         at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
         at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(Unknown Source)
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown Source)
         at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source)
         at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(Unknown Source)
         ... 7 more
    Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
         at java.security.cert.PKIXParameters.setTrustAnchors(Unknown Source)
         at java.security.cert.PKIXParameters.<init>(Unknown Source)
         at java.security.cert.PKIXBuilderParameters.<init>(Unknown Source)
         ... 19 more
    java.net.SocketException: Socket is closed
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.getInputStream(Unknown Source)
         at Test.Communicator.main(Communicator.java:66)
    please help me and provide me suggestion/solution. how to get rid off this trustanchor paramater exception
    what is it actualy?
    Thanks in advance.

  • Expected behavior of the Exchange portlets in release 2

    I've installed the Exchange portlets in release 2 successfully. Everything works - Inbox, Calendar, Contact list. However when you update the portlet with required information i.e. Inbox user name, server, # of message rows, the portlet displays the view, but once you go to a different page and then decide to return to the page with the Exchange portlets, you need to enter that very same information again. Is this the way it is suppose to work???
    Please share your experiences.
    Thanks,
    r/ George

    George,
    This may be a pain for you, but could you please walk me through the steps that you took to get the exchange portlets working? We are trying to install the exchange5.5 portlets. We are currently using Portal release 9.2.1.2.14 (i think that's it - latest release) and have upgraded to 9.0.2.4 via the December PDK we downloaded. We have also made the appropriate setup to the IIS/Exchange server and can view the test.asp pages that were provided. Do you need to deploy an .ear file on OC4J for the exchange5.5 portlets like you do for the exchange2000 portlets? Any help would be appreciated and we have read the documentation included with the Dec. pdk.zip release to no avail. Thank you.
    Jeremy

  • Problems with SSH: Connection Refused

    Greetings fellow Arch users,
    I have hit a bit of a snag that I could really use some extra help getting around. I've tried everything I can think of (and everything that Google thought might work) and I have my back rather against a wall, so I thought I'd come here to see if anyone can offer some advice.
    To make a long story short, I am a college student and am attempting to set up an ssh server on a desktop at my house so I can access it remotely from the college. I have the computer set up and the server running, however I am having difficulty making connections to it from my laptop. I know that the server is running, because I can log into it both from the server itself (sshing into local host) and from my laptop when I use the internal IP address.
    The server is on a static IP address within the network(192.168.0.75), and my router is configured to forward TCP port 1500 to it (I'm using 1500 as the port for my ssh server). However, when I attempt to log into the ssh server using my network's external IP address, the connection is refused. I used nmap to scan my network and found that, even though the proper ports are forwarded to the proper place as far as my Router's configuration interface is concerned, port 1500 is not listed as one of the open TCP ports. I also, to test it, temporarily disabled the firewalls on both the server and the client. That didn't help. The command that I am running is:
    ssh -p 1500 douglas@[external ip address
    As I am really not sure what is causing this problem, I don't know what information to provide. So here is everything that my inexperienced mind sees as likely being important. If you need anything more, let me know and I will do my best to provide it.
    Here is the sshd_config file from my server.
    # This is the sshd server system-wide configuration file. See
    # sshd_config(5) for more information.
    # This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
    # The strategy used for options in the default sshd_config shipped with
    # OpenSSH is to specify options with their default value where
    # possible, but leave them commented. Uncommented options override the
    # default value.
    Port 1500
    #AddressFamily any
    #ListenAddress 0.0.0.0
    #ListenAddress ::
    # The default requires explicit activation of protocol 1
    #Protocol 2
    # HostKey for protocol version 1
    #HostKey /etc/ssh/ssh_host_key
    # HostKeys for protocol version 2
    #HostKey /etc/ssh/ssh_host_rsa_key
    #HostKey /etc/ssh/ssh_host_dsa_key
    #HostKey /etc/ssh/ssh_host_ecdsa_key
    # Lifetime and size of ephemeral version 1 server key
    #KeyRegenerationInterval 1h
    #ServerKeyBits 1024
    # Ciphers and keying
    #RekeyLimit default none
    # Logging
    # obsoletes QuietMode and FascistLogging
    #SyslogFacility AUTH
    #LogLevel INFO
    # Authentication:
    #LoginGraceTime 2m
    PermitRootLogin no
    #StrictModes yes
    #MaxAuthTries 6
    #MaxSessions 10
    #RSAAuthentication yes
    #PubkeyAuthentication yes
    # The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
    # but this is overridden so installations will only check .ssh/authorized_keys
    AuthorizedKeysFile .ssh/authorized_keys
    #AuthorizedPrincipalsFile none
    #AuthorizedKeysCommand none
    #AuthorizedKeysCommandUser nobody
    # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
    #RhostsRSAAuthentication no
    # similar for protocol version 2
    #HostbasedAuthentication no
    # Change to yes if you don't trust ~/.ssh/known_hosts for
    # RhostsRSAAuthentication and HostbasedAuthentication
    #IgnoreUserKnownHosts no
    # Don't read the user's ~/.rhosts and ~/.shosts files
    #IgnoreRhosts yes
    # To disable tunneled clear text passwords, change to no here!
    #PasswordAuthentication yes
    #PermitEmptyPasswords no
    # Change to no to disable s/key passwords
    ChallengeResponseAuthentication no
    # Kerberos options
    #KerberosAuthentication no
    #KerberosOrLocalPasswd yes
    #KerberosTicketCleanup yes
    #KerberosGetAFSToken no
    # GSSAPI options
    #GSSAPIAuthentication no
    #GSSAPICleanupCredentials yes
    # Set this to 'yes' to enable PAM authentication, account processing,
    # and session processing. If this is enabled, PAM authentication will
    # be allowed through the ChallengeResponseAuthentication and
    # PasswordAuthentication. Depending on your PAM configuration,
    # PAM authentication via ChallengeResponseAuthentication may bypass
    # the setting of "PermitRootLogin without-password".
    # If you just want the PAM account and session checks to run without
    # PAM authentication, then enable this but set PasswordAuthentication
    # and ChallengeResponseAuthentication to 'no'.
    UsePAM yes
    #AllowAgentForwarding yes
    #AllowTcpForwarding yes
    #GatewayPorts no
    #X11Forwarding no
    #X11DisplayOffset 10
    #X11UseLocalhost yes
    PrintMotd no # pam does that
    #PrintLastLog yes
    #TCPKeepAlive yes
    #UseLogin no
    UsePrivilegeSeparation sandbox # Default for new installations.
    #PermitUserEnvironment no
    #Compression delayed
    #ClientAliveInterval 0
    #ClientAliveCountMax 3
    #UseDNS yes
    #PidFile /run/sshd.pid
    #MaxStartups 10:30:100
    #PermitTunnel no
    #ChrootDirectory none
    #VersionAddendum none
    # no default banner path
    #Banner none
    # override default of no subsystems
    Subsystem sftp /usr/lib/ssh/sftp-server
    # Example of overriding settings on a per-user basis
    #Match User anoncvs
    # X11Forwarding no
    # AllowTcpForwarding no
    # ForceCommand cvs server
    The ouptut of ip addr when run on the server:
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
    valid_lft forever preferred_lft forever
    2: enp8s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 00:21:9b:3a:be:94 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.75/24 brd 192.168.255.0 scope global enp8s0
    valid_lft forever preferred_lft forever
    inet6 fe80::221:9bff:fe3a:be94/64 scope link
    valid_lft forever preferred_lft forever
    Here is the output from running nmap on the network:
    Starting Nmap 6.40 ( http://nmap.org ) at 2013-09-28 21:05 EDT
    Initiating Ping Scan at 21:05
    Scanning address [2 ports]
    Completed Ping Scan at 21:05, 0.01s elapsed (1 total hosts)
    Initiating Parallel DNS resolution of 1 host. at 21:05
    Completed Parallel DNS resolution of 1 host. at 21:05, 0.05s elapsed
    Initiating Connect Scan at 21:05
    Scanning pa-addresss.dhcp.embarqhsd.net (address) [1000 ports]
    Discovered open port 80/tcp on address
    Discovered open port 443/tcp on address
    Discovered open port 23/tcp on address
    Discovered open port 21/tcp on address
    Completed Connect Scan at 21:05, 4.08s elapsed (1000 total ports)
    Nmap scan report for pa-address.dhcp.embarqhsd.net (address)
    Host is up (0.036s latency).
    Not shown: 995 closed ports
    PORT STATE SERVICE
    21/tcp open ftp
    23/tcp open telnet
    80/tcp open http
    443/tcp open https
    8080/tcp filtered http-proxy
    Read data files from: /usr/bin/../share/nmap
    Nmap done: 1 IP address (1 host up) scanned in 4.19 seconds
    Here is the ssh_config client-side:
    # $OpenBSD: ssh_config,v 1.27 2013/05/16 02:00:34 dtucker Exp $
    # This is the ssh client system-wide configuration file. See
    # ssh_config(5) for more information. This file provides defaults for
    # users, and the values can be changed in per-user configuration files
    # or on the command line.
    # Configuration data is parsed as follows:
    # 1. command line options
    # 2. user-specific file
    # 3. system-wide file
    # Any configuration value is only changed the first time it is set.
    # Thus, host-specific definitions should be at the beginning of the
    # configuration file, and defaults at the end.
    # Site-wide defaults for some commonly used options. For a comprehensive
    # list of available options, their meanings and defaults, please see the
    # ssh_config(5) man page.
    # Host *
    # ForwardAgent no
    # ForwardX11 no
    # RhostsRSAAuthentication no
    # RSAAuthentication yes
    # PasswordAuthentication yes
    # HostbasedAuthentication no
    # GSSAPIAuthentication no
    # GSSAPIDelegateCredentials no
    # BatchMode no
    # CheckHostIP yes
    # AddressFamily any
    # ConnectTimeout 0
    # StrictHostKeyChecking ask
    # IdentityFile ~/.ssh/identity
    # IdentityFile ~/.ssh/id_rsa
    # IdentityFile ~/.ssh/id_dsa
    # Port 22
    Protocol 2
    # Cipher 3des
    # Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
    # MACs hmac-md5,hmac-sha1,[email protected],hmac-ripemd160
    # EscapeChar ~
    # Tunnel no
    # TunnelDevice any:any
    # PermitLocalCommand no
    # VisualHostKey no
    # ProxyCommand ssh -q -W %h:%p gateway.example.com
    # RekeyLimit 1G 1h
    Output of ssh -v during connection attempt:
    OpenSSH_6.3, OpenSSL 1.0.1e 11 Feb 2013
    debug1: Reading configuration data /home/douglas/.ssh/config
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug2: ssh_connect: needpriv 0
    debug1: Connecting to address [address] port 1500.
    debug1: connect to address address port 1500: Connection refused
    ssh: connect to host address port 1500: Connection refused
    Thank you guys ahead of time. Getting this server operational is hardly critical, it is just a side project of mine, but I would really like to see it working.
    Douglas Bahr Rumbaugh
    Last edited by douglasr (2013-09-29 02:58:56)

    Okay, so I finally have the opportunity to try and log in from a remote network. And. . .  it doesn't work. Which is just my luck because I now need to wait an entire week, at least, before I can touch the server again. Anyway, running ssh with the maximum verbosity I get this output:
    douglas ~ $ ssh -vvv -p 2000 address
    OpenSSH_6.3, OpenSSL 1.0.1e 11 Feb 2013
    debug1: Reading configuration data /home/douglas/.ssh/config
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug2: ssh_connect: needpriv 0
    debug1: Connecting to address [address] port 2000.
    debug1: connect to address address port 2000: Connection timed out
    ssh: connect to host address port 2000: Connection timed out
    It takes a minute or two for the command to finish with the connection timeout, as one would expect. And yes, I am reasonably sure that the address that I am using is my home network's external IP. It is dynamic, but I checked it before I left which was just over an hour ago. I guess that it may have changed. I'll know that for sure in the morning, when my server sends me an automatic email with the network's current address. In the meantime I am operating under the assumption that the address I am using is correct. What else could be the problem?

  • Mac computers in the office are not able to connect to our exchange server.

    We started facing this problem about a month ago in our office where the apple computers can not connect to the exchange server via outlook or applemail or anything for that matter. All the other computers can connect to the exchange server with no problems
    and the apple computers can even access the exchange server via OWA but the outlook and applemail apps would not connect to exchange. We have tried even deleting and re-creating some accounts on the apps but they still would not connect. At this point I am
    at a complete loss and I looked everywhere through google to find out if anyone else has faced this problem but to no avail.
    A little background information. This specific problem started happening after there was an un-expected series of power outages to the servers and they were shut down un-expectedly. I personally restored the servers and turned on all the services and made
    sure everything was up and running after the power outages and everything was working fine. Also the first instance of the problem with the mac computers only happened two days after the servers were back up and running again and they had no issues in those
    two days.
    Right now we do not have that many mac users in our offices (only 3-4 users) and I have instructed them to use the OWA in the meanwhile but it is however an inconvenience to them. By now you may have realized that I am not a very experienced server admin
    and I would really really appreciate any help. I extend my thanks in advance for any insight.

    Hi Martin,
    Thanks for the reply.
    Right now I have Apple mail and Outlook installed on my mac laptop and both the applications do not connect to the exchange server. Apple Mail simply does a long process when I give my credentials to create my account and then it gives an error saying it
    could not find the server while outlook quickly tells me that either the username or password is incorrect. At the same time I can connect to the server through outlook on my windows computer without any problems whatsoever.
    From your reply, I gather that the VIA headers only affect Apple mail and should not affect Outlook app on the mac but right now, neither apps are connecting to the exchange server.
    Either way I am trying to find out how to remove the VIA headers because it does not seem that we are using Kemp on the exchange server. Right now I do not have the in depth knowledge that I need because I was not involved in the implementation of our server
    system, that was taken care of by a service provider and I was put in charge of mostly simple admin work. Now we are out of contract with the service provider so  pretty much everything has fallen onto my shoulders.
    If possible, would you mind pointing me in the right direction to finding out if I am using a L7 load balancer and how I would go about removing the VIA headers?

Maybe you are looking for

  • Getting Error while Updating the ESB Default System

    Hi, We applied patch 7272722 and have upgraded the SOA Suite 10.1.3.1 to SOA Suite 10.1.3.4 on Windows (32 Bit). After upgrading , we are getting below error message while updating the Default System properties in ESB Console. An unhandled exception

  • HT1353 2nd gen iPod isn't recognized by iTunes nor Windows - What to do?

    I have an iPod A 1019 (2nd gen?). When I connect it to the firewire connector on my PC, the unit screen shows a checkmark and "OK to disconnect." I tried to reset with Menu + Select (=nothing happened) but Menu + Play works. Still, PC + iTunes won't

  • Is it possible to syncronize iphone contacts and windows 8 app PEOPLE?

    I can't syncornize the iphone contacts with the app PEOPLE in windows 8. That app contains the contact that I can see in the APP MAIL. Well, I can syncronize iphone contacts with gmail or windows contacts. If I use the gmail way I can link a microsof

  • Picking files from trp server

    hi.. one thing i am not able to understand sometimes xi system is unable to pick the file from the ftp server i have checked all commmunication channals parameters every thing is ok.   some times it picks the file and sometime it doesnot.. i would be

  • No systems found in /tmwflow/cmsconf

    Hi, I have included a 4 system landscape DEV -> QAS -> PPR -> PRD in my Maintenance project. Activated Change request Management. Created Maitenance Cycle. CTS was configured successfuly. I could see all green messages in /tmwflow/charmchk Created Tr