-
1. Re: Bug in WildFly http-remoting
macrergate Feb 3, 2017 3:14 AM (in response to valsaraj007)1 of 1 people found this helpfulI have same problem with wildfly10.10.Final
JBossCallbackHandler
has
private Object credential;
and
/** Try to convert the credential value into a char[] using the
first of the following attempts which succeeds:
1. Check for instanceof char[]
2. Check for instanceof String and then use toCharArray()
3. See if credential has a toCharArray() method and use it
4. Use toString() followed by toCharArray().
@return a char[] representation of the credential.
*/
private char[] getPassword(){
char[] password = null;
if (credential instanceof char[])
{
password = (char[]) credential;
}
else if (credential instanceof String)
{
String s = (String) credential;
password = s.toCharArray();
}
else
{try
{Class<?>[] types = {};
Method m = credential.getClass().getMethod("toCharArray", types);
Object[] args = {};
password = (char[]) m.invoke(credential, args);
}
catch (Exception e)
{
if (credential != null)
{
String s = credential.toString();
password = s.toCharArray();
}
}
}
return password;
}
but credential in my case is instance of org.jboss.as.security.remoting.RemotingConnectionCredential
It does not have implementations neither toCharArray, nor toString methods.
-
2. Re: Bug in WildFly http-remoting
macrergate Feb 3, 2017 8:38 AM (in response to macrergate)1 of 1 people found this helpfulthe problem was in server configuration.
remoting/http-connector/security-realm value was incorrect.