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

ashish kumar gautam gautamashishkumar at gmail.com
Tue May 24 01:03:30 EDT 2011


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


More information about the Esapi-user mailing list