<div dir="ltr"><pre style="color:rgb(0,0,0)"><i>hi Vijay,</i></pre><pre style="color:rgb(0,0,0)"><i>Could you provide a complete stack trace of the exception and the exception </i><i>message?</i></pre><pre style="color:rgb(0,0,0)">
<i>Thanks
Fabio</i></pre></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 10, 2013 at 10:51 AM, Vijayakumar Manivannan <span dir="ltr"><<a href="mailto:viijay.mani@gmail.com" target="_blank">viijay.mani@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br clear="all"> </div><p style="margin:0in 0in 0pt"><font size="3"><font color="#000000"><font face="Calibri">Hi chris/Kevin & all,</font></font></font></p>
<font color="#000000" size="3" face="Times New Roman">

</font><p style="margin:0in 0in 0pt"><font face="Calibri"><font size="3"><font color="#000000"><span> </span><span> </span>I am using ESAPI2.0 jar especially encodeforSQL
method</font></font></font></p><font color="#000000" size="3" face="Times New Roman">

</font><p style="margin:0in 0in 0pt"><font size="3"><font color="#000000"><font face="Calibri">Below is the code sample.</font></font></font></p><font color="#000000" size="3" face="Times New Roman">

</font><p style="margin:0in 0in 0pt"><font color="#000000" size="3" face="Calibri"> </font></p><font color="#000000" size="3" face="Times New Roman">

</font><p style="margin:0in 0in 0pt"><b><span style="color:rgb(127,0,85);font-family:"Segoe UI","sans-serif";font-size:9pt">public</span></b><span style="font-size:9pt;font-family:"Segoe UI","sans-serif""> </span><b><span style="color:rgb(127,0,85);font-family:"Segoe UI","sans-serif";font-size:9pt">static</span></b><span style="font-size:9pt;font-family:"Segoe UI","sans-serif""> String
Method {</span></p><font color="#000000" size="3" face="Times New Roman">

</font><p style="margin:0in 0in 0pt"><span style="font-size:9pt;font-family:"Segoe UI","sans-serif""><span>        </span>Codec ORACLE_CODEC = new OracleCodec();</span></p><font color="#000000" size="3" face="Times New Roman">

</font><p style="margin:0in 0in 0pt"><span style="font-size:9pt;font-family:"Segoe UI","sans-serif""><span>                                </span>String
encodedsqlParameter = </span><span style="color:rgb(42,0,255);font-family:"Segoe UI","sans-serif";font-size:9pt">""</span><span style="font-size:9pt;font-family:"Segoe UI","sans-serif"">;</span><span style="font-family:"Segoe UI","sans-serif";font-size:9pt"></span></p>

<font color="#000000" size="3" face="Times New Roman">

</font><p style="margin:0in 0in 0pt"><span style="font-size:9pt;font-family:"Segoe UI","sans-serif""><span>                                </span><span>   </span>encodedsqlParameter = ESAPI.<i>encoder</i>().encodeForSQL(</span><span style="font-family:"Segoe UI","sans-serif";font-size:9pt"></span></p>

<font color="#000000" size="3" face="Times New Roman">

</font><p style="margin:0in 0in 0pt"><span style="font-size:9pt;font-family:"Segoe UI","sans-serif""><span>                                                                                                                </span>ORACLE_CODEC,</span><b><span style="color:rgb(127,0,85);font-family:"Segoe UI","sans-serif";font-size:9pt">”test”</span></b><span style="font-size:9pt;font-family:"Segoe UI","sans-serif"">);</span><span style="font-family:"Segoe UI","sans-serif";font-size:9pt"></span></p>

<font color="#000000" size="3" face="Times New Roman">

</font><p style="margin:0in 0in 0pt"><span style="font-size:9pt;font-family:"Segoe UI","sans-serif""><span>                                                </span><span>    </span>}</span><span style="font-family:"Segoe UI","sans-serif";font-size:9pt"></span></p>

<font color="#000000" size="3" face="Times New Roman">

</font><p style="margin:0in 0in 0pt"><span style="font-size:9pt;font-family:"Segoe UI","sans-serif""><span>                                </span>}</span><span style="font-family:"Segoe UI","sans-serif";font-size:9pt"></span></p>

