i have a problem with the TM1JavaAPI. I try to change the password of an client. This works fine, till i try to use special characters for german language (ü,ä,ö, etc.). I think it's a problem with the encoding (utf-8 or something else). If i am not using special characters everythings works fine and the user can sign in with the changed password. If i am using special characters for german language i get no error massage but the user cannot sign in afterwards.
I am using TM1JavaAPI.jar with implementation-Version: 10.2.20400 and TM1 Version 10.2.2.
Here is my code (without error-handling):
Code: Select all
public void changePasswordTest(String hostname, String servername, String admin, String adminPassword, String client, String newClientPassword) {
TM1Bean tm1bean;
TM1Server tm1server;
TM1Client tm1client;
tm1bean = new TM1Bean();
tm1bean.setAdminHost(hostname);
tm1bean.setAdminPort(5495);
tm1bean.refreshServers();
tm1server = tm1bean.openConnection(servername, admin, adminPassword);
tm1client = tm1server.getClient(client);
tm1client.assignPassword(newClientPassword);
tm1server.disconnect();
tm1bean.closeConnection(tm1server);
}
Do you have an idea. I would be very grateful for help.
Kind regards
Dominik