Hi All,

When I am trying to build the identity-outbound-auth-passwordPolicy[1] it
fails due to a test failure.

Error is given below.

Tests run: 19, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 5.746 sec
<<< FAILURE! - in TestSuite
testInitiateAuthRequestSuccess(org.wso2.carbon.extension.identity.authenticator.passwordpolicy.test.PasswordChangeEnforcerOnExpirationTest)
Time elapsed: 0.09 sec  <<< FAILURE!
java.lang.ExceptionInInitializerError: null
    at java.util.Hashtable.put(Hashtable.java:514)
    at java.util.Properties.setProperty(Properties.java:161)
    at java.lang.System.setProperty(System.java:787)
    at org.wso2.carbon.utils.CarbonUtils.getCarbonHome(CarbonUtils.java:240)
    at
org.wso2.carbon.utils.CarbonUtils.getCarbonConfigDirPath(CarbonUtils.java:284)
    at
org.wso2.carbon.identity.policy.password.PasswordChangeUtils.loadProperties(PasswordChangeUtils.java:52)
    at
org.wso2.carbon.identity.policy.password.PasswordChangeUtils.<clinit>(PasswordChangeUtils.java:41)
    at
org.wso2.carbon.identity.policy.password.PasswordChangeEnforcerOnExpiration.initiateAuthRequest(PasswordChangeEnforcerOnExpiration.java:165)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at
org.powermock.reflect.internal.WhiteboxImpl.performMethodInvocation(WhiteboxImpl.java:1899)
    at
org.powermock.reflect.internal.WhiteboxImpl.doInvokeMethod(WhiteboxImpl.java:801)
    at
org.powermock.reflect.internal.WhiteboxImpl.invokeMethod(WhiteboxImpl.java:666)
    at org.powermock.reflect.Whitebox.invokeMethod(Whitebox.java:401)
    at
org.wso2.carbon.extension.identity.authenticator.passwordpolicy.test.PasswordChangeEnforcerOnExpirationTest.testInitiateAuthRequestSuccess(PasswordChangeEnforcerOnExpirationTest.java:265)


Results :

Failed tests:
  PasswordChangeEnforcerOnExpirationTest.testInitiateAuthRequestSuccess:265
ยป ExceptionInInitializer


I tried to build it using both Java7 and Java8. But it gives the same error.

Any thoughts or help on this is highly appreciated.

[1] https://github.com/wso2-extensions/identity-outbound-auth-passwordPolicy

Thanks,
Nadeeshani.
-- 
Pathirennehelage Nadeeshani
Software Engineer | WSO2 Inc.
Platform Security Team
mobile : +94 716545223 <+94%2071%20654%205223>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to