API - POST - REST VCO connection pool closing

Hello

I'm working on an automation scenario where I need a VCO A workflow to start another workflow VCO B using the VCO REST Plugin (1.0.2) on VCO 5.1.1.

I did it with success while creating a multitude of REST and surgery REMAINS by using the appropriate workflow. However, my approach is a lot of static and I need to create REST operations on the fly. I have had a look at workflows Plugin and try to do the same thing in my workflow.

However I am stuck with the error 'Connection Pool close' when you try to run the POST request.

My approach is to store the host REMAINS as a static attribute with VCO configuration object and retrieve it from there. I can run GET operations without any problem with the owner, i.e.


restRequest = restHost.createRequest (restType, restUrl, restContent);

restResponse = restRequest.execute ();

My problem is actually running a POST operation. I prepared the content in XML format, which is

" <-xmlns = execution context" http://www.VMware.com/VCO "> "
< Parameters >

< name parameter = "param1" type = "string" >

< string > 1 < / string >

< / parameter >

< name parameter = "param2" type = "string" >

< string > value2 < / string >

< / parameter >

< / Parameter >

< / execution context >

and use the content type "application/xml". Earlier in my code, I run a query GET to retrieve my ID for workflow target to create a Url like this:

flow of work/98c3b8ee-9569-4940-acc1-b8fbc2e64649 / executions.

This is code that I use to make the POST while creating an operation of REST when needed and delete it later.


var restOperation = new RESTOperation (System.nextUUID ());

restOperation.method = restType;

restOperation.urlTemplate = restUrl;

restOperation.defaultContentType = restContentType;

restHost.addOperation (restOperation);

RESTHostManager.updateHost (restHost);

inputParameters var = [];

var restRequest = restOperation.createRequest (inputParameters, restContent);

restRequest.contentType = restContentType;

var restResponse = restRequest.execute ();

restHost.removeOperation (restOperation.id);

RESTHostManager.updateHost (restHost);

My code does not work when calling for the lifting of restRequest.execute: ' InternalError: connection pool arrested "." If anyone else has tried a similar scenario or has any idea what I may be missing?

Thank you

Bernd

Thanks chap - update the objects did the trick.

In my case, that initially caused the problem travel of COULD happen. Of course store the restHost object in the configuration of VCO leads to an out-of-date version at run time. I'm now store the ID of restHost only. Then, copy the following code works:

var restHostId is System.getModule("my.library").myGetConfigAttr ("Folder", "VCO", "restHostId");.

var restHost = RESTHostManager.getHost (restHostId);

If (restType == 'GET') {}
try {}
restRequest = restHost.createRequest (restType, restUrl, restContent);
restResponse = restRequest.execute ();
}
catch (exp) {throw ("request REST to run: cannot run '" + restType + "' '" + restUrl + "' request-reason = '" + exp + "'") ;}}
}
else {}
try {}
var restOperation = new RESTOperation (System.nextUUID ());
restOperation.method = restType;
restOperation.urlTemplate = restUrl;
restOperation.defaultContentType = restContentType;
 
restHost.addOperation (restOperation);
RESTHostManager.updateHost (restHost);
 
restHost = RESTHostManager.getHost (restHost.id);
restOperation = restHost.getOperation (restOperation.id);

inputParameters var = [];
var restRequest = restOperation.createRequest (inputParameters, restContent);
restRequest.contentType = restContentType;

var restResponse = restRequest.execute ();

restHost.removeOperation (restOperation.id);
RESTHostManager.updateHost (restHost);
}
catch (exp) {throw ("request REST to run: cannot run '" + restType + "' '" + restUrl + "' request-reason = '" + exp + "'") ;}}
}

Tags: VMware

Similar Questions

  • vRO (vCO) HTTP-REST Workflow - connection pool closing

    Hi all - I've recently upgraded to vRealize Automation 6.2 and works collaboratively with vRealize Orchestrator to create workflows.  I created HTTP and REST workflows for request/release an IP address from our system IPAM (VitalQIP) and it seems to be failing with the description / the following exception:

    Connection pool stop (workflow: demand-IP-du-QIP / Scripting (item3) #14)

    vRO-1.pngvRO-2.png

    Looking for the schema > script line #14 is in red below:

    prepare the application

    Do not edit

    var inParamtersValues = [subnet, hostname, ddns, mac, type, w2kdom, comment];

    var request = restOperation.createRequest (inParamtersValues, null);

    Set the type of content query

    request.contentType = "";

    System.log ("request:" + request);

    System.log ("the request URL:" + request.fullUrl);

    Customize the request here

    request.setHeader ("HeaderName", "headerValue");

    run the query

    Do not edit

    var response = request.execute ();

    prepare the output parameters

    System.log ("response:" + response);

    statusCode = response.statusCode;

    statusCodeAttribute = statusCode;

    System.log ("status code:"+ statusCode ');

    contentLength = response.contentLength;

    headers = response.getAllHeaders ();

    contentAsString = response.contentAsString;

    System.log ("content in the string:" + contentAsString);

    Grep for IPaddress

    Patt var = ('forward IP");

    IPAddress = contentAsString.match (patt) m:System.NET.SocketAddress.ToString () var;

    IPAddress = ipaddress.split (/ [\s,] + /);

    IPAddress = ipaddress [2];

    System.log ("IP address: =" + ipaddress);

    vRO-3.png

    I'm not sure how to work around this problem and I'm looking for assistance because I'm fairly new to vRO.  Thank you very much!




    There is now an official fix for this problem: Technical preview of REST plugin version

    Please provide your comments.

  • SQL Plugin - connection pool &amp; retries

    People-

    We use vCO workflows which a lot of CRUD operations on the database. In light of these are long-running workflows with a decent amount of load, we want to make sure that this solution we have in place is efficient and reliable. To this end:

    1. we want to ensure that we are able to reuse the database connections - y at - it the notion of Pools of connections or equivalent.

    2 How about reconnecting to the db when it falls down? Is that something it will take the code in the workflow through say managers of exceptions etc..

    I'm sure that others have encountered similar problems - would appreciate all comments that you may have.

    See you soon.

    Hello

    Unfortunately does not support the plugin SQL connection pooling. We have never considered it. We will discuss it and may include in the next version of the plugin update.

    Regarding your second question - we don't keep connection open for a long time and call evry DB is atomic. When you run workflows CRUD a new conncetion is created, the corresponding SQL query is executed / clerk and the connection is closed. If there is a problem, as the disconnection of the server Oracle, the right way to ensure that your operation has passed is to write a custom error handling by using the Scripting of the Orchestrator features. In pseudo-code:

    var hasPassed = false;
    for (i = 0; i< maxretries="" -1="" &&="" !haspassed="" ;="" i++)="">

    hasPassed = false;

    try {}

    Execute the statement using the JDBC API exposed or by using CRUD actions

    hasPassed = true;

    } catch (error) {}

    Save the problem

    }

    }

    Hope this helps you. Any additional comments will be great.

    Best regards

    Boyan

  • connection pool

    HI the OBIEE Experts

    How many pools of connections you used in your project

    To get data from another schema, then what you must activate in the connection pool

    . Can we create multiple pools of connection under the object of a database


    Thanks in advance

    You seriously to come on the forum and posting simply questions of an interview questionnaire or a certification test?

    You have 4 threads right now with 2 different user accounts. I suggest that you stop this behavior. Start posting questions with a specific context and meaning. We only are here to get a job, that you should better start for your own good if you do not know the answers and even less here to help you cheat your way to certification.

  • the connection of WebLogic connection pool timeout issue too soon

    We are having a problem with the connection to weblogic pool. Our web application is based on the Spring Framework, deploy to Weblogic using the data source to connect to Oracle. We use a duration of 1 min and max setting of connection pool 15 on weblogic. But the problem that we face is that the pool does not manage any connection as a pool. Each request makes a new connection to the Oracle server and right closed within a few seconds of connection. The number of new connections could be easily up to more than 100 within 10 minutes.

    Is there a timeout parameter to check the living connection? Could someone please share your thoughts how to solve the problem? Your help is really appreciated.

    Framework Spring (2.5.3), Weblogic (10.3), Oracle (11 g 2)

    This is the setting on our data source:

    -----------------------
    Driver class: oracle.jdbc.OracleDriver

    Initial capacity: 30
    Maximum capacity: 30
    Ability to increment: 1
    Type of instruction Cache: LRU
    Statement Cache Size: 10

    Test the connections on the reserve: checked
    Test frequency: 120
    Name of the test Table: SQL SELECT 1 FROM DUAL
    Seconds to trust an idle connection pool: 10
    Reduce the frequency: 900
    The login retry frequency: 0
    Connect time: 0
    Timeout:0 connection inactive
    Maximum pending connection: 2147483647
    Timeout:10 store login
    Reporting deadline:-1
    Ignore the connections in use: checked
    Pins-wire: unchecked
    Remove Infected connections Enabled: checked
    ---------------------
    Of the tracking tool, we have seen the following statistics:

    Average number of active connections: 0
    Current number of active connections: 0
    High number of active connections: 1
    Total number of connections: 1523
    Current capacity: 1
    Doesn't have a number of requests for reserve: 46
    More high Num available: 30
    Number of connections leak: 0
    Wait for the high number of seconds: 0
    Number of requests for reserve: 1531

    Other parameters are all 0.

    --------------------------
    For the adjustment of the spring:

    < bean id = "ourdatasource" class = "org.springframework.jndi.JndiObjectFactoryBean" >
    < property name = "jndiName" > < value > weblogic.datasource < / value > < / property >

    <!-adds the following to the question if debugging caused by cluster or not->
    < property name = "cache" value = "false" / >
    < property name = "lookupOnStartup" value = "false" / >
    < property name = "proxyInterface" value="javax.sql.DataSource"/ >
    < / bean >

    Try to uncheck ' delete infected enabled connections "and let me know...

  • Oracle.DataAccess 2.112.1.0 - connection Pool problem

    Hello

    Oracle.DataAccess 2.112.1.0 is having problem of connection pool. The no. TCP to Oracle database connections continue to increase until the session of the server to run out of limit. My application created connections, use them, close them and dispose of them properly. When using previous Oracle.DataAccess 2.111.6.20, no. of the TCP connections do not increase.

    My database connection string has "Min Pool Size = 3 and Max Pool Size = 150".
    With 2.111.6.20 version, TCP connection remains at 3.
    With 2.112.1.0, TCP connection continue to increase for all 5 minutes. I tried to disable Auto Tuning, but still can not prevent connections of the increase.

    Later today, I downloaded Oracle.DataAccess 2.112.1.2 (it comes with ODAC 11.2.0.1.2) and test again, the problem is solved... no more connection increases... but it's only for 32-bit Windows.

    Unfortunately, there is no Oracle.DataAccess 2.112.1.2 for 64-bit Windows Server 2008.

    I know how I can solve this problem on 64-bit windows installed with Oracle 11 g R2 client, which comes with Oracle.DataAccess 2.112.1.0, which has serious problems... (according to this 11.2 ODP.NET causing test failures runner )

    Thank you very much for your time and your answers!

    Published by: user1502907 on Sep / 04/2010 23:01

    Hello

    The only thing that POPs in the description of your problem is that connections are increased every 5 minutes. Are you sure its every 5 minutes and not 3 minutes, which is the interval of time used by the installation of connection pool to perform maintenance on connection pool. If this happens even when the application is inactive then you could if filed against 11.2.0.1.0 and fixed 11.2.0.1.2 known issue run in what follows.

    Bug 9711600 - CONNECTIONS beyond MAX POOL SIZE INCREASE EVERY 3 MINUTES

    It is specific to using the CommandBehavior.CloseConnection option when calling execute reader. You are using this option and then also close the connection in code before closing the datareader object, if so you can be hitting this bug. You can also generate a trace ODP at level 15 of the behavior and if you see a negative mix counties, it's also a diagnosis that points to this bug.

    This problem is fixed in 11.2.0.1.0 Patch 3 or later version for x 64. If you support, I recommend that you open a service request to check if this is your problem and if a set of patch can help you.

    Concerning
    Jenny B.

  • Connection pool does not work.

    Nice day. all the

    I tried OracleConnectionPoolDataSource and OracleDataSource.

    And found that there is no difference in performance. And connections are not grouped according to me.

    My sample fill the table with the records and read and update simultaneously in two threads.

    Below is a code provided.

    < strong >

    A piece of < facilities > logs: each time new connection is created.

    ...

    connection = oracle.jdbc.driver.OracleConnection@1198891

    0 updatedNumber = 1

    Connection.Close = oracle.jdbc.driver.OracleConnection@1198891

    connection = oracle.jdbc.driver.OracleConnection@17725c4

    Connection.Close = oracle.jdbc.driver.OracleConnection@17725c4

    List.Size () = 10

    0, name_update0, name_desc0, name_status0, 2008-11-04, 2008-11-04.

    1, a1, c1, b1, 2008-11-04, 2008-11-04.

    ...

    view the logs files I see that every time new connection is created in both cases, if I use OracleConnectionPoolDataSource or OracleDataSource.

    < strong >

    Question: < facilities > can someone help me understand how to use the connection pool? And how to see with my own eyes that this works?

    DDL < strong > < facilities >:

    to run the program, we should create table:

    {color: #000080} CREATE TABLE TEST_RECORD1)

    ID NUMBER (10) NOT NULL PRIMARY KEY,

    NAME VARCHAR2 (255 BYTE),

    VARCHAR2 (255 BYTE) STATUS,

    DESCRIPTION VARCHAR2 (255 BYTE),

    START_DATE TIMESTAMP,

    END_DATE TIMESTAMP

    ); {color}

    < strong >

    < Facilities > Java code:

    package test.jdbc;

    import java.sql.Connection;

    import java.sql.PreparedStatement;

    import java.sql.ResultSet;

    import java.sql.ResultSetMetaData;

    import java.sql.SQLException;

    import java.sql.Statement;

    import java.util.ArrayList;

    import java.util.Date;

    import java.util.List;

    javax.sql.ConnectionPoolDataSource import;

    import javax.sql.DataSource;

    Import oracle.jdbc.pool.OracleConnectionPoolDataSource;

    Import oracle.jdbc.pool.OracleDataSource;

    public class TestConnectionPooling2 {}

    static data source data source;

    / * number of iterations * /.

    public static final long BASE_REPEAT_NUMBER = 5;

    public static final long RECORDS_NUMBER = 10;

    Public Shared Sub main (String [] args) throws Exception {}

    Here you can change the data source (shared or not), but the performance has won "t change

    setupDataSource (new OracleDataSource());

    setupDataSource (new OracleConnectionPoolDataSource());

    long startTime = System.currentTimeMillis ();

    own picture

    removeAllRecords ("the removal of test_record1");

    insert records into the table

    for (int i = 0; i & lt; RECORDS_NUMBER; i++) {

    insertRecord (i,

    «insert into TEST_RECORD1 (id, name, status, description, start_date, end_date) "»

    + " values (?, ?, ?, ?, ?, ?)");

    }

    wire installation that queries the data in table

    Wire th1 = new Thread ("thread 1") {}

    public void run() {}

    for (int i = 0; i & lt; BASE_REPEAT_NUMBER; i++) {

    retrieveRecords ("select * from test_record1 by id asc");

    Thread.Yield ();

    }

    }

    };

    wire installation that updates the data in table

    Th2 thread = new Thread ("thread 2") {}

    public void run() {}

    for (int counter = 0; counter & lt; BASE_REPEAT_NUMBER; counter ++) {}

    for (int i = 0; i & lt; RECORDS_NUMBER; i++) {

    performSingleUpdate (counter, i,

    "update TEST_RECORD1 set name =?, description =?, status =? where id =? ») ;

    Thread.Yield ();

    }

    }

    }

    };

    TH1.start ();

    Th2.start ();

    do not complete until the worker threads

    While (th1.isAlive (): th2.isAlive ()) {}

    Thread.Yield ();

    }

    long endTime = System.currentTimeMillis ();

    System.out.println ("execution time:" + (endTime - startTime) + "ms.");

    }

    private static Sub performSingleUpdate (long bar, long I, String sql) {}

    PreparedStatement stmt = null;

    Connection conn2 = getConnection().

    try {}

    stmt = conn2.prepareStatement (sql);

    long temp = counter * 10 + i;

    stmt.setString (1, "name_update" + temp);

    stmt.setString (2, "name_desc" + temp);

    stmt.setString (3, "name_status" + temp);

    stmt.setLong (4, i);

    int updatedNumber = stmt.executeUpdate ();

    System.out.println (counter + ".") updatedNumber = "+ updatedNumber);

    } catch (SQLException e) {}

    e.printStackTrace ();

    } {Finally

    try {}

    stmt. Close();

    } catch (SQLException e) {}

    e.printStackTrace ();

    }

    If (conn2! = null) {}

    closeConnection (conn2);

    }

    }

    }

    private public static void removeAllRecords (String deleteAllSQL) {}

    Statement stmt = null;

    Connection conn2 = getConnection().

    try {}

    stmt = conn2.createStatement ();

    int updatedNumber = stmt.executeUpdate (deleteAllSQL);

    System.out.println ("remove all records. updatedNumber = "+ updatedNumber);

    stmt. Close();

    } catch (SQLException e) {}

    e.printStackTrace ();

    } {Finally

    If (conn2! = null) {}

    closeConnection (conn2);

    }

    }

    }

    {} public static void retrieveRecords (String sql)

    List = new ArrayList();

    Statement stmt = null;

    ResultSet resultset = null;

    int recordsCounter = 0;

    Output connection getConnection() =;

    try {}

    stmt = connection.createStatement ();

    ResultSet = stmt.executeQuery (sql);

    While (resultset.next ()) {}

    Record NewRecord = new Record();

    recordsCounter ++;

    newRecord.setId (resultset.getLong ("id"));

    newRecord.setName (resultset.getString ('name'));

    newRecord.setDesc (resultset.getString ("description"));

    newRecord.setStatus (resultset.getString ("status"));

    newRecord.setStartDate (resultset.getDate ("start_Date"));

    newRecord.setEndDate (resultset.getDate ("end_Date"));

    List.Add (NewRecord);

    }

    } catch (SQLException e) {}

    e.printStackTrace ();

    } {Finally

    If (resultset! = null)

    try {}

    ResultSet.Close ();

    } catch (Exception e) {}

    e.printStackTrace ();

    }

    If (stmt! = null)

    try {}

    stmt. Close();

    } catch (Exception e) {}

    e.printStackTrace ();

    }

    If (connection! = null) {}

    closeConnection (connection);

    }

    }

    StringBuilder sb2 is new StringBuilder ("list.size () =" + list.size () + "\n");.

    for (int i = 0; i & lt; list.size (); i ++) {}

    Record (Record) = list.get (i);

    SB2. Append ("" + record.toString () + "\n");

    }

    System.out.println ("" + sb2);

    }

    {} public static void insertRecord (long counter, String sql)

    PreparedStatement stmt = null;

    Connection conn2 = getConnection().

    try {}

    stmt = conn2.prepareStatement (sql);

    stmt.setLong (1 wicket);

    stmt.setString (2, "a" + counter);

    stmt.setString (3, "b" + counter);

    stmt.setString (4 "c" + counter);

    stmt.setTimestamp (5, java.sql.Timestamp (System.currentTimeMillis ())) of new;

    stmt.setTimestamp (6, java.sql.Timestamp (System.currentTimeMillis ())) new;

    int updatedNumber = stmt.executeUpdate ();

    System.out.println (".insertNumber =" + counter + updatedNumber);

    } catch (SQLException e) {}

    e.printStackTrace ();

    } {Finally

    try {}

    stmt. Close();

    } catch (SQLException e) {}

    e.printStackTrace ();

    }

    If (conn2! = null) {}

    closeConnection (conn2);

    }

    }

    }

    Initial methods

    private static Sub setupDataSource(OracleDataSource oracleDataSource) throws SQLException {}

    OracleDataSource ds = oracleDataSource;

    ds.setUser ("akhlystov");

    ds.setPassword ("xallex");

    ds.setURL ("jdbc:oracle:thin:@localhost:1521:abc");

    dataSource = ds;

    }

    public static {DataSource getDataSource()

    Returns the data source;

    }

    private public static void closeConnection (connection) {}

    If (conn! = null) {}

    return;

    }

    System.out.println ("Connection.Close () =" + login + "\n");

    try {}

    Connection.Close;

    } catch (SQLException e) {}

    throw new RuntimeException)

    "application should not run when the database cannot close the connection");

    }

    }

    static connection Conn;

    public static {connection getConnection()

    /*

    * Uncomment to test without any source of data, unique connection if (conn is

    * null) {try {conn = getDataSource () .getConnection () ;} catch}}

    * (SQLException e) {e.printStackTrace () ;}} return conn;

    */

    try {}

    Fitting out = null;

    If (instanceof ConnectionPoolDataSource getDataSource()) {}

    connection = ((ConnectionPoolDataSource) getDataSource ()) .getPooledConnection () .getConnection ();

    } else {}

    connection = getDataSource () .getConnection ();

    }

    System.out.println ("connection =" + connection);

    return of connection;

    } catch (SQLException e) {}

    e.printStackTrace ();

    throw new RuntimeException ("application should not run when the database is not available");

    }

    }

    Record class

    public static class {Record

    long ID;

    The name of the string;

    String desc;

    Status string;

    Date startDate;

    Date endDate;

    {} public long getId()

    return the id;

    }

    public void setId (long id) {}

    This.ID = id;

    }

    public String getName() {}

    return the name.

    }

    public void setName (String name) {}

    myIdName = name;

    }

    public String getDesc() {}

    return of ESCR;

    }

    {} public void setDesc (String desc)

    This.DESC = desc;

    }

    public String getStatus() {}

    return the situation;

    }

    {} public void setStatus (string status)

    This.Status = status;

    }

    public Date getStartDate() {}

    return startDate;

    }

    {} public void setStartDate (Date startDate)

    this.startDate = startDate;

    }

    public Date getEndDate() {}

    return endDate;

    }

    {} public void setEndDate (Date endDate)

    this.endDate = endDate;

    }

    public String toString() {}

    return the id + ',' + name + ',' + desc + ',' + status + ',' startDate + ', ' + endDate + ".";

    }

    }

    }

    Published by: Alexandr Khlystov on 04.11.2008 14:20

    Relevant documentation for JDBC 9i drivers here is http://download.oracle.com/docs/cd/B10501_01/java.920/a96654/connpoca.htm#1056354.

    In the world of JDBC 9i driver, there was a distinction between a connection pool (consolidated connection) and a cache of connections.

    A connection pool is trying to eliminate overhead consumption and resources of connection / disconnection from the database. If the connection is going to be only reused so no reason to close the connection, just open it again.

    What a performance gain were you looking for? Only, you would see a performance gain if your application was constantly opening and closing of connections, demanding that all resources for Setup and take down communications database. When the connection is established there is no difference in the performance of the execution of SQL.

    You can see with

    import java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    
    import oracle.jdbc.pool.OracleConnectionPoolDataSource;
    import oracle.jdbc.pool.OracleDataSource;
    import oracle.jdbc.pool.OraclePooledConnection;
    
    public class TestConnectionCache {
    
      public static void exec(Connection conn) throws SQLException {
        ResultSet rs = conn.prepareStatement("select sys_context('USERENV','SESSIONID') from dual").executeQuery();
        rs.next();
        System.out.println("Session id: " + rs.getInt(1));
        conn.close();
      }
    
      public static void main(String[] args) throws SQLException {
    
        OracleDataSource ods = new OracleConnectionPoolDataSource();
        ods.setUser("...");
        ods.setPassword("...");
    
        // Construct the jdbc url.
        String host     = "...";
        String port     = "...";
        String instance = "...";
    
        String url =
          "jdbc:oracle:thin:@//" + host + ":" + port + "/" + instance
          ;
        ods.setURL(url);
    
        // No connection re-use.
        exec(ods.getConnection());
        exec(ods.getConnection());
    
        // Connection re-use. (Connection pooling)
        OraclePooledConnection opc = (OraclePooledConnection)((OracleConnectionPoolDataSource)ods).getPooledConnection();
        exec(opc.getConnection());
        exec(opc.getConnection());
      }
    }
    

    Product output similar to:

    Session id: 4110149
    Session id: 4110150
    Session id: 4110151
    Session id: 4110151
    

    Note: when the pooliing connection is used, the session of database id is the same. Call close() has not closed the physical connection.

    A cache of connections is a layer on top of pooled connections that manages the creation and destruction of the connections. There usually limits this link how much should be open and the maximum number of connections to allow. Then the cache is queried for a connection, it can return the one that is not in use or perhaps create a new.

    Later versions of the JDBC driver will greatly simplify managing your connections and here is the note of documentation:

    Note:
    The previous cache architecture, based on OracleConnectionCache and OracleConnectionCacheImpl, is discouraged. Oracle recommends that you take advantage of the new architecture, which is more powerful and offers better performance.

    Any reason you're not not using a newer driver?

  • net.rim.device.api.io.ConnectionClosedException: not connected

    Hello world

    I have problems when making calls POST on my app.

    When I meet first the question above, I fixed it by running the network call in a different thread.

    However, the problem has started again,

    Whenever I'm doing a POST request, my connection returns a response code 0, and I don't know what is causing the connection close. Download the application are works very well as a POST request when a user connects.

    However, for example when a user connects, I get a response code 0.

    I've been on it for a month now and I read many post about this, and yet I found nothing that solve my problem.

    Can someone help me with this.

    Thank you

    I would like to be confident that you are coding is different, because you say this:

    "I noticed that the response code is already 0.

    How many checks the response code are there in the sample that I pointed you to?

    You must complete your writing before you get the response code.  Get the response code means that BlackBerry, sends it the data to the server and gets a response from the server.  Thus, after the getResponseCode(), if you try to do anything other than read the answer, it will fail, as you have described.

    Please see the following Post, and you might find other positions in the interesting Thread:

    http://supportforums.BlackBerry.com/T5/notifications/notifymoderatorpage/message-UID/2867136

  • Message 'the underlying connection was closed unexpectedly' when you enter the serial number for the weather and wildlife program.

    Original title: message "the underlying connection was closed unexpectedly.

    I use an updated, newly installed Windows 7 Home Premium from Windows XP. I downloaded and installed a program called the weather and wildlife and when I enter my serial number for verification in order to access the program I get an error box that says: "the underlying connection was closed: the connection was closed unexpectedly."

    I tried to disable the firewall, but this does not solve the problem. I do not have antivirus software installed so that either cannot interfere.
    Any suggestion will be highly appreciated!

    Hello Srimadhwa,

    Thanks for your suggestions. The internet connection works properly on the computer.
    When I wrote my first question I had difficulties to access weather data and wildlife in every web browser I've used. For example, I tried to download the software from the download page of W & W and in Explorer, it would get a page that says "Cannot display Page". Other browsers had other types of errors. Finally, the company sent me a file of the program that I installed but then when I entered the serial number, I would get the message "the underlying connection was closed unexpectedly.
    This morning I tried again to download the program from the W & W page and also to enter my serial number for the installed program and it seems that the W & W database is connected successfully, but now I get a message saying that the serial number is invalid (which is certainly not the case).
    Since for some unknown reason the databased WW can now access my computer I have now will contact the company to see why my serial number is rejected.
    Thanks a lot again!
  • connection pool and inefficient query plan

    There is a single query that covers almost 90% of cpu DB.

    Select * from employee e, Department d where e.departement_id = d.department_id

    Us will gather statistics for this table in two, and the issues is resolved.

    This occurs every 2 weeks. That said, the query runs fine for 2 weeks and then we have questions... we will bring together the statistics of these two tables... and things are good for another 2 weeks.

    This query is a proc to store oracle pl - sql, which is called by the JDBC code. I introduced 2 months behind connection pooling, and today, we are facing this problem.

    The query has been accounting for 5 years with no problems.

    Before that I presented the connection pool, the jdbc code created a new connection before calling the store proc.

    Do you think that my connection to the connection pool has introduced this problem.

    The DBA tell me that the query runs a bad plan. Oracle recovers not the more effective plan (and that leads to this high CPU utilization).

    I guess that after 2 weeks Oracle begins to pick up plans that are effective in.

    Do you think all that this question never has nothing to do with my connection pooling code.

    I use Oracle 10 G.

    Hi Mike and ground beach thanks for your response.

    It was just a doubt... that you guys allowed.

    Thank you

    m

  • OBIEE 11 g RPD migration - how to automate the Connection Pool passwords changes in environments

    Hello gurus

    We have a situation in our client, where I am responsible for automating RPD Migrations in environments. In our current scenarios, (SID database) data source names and user names (schema name) are same in environments. The current process deploy us the RPD by EM then SPR online by using the administration tool and manually open update passwords in each connection pool (we have 9 pools of connections). There has been a lot of problems with this approach you can imagine (especial when do things the manual way).

    Can you please provide a better approach to automate this process in order to avoid human error.

    Thank you very much.

    Take a look at BIServerT2PProvisioner.jar http://docs.oracle.com/cd/E29542_01/bi.1111/e10540/conn_pool.htm#BHBBDDFF

  • After the connection is closed, the oracle session remains unavailable

    Hi all

    using weblogic.jdbc.wrapper.PoolConnection_oracle_jdbc_driver_T4CConnection;

    with weblogic server 12 c I can't release the connection to the data source.

    Even when the web application made the destroy method,

    Oracle sessions are allocated, and every time I reconnect, the number of sessions pushes saturating the connection pool.

    What can I do to properly release resources?

    Thanks in advance

    Marco

    That's what I see in oracle:

    Select sid, status, server, session v program $;

    SID; STATUS; SERVER; PROGRAM

    497; INACTIVE; DEDICATED; JDBC Thin Client

    537; INACTIVE; DEDICATED; JDBC Thin Client

    543; INACTIVE; DEDICATED; JDBC Thin Client

    The source is

    ...

    DataSource ds = (DataSource) context.lookup (jndiname);

    ....

    public connection getConnection() throws SQLException {}

    Connection con = ds.getConnection ();

    return con;

    }

    Private Sub closeConnection (con Connection) throws SQLException {}

    If (con! = null & &! con.isClosed ()) {}

    con. Close;

    con = null;

    }

    }

    ...

    Connection con = getConnection().

    Statement statement = null;

    ResultSet rs = null;

    Statement = getStatement (con);

    try {}

    RS = statement.executeQuery (query.getQuery ());

    If (rs! = null) {}

    RES = new TASDataWrapper (SR);

    }

    } catch (SQLException ex) {}

    ...

    } {Finally

    If (rs! = null) {}

    RS. Close();

    }

    If (declaration! = null) {}

    Statement.Close ();

    }

    closeConnection (con);

    }

    ....

    {} public void destroy()

    ....

    DataSource = null;

    }

    Well, everything looks good to me. I'm guessing that the Sessions will continue to be there until the Time Out of Session is reached. Can you please adjust the session timeout down and observe the response?

    Thank you

  • NLS parameters in a connection pool environment

    I have limited experience of localization/globalization and I am building an application, using Oracle APEX 4.2/Oracle 11 g db, which takes care of several users of different nationalities.  I have a specific question, but first... can anyone recommend good books, blogs and websites to learn more about best practices for the many things you need to think in this area?

    Second, my precise question is... Since my application will use a connection pool, how it works as far as setting the NLS parameters for a given client session?  In the typical client/server architecture that I know that you would simply change the NLS parameter when the user connects, and this change would govern just the session of this user database.  It's a different approach when we are in an environment of connection pool?  If this is not the case, how Oracle now manages the parameters of the client session this session of customer may engage in more than one session of db in its lifetime?

    You can set the runtime: http://docs.oracle.com/cd/E16655_01/appdev.121/e17961/global_primary_lang.htm#HTMDB14002

    Thank you

    Sergiusz

  • Missing for DBAdapter cluster Weblogic Congfiguration outbound connection Pool entry

    Hello

    When I created an entry for outbound connection pool in DBAdapter weblogic console in a clustered (1-Admin server and servers managed by 2) environment and updated adapter DB, I have identified only input connection is updated in that plan a managed server and other server managed, it is not updated. For this reason, we are unable to access the data sources for some requests for the application.

    As a work-around if we plan. XML file to another server managed manually with update and DB adapter connection entry, we are able to find the entrance of connection for managed servers.

    Outside work around there at - it another solution to this problem so that I can add a connection adapter DB Console entry that will update the two plan files.

    Thank you and best regards,

    Vincent

    Can I propose to maintain the file plan of shared drive accessible from all nodes in the server, this will reduce the manual work.

    Concerning

    Albin I

    http://www.albinsblog.com/

  • Connection pool is already checked or temporarily locked

    After the reboot of the servers BI showing this error

    And deployments BI Publisher Application is not comeing up, showing bellow error.

    [nQSError: 36004] Object real-time OLTP connection pool is already checked or temporarily locked.

    Pls me how reslove

    Thank you

    Make sure you close the tool of administration or the RPD (when changes in the RPD online) before starting the services

Maybe you are looking for

  • SMTP outgoing on several accounts FAIL

    I'm new to Thunderbird. With the keys v 31.0 I have several e-mail accounts hooked, all with separate outgoing SMTP defined. They all work... and then they don't. What is happening is that no matter what email account I use to send an e-mail, the SMT

  • Treats each graphic link/button as an image of view rather than direct me to the target address.

    Don't know how to explain it-If I visit a Web site and click on a graphic link, he directs me to a new tab showing the graphical image, I just clicked, rather than the target site. She treats each graph (or button) link as I ask for "image".I tried t

  • HP pavellion dv4: Forget - administrator password/power on password

    HelloI forgot my password of administrator/power on password.I gave the wrong password for three that a new screen with a code.Please help me.Thanks in advance.

  • HP Officejet 4630: officejet 4630

    The camera screen flashes doing wrong understand what options I select very hard because of poor visibility.  When the unit is running a command, the screen lights up well - not flashing.  Is there a setting on the printer that will allow the screen

  • Focus on the t3i problem

    My t3i is having focusing problems. What may be the cause?  Can I have very well to the development as on fullframe cameras?