Replacing local resources with enterprise resources on assignments

Hi,
After migrating our PS2007 environment to 2013 we encountered a severe problem with the Timesheet view, it seems to be corrupt. We decided to move the projects from one 2013 instance to another, we did this by exporting the projetcs to MPP files and the
publishing them to the new insance and we also used the FluentPro migrator 2013 tool. In both situations for each project we get prompted if the local resources should be replaced by the Enterprise resources found on the PS2013 server, we would very much like
that but this feature doesn't seem to work. We have to add the Enterprise resources manually and then replace the local resources one by one on the assignments. Since we have quite some projects with assignments this is undoable. Is this a known issue or are
there perhaps some work arounds?
Rgds, Frank
Frank Jutte Winvision (http://www.winvision.nl) Project Manager / EPM Consultant

Frank,
This is a known issue with import project function. Have you installed latest CU on Project Server as well as Project Pro 2013?
http://www.projectserverhelp.com/Lists/Posts/Post.aspx?ID=211
Thanks Gaurav Wason MCITP, PMP

Similar Messages

  • Project Templates with Enterprise Resources

    I'm using Project Server 2013 ( latets updates installed for both Client and Server)
    I've created a project template and attached this to a project type. My template has enterprise resources speciified. So far so good.
    Now I'm trying to create a project using this template and I'm getting some errors.  (See below)
    As soon as I remove the resources from my template the project creates fine.
    It looks like 'rsResourceCannotAddLocalWithSameNameAsEnterprise'  in the error below means that Project Server looks at the resource in the template and considers the resources in the template always to be a local resources. And of
    course the resource already exists in my enterprise resources and therefore the project creation fails.
    Datasets:
    ProjectDataSet
    Table ProjectResource
    Row:  RES_UID='0bb2c5b5-1716-e311-a1c1-005056992257' PROJ_UID='3121855b-f13b-e311-9f7f-005056991b52'
    Error rsResourceCannotAddLocalWithSameNameAsEnterprise (2058) - column
    RES_UID
    General
    Queue:
    GeneralQueueJobFailed (26000) - ProjectCreate.ProjectAddToMessage. Details: id='26000' name='GeneralQueueJobFailed' uid='353d845c-f13b-e311-9f7f-005056991b52' JobUID='3a21855b-f13b-e311-9f7f-005056991b52' ComputerName='13fdabbe-0ac0-4cca-b382-49d1853aec73'
    GroupType='ProjectCreate' MessageType='ProjectAddToMessage' MessageId='1' Stage='' CorrelationUID='147f4f9c-ae30-b04b-aec7-382a52fa5fdf'. For more details, check the ULS logs on machine
    13fdabbe-0ac0-4cca-b382-49d1853aec73 for entries with JobUID
    3a21855b-f13b-e311-9f7f-005056991b52.
    My questions are:
    Are Enterprise Resources in templates supported?
    Is there a way around this? We're trying to make it easy to select a subset of the enterprise resources available.

    I have experienced this exact same thing and my situation is highly irregular. 
    This is with Project Server 2013.
    I had an EPT with a Project Schedule that had Generic Enterprise Resources assigned and was able to create new projects without problems using the EPT from the New button in the Project Centre in PWA.
    I was creating new projects to test and demonstrate Portfolio Analysis and was able to model Organisational Capacity represented by my Generic Resources and also the Surplus/Deficit element of Resource Constraints on a Portfolio. The Hired Resource Report
    was failing.
    A Service Pack and Cumulative update were applied to the Server and now I cannot create new projects using EPTs that have a project schedule with Generic Enterprise Resources assigned to tasks in the schedule.
    I checked the error message for the Failed and Blocking job in the queue and the GUIDs were for my Generic Enterprise Resources. I deleted the offending Generic Enterprise Resources and then re-created them anew, edited the Project Template to have
    these Generic Enterprise Resources on the Project Team and randomly assigned them to tasks in the schedule to generate a notional demand for work in the Project Template. I then Saved the Template in Project as a new Project Template and edited my EPT
    to reference this new Project Schedule. 
    Same error encountered again.
    Perversely I can open the Template schedule in Project Professional and do Save As and save it as a new project to the Server and that works just fine - the schedule is visible in the Project Centre and I can edit the schedule in both Project Pro and in
    PWA.
    My hunch is that the Cumulative Update and Service Pack which were applied to try and resolve the failing "Hired Resources Report" in Portfolio Analysis, which sadly it didn't resolve - has probably provoked this interesting challenge as it is
    the only material thing to change on the Server during the time that this issue has manifested itself.
    Am I the only one to encounter this?
    Dominic Moss | MAPM Microsoft Certified Technology Specialist | Our Newsletter:
    PM News Project Server Specialists
    Project Server PRIME | Twitter:
    @Twitter | Facebook:
    @Facebook | Linkedin:
    Wellingtone

  • Replacing Oracle OFA with Enterprise Planning and Budget or Hyperion

    I'm looking at replacing OFA with EPB. Does this option still exist or has Oracle
    phased it out?

    Hi,
    Oracle Hyperion Planning is the way forward and is the budgeting and planning tool of choice for Oracle.
    So if you are going to make an investment I would go for Hyperion Planning.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Code for assignment for local and enterprise resource to a task?

    Greetings,
    I have programming in VB.net a code, that assiged a local resource to a task:
    Ass=ActiveProject.Resources.Item(RessNummer).Assignments.Add(t_temp.ID)
    If I use this code with enterprise resource, this error occured:
    "NullReferenceException was unhandled by user code"
    How can I write
    the code
    so that it works for both
    types of resources?
    Thank you!
       Michael

    Hi,
    They should both work the same way. So do you have the Enterprise Resource added to the project? Use the
    Application.EnterpriseResourceGet method to do this.
    Rod Gill
    Author of the one and only Project VBA Book
    www.project-systems.co.nz

  • Converting Local resource to corresponding Enterprise resource using Macro

    Hi Folks,
    Using Macro, we could replace a local resource with an enterprise resource. But what we want to achieve is replacing local res with
    corresponding Enterprise resource. 
    Can anyone help here? Thanks.
    Best Regards,
    Anuja

    Unfortunately it is not just a property wich is required to change the local resource into an enterprise resource. Project will overwrite the local resource's metadata with the enterprise resource metadata (calendar, rate, custom fields...). It could be
    quite complicated to override this process and require a complex coding solution.
    Why not asking the users to first create the project team from the enterprise resource pool, so they'll use from the beginning enterprise resources and will not have the dialog box while saving the project?
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Using Enterprise Resources

    Hi,
      Normally when we add Users as enterprise resources in the project server. Project manager would be able to add the users in project plan after which the user would be able to access PWA to enter time.
      My question is does microsoft project server 2007 has an option where I want to add the user as Enterprise resource but not let the resource log into pwa and enter efforts.Idea is to have resources as enterprise resources in Project plan. Do we have
    any option in Project server to do this. Please advise
    Thanks
    MP

    Hi,
    A resource which is only a resource and not a user (meaning with no valid AD account) cannot log in any way to Project Server (including PWA) thus cannot use any feature like timesheet or project site. 
    Project Server 2010 introduced a feature called "delegation" which allows a user submitting
    a timesheet (or doing any other operation) on behalf of another user. The restriction is that it applies only to users and not resources with no valid account.
    Finally, to do waht you want to do, I'd suggest to use the assignment owner column in MS Project Pro. If a task is assigned to a resource (and not a user), it will not be able to create and submit a timesheet, neither his manager to act of his behalf. But
    if the manager enters his name for the assignment in the assignment owner column in MS Project Pro and publishes the project plan, then he'll receive the assignment in his own timesheet. This feature allows giving a status update and/or asubmitting timesheet
    on behalf of someone who cannot do it for any reason, like for a customer who does not have a CAL (licence).
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, MCP |

  • Why Do I get 0h hours for resources after using Resource Levelling in Project 2010?

    Hi,
    We are using MSProject 2010 and Project Server 2010 with Enterprise resources. All resources on all projects in the enterprise are shared resources. We are finding that after resource levelling is applied to the project some resources are only
    being assigned a fraction of their total availability, and in some cases Project will assign 0 hours to a resource for several consecutive weeks even though the resource has capacity for the week the task is scheduled to start. 
    For example: Let's say we have a task that is scheduled to start on 1-20-14. The task is a 112 hours of effort with no constraints and one resource assigned to it. The resource is available 40 hours per week for the next 4 weeks. After resource
    levelling I would expect Project to assign the resource as follows: 40 hours in week 1, 40 hours the next week and 32 hours the next week, for a total of 112 hours. Instead, Project does not assign the resource to the task until week 4 (even
    though the resource has capacity on the start date of the task) and pushes the finish date out. In some weeks the resource has 0h hours showing in the timephased grid on the Resource Usage sheet.  We have experimented with the levelling settings and it
    does not seem to matter which boxes are checked, but following is our preferred settings:
    1. Levelling Calculations set to Manual
    2. Look for overallocations on a day by day basis
    3. Clear levelling values before levelling is CHECKED
    4. Level entire project is selected.
    5. Levelling order is Priority,Standard
    6. Level only within available slack is CHECKED
    7. Levelling can adjust individual assignments on a task is CHECKED
    8. Levelling can create splits in remaining work is UNCHECKED
    9. Level resources with the proposed booking type is UNCHECKED
    10. Level manually scheduled tasks is CHECKED.
    Does anyone have any ideas about why Project is not using the resource's available capacity?
    Thanks, Judy

    Hi Judy,
    Thanks to give us more detail. But actually if you need to level a resource, it means that this resource is overallocated. In your example, since it is not overallocated on the 12weeks task you mention, it means that it should be assigned on another task.
    If not, there would be no need to perform any resource levelling.
    Concerning the fact that levelling assign resource at 0hr per week, this can be absolutely normal.
    Imagine that you have a resource working at 100% on 2 tasks on the same period. imagine also that there is actual work on one of the 2 tasks. Project will level the resource, meaning that it will move ahead the remaining work of one of the task (depending
    on the levelling parameters). But the actual work will not move, thus between the actual work and the moved-foreward remaining work, the resource will be assign at 0hr by time period on the splitted task.
    Please check all the task of the levelled resource and actual work.
    See in my example below:
    Hope this helps.
    Guillaume Rouyre - MBA, MCP, MCTS

  • Resource Center - Need to change a Local Resource to an Enterprise Resource

    The Resource Record for a resource was accidently deleted.  This resource was still assigned to active project tasks at the time of the delete.  A new Resource Record was created but it has the resource as a Local Resource.  How can I move
    this resource back to the Enterprise Resource Pool?
    As a Local Resource the Assignment Owner field on his assigned tasks are not populating, so he cannot see any tasks on his timesheets.  Also, the resource cannot be assigned to any new project tasks because he cannot be added to the Project Enterprise
    Pool.
    Attempted to remove the Resource Record that was created using Delete Enterprise Objects -> Resources and Users but since the resource is Local and not Enterprise his record is not showing to select it for delete.
    Would the Admin Restore->Enterprise Resource Pool and Calendars functionality put his original record back in place?  I understand only one version of this backup is kept but that should be the version we currently have.  What data might be
    lost using this functionality?  Any chance other users would be adversely impacted?
    We are using Project Pro 2010

    Hi Dennykat,
    As mentionned in your previous post, restoring the resource pool should work, since it is restoring resources with their metadata and with the exact same UID. Thus the deleted and restored enterprise resource should have everything back (assignments, timesheets...).
    Since I never tested such as process, I strongly advice to test it in the dev environment on a simple test case.
    I remember that if also adviced you to recreate the enterprise resource and type in the resource sheet on one of the resource's project the exact enterprise resource name (exact same syntax), so Project should ask you when saving if you want to replace the
    local resource by the enterprise one. Can you confirm that it didn't work?
    Hope this helps.
    Guillaume Rouyre - MBA, MCP, MCTS

  • Register ldap resources with local fs

    Hi,
    I am trying to register the resources for sunone ldap anf get validation error because it can not read confdir on the second node.
    The hastp resource control the vx volumes which it is not global fs but local.
    The only way to solve this is to make the fs global and then register again,
    does anybody know how I can register a resource with local fs?
    pavlos

    Hi,
    I am trying to register the resources for sunone ldap
    anf get validation error because it can not read
    confdir on the second node.
    The hastp resource control the vx volumes which it is
    not global fs but local.
    The only way to solve this is to make the fs global
    and then register again,
    does anybody know how I can register a resource with
    local fs?
    pavlosYou must create a resource SUNW.HAStoragePlus for the mount of local fs. When you register your ldap resource you must specify the dependency beetween ldap reourse and your HAStoragePlus resource.
    scrgadm -a -j <name of ldap resource -t <type> -y <standard property> -x < extension property> -y Resource_dependencies=<Your HAStoragePlus resource>

  • Restore Enterprise Resource Record

    An active Resource was incorrectly deleted from Resource Center.  The record has now been added back but the Resource cannot see any of his projects or tasks on his timesheet.  I believe this is because he was made a Local Resource when
    he was deleted.  How can this Resource be added back to the Enterprise Resource Pool?  When he is restored to the Enterprise Resource Pool will his project/tasks assignments be back or does he need to be assigned to them
    again? 

    Hi Dennykat,
    It has to be tested but here is my thought:
    When deactivating or deleting the enterprise resource, it will be converted in the project plans into a local resource (keeping actual, work...). If you then recreate the resource with the exact same syntax and open the project plans, when publishing, Project
    will detect that the local resource has the same name than an enterprise resource and propose you to replace it. Clicking "YES", it will thus recreate assignments for the enterprise resource, meaning tasks and timesheets.
    This could be tedious since it requires to open and publish every project the resource was assigned to.
    Once more, I haven't tested it.
    Hope this helps.
    Guillaume Rouyre - MBA, MCP, MCTS

  • Please help: deploy Bean with "No resource available" error for M:N relationship

    Hi all,
    I wonder any one comes across with deploying beans with M:N relationship with
    "No resource available".
    I defined the relationship in ejb-jar.xml and dbms in the
    weblogic-cmp-rdbms-jar.xml, but when I deployed the beans I got
    the following error
    ------ Error message-----
    weblogic.common.ResourceException: No resources available at weblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.
    java:568) at weblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.
    java:400) at weblogic.common.internal.ResourceAllocator.reserveNoWait(ResourceAllo
    cator.java:368) at weblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.j
    ava:166) at weblogic.jdbc.common.internal.ConnectionPool.reserveNoWait(Connection
    Pool.java:127) at weblogic.jdbc.common.internal.RmiDataSource.getPoolConnection(RmiData
    Source.java:194) at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSour
    ce.java:219) at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.getConnection(RDBMSP
    ersistenceManager.java:317) at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.createDefaultDBMSTab
    le(RDBMSPersistenceManager.java:1149) at weblogic.ejb20.utils.TableVerifier.verifyTableExistsAndCreateMaybe(Ta
    bleVerifier.java:428) at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.verifyTablesExist(RD
    Unable to deploy EJB: CustomerBean from \ejb:
    Errors encountered ''The Container-Managed Persistence Entity EJB failed while
    creating its SQL Type Map. The error was: Invalid object name 'localcustomer_localsubscription'.
    Severity 16, State 1, Procedure 'IVM_SERVER null', Line 1', 'Error encountered
    while attempting to create Default DBMS Table: 'localcustomer_localsubscription'.
    Error Text: 'weblogic.common.ResourceException: No resource s available'.''
    ---------------End error ----------------------
    ---------------my ejb-jar.xml
    <ejb-jar>
    - <enterprise-beans>
    - <entity>
    <ejb-name>AddressBean</ejb-name>
    <local-home>customer.LocalAddressHome</local-home>
    <local>customer.LocalAddress</local>
    <ejb-class>customer.AddressBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.String</prim-key-class>
    <reentrant>False</reentrant>
    - <cmp-field>
    <field-name>addressID</field-name>
    </cmp-field>
    - <cmp-field>
    <field-name>street</field-name>
    </cmp-field>
    - <cmp-field>
    <field-name>city</field-name>
    </cmp-field>
    - <cmp-field>
    <field-name>zip</field-name>
    </cmp-field>
    - <cmp-field>
    <field-name>state</field-name>
    </cmp-field>
    <primkey-field>addressID</primkey-field>
    </entity>
    - <entity>
    <ejb-name>CustomerBean</ejb-name>
    <local-home>customer.LocalCustomerHome</local-home>
    <local>customer.LocalCustomer</local>
    <ejb-class>customer.CustomerBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.String</prim-key-class>
    <reentrant>False</reentrant>
    <abstract-schema-name>CustomerBean</abstract-schema-name>
    - <cmp-field>
    <field-name>customerID</field-name>
    </cmp-field>
    - <cmp-field>
    <field-name>firstName</field-name>
    </cmp-field>
    - <cmp-field>
    <field-name>lastName</field-name>
    </cmp-field>
    <primkey-field>customerID</primkey-field>
    - <query>
    - <query-method>
    <method-name>findByLastName</method-name>
    - <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </query-method>
    - <ejb-ql>
    - <![CDATA[ SELECT OBJECT(o) FROM CustomerBean AS o
      ]]>
    </ejb-ql>
    </query>
    - <query>
    - <query-method>
    <method-name>findByFirstName</method-name>
    - <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </query-method>
    - <ejb-ql>
    - <![CDATA[ SELECT OBJECT(o) FROM CustomerBean AS o
      ]]>
    </ejb-ql>
    </query>
    </entity>
    - <entity>
    <ejb-name>SubscriptionBean</ejb-name>
    <local-home>customer.LocalSubscriptionHome</local-home>
    <local>customer.LocalSubscription</local>
    <ejb-class>customer.SubscriptionBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.String</prim-key-class>
    <reentrant>False</reentrant>
    <abstract-schema-name>SubscriptionBean</abstract-schema-name>
    - <cmp-field>
    <field-name>type</field-name>
    </cmp-field>
    - <cmp-field>
    <field-name>title</field-name>
    </cmp-field>
    <primkey-field>title</primkey-field>
    - <query>
    - <query-method>
    <method-name>findAllSubscriptions</method-name>
    <method-params />
    </query-method>
    - <ejb-ql>
    - <![CDATA[ SELECT OBJECT(o) FROM SubscriptionBean AS o
      ]]>
    </ejb-ql>
    </query>
    </entity>
    </enterprise-beans>
    - <relationships>
    - <ejb-relation>
    <ejb-relation-name>LocalCustomer-LocalAddress</ejb-relation-name>
    - <ejb-relationship-role>
    <ejb-relationship-role-name>LocalCustomer-Has-LocalAddresss</ejb-relationship-role-name>
    <multiplicity>one</multiplicity>
    - <relationship-role-source>
    <ejb-name>CustomerBean</ejb-name>
    </relationship-role-source>
    - <cmr-field>
    <cmr-field-name>addresses</cmr-field-name>
    <cmr-field-type>java.util.Collection</cmr-field-type>
    </cmr-field>
    </ejb-relationship-role>
    - <ejb-relationship-role>
    <ejb-relationship-role-name>LocalAddress-Has-LocalCustomer</ejb-relationship-role-name>
    <multiplicity>many</multiplicity>
    - <relationship-role-source>
    <ejb-name>AddressBean</ejb-name>
    </relationship-role-source>
    - <cmr-field>
    <cmr-field-name>customer</cmr-field-name>
    </cmr-field>
    </ejb-relationship-role>
    </ejb-relation>
    - <ejb-relation>
    <ejb-relation-name>LocalCustomer-LocalSubscription</ejb-relation-name>
    - <ejb-relationship-role>
    <ejb-relationship-role-name>LocalCustomers-Have-LocalSubscriptions</ejb-relationship-role-name>
    <multiplicity>many</multiplicity>
    - <relationship-role-source>
    <ejb-name>CustomerBean</ejb-name>
    </relationship-role-source>
    - <cmr-field>
    <cmr-field-name>subscriptions</cmr-field-name>
    <cmr-field-type>java.util.Collection</cmr-field-type>
    </cmr-field>
    </ejb-relationship-role>
    - <ejb-relationship-role>
    <ejb-relationship-role-name>LocalSubscriptions-Have-LocalCustomers</ejb-relationship-role-name>
    <multiplicity>many</multiplicity>
    - <relationship-role-source>
    <ejb-name>SubscriptionBean</ejb-name>
    </relationship-role-source>
    - <cmr-field>
    <cmr-field-name>customers</cmr-field-name>
    <cmr-field-type>java.util.Collection</cmr-field-type>
    </cmr-field>
    </ejb-relationship-role>
    </ejb-relation>
    </relationships>
    - <assembly-descriptor>
    - <container-transaction>
    - <method>
    <ejb-name>AddressBean</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    - <container-transaction>
    - <method>
    <ejb-name>CustomerBean</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    - <container-transaction>
    - <method>
    <ejb-name>SubscriptionBean</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    ------------------End of ejb-jar.xml---------------
    Please help
    Thanks in advance
    Mike

    Hi Gaurav,
    Other applications used the same the datasource, which I used for this application,
    are running fine.
    I think there is some bug in the wlserver 6.1 to create the join table. I think
    it is the time I should ask the bea wlserver 6.1.
    Mike
    "Gaurav Khanna" <[email protected]> wrote:
    This implies that there are no database connections available. You need
    to
    check if you can log into your database instance. By default there are
    30
    connections specified for an instance in Oracle. FYI.
    "Mike" <[email protected]> wrote in message
    news:[email protected]...
    Hi all,
    I wonder any one comes across with deploying beans with M:Nrelationship with
    "No resource available".
    I defined the relationship in ejb-jar.xml and dbms in the
    weblogic-cmp-rdbms-jar.xml, but when I deployed the beans I got
    the following error
    ------ Error message-----
    weblogic.common.ResourceException: No resources available atweblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.
    java:568) atweblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.
    java:400) atweblogic.common.internal.ResourceAllocator.reserveNoWait(ResourceAllo
    cator.java:368) atweblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.j
    ava:166) atweblogic.jdbc.common.internal.ConnectionPool.reserveNoWait(Connection
    Pool.java:127) atweblogic.jdbc.common.internal.RmiDataSource.getPoolConnection(RmiData
    Source.java:194) atweblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSour
    ce.java:219) atweblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.getConnection(RDBMSP
    ersistenceManager.java:317) atweblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.createDefaultDBMSTab
    le(RDBMSPersistenceManager.java:1149) atweblogic.ejb20.utils.TableVerifier.verifyTableExistsAndCreateMaybe(Ta
    bleVerifier.java:428) atweblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.verifyTablesExist(RD
    Unable to deploy EJB: CustomerBean from \ejb:
    Errors encountered ''The Container-Managed Persistence Entity EJB failedwhile
    creating its SQL Type Map. The error was: Invalid object name'localcustomer_localsubscription'.
    Severity 16, State 1, Procedure 'IVM_SERVER null', Line 1', 'Errorencountered
    while attempting to create Default DBMS Table:'localcustomer_localsubscription'.
    Error Text: 'weblogic.common.ResourceException: No resource savailable'.''
    ---------------End error ----------------------
    ---------------my ejb-jar.xml
    <ejb-jar>
    - <enterprise-beans>
    - <entity>
    <ejb-name>AddressBean</ejb-name>
    <local-home>customer.LocalAddressHome</local-home>
    <local>customer.LocalAddress</local>
    <ejb-class>customer.AddressBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.String</prim-key-class>
    <reentrant>False</reentrant>
    - <cmp-field>
    <field-name>addressID</field-name>
    </cmp-field>
    - <cmp-field>
    <field-name>street</field-name>
    </cmp-field>
    - <cmp-field>
    <field-name>city</field-name>
    </cmp-field>
    - <cmp-field>
    <field-name>zip</field-name>
    </cmp-field>
    - <cmp-field>
    <field-name>state</field-name>
    </cmp-field>
    <primkey-field>addressID</primkey-field>
    </entity>
    - <entity>
    <ejb-name>CustomerBean</ejb-name>
    <local-home>customer.LocalCustomerHome</local-home>
    <local>customer.LocalCustomer</local>
    <ejb-class>customer.CustomerBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.String</prim-key-class>
    <reentrant>False</reentrant>
    <abstract-schema-name>CustomerBean</abstract-schema-name>
    - <cmp-field>
    <field-name>customerID</field-name>
    </cmp-field>
    - <cmp-field>
    <field-name>firstName</field-name>
    </cmp-field>
    - <cmp-field>
    <field-name>lastName</field-name>
    </cmp-field>
    <primkey-field>customerID</primkey-field>
    - <query>
    - <query-method>
    <method-name>findByLastName</method-name>
    - <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </query-method>
    - <ejb-ql>
    - <![CDATA[ SELECT OBJECT(o) FROM CustomerBean AS o
    ]]>
    </ejb-ql>
    </query>
    - <query>
    - <query-method>
    <method-name>findByFirstName</method-name>
    - <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </query-method>
    - <ejb-ql>
    - <![CDATA[ SELECT OBJECT(o) FROM CustomerBean AS o
    ]]>
    </ejb-ql>
    </query>
    </entity>
    - <entity>
    <ejb-name>SubscriptionBean</ejb-name>
    <local-home>customer.LocalSubscriptionHome</local-home>
    <local>customer.LocalSubscription</local>
    <ejb-class>customer.SubscriptionBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.String</prim-key-class>
    <reentrant>False</reentrant>
    <abstract-schema-name>SubscriptionBean</abstract-schema-name>
    - <cmp-field>
    <field-name>type</field-name>
    </cmp-field>
    - <cmp-field>
    <field-name>title</field-name>
    </cmp-field>
    <primkey-field>title</primkey-field>
    - <query>
    - <query-method>
    <method-name>findAllSubscriptions</method-name>
    <method-params />
    </query-method>
    - <ejb-ql>
    - <![CDATA[ SELECT OBJECT(o) FROM SubscriptionBean AS o
    ]]>
    </ejb-ql>
    </query>
    </entity>
    </enterprise-beans>
    - <relationships>
    - <ejb-relation>
    <ejb-relation-name>LocalCustomer-LocalAddress</ejb-relation-name>
    - <ejb-relationship-role>
    <ejb-relationship-role-name>LocalCustomer-Has-LocalAddresss</ejb-relationshi
    p-role-name>
    <multiplicity>one</multiplicity>
    - <relationship-role-source>
    <ejb-name>CustomerBean</ejb-name>
    </relationship-role-source>
    - <cmr-field>
    <cmr-field-name>addresses</cmr-field-name>
    <cmr-field-type>java.util.Collection</cmr-field-type>
    </cmr-field>
    </ejb-relationship-role>
    - <ejb-relationship-role>
    <ejb-relationship-role-name>LocalAddress-Has-LocalCustomer</ejb-relationship
    -role-name>
    <multiplicity>many</multiplicity>
    - <relationship-role-source>
    <ejb-name>AddressBean</ejb-name>
    </relationship-role-source>
    - <cmr-field>
    <cmr-field-name>customer</cmr-field-name>
    </cmr-field>
    </ejb-relationship-role>
    </ejb-relation>
    - <ejb-relation>
    <ejb-relation-name>LocalCustomer-LocalSubscription</ejb-relation-name>
    - <ejb-relationship-role>
    <ejb-relationship-role-name>LocalCustomers-Have-LocalSubscriptions</ejb-rela
    tionship-role-name>
    <multiplicity>many</multiplicity>
    - <relationship-role-source>
    <ejb-name>CustomerBean</ejb-name>
    </relationship-role-source>
    - <cmr-field>
    <cmr-field-name>subscriptions</cmr-field-name>
    <cmr-field-type>java.util.Collection</cmr-field-type>
    </cmr-field>
    </ejb-relationship-role>
    - <ejb-relationship-role>
    <ejb-relationship-role-name>LocalSubscriptions-Have-LocalCustomers</ejb-rela
    tionship-role-name>
    <multiplicity>many</multiplicity>
    - <relationship-role-source>
    <ejb-name>SubscriptionBean</ejb-name>
    </relationship-role-source>
    - <cmr-field>
    <cmr-field-name>customers</cmr-field-name>
    <cmr-field-type>java.util.Collection</cmr-field-type>
    </cmr-field>
    </ejb-relationship-role>
    </ejb-relation>
    </relationships>
    - <assembly-descriptor>
    - <container-transaction>
    - <method>
    <ejb-name>AddressBean</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    - <container-transaction>
    - <method>
    <ejb-name>CustomerBean</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    - <container-transaction>
    - <method>
    <ejb-name>SubscriptionBean</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    ------------------End of ejb-jar.xml---------------
    Please help
    Thanks in advance
    Mike

  • Project Server 2010 - Active Directory Enterprise Resource Pool Synchronization limitations

    Greetings again.
    I have a quick question about the limitations of Active Directory Enterprise Resource Pool Synchronization.  Specifically, what has your experience
    been with extremely large numbers of users (10k plus).  Is anyone aware of a
    practical limit of users in your AD group you would recommend when using the
    Schedule Synchronization feature on a nightly or weekly basis?
    There is a caveat to this question however.  The client has decided (perhaps for some misinformed reasons) to allow access for every user, to every
    project site, within their PWA environment.  They’ve selected the View Project Site option within the
    Categories for the Team Members PWA Group for which 90% of their intended users reside.  So when we ran a couple test syncs in DEV with a smaller AD group of about 8,000 users, the sync understandably
    lasted upwards of 18 hours.  Obviously unacceptable for a PROD environment on a nightly basis and not necessarily ideal for a weekly sync either.
    Experience in addition to documents like these, “Best
    practices for managing a large number of resources in Project Server 2010” tell me that we are way over the practical limit of a scheduled resource pool synchronization...IF
    the client really desires that all users access all their sites.  But before I submit my recommendations, I wanted to check with the community just in case others may have found a way to synchronize large numbers of users (10k plus) on a nightly or weekly
    basis, within a reasonable time frame AND allowed all users to access all sites within PWA.
    What do you think?
    As always, thanks for your help.
    Chris Addis - MCTS

    Hello Hrishi.
    My delayed response has been due to a large amount of testing we have been performing on this particular topic.  Here is an update, please feel free to provide feedback.
    We went back to testing and spent more time reviewing the documents: 
    Best practices for managing a large number of resources in Project Server 2010 and
    SharePoint Server 2010 capacity management: Software boundaries and limits.  Our team interpreted those documents as saying, 1,000 security
    scopes per site is a recommended limit.  It does not say it’s a hard limit, just a recommended limit.  “When the recommended unique security scope boundaries are exceeded, performance issue can occur.”
    So we decided to perform some tests (31 in total) to try and get a gage of what we are seeing.
    We needed to establish a baseline first.  So we performed a series of 23 Active Directory Resource Pool Synchronizations with various settings in a clean, Out of the Box, environment in order to see some consistent numbers.  Here is it’s summary:
    Our AD group of 8,000 users took about 32 minutes, on average, every time to sync.  The difference between the first sync and last sync differed only by 1-3 minutes.
    Adding 40 project sites increased the average sync time from 32 to 120 minutes.
    Adding 100 users to each of those 40 project sites, did not increase the sync times.
    One setting (identified at this time) reduced the synchronization time.  It was the
    Project Site Permissions check box found within the Project Web App > Server Settings > Project Site Provisioning Settings area.  By deselecting this check box we reduced or synchronization time back to the 32 minute
    average.
    The View Project Site check box within the Project Web App > Server Settings > Manage Groups > Team Members group had no apparent effect on the sync times besides what we had gleaned from the Microsoft documentation.
    Naturally, this left us with a problem.  As I’m sure you know, by deselecting the check box (Project Site Permissions), our project sites are now (figuratively speaking) orphans with no connection to the parent site.  This generates
    a new set of issues.  For example:
    Newly created project sites cannot be accessed by the owner and team members.  They will require someone like the farm admin to come in behind them and add the intended users to the project site along with their required permissions.
    All current and futures sites will no longer have users added via the standard method of building a team and publishing the project, but will have to be added manually.
    You can use the Synchronize option found within Project Web App > Server Settings > Project Sites page, but that kinda defeats the purpose.  It would require constant updating on a per site basis to keep up with
    PM changes.  Not very sensible, but it does work.
    With this baseline information, we moved our tests into our DEV environment which somewhat mimics our PROD environment.  This environment has 352 project sites and we performed 8 tests.  This is where we had some large sync time numbers. 
    Here is the DEV test summary:
    With the Project Site Permissions check box cleared, our AD group of 8,000 users took on average 30 minutes to sync.  This was in line with our baseline times.  With the exception of one test sync that took 99 minutes to complete. 
    That anomaly is acquiescent with what I’ve seen over the years.  Sometimes syncs do some unusual things.
    With the Project Site Permissions check box selected, our AD group of 8,000 users took on average 690 minutes (11.5 hours) to sync.  Unacceptable of course.
    So here’s what we’ve learned when dealing with extremely large numbers of active directory users in your Resource Pool sync:
    We did not see a decrease in subsequent sync times after the initial Active Directory Resource Pool Synchronization as some might expect.
    Our attempt to decrease sync time via the option of removing the View Project Sites was not successful.  (Unless we interpreted Microsoft's document incorrectly.)
    However, our interpretation of the recommended software boundaries and limits of SharePoint Server 2010 as it pertains to security scopes per site at 1,000, appears to be correct.
    Using the option of clearing the Project Site Permissions does produce a reduction in AD sync time, but at a cost segregating your project sites and thus the creation of new processes of maintaining them.
    I’ll remind others that these results are particular to our environments, there may still be exceptions yet to discover.  Others may see numbers contrary to ours.
    The biggest surprise to some members on our team (myself excluded) was that we did not see a reduced sync time after any of our initial syncs.  Some are under the impression that after your initial sync, you should see reduced sync times.  I haven’t
    found that to be the absolute case in all situations, just in some situations.  The reason for this still eludes me.  Any thoughts would be appreciated.
    I’ll let this sit a bit longer, but if no one disagrees with the results, I think we have our answer:
    The number of project sites directly affects your Active Directory Resource Pool Synchronizations if you are using the
    Project Site Permissions option.  If you plan on synchronizing over 1,000 users
    and you have a large number of project sites, proceed with the knowledge that you may have performance issues and long sync times.
    As always, I’d love to hear from you or others just in case I’m missing something.
    Chris Addis - MCTS

  • Microsoft sql client deadlocked on lock resources with another process

    Hi
    I wrote a forecasting report for a customer which creates an excel spreadsheet with the information
    Depending on how they run the report it can take between 5 to 15 minutes to run
    We have just upgraded the customer to SAP 8.8 PL10 and Microsoft SQL Server 2008 and they seem to be getting an error -
    Microsoft sql client deadlocked on lock resources with another process .......
    The error seems intermittent, they may get the error once and the next time they run it, it is fine.
    I have never seen this error before and they never had it before on SAP 2005
    Can anyone suggest anything please?
    Thanks
    Regards Andy

    Hi Andy,
    I was having the same problem. I'm gonna tell you what i did.
    My query usually takes from 10 to 15 minutes to show results. That long time also block all transaction in the database.
    I was reading about some techniques to improve queries performance. Some of the tips are:
    1. Review indexes in the table you are querying
    2. Use Views
    3. Avoid cursors
    4. Archive old data
    5. Use the correct transaction isolation level
    The last one, was the tip that helped me to avoid the block in the database.
    By default the isolation level in SQL Server is Read Commited, that explains why the database block some transactions. For example, if you have a query that take data from JDT1 table and it takes several minutes to show the results, other transactions that try to write in the same table should be blocked if they arrive at the same time of the first query.
    To solve this, you can make your query in a transaction with Snapshot isolation level. It means that your select query will take a snapshot of the data without blocking any other transaction.
    Here is an example how you can make it. The difference is that you may use ADO.NET connection replacing DI API Connection:
    oConnection = OK1.Generic.Helpers.setConnection(server, password, userID, db); // You have to set anyway your sqlconnection
                        if (oConnection.State == ConnectionState.Open)
                            oCommand = new SqlCommand();
                            oCommand.Connection = oConnection;
                            oCommand.CommandTimeout = System.Convert.ToInt32(timeOut);
                            oCommand.CommandText = "ALTER DATABASE " + db + " SET ALLOW_SNAPSHOT_ISOLATION ON";
                            oCommand.ExecuteNonQuery();
                            sqlTran1 = oConnection.BeginTransaction(IsolationLevel.Snapshot);
                            oCommand.CommandText = query;
                            oCommand.Transaction = sqlTran1;
                            oCommand.ExecuteNonQuery();
                            sqlTran1.Commit();
                            oCommand.CommandText = "ALTER DATABASE " + db + " SET ALLOW_SNAPSHOT_ISOLATION OFF";
                            oCommand.ExecuteNonQuery();
                            if (oConnection.State == ConnectionState.Open)
                                oConnection.Close();
    In this example I write the data to show in the report in other table, then the report takes the data from that table.
    I hope it will be helpful for you.
    Regards,
    Juan Camilo

  • Project Server 2013 AD Enterprise Resource Pool Synchronization Exception

    Hello,
    I am looking for assistance from the project server community.
    When I click “Save and Synchronize” on the Active Directory Enterprise Resource Pool Synchronization page nothing happens and the status does not change.
    This is a new instance of PWA and I am preforming this task using the farm admin account. The farm admin account can read AD.
    Error 1:
    w3wp.exe (0x1B98) 
    0x0B8C       Project Server              
    General      aeby7         
    Exception [bucketHash:F08803DE] Exception occured in method 'Admin.ResolveActiveDirectoryGroups' System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.    
    at Microsoft.Office.Project.Server.ClaimsHelper.GetFormsAuthenticationProviderName(Uri context, SPUrlZone zone)    
    at Microsoft.Office.Project.Server.BusinessLayer.ActiveDirectoryUtility.TryGetGroupInfo(String searchRoot)    
    at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()    
    at System.Linq.Buffer`1..ctor(IEnumerable`1 source)    
    at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)    
    at Microsoft.Office.Project.Server.Wcf.Implementation.PWAImpl.<>c__DisplayClassf2.<AdminResolveActiveDirectoryGroups>b__f1()    
    at Microsoft.Office.Project.Server.Wcf.Implementation.WcfMethodInvocation.InvokeBusinessObjectMethod(String businessObjectName, String methodName, IEnumerable`1 actions) StackTrace: 
    at Microsoft.Office.Project.Server.Native.dll: (sig=[sig]|2|microsoft.office.project.server.native.pdb, offset=3C1E) at Microsoft.Office.Project.Server.Native.dll: (offset=1254D)                       
    d360539c-6d89-70e7-c077-92da686b0689
    Error 2:
    Error is: GeneralUnhandledException. Details: General Unhandled Exception in _Admin.ResolveActiveDirectoryGroups_ Attributes: 
    System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.   
     at Microsoft.Office.Project.Server.ClaimsHelper.GetFormsAuthenticationProviderName(Uri context, SPUrlZone zone)   
     at Microsoft.Office.Project.Server.BusinessLayer.ActiveDirectoryUtility.TryGetGroupInfo(String searchRoot)   
     at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()   
     at System.Linq.Buffer`1..ctor(IEnumerable`1 source)   
     at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)   
     at Microsoft.Office.Project.Server.Wcf.Implementation.PWAImpl.<>c__DisplayClassf2.<AdminResolveActiveDirectoryGroups>b__f1()   
     at Microsoft.Office.Project.Server.Wcf.Implementation.WcfMethodInvocation.InvokeBusinessObjectMethod(String businessObjectName, String methodName,
    IEnumerable`1 actions)  . Standard Information: PSI Entry Point: 
    Project User: i:0#.w|[DOMAIN\UserID] Correlation Id: f1f1a77f-6b45-e311-9407-00155d2abe21 PWA Site URL: [PWA URL] SA Name: Project Server Service Application PSError: GeneralUnhandledException (42), LogLevelManager Warning-ulsID:0x00101622 has no entities
    explicitly specified.

    Hi,
    I also get the same error when I'm trying to do the synchronization between Enterprise Resource Pool and Active Directory.
    I am in a single domain topology between Project Server 2013 and AD, and I'm doning the synchronization with the farm admin account, who has read/write access to AD.
    Here are the last relevant messages I see:
    w3wp.exe (0x2BE8) 0x1568 Project Server General aeby7 Exception
    [bucketHash:F0FACBDF] Exception occured in method 'Admin.ResolveActiveDirectoryGroups' System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
    at Microsoft.Office.Project.Server.ClaimsHelper.GetFormsAuthenticationProviderName(Uri context, SPUrlZone zone)
    at Microsoft.Office.Project.Server.BusinessLayer.ActiveDirectoryUtility.TryGetGroupInfo(String domain, String searchPath, String searchFilter)
    at Microsoft.Office.Project.Server.BusinessLayer.ActiveDirectoryUtility.TryGetGroupInfoByClaim(String encodedClaim)
    at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
    at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
    at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
    at Microsoft.Office.Project.Server.Wcf.Implementation.PWAImpl.<>c__DisplayClass10a.<AdminResolveActiveDirectoryGroups>b__109()
    at Microsoft.Office.Project.Server.Wcf.Implementation.WcfMethodInvocation.InvokeBusinessObjectMethod(String businessObjectName, String methodName, IEnumerable`1 actions) StackTrace:
    2b3d83ee10e5|2|, microsoft.office.project.server.native.pdb, offset=3C1E)
    at Microsoft.Office.Project.Server.Native.dll: (offset=1255D)
    w3wp.exe (0x2BE8) 0x1568 Project Server Unified Logging Service c91s Monitorable
    Watson bucket parameters: Microsoft Project Server 2013, ULSException14, 070f6ea0 "project server",  0f001181 "15.0.4481.0", 6962a0f6 "microsoft.office.project.server.administration", 0f0011ad "15.0.4525.0", 51ade0c4 "tue jun 04 14:42:44 2013",  0000020f
    "0000020f",  0000003b "0000003b",  0560164b "keynotfoundexception", 00101621 "aeby7"
     w3wp.exe (0x2BE8) 0x1568 Project Server General aeby8 Medium
    Error is: GeneralUnhandledException. Details: General Unhandled Exception in _Admin.ResolveActiveDirectoryGroups_ Attributes:  System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
    at Microsoft.Office.Project.Server.ClaimsHelper.GetFormsAuthenticationProviderName(Uri context, SPUrlZone zone)
    at Microsoft.Office.Project.Server.BusinessLayer.ActiveDirectoryUtility.TryGetGroupInfo(String domain,  String searchPath, String searchFilter)
    at Microsoft.Office.Project.Server.BusinessLayer.ActiveDirectoryUtility.TryGetGroupInfoByClaim(String encodedClaim)
    at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()     at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
    at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
    at Microsoft.Office.Project.Server.Wcf.Implementation.PWAImpl.<>c__DisplayClass10a.<AdminResolveActiveDirectoryGroups>b__109()
    at Microsoft.Office.Project.Server.Wcf.Implementation.WcfMethodInvocation.InvokeBusinessObjectMethod(String businessObjectName, String methodName, IEnumerable`1 actions)  . Standard Information: PSI Entry Point:  Project User: LUXAIRLG\SQLADMIN2012
    Correlation Id: 6cef3814-b3a2-e311-93f9-005056921080 PWA Site URL: xxx SA Name: PS2013 - Project Server Service Application PSError: GeneralUnhandledException (42). LogLevelManager Warning-ulsID:0x00101622 has no entities explicitly specified.
    w3wp.exe (0x2BE8) 0x1568 Project Server Project Web App af04k Medium
    Void SaveButtonClick(System.Object.System.Web.UI.WebControls.CommandEventArgs) : GeneralUnhandledException
    Any ideas?
    Thanks in advance

  • Cannot get Local Connection, No available resource, Wait-time expired

    Hi Friends,
    Please answer my queries below.
    Thanks and Regards
    Busincess Requirement
    I have to display a particular set of rows in a dashboard or screen, and it is being refreshed every 1 minute, also user can update from that screen displayed values.
    The below program extracts some data from database and passes to the front end through a collection where it is being displayed.
    Code Logic Flow
    1. CockpitAction calls CockpitOraDAO for database results
    2. CockpitOraDAO is a singleton class.
    3. After getting the CockpitOraDAO object, the action will then call the getLabAreaCockpitDetails() method.
    getLabAreaCockpitDetails will
         - Get the Connetion from the OracleConnectionManager class (It is a plain class with getPooledConnection() and releaseConnection() methods).
         - Execute the query and put the result to a collection
         - close the connection
         - return result to the calling action.
    This getLabAreaCockpitDetails() are called around once in every 1 minute
    So, I believe everytime a call is made to action for cockpit display, it will take the existing object of the CockpitOraDAO class and make a call to database. i.e there will be only one object of CockpitOraDAO reside in application server at any particular interval of time.
    My Understandings
    1. Only 1 object of CockpitOraDAO will reside in application server (provided it is not user longer and garbage collected) at a particular instance.
    2. Many objects of Connection will be created and destroyed.(Each time the getLabAreaCockpitDetails() method is called, we will get one connection from connection pool and in finally the Connection will be released to connection pool).
    My Problems
    It is showing the "Cannot get Local Connection, No available resource, Wait-time expired"
    after running around 1 full day.
    My doubts
    1. Can anybody say why I get this error ?
    2. There may be some connections are not closed. But I have checked at finally block, the status of the connection is closed after calling this method.
    3. There may be some problem due to the singleton instane of CockpitOraDAO, Is it affecting performance ?
    4. Is it valid that I have to make CockpitOraDAO as Singleton ?
    public class CockpitOraDAO extends DAOAdaptor //implements BISample
         private static CockpitOraDAO instance=null;
         private static boolean debug = true;
         * The below method will be used to provide the singleton intance of the CockpitOraDAO object.
         public static CockpitOraDAO getInstance()
              if (instance == null)
                   synchronized (CockpitOraDAO.class)
                        if (instance == null)
                             instance = new CockpitOraDAO();
              return instance;
         * The below method will be used to get the cockpit details of the lab area.
         * This will return collecton of sample details for the specific lab.
         public Collection getLabAreaCockpitDetails(Collection prevCockpitDetailList,Collection filterCriteria) throws Exception
         if(debug)
              System.out.println("Inside CockpitOraDAO::getLabAreaCockpitDetails() method");
              Connection conn = null;
              boolean sampleExists = false;
              PreparedStatement pstmt=null;
              ResultSet rs=null;
              String returnStr=null;
              StringBuffer sqlQuery = null;
              String tempComment1=null, tempComment2=null;
              LabCockpitDO labc=null;
              LabCockpitDO labc2=null;
              Collection resultList=null, manCommentList=null, labCommentList=null, labCompCommentList=null;
              ArrayList result1List=null, prevCockpitDetail1List=null,filterList = null;
              OracleConnectionManager manager = null;
              boolean flag = false;
              try
                   labc2 = new LabCockpitDO();
                   prevCockpitDetail1List = (ArrayList) prevCockpitDetailList;
                   sqlQuery = new StringBuffer();
                   sqlQuery.append("select s.sample_sample_no sample_no, s.sample_inspection_lot_no inspection_lot_no,");
                   manager = new OracleConnectionManager();
                   conn = manager.getPooledConnection("myDS");
                   pstmt = conn.prepareStatement(sqlQuery.toString());
                   if(debug)
                   System.out.println("Query********"+sqlQuery.toString());
                   rs = pstmt.executeQuery();
              catch(Exception e)
                   //System.out.println(e);
                   throw e;
              finally
                        try
                             manager.releaseConnection("myDS");
    if(debug)
    System.out.println("Connection Status Closed=true/ Open=false=["+conn.isClosed()+"]");
    if(conn!=null || !conn.isClosed())
    conn.close();
    if(debug)
    System.out.println("Connection Status After Closing Connection Closed=true/ Open=false=["+conn.isClosed()+"]");
                             if(rs != null)
                                  rs.close();
                             if(pstmt != null)
                                  pstmt.close();
                             conn = null;
                             pstmt=null;
                             rs = null;
                             sqlQuery=null;
                             returnStr=null;
                             labc=null;
                             labc2=null;
                             manCommentList=null;
                             labCommentList=null;
                             labCompCommentList=null;
                             tempComment1=null;
                             tempComment2=null;
                             resultList=null;
                             prevCockpitDetailList=null;
                             prevCockpitDetail1List=null;
                        catch(Exception e)
                             //System.out.println("Unable to Release Connection ="+e);
                             throw e;
              //if(debug)     
              //System.out.println(resultList);
              return result1List;
         }

    Hi,
    As you can see from other posts, this is a very common problem. Until now the cause always ends up pointing to a connection not being close.
    I suggest you try to run through a full single cycle of you app, while using the CLI monitoting to check that the connections created/closed matches the expected created/closed connections. Also that the number of free connections at the end is correct.

Maybe you are looking for