Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SMP3.0 SDK SP10 PL1 - LogonCoreContext issue

Hi all,

I've been following this tutorial and I'm not able to get through the app registering process.


After some debug I've notice that the setBackendUser and setBackenPassword methods are not filling the context variable.

//Set username and password

            try {

                lgCtx.setBackendUser(usernameEdit.getText().toString());

                lgCtx.setBackendPassword(passwordEdit.getText().toString());

            } catch (LogonCoreException e) {

                //Notifies the execution finished

                wasSuccessful = false;

                Log.e(TAG, "error entering user credentials", e);

            }

I've declared 2 strings (user and passwd) and pass it to the setBackendUser and setBackenPassword methods and nothing changed (the lgCtx variable had no backendUser or backendPassword set).

I found the this post and after trying the solution, I'm still not able to set user or password at the LogonCoreContext variable.

I've also tried to use the previous version of the maflogoncore jar (SP10 version) and still no change.

Can anyone help me to figure how will I be able to send any credentials to my SMP server?

Regards,

Vicente

Tags:
replied

I had the same issue, on the same project, and managed to bypass it (intructions will follow shortly).

You see, the getters and setters appear to leave the variables empty, but they could be passing the values into hidden variables. This means that "maybe" our variables "username" and "password" may be filled; let us assume for now that the variables are being correctly filled, and that we just don't have access to see their current values.

In order to fix the "problem" you're having when logging in, you'll need to install SP10 PL3, and after that, you'll be required to, as stated in here (page 6), to add the following libraries to your project:

AfariaSLL.jar

ClientHubSLL

ClientLog.jar

Common.jar

Connectivity.jar

CoreServices.jar

DataVaultLib.jar

HttpConvAuthFlows.jar

HttpConversation.jar

maflogoncore.jar

maflogger.jar

maflogonui.jar

mafuicomponents.jar

mafsettingscreen.jar

MobilePlace.jar

perflib.jar

Request.jar

sap-e2etrace.jar

SupportabilityFacade.jar

AFTER THAT, I added another library contained in SP10 PL3, "XscriptParser-3.10.3.jar".

This file can be found in

"\MobileSDK3Folder\NativeSDK\ODataFramework\Android\libraries\" .

I came across this fix this morning, and so far have been unable to fix the post-login simulator-cache problem, but... i guess that's for another topic.

Hope this was of help to you,

Flávio

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question