[
https://issues.jboss.org/browse/ELY-1132?page=com.atlassian.jira.plugin.s...
]
Stuart Douglas commented on ELY-1132:
-------------------------------------
Full trace is below. Is there any reason that this can't be hard coded to use the
Elytron provider? Is there any use case for a different clear text password provider?
java.lang.ExceptionInInitializerError
at
org.wildfly.security.auth.client.AuthenticationContext.lambda$static$0(AuthenticationContext.java:49)
at org.wildfly.common.context.ContextManager.getPrivileged(ContextManager.java:282)
at
org.wildfly.security.auth.client.AuthenticationContext.captureCurrent(AuthenticationContext.java:81)
at
org.wildfly.httpclient.common.HttpTargetContext.acquireSessionAffinity(HttpTargetContext.java:110)
at
org.wildfly.httpclient.common.HttpTargetContext.acquireAffinitiy(HttpTargetContext.java:101)
at org.wildfly.httpclient.common.HttpTargetContext.init(HttpTargetContext.java:95)
at
org.wildfly.httpclient.common.WildflyHttpContext.getConnectionPoolForURI(WildflyHttpContext.java:116)
at
org.wildfly.httpclient.common.WildflyHttpContext.getTargetContext(WildflyHttpContext.java:93)
at
org.wildfly.httpclient.ejb.SimpleInvocationTestCase.clearSessionId(SimpleInvocationTestCase.java:194)
at
org.wildfly.httpclient.ejb.SimpleInvocationTestCase.testSimpleSSLInvocationViaURLAffinity(SimpleInvocationTestCase.java:77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.wildfly.httpclient.common.HTTPTestServer.run(HTTPTestServer.java:153)
at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
at
com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at
com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:51)
at
com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:237)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
Caused by: org.wildfly.security.auth.client.InvalidAuthenticationConfigurationException:
org.wildfly.client.config.ConfigXMLParseException: ELY01133: Failed to create credential
at
file:/Users/stuart/workspace/wildfly-http-client/ejb/target/test-classes/wildfly-config.xml:65:68
at
org.wildfly.security.auth.client.DefaultAuthenticationContextProvider.lambda$static$0(DefaultAuthenticationContextProvider.java:40)
at java.security.AccessController.doPrivileged(Native Method)
at
org.wildfly.security.auth.client.DefaultAuthenticationContextProvider.<clinit>(DefaultAuthenticationContextProvider.java:36)
... 34 more
Caused by: org.wildfly.client.config.ConfigXMLParseException: ELY01133: Failed to create
credential
at
file:/Users/stuart/workspace/wildfly-http-client/ejb/target/test-classes/wildfly-config.xml:65:68
at
org.wildfly.security.auth.client.ElytronXmlParser.lambda$parseClearPassword$47(ElytronXmlParser.java:2012)
at
org.wildfly.security.auth.client.ElytronXmlParser.lambda$parseKeyStoreRefType$44(ElytronXmlParser.java:1321)
at
org.wildfly.security.auth.client.ElytronXmlParser.lambda$parseKeyStoreRefType$45(ElytronXmlParser.java:1337)
at
org.wildfly.security.auth.client.ElytronXmlParser$PrivateKeyKeyStoreEntryCredentialFactory.get(ElytronXmlParser.java:2398)
at
org.wildfly.security.auth.client.ElytronXmlParser.lambda$parseSslContextType$5(ElytronXmlParser.java:459)
at
org.wildfly.security.auth.client.ElytronXmlParser.lambda$parseSslContextRuleType$6(ElytronXmlParser.java:501)
at
org.wildfly.security.auth.client.ElytronXmlParser.lambda$parseRulesType$8(ElytronXmlParser.java:537)
at
org.wildfly.security.auth.client.ElytronXmlParser.parseAuthenticationClientType(ElytronXmlParser.java:309)
at
org.wildfly.security.auth.client.ElytronXmlParser.parseAuthenticationClientConfiguration(ElytronXmlParser.java:180)
at
org.wildfly.security.auth.client.ElytronXmlParser.parseAuthenticationClientConfiguration(ElytronXmlParser.java:141)
at
org.wildfly.security.auth.client.DefaultAuthenticationContextProvider.lambda$static$0(DefaultAuthenticationContextProvider.java:38)
... 36 more
Caused by: java.security.NoSuchAlgorithmException: ELY08028: Invalid algorithm
"clear"
at org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:121)
at
org.wildfly.security.auth.client.ElytronXmlParser.lambda$parseClearPassword$47(ElytronXmlParser.java:2009)
... 46 more
Unable to load passwords from wildfly-config.xml
------------------------------------------------
Key: ELY-1132
URL:
https://issues.jboss.org/browse/ELY-1132
Project: WildFly Elytron
Issue Type: Bug
Reporter: Stuart Douglas
Assignee: Darran Lofthouse
I see the following exception, adding use-service-loader-providers does not help
Caused by: java.security.NoSuchAlgorithmException: ELY08028: Invalid algorithm
"clear"
at org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:121)
at
org.wildfly.security.auth.client.ElytronXmlParser.lambda$parseClearPassword$47(ElytronXmlParser.java:2009)
... 46 more
Looks like this should just be hard coded to use the Elytron provider?
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)