title: Cannot set WrapTypes using wlconfig for JDBCConnectionPool
body: <p>I created JDBC connection pool using ant script.</p>
  
  <pre><code>&lt;target name="create-cmifs-connpool"&gt;
      &lt;wlconfig username="${user}" password="${password}" url="${wls.url}"&gt;
          &lt;query domain="${domain.name}" type="Server" name="${servername}" property="x" /&gt;
          &lt;create type="JDBCConnectionPool" name="cmifsDBPool"&gt;
              &lt;set attribute="CapacityIncrement" value="1"/&gt;
              &lt;set attribute="DriverName" value="oracle.jdbc.OracleDriver"/&gt;
              &lt;set attribute="InitialCapacity" value="1"/&gt;
              &lt;set attribute="MaxCapacity" value="10"/&gt;
              &lt;set attribute="Password" value="${env.DB_PWD}"/&gt;
              &lt;set attribute="Properties" value="user=${env.DB_USER}"/&gt;
              &lt;set attribute="RefreshMinutes" value="0"/&gt;
              &lt;set attribute="ShrinkPeriodMinutes" value="15"/&gt;
              &lt;set attribute="ShrinkingEnabled" value="true"/&gt;
              &lt;set attribute="TestConnectionsOnRelease" value="false"/&gt;
              &lt;set attribute="TestConnectionsOnReserve" value="false"/&gt;
              &lt;set attribute="TestTableName" value="DUAL"/&gt;
              &lt;set attribute="URL" value="jdbc:oracle:thin:@${env.MACHINE}:1521:NOTXE"/&gt;
              &lt;set attribute="Targets" value="${x}" /&gt;
          &lt;/create&gt;
  
          &lt;create type="JDBCDataSource" name="cmifsDBDS" &gt;
              &lt;set attribute="JNDIName" value="jdbc/cmifsDBDS"/&gt;
              &lt;set attribute="PoolName" value="cmifsDBPool"/&gt;
              &lt;set attribute="Targets" value="${x}" /&gt;
          &lt;/create&gt;
  
      &lt;/wlconfig&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>Everything works good, until I try to retrieve an ARRAY from DB. I get the following error:</p>
  
  <pre><code>java.lang.ClassCastException: weblogic.jdbc.wrapper.Array_oracle_sql_ARRAY cannot be cast to oracle.sql.ARRAY
  </code></pre>
  
  <p>I got the solution for this problem in this <a href="http://adfpractice-fedor.blogspot.com/2011/09/weblogic-wrapping-data-types.html" rel="nofollow">link</a>, which says that Wrap Data Types should be set to false for the connection pool. This fixed the problem. 
  But when I tried to add the attribute to my ant script</p>
  
  <pre><code>&lt;set attribute="WrapTypes" value="false"/&gt;
  </code></pre>
  
  <p>It doesnt work. I am getting the following error:</p>
  
  <pre><code>Error invoking MBean command: java.lang.IllegalArgumentException: Property Name and value not valid for the MBean. Value false for parameter[WrapTypes].java.lang.IllegalArgumentException: Unable to find the attribute: WrapTypes in the attribute list of the class: JDBCConnectionPool
  </code></pre>
  
  <p>How to solve this problem?</p>