0
ant 스크립트를 사용하여 JDBC 연결 풀을 만들었습니다.JDBCConnectionPool에 대해 wlconfig를 사용하여 WrapTypes를 설정할 수 없습니다.
<target name="create-cmifs-connpool">
<wlconfig username="${user}" password="${password}" url="${wls.url}">
<query domain="${domain.name}" type="Server" name="${servername}" property="x" />
<create type="JDBCConnectionPool" name="cmifsDBPool">
<set attribute="CapacityIncrement" value="1"/>
<set attribute="DriverName" value="oracle.jdbc.OracleDriver"/>
<set attribute="InitialCapacity" value="1"/>
<set attribute="MaxCapacity" value="10"/>
<set attribute="Password" value="${env.DB_PWD}"/>
<set attribute="Properties" value="user=${env.DB_USER}"/>
<set attribute="RefreshMinutes" value="0"/>
<set attribute="ShrinkPeriodMinutes" value="15"/>
<set attribute="ShrinkingEnabled" value="true"/>
<set attribute="TestConnectionsOnRelease" value="false"/>
<set attribute="TestConnectionsOnReserve" value="false"/>
<set attribute="TestTableName" value="DUAL"/>
<set attribute="URL" value="jdbc:oracle:thin:@${env.MACHINE}:1521:NOTXE"/>
<set attribute="Targets" value="${x}" />
</create>
<create type="JDBCDataSource" name="cmifsDBDS" >
<set attribute="JNDIName" value="jdbc/cmifsDBDS"/>
<set attribute="PoolName" value="cmifsDBPool"/>
<set attribute="Targets" value="${x}" />
</create>
</wlconfig>
</target>
DB에서 ARRAY를 검색 할 때까지 모든 것이 잘 작동합니다. 나는 다음과 같은 오류가 발생합니다 :
java.lang.ClassCastException: weblogic.jdbc.wrapper.Array_oracle_sql_ARRAY cannot be cast to oracle.sql.ARRAY
내가 랩 데이터 유형이 연결 풀에 대해 false로 설정해야한다고 말합니다이 link에서이 문제에 대한 해결책을 얻었다. 이 문제가 해결되었습니다. 내 개미 스크립트
<set attribute="WrapTypes" value="false"/>
에 속성을 추가하려고 할 때 는 그러나 그것은 작품을 나던. 다음과 같은 오류가 발생합니다 :
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
어떻게 해결할 수 있습니까?
샘플을 보여줄 수 있습니까? –