[Esapi-user] CTOR threw exception running the simple ESAPI Test java to access AccessController.

Mohan Bethur mbethur at adobe.com
Wed Aug 31 19:45:46 EDT 2011


I have this java code to check if ESAPI has been integrated and configured.

package com.myorg.pkg;

import org.junit.Test;
import org.owasp.esapi.ESAPI;

public class TestEsapiIntegration {

                @Test
                public void testEsapiIntegration() {
                                System.out.println("ESAPI.accessController found: " + ESAPI.accessController());

                }
}

When I run "maven install" I get the following error..

Running com.myorg.pkg.TestEsapiIntegration
Attempting to load ESAPI.properties via file I/O.
Attempting to load ESAPI.properties as resource file via file I/O.
Found in SystemResource Directory/resourceDirectory: /Users/trunk/content/jcr_root/apps/mgr/src/impl/target/test-classes/.esapi/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 SystemResource Directory/resourceDirectory: /Users/trunk/content/jcr_root/apps/mgr/src/impl/target/test-classes/.esapi/validation.properties
Loaded 'validation.properties' properties file

Tests in error:
  testEsapiIntegration(com.myorg.pkg.TestEsapiIntegration): java.lang.reflect.InvocationTargetException AccessController class (org.owasp.esapi.reference.DefaultAccessController) CTOR threw exception.

Does anyone have suggestions why I get this error.

Thanks
Mohan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.owasp.org/pipermail/esapi-user/attachments/20110831/99dd3585/attachment.html 


More information about the Esapi-user mailing list