'Trying to upgrade ESAPI from 2.2.0.0 to 2.3.0.0

After upgrading esapi from 2.2.0.0 to 2.3.0.0 I'm experiencing an error from this line:

esapi.encoder().encodeForSql(new JavaCodec(),"tableName").

Error:

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

Any suggestion why this error is coming?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source