Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-3708

User defined data sources are closed unexpectedly by dashbuilder - cannot be configured

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 6.0.0
    • 6.0.0
    • BAM
    • DR6
    • +
    • Hide
      Cause: The external connection is being closed within the execution of the current transaction.

      Consequence: Further invocations to the external connection raise an error.

      Fix: Remove the "close" invocation on the connection.

      Result: External connection calls no longer fail.
      Show
      Cause: The external connection is being closed within the execution of the current transaction. Consequence: Further invocations to the external connection raise an error. Fix: Remove the "close" invocation on the connection. Result: External connection calls no longer fail.

    Description

      Description of problem:
      When configuring the application to use user-defined datasource X it is impossible to create Data provider based on datasource X. The error message is shown indicating that connection is already closed. I replicated this problem in 100% of cases testing both local H2 database and MySQL database.

      Version-Release number of selected component (if applicable):

      How reproducible:
      Seems 100% reproducible.
      Tried in 2 cases:
      1) H2-based dashbuilder demo started with: dashboard-builder/scripts/buildandrun.sh h2 + my local h2
      2) .war distribution for JBoss EAP configured to use MySQL datasource

      Steps to Reproduce:
      1. Configure some local database filled with some sample data (in my case one PERSON table + few lines of data)
      2. Configure the datasource in Workspace Showcase > Administration > External connections (see screenshot)
      3. When configuring datasources make sure they are configured correctly using "Check DataSource" button - in my case both were configured correctly
      4. Go to Administration > Data Providers and try to configure some new SQL provider based on DataSrouce configured in step 2
      5. Select your DS configured in step 2 using "Datasource" and also try it using "Try" button.

      Actual results:
      After you select your previously configured datasource using "Datasource" select - red message appears under the "Query" text area.

      The message states:
      In case of H2 database:
      Invalid data set. Please, review your query
      The object is already closed [90007-168]

      In case of MySQL database:
      Invalid data set. Please, review your query
      No operations allowed after connection closed.

      Expected results:
      Correctly configured datasource should work and it should be possible to extract data from it.

      Additional info:
      See screenshots for clarification.
      Application logs with stacktraces provided for both cases.
      This bug seems closely related to Bugzilla 965941. See the stack traces provided in the attachments.

      This bug blocks testing, because we are unable to compose/configure custom dashboards which would use custom datasources.

      Attachments

        1. After bugfix1: Application log.log
          183 kB
          Jan Hrcek
        2. After bugfix1: Application log - MySQL datasource.log
          53 kB
          Jan Hrcek
        3. After bugfix1: steps + new error.png
          469 kB
          Jan Hrcek
        4. After bugfix2: application log.log
          109 kB
          Jan Hrcek
        5. After bugfix2: error in gui.png
          1.02 MB
          Jan Hrcek
        6. After bugfix3: application log.log
          106 kB
          Jan Hrcek
        7. After bugfix3: guit test video.webm
          18.64 MB
          Jan Hrcek
        8. Application log when using H2 datasource.log
          78 kB
          Jan Hrcek
        9. Application log when using MySQL datasource.log
          106 kB
          Jan Hrcek
        10. Steps to reproduce with H2.png
          596 kB
          Jan Hrcek
        11. Steps to reproduce with MySQL.png
          662 kB
          Jan Hrcek

        Activity

          People

            david.magallanes David Gutierrez
            jhrcek Jan Hrcek (Inactive)
            Jan Hrcek Jan Hrcek (Inactive)
            Jan Hrcek Jan Hrcek (Inactive)
            Cheng Zhang (Inactive), Marek Baluch, Rajesh Rajasekaran
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: