title: nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:
body: <p>I am new to <code>Java</code>, I am trying to call a stored procedure from <code>Java</code>.</p>
  
  <p>I am getting this exception for this code</p>
  
  <pre><code>@SuppressWarnings("unchecked")
  List&lt;Object&gt; queryForList(String procName, Map&lt;String, Object&gt; map, CommonVO commonVO) {
      List&lt;Object&gt; resultSetList = null;
      Date connectionAttemptStartDate = null;
      Date cidbQueryStartDate = null;
      List&lt;String&gt; jndiNameList =null;
      String jndiName = null;
      try {
          resultSetList = super.queryForList(procName, map);
  
      }catch(Exception e) {
          isError = true;
          //exception = e;
          System.out.println(e.getMessage());
          exception=ExceptionUtils.validateCreateCIDBException(e);
      }
      return resultSetList;
   }
  </code></pre>
  
  <p>My <code>XML</code> file here</p>
  
  <pre><code>&lt;!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd"&gt;
  &lt;sqlMap namespace="SP"&gt;
      &lt;parameterMap id="objectParameters" class="java.util.Map"&gt;      
          &lt;parameter property="valueAddedOfferList" jdbcType="VALUE_ADDED_OFFER_LIST" typeName="VALUE_ADDED_OFFER_LIST" typeHandler="com.bam.vision.dao.db.typehandler.ValueAddedOfferListTypeHandlerCallback" mode="OUT" /&gt;
          &lt;parameter property="errorCode" jdbcType="INTEGER" javaType="java.lang.String" mode="OUT"/&gt;
          &lt;parameter property="errorMessage" jdbcType="CHAR" javaType="java.lang.String" mode="OUT"/&gt;
      &lt;/parameterMap&gt;
      &lt;procedure id="retrieve_value_added_offer" parameterMap="objectParameters" timeout="2"&gt;
          {call retrieve_value_added_offer(?,?,?)}
      &lt;/procedure&gt;
  &lt;/sqlMap&gt;
  </code></pre>
  
  <p>Getting exception like here</p>
  
  <pre class="lang-none prettyprint-override"><code>--- Cause: java.lang.ClassCastException: java.math.BigDecimal    incompatible with java.lang.String; nested exception is     com.ibatis.common.jdbc.exception.NestedSQLException:   
  --- The error occurred in retrieve_value_added_offer.xml.  
  --- The error occurred while applying a parameter map.  
  --- Check the SP.objectParameters.  
  --- Check the output parameters (retrieval of output parameters failed).  
  --- Cause: java.lang.ClassCastException: java.math.BigDecimal incompatible with java.lang.String
  </code></pre>