cancel
Showing results for 
Search instead for 
Did you mean: 

Kapsel Offline Error while trying to open store

0 Kudos

Hi everyone!

I am trying to power my application with Kapsel Offline OData plugin. When running the application on my android device I get an error when trying to open the store. This is the error message: "Failed to open offline store: [-10180] A communication error has occured. Reason: -1305 (MOBILINK_COMMUNICATIONS_ERROR) error 224 (libmlcrsa17.so) (system code 0)".

This was my setup:

  • HAT 1.23.2 on my machine working with Web IDE
  • SAP Fiori Web Application working. Source template = "servicecatalog.connectivityComponent".
  • HCPms enabled. I already create an application there with the same appID as my fiori app on Web IDE. The back end is set and is reachable (Ping gives success).
  • Authentication with Kapsel Logon is working fine

I have also created a project from the Kapsel Master Detail Offline and the same error occurs.

Can you guys help me solve this issue?

Regards,

Luis

Accepted Solutions (0)

Answers (5)

Answers (5)

jamie_cawley
Advisor
Advisor
0 Kudos

Make sure you are using an ARM based emulator not x86. For testing on device maybe you didn't enable usb debugging? Looks like 3.0 SP14 PL04 is the most up to date SDK.

Regards,

Jamie

SAP - Technology RIG

jamie_cawley
Advisor
Advisor
0 Kudos

Try updating your SDK, I'm testing with 3.0.14.1.

Regards,

Jamie

SAP - Technology RIG

0 Kudos

On sap store, the latest version I have access is 3.0.14.0.

What are the android versions supported? I am trying with different configurations on the emulator but still no success. These are my currently emulator configurations

I ran the application on my android phone and I did not get any error and the app started but with no data. When using the emulator I still get the error.. my problem is I can't debug the application using my phone as it is not recognized.

I have also updated HAT to version 1.24.1 and Cordova to version 6.3.1 (the supported version for this version of HAT).

Regards,

Luis

jamie_cawley
Advisor
Advisor
0 Kudos

What version of the sdk are you using? See

https://launchpad.support.sap.com/#/notes/0002385553

Regards,

Jamie

SAP - Technology RIG

0 Kudos

I have installed

  • Mobile SDK version 3.0.14.0
  • HAT version 1.23.2

I also tried to follow this blog post to test if I was able to create a template application that I could use to compare with my application but the error is still there. No matter the application, I always get that same error.

Thanks,

Luis

jamie_cawley
Advisor
Advisor
0 Kudos

Does the app work when offline is not enabled? Do you have the plugins device information and network connection enabled? How do you have the defining request defined? What errors do you see in hcpms? Are you using an arm based emulator, x86 may not work? See

https://blogs.sap.com/2014/09/15/getting-started-with-kapsel-part-15-offline-odata-new-in-sp05/

Regards,

Jamie

SAP - Technology RIG

0 Kudos

Hi Jamie!

The emulator is arm based and I have all the plugins selected. I am trying with just one request defined like this on my manifest:

"sap.mobile": {
    "_version": "1.1.0",
    "definingRequests": {
        "DOCUM_SD_DEC_FMSet": {
            "dataSource": "mainService",
	    "path": "/DOCUM_SD_DEC_FMSet"
        }
    }
}

Without the offline the application is working. Nevertheless there are a few details:

  • My application is a hybrid application. Web IDE adds a folder "hybrid" after building the Cordova project which has JS code to handle both the Loggon and OData. The OData code is looking to my manifest to search that piece of code.
  • On HCPms I have set this configuration for offline:
[endpoint]
name=rte.sap.fiori.decapagem
prepopulate_offline_db=Y
prepopulate_offline_db_interval=1440

[defining_request]
name=DOCUM_SD_DEC_FMSet
request=null
track_deltas=NEVER
is_shared_data=Y
refresh_interval=1440
delta_token_lifetime=0
  • When deploying from Web IDE to HAT, my manifest file refused because of that code above. I have to remove the code, deploy it and then add the code and build the project again locally in order to test it. This can be a symptom of some misconfiguration. What do you think? Web IDE says
(hybrid-toolkit) Get project zip encountered error: Cannot read property 'settings' of undefined
(hybrid-toolkit) The local deploy command execute failure reason: Cannot read property 'settings' of undefined at step apply boostrap & configuration

On HCPms I got this log for Offline (http://pastebin.com/MvNBdjUi). I see that the offline configurations were found and that the request was "Successfully completed". But also, at the beginning it say "unmatched handlerServiceName jaxrsOfflineConfigurationService". I am not sure what does that means.

What do you suggest me to try? I have already read the link you gave me but the code that I needed to see is not available. All the links to the different index.html files are broken.

jamie_cawley
Advisor
Advisor
0 Kudos

This may be related to the absolutes paths you defined for your datasources in the manifest. Try making them relative.

Regards,

Jamie

SAP - Technology RIG

0 Kudos

This is my data sources in the manifest. I'm using relative paths. I am able to access the data when previewing on the browser.

"dataSources": { "Z_FIORI_SRV": { "uri": "/sap/opu/odata/sap/Z_FIORI_SRV/", "type": "OData", "settings": { "odataVersion": "2.0", "localUri": "localService/Z_FIORI_SRV/metadata.xml" } } }