Important! A new Community experience launched on September 26, 2017. Read more about it here or continue to Base Camp.
Voting: 
Vote up!
0 Votes
4 Replies
Unanswered

Requested SPA app XXXXXXX not found on server

Question asked by Pothuraju Gorre on Feb 27, 2017 01:12 EST

Hi All,    I am new to Kony. I need your help regarding SPA. I just built a SPA and tring to run in browser. Form is loading but content is not loading into the segment. Can you please help me on this? Thanks in advance for your valuable time and help. In console I am getting below exception: Uncaught TypeError: Cannot read property 'generateUUID' of undefined     at Function.kony.sdk.getDeviceId (app.js:27383)     at Function.kony.sdk.getPayload (app.js:27349)     at _invokeOperation (app.js:25084)     at invokeOperationHandler (app.js:25057)     at Function.kony.sdk.claimsRefresh (app.js:19312)     at IntegrationService.invokeOperation (app.js:25059)     at loginIdentitySuccess (app.js:52)     at Function.kony.sdk.verifyAndCallClosure (app.js:24489)     at processLoginSuccessResponse (app.js:20106)     at app.js:20002 Regards, Raju.

Vote up!
0 votes
Vote down!

Hello Raju,

When you configure any service in mobile fabric and trying for desktop web you will not be able to test through local server.
You need to publish the application in mobile fabric and use the hostname,port of mobile fabric and access through it .

Kindly refer the below kony doc link for more on this,
http://docs.kony.com/konylibrary/visualizer/visualizer_user_guide/Default.htm#PublishMobileFabricServicesApp.htm%3FTocPath%3DBuilding%2520and%2520Viewing%2520an%2520Application%7C_____9

Thank you,
RaviKumarReddy
 

Replied by: Apr 14, 2017 05:49 EDT
Vote up!
0 votes
Vote down!

Hi RaviKumar,

I am also facing the same issue while running the SPA application in browser which is built in KonyVisualizer 7.2.0. I have followed the publish part as well per above reply. Still issue is not solved.


Uncaught TypeError: Cannot read property 'generateUUID' of undefined
    at Function.kony.sdk.getDeviceId (:8888/KIT838BestBuyApp/spaandroid/appjs/app.js:26192)
    at Function.kony.sdk.getPayload (:8888/KIT838BestBuyApp/spaandroid/appjs/app.js:26158)
    at _invokeOperation (:8888/KIT838BestBuyApp/spaandroid/appjs/app.js:23940)
    at invokeOperationHandler (:8888/KIT838BestBuyApp/spaandroid/appjs/app.js:23913)
    at Function.kony.sdk.claimsRefresh (:8888/KIT838BestBuyApp/spaandroid/appjs/app.js:18186)
    at IntegrationService.invokeOperation (:8888/KIT838BestBuyApp/spaandroid/appjs/app.js:23915)
    at getCategoryLists (:8888/KIT838BestBuyApp/spaandroid/appjs/app.js:28342)
    at loginMFSuccess (:8888/KIT838BestBuyApp/spaandroid/appjs/app.js:28541)
    at Function.kony.sdk.verifyAndCallClosure (:8888/KIT838BestBuyApp/spaandroid/appjs/app.js:23345)
    at processLoginSuccessResponse (:8888/KIT838BestBuyApp/spaandroid/appjs/app.js:18965)

 

If I check corresponding js file(kony_sdk.js), unable to fetch deviceID using "deviceID = kony.license.generateUUID().toString();"

is this issue related to license ? Please suggest me to resolve the issue.

Thanks
Srivani.

Replied by: May 18, 2017 07:36 EDT
Vote up!
0 votes
Vote down!

I am in the same situation running Visualizer 7.3.0
Works fine on native but not on SPA.


Anybody can help with this issue?

Replied by: Jun 26, 2017 12:56 EDT
Vote up!
0 votes
Vote down!

Hi,

Hope you are launching the SPA application onto the browser using local jetty server using the URL (e.g., http://localhost:8888/AppId/p) and getting the below error.

Uncaught TypeError: Cannot read property 'generateUUID' of undefined

To resolve this issue (, please go to your <visualizer_workspace_folder>/webapps/CertExBJOldVer/spaandroid/appjs and open app.js file. In this file serach for the below block.

if (name === "thinclient") {
        var deviceID = kony.ds.read("deviceID");
        if (!deviceID) {
            deviceID = kony.license.generateUUID().toString();
            kony.ds.save(deviceID, "deviceID");
        }
        return deviceID;
    }

Modify the above highlighted line  to deviceID = "spa" ;   and just reload the SPA url in browser , this error should not come.

 

Thanks,

Suman
          

Replied by: Sep 21, 2017 00:53 EDT