2 Replies Latest reply: Feb 10, 2014 1:53 PM by 51c18bde-8ab5-4a3f-bfff-a8874aa7cda6 RSS

oracle.cloud.paas.api.jar -  java.net.SocketException: Software caused connection abort: socket write error

51c18bde-8ab5-4a3f-bfff-a8874aa7cda6 Newbie
Currently Being Moderated

Hello, sorry for my bad English. I am from Ukraine.

Where can I find documentation on how to use oracle.cloud.paas.api.jar, localextension.jar (this jars from Oracle Cloud Service SDK/lib)
I use oracle.cloud.paas.api.jar from Oracle Cloud Service SDK/lib

I see source code for oracle cloud plugin in Net Beans

They use the same classes for get ApplicationManager. And testing connection - use this method listApplications(String identityDomain, String javaServiceName) in oracle.cloud.paas.api.ApplicationManager


I have this method:


  public void connect(OracleCloudAgentConfig config,

                      CloudAgentCallback callback,

                      CloudAgentLogger logger,

                      CloudAgentErrorHandler errorHandler) {

    try {

     URL adminUrl = new URL(config.getAdminUrl());

     String identityDomain = config.getIdentityDomain();

      if (myApplicationManager == null) {

        myConfiguration = config;

        String user = createUser(identityDomain, config.getEmail());

        myApplicationManager = ApplicationManagerConnectionFactory.createServiceEndpoint(adminUrl, user, config.getPassword());

      }

      myApplicationManager.listApplications(identityDomain, config.getJavaServiceName());

    }

    catch (MalformedURLException e) {

      callback.errorOccurred(e.toString());

      return;

    }

    catch (RuntimeException e) {

      callback.errorOccurred(e.toString());

      return;

    }

    catch (Exception e) {

      callback.errorOccurred(e.toString());

      return;

    }

    callback.connected();

  }

 

 

Then I do : myApplicationManager.listApplications(identityDomain, config.getJavaServiceName());I

 

I have this:

com.sun.jersey.api.client.ClientHandlerException: java.net.SocketException: Software caused connection abort: socket write error

at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:149)

at com.sun.jersey.api.client.filter.HTTPBasicAuthFilter.handle(HTTPBasicAuthFilter.java:81)..................

 

Caused by: java.net.SocketException: Software caused connection abort: socket write error

at java.net.SocketOutputStream.socketWrite0(Native Method)

at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92).................

 

 

Why might this happen?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points