Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-5216

The thread is locked at DBCPConnectionFactory.getConnection() when connects to multiple databases

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • Trunk
    • Trunk
    • framework
    • None

    Description

      I connected 5 databases, ofbiz, ofbiz_olap, ofbiz_tenant and 2 MSSQL databases of myself. Three ofbiz databases were created in Postgres. But the the thread will locked at DBCPConnectionFactory.getConnection() when OFBiz was starting.

      And I changed

      public Connection getConnection(GenericHelperInfo helperInfo, JdbcElement abstractJdbc) throws SQLException, GenericEntityException

      to

      public synchronized Connection getConnection(GenericHelperInfo helperInfo, JdbcElement abstractJdbc) throws SQLException, GenericEntityException

      it then works.

      Attachments

        1. OFBIZ-5216.patch
          1 kB
          Adrian Crum
        2. jsconsole2.png
          75 kB
          Wei Zhang
        3. jsconsole.png
          64 kB
          Wei Zhang
        4. screen.png
          74 kB
          Wei Zhang
        5. postgresql-9.0-801.jdbc4.jar
          527 kB
          Wei Zhang
        6. jtds-1.2.5.jar
          295 kB
          Wei Zhang
        7. entityengine.xml
          13 kB
          Wei Zhang
        8. OFBIZ-5216.zip
          59 kB
          Wei Zhang

        Activity

          People

            adrianc@hlmksw.com Adrian Crum
            tzngvi Wei Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: