Get Null Value in Java while fetching from procedure
<p>I have procedure having two out parameters each time it itterates the last out parameter that is second one gives null value in my javacode me trying to fetch via cs.getString(9). While debugging it in procedure it shows me proper output.</p>

<hr>

<pre><code>stmt = "BEGIN  P_GENAUDT_SELF_ASSMT_EXCEL(?,?,?,?,?,?,?,?,?); END;";
                cs = tr.createCallableStatement(stmt, 1);
                cs.setString(1,dlrColBean.getLstrTinNo());
                cs.setString(2,dlrColBean.getLstrTxtPrdFrm());
                cs.setString(3,dlrColBean.getLstrtxtPrdTo());
                cs.setString(4,dlrColBean.getLStrAssgnUserId());
                cs.setString(5,userId);
                cs.setString(6,dlrColBean.getLstrGenForCST());
                cs.setString(7,optionChecked);               
                cs.registerOutParameter(8,OracleTypes.VARCHAR);
                cs.registerOutParameter(9,OracleTypes.VARCHAR);
                cs.execute();
</code></pre>

<p>String msg = cs.getString(9); gives me msg = null while this procedure has been debugged successfully with parameter gets 9th parameter with desired valu.</p>
