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

Chris Schmidt chrisisbeef at gmail.com
Tue May 24 01:05:14 EDT 2011


Looks like you are trying to use Log4J but you don't have log4j.jar in 
your classpath.

On 5/23/2011 11:03 PM, ashish kumar gautam wrote:
> dear user
> i am tring to run an appliaction using esapi library, during runing
> the application, i catched the run time exception
>
> printStackTrace return like this-------
> what is the actual problem and what will be the solution of this problem
> give me response as soon as posible
>
> thanks
> ashish kumar gautam
>
>
> Attempting to load ESAPI.properties via file I/O.
> Attempting to load ESAPI.properties as resource file via file I/O.
> Found in 'org.owasp.esapi.resources' directory: c:\resources\ESAPI.properties
> Loaded 'ESAPI.properties' properties file
> Attempting to load validation.properties via file I/O.
> Attempting to load validation.properties as resource file via file I/O.
> Found in 'org.owasp.esapi.resources' directory:
> c:\resources\validation.properties
> Loaded 'validation.properties' properties file
> org.owasp.esapi.errors.ConfigurationException:
> java.lang.reflect.InvocationTargetException Encoder class
> (org.owasp.esapi.reference.DefaultEncoder) CTOR threw exception.
> 	at org.owasp.esapi.util.ObjFactory.make(ObjFactory.java:129)
> 	at org.owasp.esapi.ESAPI.encoder(ESAPI.java:98)
> 	at Example.main(Example.java:16)
> Caused by: java.lang.reflect.InvocationTargetException
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.owasp.esapi.util.ObjFactory.make(ObjFactory.java:86)
> 	... 2 more
> Caused by: org.owasp.esapi.errors.ConfigurationException:
> java.lang.reflect.InvocationTargetException LogFactory class
> (org.owasp.esapi.reference.Log4JLogFactory) CTOR threw exception.
> 	at org.owasp.esapi.util.ObjFactory.make(ObjFactory.java:129)
> 	at org.owasp.esapi.ESAPI.logFactory(ESAPI.java:136)
> 	at org.owasp.esapi.ESAPI.getLogger(ESAPI.java:153)
> 	at org.owasp.esapi.reference.DefaultEncoder.<init>(DefaultEncoder.java:75)
> 	at org.owasp.esapi.reference.DefaultEncoder.getInstance(DefaultEncoder.java:59)
> 	... 7 more
> Caused by: java.lang.reflect.InvocationTargetException
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.owasp.esapi.util.ObjFactory.make(ObjFactory.java:86)
> 	... 11 more
> Caused by: java.lang.Error: Unresolved compilation problem:
>
> 	at org.owasp.esapi.reference.Log4JLogFactory.getInstance(Log4JLogFactory.java:64)
> 	... 16 more
> _______________________________________________
> Esapi-user mailing list
> Esapi-user at lists.owasp.org
> https://lists.owasp.org/mailman/listinfo/esapi-user



More information about the Esapi-user mailing list