[Esapi-user] Getting - org.owasp.esapi.errors.ConfigurationException

Vijayakumar Manivannan viijay.mani at gmail.com
Fri May 10 09:51:16 UTC 2013


Hi chris/Kevin & all,

  I am using ESAPI2.0 jar especially encodeforSQL method

Below is the code sample.



*public* *static* String Method {

        Codec ORACLE_CODEC = new OracleCodec();

                                String encodedsqlParameter = "";

                                   encodedsqlParameter = ESAPI.*encoder*
().encodeForSQL(


ORACLE_CODEC,*”test”*);

                                                    }

                                }

                }

                                *return* sb. encodedsqlParameter ;

}


But I am getting the  below exception


org.owasp.esapi.errors.ConfigurationException:
java.lang.reflect.InvocationTargetException Encoder class
(org.owasp.esapi.reference.DefaultEncoder) CTOR threw exception


Jar and ESAPI.properties,validation.properties are commited in respective
location.

Could you please tell me what cause this exception...??????  Is there any
other configuration files required apart from ESAPI.properties and
validation.properties...??????

Thanks in advance.

Regards,
Vijay :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.owasp.org/pipermail/esapi-user/attachments/20130510/eb6f3f35/attachment.html>


More information about the Esapi-user mailing list