Error in Exchangemodule

2
Mendix 3.2.1 Exchangeclient Ldap We use in our Mendixproject a Exchangemodule. In the application we use a agendamodule, which interacts with the Exchangemoduel, so people can get their appointments also in Outlook. Unfortunately in the present version when users change their pasword, the pasword has also to be changed in the Exchangemodule. This seems to go well, but when a user wants to delete a appointment the following error comes: java.lang.Thread.run(Thread.java:662) java.lang.Thread.run(Thread.java:662) > lh: lh: javax.crypto. BadPaddingException: Given final block not properly padded at ExchangeClient.DecryptPassword (JavaAction : 'Get decrypted password') at {"name":"ExchangeClient.ObjectDelete","type":"JavaAction"} at {} at Agenda.SFVerwijderEigenAfspraak (JavaAction : 'Delete calendar items from Exchange and database') at Agenda.IVKAfspraakVerwijderenPersoon (SubMicroflow : 'Call 'SFVerwijderEigenAfspraak'') Advanced stacktrace: at {} at Agenda.SFVerwijderEigenAfspraak (JavaAction : 'Delete calendar items from Exchange and database') at Agenda.IVKAfspraakVerwijderenPersoon (SubMicroflow : 'Call 'SFVerwijderEigenAfspraak'') Advanced stacktrace: at mA.a(SourceFile:188) Caused by: com.mendix.core.CoreException: lh: javax.crypto.BadPaddingException: Given final block not properly padded at ExchangeClient.DecryptPassword (JavaAction : 'Get decrypted password') at {"name":"ExchangeClient.ObjectDelete","type":"JavaAction"} at {} at Agenda.SFVerwijderEigenAfspraak (JavaAction : 'Delete calendar items from Exchange and database') at Agenda.IVKAfspraakVerwijderenPersoon (SubMicroflow : 'Call 'SFVerwijderEigenAfspraak'') Advanced stacktrace: at com.mendix.core.Core.execute(SourceFile:295) Caused by: lh: javax.crypto.BadPaddingException: Given final block not properly padded at ExchangeClient.DecryptPassword (JavaAction : 'Get decrypted password') at {"name":"ExchangeClient.ObjectDelete","type":"JavaAction"} at {} at Agenda.SFVerwijderEigenAfspraak (JavaAction : 'Delete calendar items from Exchange and database') at Agenda.IVKAfspraakVerwijderenPersoon (SubMicroflow : 'Call 'SFVerwijderEigenAfspraak'') Advanced stacktrace: at mA.a(SourceFile:188) Caused by: com.mendix.core.CoreException: javax.crypto.BadPaddingException: Given final block not properly padded at hk.b(SourceFile:170) Caused by: javax.crypto.BadPaddingException: Given final block not properly padded at com.sun.crypto.provider.SunJCEf.b(DashoA13*..) at com.sun.crypto.provider.SunJCEf.b(DashoA13..) at com.sun.crypto.provider.AESCipher.engineDoFinal(DashoA13..) at javax.crypto.Cipher.doFinal(DashoA13*..) at exchangeclient.actions.PasswordDecrypt.executeAction(PasswordDecrypt.java:43) at exchangeclient.actions.PasswordDecrypt.executeAction(PasswordDecrypt.java:21) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:48) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:435) at hk.b(SourceFile:156) at com.mendix.core.Core.execute(SourceFile:212) at lo.a(SourceFile:70) at mA.a(SourceFile:73) at mz.executeAction(SourceFile:101) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:48) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:435) at hk.b(SourceFile:156) at com.mendix.core.Core.execute(SourceFile:291) at com.mendix.core.Core.execute(SourceFile:267) at exchangeclient.helpers.ExchangeConnectorInitializer.decryptPassword(ExchangeConnectorInitializer.java:115) at exchangeclient.helpers.ExchangeConnectorInitializer.<init>(ExchangeConnectorInitializer.java:44) at exchangeclient.actions.ObjectDelete.deleteJEC(ObjectDelete.java:84) at exchangeclient.actions.ObjectDelete.executeAction(ObjectDelete.java:62) at exchangeclient.actions.ObjectDelete.executeAction(ObjectDelete.java:32) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:48) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:435) at hk.b(SourceFile:156) at com.mendix.core.Core.execute(SourceFile:212) at lo.a(SourceFile:70) at mA.a(SourceFile:73) at mz.executeAction(SourceFile:101) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:48) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:435) at hk.b(SourceFile:156) at com.mendix.core.Core.executeSync(SourceFile:189) at lp.a(SourceFile:71) at mA.a(SourceFile:73) at mz.executeAction(SourceFile:101) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:48) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:435) at hk.b(SourceFile:156) at com.mendix.core.Core.execute(SourceFile:212) at gd.execute(SourceFile:184) at iI.a(SourceFile:311) at iI.a(SourceFile:240) at iI.processRequest(SourceFile:179) at iL.a(SourceFile:71) at com.mendix.core.MxRuntime.processRequest(SourceFile:856) at com.mendix.m2ee.server.handler.RuntimeHandler.handle(RuntimeHandler.java:43) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113) at org.eclipse.jetty.server.Server.handle(Server.java:334) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:559) at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1007) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:747) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:203) at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:406) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:462) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436) at >java.lang.Thread.run(Thread.java:662)java.lang.Thread.run(Thread.java:>662) java.lang.Thread.run(Thread.java:662)
asked
2 answers
1

How did you update this password? Hopefully through the provided form and microflow that encrypt the password and saves it to the database in encrypted form. It does not look like this is the case though.

Take a look at the AccountConfigure form (present in the original module) and follow the 'Update and clear password' button.

answered
0

Hello Bas,

Yes, I used the provided form and microflow. Best regards, Herman

answered