Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-206

connection properties are being improperly quoted

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.0.0.Beta1
    • Fix Version/s: 7.0.0.Beta2
    • Component/s: JCA
    • Labels:
      None

      Description

      I placed two connection property elements into my standalone.xml configuration for my data source, which is MySQL (5.5.9).

      When every I first try to execute anything I get the following error:

      17:31:42,646 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/Order].[CreateData]] (http-192.168.1.22%2F192.168.1.22-8080-1) Servlet.service() for servlet CreateData threw exception: java.sql.SQLException: The connection property 'rewriteBatchedStatements' only accepts values of the form: 'true', 'false', 'yes' or 'no'. The value '("rewriteBatchedStatements" => "true")' is not in this set.

      The entry in standalone.xml is as follows:

      <connection-property name="rewriteBatchedStatements">true</connection-property>

      As you can see it is the correct value that is enumerated in the error message from MySQL, but it complains that "true" is not valid. It appears the code is adding the double quotes around the value, instead of leaving it unquoted.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jesper.pedersen Jesper Pedersen
                Reporter:
                andy.miller Andrig Miller (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: