How to Destory connections from the Pool?

Hi,
I would like to know if it is possible to destroy/refresh a connection id from the DBPool using just a javacode that either refresh the whole pool or just one specific connection.
We are using a DB cluster environment and once one of the Database Servers goes down, the connection continues to point to the old DB Server. We are testing if the connection is still pointing to a valid DBServer (using a simple <i>select getdate()</i> statement (the DBMS is SQLServer 2000). The problem is that even if we close the connection object in the JavaCode, the physical connection still points to the old DB IP address, and we want to kill that connection from the DBPool.
We know that once the connection id is destoyed(using the DESTROY_CONN command of the J2EE engine), a new connection is created for the right DB Server.
We are using the following versio of EP:
6.0.2.37.0.Enterprise_Portal_Support_Package_2
Thanks.

Hi,
There is no difference in calling a transaction from module pool and report . The statement
Call transaction tranaction name works similarly in both the cases . The only thing you need to take care is your program flow in Module pool.
For calling transaction set the parameters of the transaction and on using the call transaction statement it will call the transaction withe the set values. use skip initial screen option to execute it from your program. This entire code needs to be written in PAI event where you will be handling your OK codes.
Hope this helps.

Similar Messages

  • SharePoint - Error_1_Error occurred in deployment step 'Add Solution': Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was rea

    Hi,
    I am Shanmugavel, SharePoint developer, 
    I am facing the below SharePoint 2013 deployment issue while deploying using VS2012.
    If i will deploy the same wsp or existing wsp
    (last build) using direct powershell deployment, the solution adding properly, but the same timeout exception coming while activation the features.  Please find the below error.
    I tried the below activists:
    1. Restarted my dev server, DB server. 
    2. tried the same solution id different server
    3. tried existing wsp file (last build version)
    4. Deactivated all the features, including project Active deployment configuration.... but still i am facing the same issue.
    I hope this is not coding level issue, because still my code is not start running, before that some problem coming.
    Please help me any one.....  Last two days i am struck because of this...

    What you need to understand is the installation of a WSP does not do much. It just makes sure that you relevant solution files are deployed to the SharePoint farm.
    Next comes the point when you activate the features. It is when the code which you have written to "Activate" certain features for your custom solution.
    Regarding the error you are getting, it typically means that you have more connections (default is I guess 100) open for a SQL database then you are allowed to.
    If you have a custom database and you are opening a connection, make sure you close it as well.
    Look at the similar discussion here:
    The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool
    size was reached[^]
    I would suggest further to look at the
    ULS logs[^] to get better insight.
    Manas Bhardwaj's Stream : www.manasbhardwaj.net

  • ResourceException: Access not allowed (when trying to grab a connection from weblogic pool)

    I am using WLS7 with SP1.
    I just recently migrated from WLS6.0. When my code tries to grab a
    connection from the pool, it throws an exception
    java.sql.SQLException: Pool connect failed:
    weblogic.common.ResourceException: Access not allowed
    at weblogic.jdbc.pool.Driver.connect(Driver.java:202)
    Does anyone know if anything changed from 6.0 to 7?
    Here is a piece of the code that throws exception.
    Driver driver =
    (Driver)Class.forName("weblogic.jdbc.pool.Driver")
    .newInstance();
    conn = driver.connect("jdbc:weblogic:pool:" +
    dbName, null);
    Thanks in advance.

    Hi Jung,
    "Jung Yang" <[email protected]> wrote in message
    news:[email protected]...
    Do you know how to change security setting on the connection pool?
    Thanks.WebConsole:
    1.Compatibility Security => ACLs
    Create a new ACL,
    name : weblogic.jdbc.connectionPool.yourPoolname
    permission : reserve, reset
    group : everynone
    2.Services => JDBC => Connection Pool
    Create a new Connection Pool
    ACL Name : weblogic.jdbc.connectionPool.yourPoolname
    In 'Target' tab, choose server and click the Apply button
    Slava
    >
    "Slava Imeshev" <[email protected]> wrote in message
    news:[email protected]...
    Hi Jung,
    Could you try providing weblogic user name and password
    in the properties?
    Could you also check security setting of the connection pool?
    Regards,
    Slava Imeshev
    "Jung Yang" <[email protected]> wrote in message
    news:[email protected]...
    Well that is exactly what I am doing. The variable dbName is database
    connection pool name that I created in weblogic console. Again, it
    worked
    in WLS6 but after migration, it stopped working.
    Thanks.
    "Mitesh Patel" <[email protected]> wrote in message
    news:[email protected]...
    In my code I am supplying name of the connection pool already
    created
    in
    weblogic server. I am asking you to get connection from the pool
    using
    pool
    driver.
    In your case you are trying to create connection straight to
    database
    using pool
    driver.
    What I am asking is pass name of the connection pool instead of
    database
    name.
    Thanks,
    Mitesh
    Jung Yang wrote:
    What would be the difference between your code and mine? Mine
    simple
    appends dbName string value for connection pool name at the end of
    "jdbc:weblogic:pool:"? And why same exact code would work in WLS6and
    not
    work in WLS7?
    Thanks.
    "Mitesh Patel" <[email protected]> wrote in message
    news:[email protected]...
    conn = driver.connect("jdbc:weblogic:pool:" +
    dbName, null);Instead of doing this what if you use
    Connection conn =
    myDriver.connect("jdbc:weblogic:pool:myConnectionPool", null);
    Will you please try this and see if that helps?
    Mitesh
    Jung Yang wrote:
    Isn't that exactly what I posted for my code piece?
    Thanks.
    "Mitesh Patel" <[email protected]> wrote in message
    news:[email protected]...
    Try As described below:
    The following example demonstrates how to use a database
    connection
    pool
    from a servlet.
    Load the pool driver and cast it to java.sql.Driver. The
    full
    pathname
    of
    the driver is weblogic.jdbc.pool.Driver. For example:
    Driver myDriver = (Driver)
    Class.forName("weblogic.jdbc.pool.Driver").newInstance();
    Create a connection using the URL for the driver, plus
    (optionally)
    the
    name of the registered connection pool. The URL of the pool
    driver
    is
    jdbc:weblogic:pool.
    You can identify the pool in either of two ways:
    Specify the name of the connection pool in a
    java.util.Properties
    object
    using the key connectionPoolID. For example:
    Properties props = new
    Properties();props.put("connectionPoolID",
    "myConnectionPool");Connection conn =
    myDriver.connect("jdbc:weblogic:pool", props);
    Add the name of the pool to the end of the URL. In this case
    you
    do
    not
    need a Properties object unless you are setting a username
    and
    password
    for using a connection from the pool. For example:
    Connection conn =
    myDriver.connect("jdbc:weblogic:pool:myConnectionPool",
    null);
    Note that the Driver.connect() method is used in theseexamples
    instead of
    the DriverManger.getConnection() method. Although you may
    use
    DriverManger.getConnection() to obtain a databaseconnection,
    we
    recommend
    that you use Driver.connect() because this method is not
    synchronized
    and
    provides better performance.
    Note that the Connection returned by connect() is an
    instance
    of
    weblogic.jdbc.pool.Connection.
    Call the close() method on the Connection object when youfinish
    with
    your
    JDBC calls, so that the connection is properly returned to
    the
    pool. A
    good coding practice is to create the connection in a try
    block
    and
    then
    close the connection in a finally block, to make sure the
    connection
    is
    closed in all cases.
    conn.close();
    Mitesh
    Jung Yang wrote:
    I am using WLS7 with SP1.
    I just recently migrated from WLS6.0. When my code tries
    to
    grab a
    connection from the pool, it throws an exception
    java.sql.SQLException: Pool connect failed:
    weblogic.common.ResourceException: Access not allowed
    at
    weblogic.jdbc.pool.Driver.connect(Driver.java:202)
    Does anyone know if anything changed from 6.0 to 7?
    Here is a piece of the code that throws exception.
    Driver driver =
    (Driver)Class.forName("weblogic.jdbc.pool.Driver")
    .newInstance();
    conn =
    driver.connect("jdbc:weblogic:pool:"
    +
    dbName,
    null);
    >>>>>>>>>
    Thanks in advance.

  • How to resolve "getPooledConn: No more connections in the pool for Host"

    I am using the wl9.1 proxy in a SunOne WebServer 6.1 (solaris), and I regularly get this error:
    getPooledConn: No more connections in the pool for Host
    I found several postings with this error, but no reactions on how to solve this.
    in the proxy log, I see this info:
    ================New Request: [wls-app/page.do] =================
    Tue Nov 13 13:05:30 2007 <18781194955530286> CookieName is deprecated and replaced by WLCookieName
    Tue Nov 13 13:05:30 2007 <18781194955530286> Uri as read from rq (request) data structure /wls-app/page.do
    Tue Nov 13 13:05:30 2007 <18781194955530286> Uri after pathTrim /wls-app/page.do
    Tue Nov 13 13:05:30 2007 <18781194955530286> Uri resolved to /wls-app/page.do?page=messages
    Tue Nov 13 13:05:30 2007 <18781194955530286> resolveRequest return code is [0]
    Tue Nov 13 13:05:30 2007 <18781194955530286> URI=[wls-app/page.do?page=messages]
    Tue Nov 13 13:05:30 2007 <18781194955530286> INFO: SSL is not configured
    Tue Nov 13 13:05:30 2007 <18781194955530286> Found cookie from cookie header: wlsappCookie=H5TccKpNWGqfnvv2wG1znjmJkqNhMyhct0h93HDgfGnc7phpkdxW!-1488879380!864729474
    Tue Nov 13 13:05:30 2007 <18781194955530286> Parsing cookie wlsappCookie=H5TccKpNWGqfnvv2wG1znjmJkqNhMyhct0h93HDgfGnc7phpkdxW!-1488879380!864729474
    Tue Nov 13 13:05:30 2007 <18781194955530286> getpreferredServersFromCookie: [-1488879380!864729474]
    Tue Nov 13 13:05:30 2007 <18781194955530286> primaryJVMID: [-1488879380]
    secondaryJVMID: [864729474]
    Tue Nov 13 13:05:30 2007 <18781194955530286> No of JVMIDs found in cookie: 2
    Tue Nov 13 13:05:30 2007 <18781194955530286> Trying to locate Primary or Secondary using SrvrInfo with JVMID: -1488879380
    Tue Nov 13 13:05:30 2007 <18781194955530286> getPreferredFromCookie: Found Primary 10.0.0.102:8514:0
    Tue Nov 13 13:05:30 2007 <18781194955530286> Trying to locate Primary or Secondary using SrvrInfo with JVMID: 864729474
    Tue Nov 13 13:05:30 2007 <18781194955530286> getPreferredFromCookie: Found Secondary 10.0.0.101:8514:0
    Tue Nov 13 13:05:30 2007 <18781194955530286> getPreferredFromCookie: Found 2 servers
    Tue Nov 13 13:05:30 2007 <18781194955530286> attempt #0 out of a max of 5
    Tue Nov 13 13:05:30 2007 <18781194955530286> trying connect to PRIMARY '10.0.0.102'/8514/0
    Tue Nov 13 13:05:30 2007 <18781194955530286> getPooledConn: No more connections in the pool for Host[10.0.0.102] Port[8514] SecurePort[0]
    Tue Nov 13 13:05:30 2007 <18781194955530286> INFO: New NON-SSL URL
    Tue Nov 13 13:05:30 2007 <18781194955530286> Connect returns -1, and error no set to 150, msg 'Operation now in progress'
    Tue Nov 13 13:05:30 2007 <18781194955530286> EINPROGRESS in connect() - selecting
    Tue Nov 13 13:05:30 2007 <18781194955530286> Local Port of the socket is 64242
    Tue Nov 13 13:05:30 2007 <18781194955530286> Remote Host 10.0.0.102 Remote Port 8514
    Tue Nov 13 13:05:30 2007 <18781194955530286> created a new connection to preferred server '10.0.0.102/8514' for '/wls-app/page.do?page=messages', Local port: 64242
    Tue Nov 13 13:05:30 2007 <18781194955530286> WLS info : 10.0.0.102:8514 recycled? 0
    Tue Nov 13 13:05:30 2007 <18781194955530286> Adding header for WLS 'WL-Proxy-Client-Cert: ###
    ---removed client cert info---
    Tue Nov 13 13:10:30 2007 <18781194955530286> *******Exception type [READ_TIMEOUT] (no read after 300 seconds) raised at line 205 of Reader.cpp
    Tue Nov 13 13:10:30 2007 <18781194955530286> caught exception in readStatus: READ_TIMEOUT [os error=0,  line 205 of Reader.cpp]: no read after 300 seconds at line 822
    Tue Nov 13 13:10:30 2007 <18781194955530286> PROTOCOL_ERROR: Backend Server not responding - isRecycled:0
    Tue Nov 13 13:10:30 2007 <18781194955530286> *******Exception type [PROTOCOL_ERROR] (Backend Server not responding) raised at line 842 of URL.cpp
    Tue Nov 13 13:10:30 2007 <18781194955530286> got PROTOCOL_ERROR exception in sendRequest phase at line 1364; Msg: PROTOCOL_ERROR [line 842 of URL.cpp]: Backend Server not responding
    Tue Nov 13 13:10:30 2007 <18781194955530286> request [wls-app/page.do?page=messages] did NOT process successfully..................
    Does anyone know how to resolve this issue ?
    Thanks,
    Cappaert Luc

    We are seeing a similar connection pool error captured in the WL proxy log doing load testing. Is there an answer to this question of how to increase this pool size?
    Fri Jan 16 14:59:02 2009 <535212321359422334> Trying a pooled connection for '191.228.175.226/7003/0'
    Fri Jan 16 14:59:02 2009 <535212321359422334> getPooledConn: No more connections in the pool for Host[191.228.175.226] Port[7003] SecurePort[0]
    Fri Jan 16 14:59:02 2009 <535212321359422334> general list: trying connect to '191.228.175.226'/7003/0 at line 1319 for '/SIT-cccpol/PTGadget/SetCookies.jsp'
    Fri Jan 16 14:59:02 2009 <535212321359422334> INFO: New NON-SSL URL
    Fri Jan 16 14:59:02 2009 <535212321359422334> Connect returns -1, and error no set to 10035, msg 'Unknown error'
    Fri Jan 16 14:59:02 2009 <535212321359422334> EINPROGRESS in connect() - selecting
    Fri Jan 16 14:59:02 2009 <535212321359422334> Local Port of the socket is 2097
    Fri Jan 16 14:59:02 2009 <535212321359422334> Remote Host 191.228.175.226 Remote Port 7003

  • I have a new MAC MINI and I want to install a second monitor.  I have one connected to the HDMI and it works.  I can't get a signal to the other one.  It is connected from the thunderbolt to its HDMI port.  How can I make it work?

    I have a new MAC MINI and I want to install a second monitor.  I have one connected to the HDMI and it works.  I can't get a signal to the other one.  It is connected from the thunderbolt to its HDMI port.  How can I make it work?

    Could be a bad cable or bad Thunderbolt port.
    You have 90 days of free telephone support on a new device. You can call them at 1-800-MY-APPLE. Have your Mini's serial number handy
    You can also make an appointment at the Genius Bar of an Apple store.
      Apple Retail Store - Genius Bar

  • How do I configure the number of connection in the pool for webservice axis

    Hi
    How do I configure the number of connection in the pool using xml.
    We are using axis 1.4 and commons-httpclient-3.0.1Is there any way we can do it using the client-config.wsdd file.
    We do not want to do any modification in the code for this.
    Is it possible to set socket timeout also in the wsdd file.
    Your resolution will be really helpful for us.
    Thank You
    Ottran

    Export them at a smaller size:
    File -> Export - not the options at 'Size'
    Regards
    TD

  • How to delete unwanted transfer rules from the pool

    Hi experts,
    I want to know how to delete the unwanted transfer rules from the pool on the right hand side of the transfer rules. I realized I don't need them. I get a warning icon with them sitting in the pool.

    You can't delete it yourself.  All you can do is hide it so it doesn't appear on your purchased list, as explained here: iTunes Store: Hiding and unhiding purchases.  iTunes store support may be able to do this for you if you contact them by filling out this form: https://ssl.apple.com/emea/support/itunes/contact.html.

  • I am unable to update my apps now because I receive a message that I am not connected to the Canadian store.   How do I switch from the US store to the Canadian store?

    RI am unable to update my apps now because I receive a message that I am not connected to the Canadian store.   How do I switch from the US store to the Canadian store?

    Click here and follow the instructions to change the iTunes Store country.
    (85848)

  • WebLogic proxy plugin: getPooledConn: No more connections in the pool

    Hi,
    We have weblogic proxy plugin installed in Sun One web server. but frequently we are getting following errors in proxy log:
    <1670612410085901> attempt #0 out of a max of 5
    <1670612410085901> Trying a pooled connection for '<IP>/<port>/<port>'
    <1670612410085901> getPooledConn: No more connections in the pool for Host [<IP>] Port[<port>] SecurePort[<port>]
    Can anybody please tell how this proxy plugin manages connection pools? I don't find any minimum / maximum number of conection to mention anywhere or how exactly it works?

    Try increasing the "AcceptBackLog" settings on the weblogic server and then verify for any changed behavior.
    Raise the Accept Backlog value from the default by 25 percent. Continue increasing the value by 25 percent until the messages cease to appear.
    Link :[http://e-docs.bea.com/wls/docs81/perform/WLSTuning.html#1136287]

  • How do i connect to the internet with apple tv

    how do i connect to the internet with apple tv

    Ethernet cable from your router, or configure wifi in Settings.

  • How to add new increase the pool rather then trowing a error.

    Im trying to build a game and after many attempts and hours of thinking i did manage to create something that looks like a game.The problem now is that there are so many objects that are constantly creating and removing from the stage. that the game is starting to slow down(it is laggy.).So i have searched the net and understood that i will have to use a "Object pooling Method" rather than creating and removing the objects after i dont have any use of them any more, if i want to make the game more memory friendly.
    At first i didnt want to use this method (object pooling) ,but after a while i understood that i dont have a lot of options.So i started to search how and why and how.
    Yet in this example im just trying this for the bullets (for now) cause if i can do it for them, i can manage to do it for other objects and projects (it will be simple for me to understand what is happening ., what am i doing , when do i add an existing object from the pool and when im creating a new one(when there are non left, things like this)
    i did copy some part of this code from a tutorial that i found in the net but , from then i dont know how to increase the pool rather than throwing this error. I did try to create a new object or to increase the pool length but .... it is not working so im sure that im not doing something the way it must be done.
    so i have this so far :
    its a "simple" pool that calls a simple shape class (circle dot) and gives that to the main stage when the "SPACE" button is pressed
    package
              import flash.display.Sprite;
              import flash.events.Event;
              import flash.display.Bitmap;
              import flash.display.BitmapData;
              import flash.display.Shape;
              public class Bullet extends Sprite{
                        public var  rectangle:Shape = new Shape();
                        public function Bullet(){
                                  super();
                                  addEventListener(Event.ADDED_TO_STAGE, init);
                                  graphics.beginFill(0xFF0000);
                                  graphics.drawRect(-5, -5, 10,10);
                                  graphics.endFill();
                        private function init(event:Event):void{
    the SpritePool where i cant figure out how to replace the throw new error with some new code that will increase the pool
    package {
              import flash.display.DisplayObject;
              public class SpritePool {
                        private var pool:Array;
                        private var counter:int;
                        public function SpritePool(type:Class, len:int) {
                                  pool = new Array();
                                  counter = len;
                                  var i:int = len;
                                  while (--i > -1) {
                                            pool[i] = new type();
                        public function getSprite():DisplayObject {
                                  if (counter > 0) {
                                            return pool[--counter];
                                  } else {
                                            throw new Error("You exhausted the pool!");
                        public function returnSprite(s:DisplayObject):void {
                                  pool[counter++] = s;
    and the Game class (the documents class)
    package {
              import flash.ui.Keyboard;
              import flash.display.Sprite;
              import flash.events.Event;
              import flash.events.KeyboardEvent;
              import flash.display.Bitmap;
              import flash.display.BitmapData;
              import flash.display.Shape;
              public class Game extends Sprite {
                        private var ship:Shape;
                        private var bullets:Array;
                        private var pool:SpritePool;
                        public function Game() {
                                  Assets.init();
                                  addEventListener(Event.ADDED_TO_STAGE, init);
                        private function init(event:Event):void {
                                  pool = new SpritePool(Bullet,10);
                                  bullets = new Array();
                                  ship = new Shape();
                                  ship.graphics.beginFill(0xFF00FF);
                                  ship.graphics.drawRect(0,0, 60, 60);
                                  ship.graphics.endFill();
                                  ship.x = stage.stageWidth / 2 - ship.width / 2;
                                  ship.y = stage.stageHeight - ship.height;
                                  addChild(ship);
                                  stage.addEventListener(KeyboardEvent.KEY_DOWN, onDown);
                                  addEventListener(Event.ENTER_FRAME, loop);
                        private function onDown(event:KeyboardEvent):void {
                                  if (event.keyCode == Keyboard.SPACE) {
                                            var b:Bullet = pool.getSprite() as Bullet;
                                            b.x = ship.x + ship.width / 2;
                                            b.y = ship.y;
                                            addChild(b);
                                            bullets.push(b);
                                            trace("Bullet fired");
                        private function loop(event:Event):void {
                                  for (var i:int=bullets.length-1; i>=0; i--) {
                                            var b:Bullet = bullets[i];
                                            b.y -=  10;
                                            if (b.y < 0) {
                                                      bullets.splice(i, 1);
                                                      removeChild(b);
                                                      pool.returnSprite(b);
                                                      trace("Bullet disposed");
    any suggestions/help how to do it

    To put you on the path (the errors/events needs formalization), here would be a quick example. Your pool class:
    package
              import flash.display.DisplayObject;
              public class SpritePool
                        private var pool:Array;
                        private var counter:int;
                        private var classRef:Class;
                        // public get to know what's left in the pool
                        public function get availableObjects():int
                                  return counter;
                        public function SpritePool(type:Class, len:int)
                                  classRef = type;
                                  pool = new Array();
                                  counter = len;
                                  var i:int = len;
                                  while (--i > -1)
                                            pool[i] = new classRef();
                        public function getSprite():DisplayObject
                                  if (counter > 0)
                                            return pool[--counter];
                                  else
                                            throw new Error("PoolExhausted");
                        public function returnSprite(s:DisplayObject):void
                                  pool[counter++] = s;
                        public function increasePool(amount:int):void
                                  counter += amount;
                                  while (--amount > -1)
                                            pool.push(new classRef());
                        public function decreasePool(amount:int):void
                                  if (counter >= amount)
                                            counter -= amount;
                                            pool.splice(counter - amount,amount);
                                  else
                                            throw new Error("PoolDecreaseFail");
    Now you'd need to be catching those errors. Again, the errors should be formalized or you could use events by extending IEventDispatcher. I kept it simple.
    Here would be the simple Bullet class I'm using:
    package
              import flash.display.Sprite;
              public class Bullet extends Sprite
                        private var bullet:Sprite;
                        public function Bullet():void
                                  var bullet:Sprite = new Sprite();
                                  bullet.graphics.beginFill(0xFF0000,1);
                                  bullet.graphics.drawCircle(-5,-5,10);
                                  bullet.graphics.endFill();
                                  addChild(bullet);
    Just draws a red circle just to visualize it..
    Here would be a full example of using it. It will import both of these classes (saved as SpritePool.as and Bullet.as in the same folder). Paste this in the actions panel on frame 1:
    import SpritePool;
    import Bullet; // a simple red 10px circle
    import flash.display.Sprite;
    import flash.utils.setTimeout;
    // fill the pool, swim trunks optional
    var pool:SpritePool = new SpritePool(Bullet, 10);
    // grab some objects from the pool
    // array of currently held objects
    var myBullets:Array = new Array();
    while (pool.availableObjects > 0)
              myBullets.push(pool.getSprite());
    // display in random positions
    for (var i:int = 0; i < myBullets.length; i++)
              addChild(myBullets[i]);
              // position
              myBullets[i].x = int(Math.random()*stage.stageWidth);
              myBullets[i].y = int(Math.random()*stage.stageHeight);
    trace("myBullets has " + myBullets.length + " bullets! pool has " + pool.availableObjects + " left.");
    // now I want one more, but I should check for errors
    try
              // fail, none left!
              myBullets.push(pool.getSprite());
    catch (e:*)
              // this should be a custom event, but for speed, quick and dirty
              if (e == 'Error: PoolExhausted')
                        trace("D'oh no more bullets! I need more!");
                        pool.increasePool(10);
                        trace("Added 10 more, now available in pool " + pool.availableObjects);
    // try to reduce the pool by 15, which should error
    try
              pool.decreasePool(15);
    catch (e:*)
              // again should be a formal error
              if (e == 'Error: PoolDecreaseFail')
                        trace("Oops, can't reduce pool by 15! Let's trim all extras, available is " + pool.availableObjects);
                        // we know it'll work, no error checking
                        pool.decreasePool(pool.availableObjects);
                        trace("Left in pool: " + pool.availableObjects);
    // now lets wait 5 seconds and remove it all back to the pool
    setTimeout(ReturnToPool,5000);
    function ReturnToPool():void
              // now let's just return all the objects to the pool
              while (myBullets.length > 0)
                        removeChild(myBullets[myBullets.length - 1]);
                        pool.returnSprite(myBullets.pop());
              // now check the pool, should have 10
              trace("Amount of bullets in use " + myBullets.length + ", in pool " + pool.availableObjects);
    For ease you can just download my example source (saved down to CS5).
    Anything from here is just symantics. For example instead of throwing an error because the pool is too small you could simply increase the pool by a fixed amount yourself and return the objects requested.
    To keep objects as low as possible you could use a timer to measure the amount of objects in use over a duration and reduce the pool appropriately, knowing the pool will grow as it needs.
    All of this is just to avoid unnecessary object creation.
    BTW here's my trace which should match yours:
    myBullets has 10 bullets! pool has 0 left.
    D'oh no more bullets! I need more!
    Added 10 more, now available in pool 10
    Oops, can't reduce pool by 15! Let's trim all extras, available is 10
    Left in pool: 0
    (after 5 seconds)
    Amount of bullets in use 0, in pool 10

  • HT1386 The first time I synced my iphone with my mac, I didn't realize that all of my photos from iphoto would transfer over to the phone.   Now, I need to remove some, as they are taking up too much space.  I cannot figure out how to remove them from the

    The first time I synced my iphone 4 with my mac, I didn't realize that all of my photos from the iphoto library would transfer over to the phone (more than 3,000).   Now, I need to remove some, as they are taking up too much space.  I cannot figure out how to remove them from the phone.  I tried to uncheck boxes and sync again, but I get a message that there is no room on the iphone.  I've read as many articles as I can find, but still cannot manage this.  Thanks for any help.

    Open itunes, connect iphone, select what you want, sync

  • I have a new time capsule (replace my old time capsule).  I want to erase my old one.  My computer does not see the old one anymore, how do I connect it (the old TC is not connected to modem)

    I have a new time capsule (replace my old time capsule).  I want to erase my old one.  My computer does not see the old one anymore, how do I connect it (the old TC is not connected to modem).  I want to erase it and then use it as either a second hard drive (sired/sirelesly?) or as a hard drive/bridge.  So,
    1.  why doesn't my cmputer see the old TC
    2  once i have solved that, how do I erase the old one
    3.  Can I use the old one as a supplemental hard drive
         a.  wired?
         b. wirelessly?
    4.  Can I use the old one as a range extender?
    I know .. a lot of questions but I would appreciate any help.
    Thanks

    sgetraer wrote:
    I have a new time capsule (replace my old time capsule).  I want to erase my old one.  My computer does not see the old one anymore, how do I connect it (the old TC is not connected to modem).  I want to erase it and then use it as either a second hard drive (sired/sirelesly?) or as a hard drive/bridge.  So,
    1.  why doesn't my cmputer see the old TC
    2  once i have solved that, how do I erase the old one
    3.  Can I use the old one as a supplemental hard drive
         a.  wired?
         b. wirelessly?
    4.  Can I use the old one as a range extender?
    I know .. a lot of questions but I would appreciate any help.
    Thanks
    1. Because it is either the same IP as the new one or hidden by being plugged in as a second router.
    To access it, isolate one computer from the existing network and plug it directly by ethernet to a lan port of the TC. Use the erase function in the TC to remove all the content of the hard disk.
    Then go to the internet tab, connection sharing and select off bridged. You can then reconnect the TC to the network.. and the computer as well. The TC will act as bridged device.. getting IP from the main router and should then appear correctly in Airport utility.
    2. I covered in 1. But you just go in airport utility manual setup. disk, and you will see the erase function. You can also set it to bridge and leave the erase until you put it back in the network.. but be careful you erase the right one.
    3. You can use the old TC via wired or wireless.. although I would always stick to wired connection if possible. Speed on wireless is 10x worse than wired.
    Also note the reliability goes down dramatically after 2 years.. a series 1 3 years old or more is ebay fodder unless you want to repair it. Do not trust vital data to it.. when it dies you will have issues recovering it.
    4. Yes, all apple routers will function as wireless extenders. when you do that the ethernet ports turn off so it becomes a purely wireless device.. strange apple decision on what you want to use your TC for.

  • Plugin w/IIS and 'No more connections in the pool' msg in logs

    I am using the proxy plugin with IIS 5.0. Its fronts 2 weblogic instances that require sticky as there is session information that is not replicated (too large to be replicated).
    I am seeing occasions when the request is suddently sent to the wrong server, which of course causes application failure, since the session does not exist there. Whenever this occurs I see the following message in the proxy plugin log (with DEBUG on and set to ALL).
    Note: This request occurs less than one second after previous requests from the same client so there should not be timeout related issues.
    I would really appreciate if any knows why the 2 logs entries below exist, what they mean, and what could be the cause:
    <p>
    <i>
    Wed Aug 31 16:09:02 2005 getPooledConn: No more connections in the pool for Host[sasuprdcce03.cce.hp.com] Port[12302] SecurePort[12302]
    <br>
    Wed Aug 31 16:09:02 2005 Connection refused, error = 10022</i>
    <p>
    The server was in fact up and processing requests and was not backlogged, and the proxy did actually immediately reconnect for the same request:
    <p><i>Wed Aug 31 16:09:02 2005 general list: created a new connection to 'sasuprdcce03.cce.hp.com'/12302 for '/impressions_wtp/images/menu_tabs/tab_top_right.gif', Local port: 4427</i>
    <p>
    However, when the new connection above occurs the Cookie has changed.
    Thank you,
    Darryl

    Did you find a fix for this issue?

  • GetPooledConn: No more connections in the pool for Host

    We are receiving these types of errors in our NSAPI plugin debug logs:
    Mon Dec 15 09:29:29 2008 <267131229354969494> trying connect to PRIMARY '172.16.81.45'/7141/7142
    Mon Dec 15 09:29:29 2008 <267131229354969494> getPooledConn: No more connections in the pool for Host[172.16.81.45] Port[7141] SecurePort[7142]
    Mon Dec 15 09:29:29 2008 <267131229354969494> Connect returns -1, and error no set to 150, msg 'Operation now in progress'
    Mon Dec 15 09:29:29 2008 <267131229354969494> EINPROGRESS in connect() - selecting
    How can we increase the number of connections in the pool so that these don't happen?

    We are seeing a similar connection pool error captured in the WL proxy log doing load testing. Is there an answer to this question of how to increase this pool size?
    Fri Jan 16 14:59:02 2009 <535212321359422334> Trying a pooled connection for '191.228.175.226/7003/0'
    Fri Jan 16 14:59:02 2009 <535212321359422334> getPooledConn: No more connections in the pool for Host[191.228.175.226] Port[7003] SecurePort[0]
    Fri Jan 16 14:59:02 2009 <535212321359422334> general list: trying connect to '191.228.175.226'/7003/0 at line 1319 for '/SIT-cccpol/PTGadget/SetCookies.jsp'
    Fri Jan 16 14:59:02 2009 <535212321359422334> INFO: New NON-SSL URL
    Fri Jan 16 14:59:02 2009 <535212321359422334> Connect returns -1, and error no set to 10035, msg 'Unknown error'
    Fri Jan 16 14:59:02 2009 <535212321359422334> EINPROGRESS in connect() - selecting
    Fri Jan 16 14:59:02 2009 <535212321359422334> Local Port of the socket is 2097
    Fri Jan 16 14:59:02 2009 <535212321359422334> Remote Host 191.228.175.226 Remote Port 7003

Maybe you are looking for

  • Duplicate Cell Contents n-times based on value in neighboring cell?

    I have a sheet/table that contains ~150 rows of 2 columns: A B COUNT CONTENT I am looking for a way to duplicate each CONTENT in a new sheet/table COUNT times, and do this for each row. For example A B 2 RED 1 BLUE 3 GREEN Would give me a sheet/table

  • TS4020 Having trouble down loading free apps because apple says error in billing? Please help

    Had old account with apple credit card information is correct. When trying to down load free apps it error. Pops up! Please help me clear this up

  • Data level Security in SSO

    Hi I need to implement Data level Security (OBIEE) in Single Sign On with Apps as Source... Since it is SSO, we have users in the Apps but not in the OBIEE rpd. How to use those responsibility in our rpd and apply filters on the logical columns. I ne

  • Error in writing to tags on eurotherm modbus server

    I have been trying to talk to a Eurotherm 2604 controller through the EurothermModbus server using datasockets. I am able to read tag values but not able to write to some of them although I can write to a few of them. The error message displayed is:

  • SUS on 10.9 server for 10.10 clients?

    Hello everyone. I have a 10.9 server where I go to change the configuration file conf and plist SUS to enable updates to 10.10 client. In plist file keeps me change with the new string for 10.10 while in the conf insert the string to the Darwin 14, I