<font color="#000000" size="3" face="Times New Roman">

</font><p style="margin:0in 0in 0pt"><span style="font-size:9pt;font-family:"Segoe UI","sans-serif""><span>                </span>} </span><span style="font-family:"Segoe UI","sans-serif";font-size:9pt"></span></p>

<font color="#000000" size="3" face="Times New Roman">

</font><p style="margin:0in 0in 0pt"><span style="font-size:9pt;font-family:"Segoe UI","sans-serif""><span>                                </span></span><b><span style="color:rgb(127,0,85);font-family:"Segoe UI","sans-serif";font-size:9pt">return</span></b><span style="font-size:9pt;font-family:"Segoe UI","sans-serif""> sb. encodedsqlParameter
;</span><span style="font-family:"Segoe UI","sans-serif";font-size:9pt"></span></p><font color="#000000" size="3" face="Times New Roman">

</font><p style="margin:0in 0in 0pt"><span style="font-size:9pt;font-family:"Segoe UI","sans-serif"">} </span></p><font color="#000000" size="3" face="Times New Roman">

</font><p style="margin:0in 0in 0pt"><span style="font-size:9pt;font-family:"Segoe UI","sans-serif""> </span></p><font color="#000000" size="3" face="Times New Roman">

</font><div style="margin:0in 0in 0pt"><span style="font-size:9pt;font-family:"Segoe UI","sans-serif"">But I am getting the<span>  </span>below
exception </span></div><div style="margin:0in 0in 0pt"><span style="font-size:9pt;font-family:"Segoe UI","sans-serif""></span> </div><font color="#000000" size="3" face="Times New Roman">

</font><p style="margin:0in 0in 0pt"><font color="#000000"><span style="background:yellow;font-family:"Arial","sans-serif";font-size:8pt">org.owasp.esapi.errors.ConfigurationException:
java.lang.reflect.InvocationTargetException Encoder class
(org.owasp.esapi.reference.DefaultEncoder) CTOR threw exception</span><span style="font-family:"Arial","sans-serif";font-size:8pt"></span></font></p><font color="#000000" size="3" face="Times New Roman">

</font><p style="margin:0in 0in 0pt"><span style="font-family:"Arial","sans-serif";font-size:8pt"><font color="#000000"> </font></span></p><font color="#000000" size="3" face="Times New Roman">

</font><div style="margin:0in 0in 0pt"><span style="font-family:"Arial","sans-serif";font-size:8pt"><font color="#000000">Jar
and ESAPI.properties,validation.properties are commited in respective location.</font></span></div><div style="margin:0in 0in 0pt"><span style="font-family:"Arial","sans-serif";font-size:8pt"><font color="#000000"></font></span> </div>

<div style="margin:0in 0in 0pt"><span style="font-family:"Arial","sans-serif";font-size:8pt"><font color="#000000">Could you please tell me what cause this exception...??????  Is there any other configuration files required apart from ESAPI.properties and validation.properties...??????</font></span></div>

<div style="margin:0in 0in 0pt"><span style="font-family:"Arial","sans-serif";font-size:8pt"><font color="#000000"></font></span> </div><div style="margin:0in 0in 0pt"><span style="font-family:"Arial","sans-serif";font-size:8pt"><font color="#000000">Thanks in advance. </font></span></div>

<div style="margin:0in 0in 0pt"><span style="font-family:"Arial","sans-serif";font-size:8pt"><font color="#000000"></font></span> </div><div style="margin:0in 0in 0pt"><span style="font-family:"Arial","sans-serif";font-size:8pt"><font color="#000000">Regards,</font></span></div>

<div style="margin:0in 0in 0pt"><span style="font-family:"Arial","sans-serif";font-size:8pt"><font color="#000000">Vijay :)</font></span></div><font color="#000000" size="3" face="Times New Roman">


</font></div>
<br>_______________________________________________<br>
Esapi-user mailing list<br>
<a href="mailto:Esapi-user@lists.owasp.org">Esapi-user@lists.owasp.org</a><br>
<a href="https://lists.owasp.org/mailman/listinfo/esapi-user" target="_blank">https://lists.owasp.org/mailman/listinfo/esapi-user</a><br>
<br></blockquote></div><br></div>