cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to connect to SMP Onboarding Service in Appbuilder

Former Member
0 Kudos


I have been working with Appbuilder since 2 months ,Earlier I was able to make connections between appbuilder and SMP cloud SP02v.

But recentlly on retreving th e connection profile ,I am getting Error Message as:

Failed to connect to SMP Onboarding Service. The error message is:

{}

Earlier whenever I got connection issues the braces were not empty but now the error comes with empty braces.

If anyone could help me .what could be the reason behind the connection failure.

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Kudos

hi

I am able to connect now but getting this message after successful connection

Failed to get Service metadata.

any idea

Former Member
0 Kudos

Hi

I think your OData service is not implemented right then.

Former Member
0 Kudos

Hello Experts,

I am getting the same issue that getting this message after successful connection

Failed to get Service metadata.

Aditi have  you got solution to this issue??

Thanks

Former Member
0 Kudos

Hello ,

I am finally able to make a breakthrough , Simple solution as of now : Use SAFARI browser , in case of any error also it will showcase you exact error and you will be able to debug the same , while in case of CHROME it was just empty.

Attaching the screenshot the same thing works fine with Appbuilder running in safari while not running fine in chrome.

Chrome Screenshot

So i seems some issues with CHROME latest version , haven't tried with previous version of chrome , will check that also .

And

i think you may be right regarding chrome browser. but i am unable to apply the fix that you described , can you please elaborate the same with a few screenshot if possible .

Thanks

eamarce23
Participant
0 Kudos

Hello Somil,

Sure thing, what I found out was that deep in the code an error is raising due to the definition for objects createAttributeNS and setAttributeNodeNS was missing:

This due to an update in Chrome browser as I could read.

Anyway, what I did was taking the definition for this objects and adding it to the codefile that was generating the errors (datajs-1.1.0.min.js).

In this way, when the file loads again, definitions are no longer missing, and the code is able to run again:

Hope this helps

Regards!

Edgar.

Former Member
0 Kudos

I didn't get the last part,how to load and run the code again,in appbuilder page i can't right click  to see the sources.Can you help me ? im still having error connection with server.

eamarce23
Participant
0 Kudos

Hello lliona,

Sorry for the delay, sure, if you already have the code for the missing objects, go to the folder in which you have your app builder installed (in my case it is E:\APPBUILDER\newAppBuilder\appbuilder-1.0.1249) and browse through the folders to:  lib\onyx\util.  Once you are there, open the file named datajs-1.1.0.min.js and add the code for the missing object definitions. Save the file, open your app builder and try connecting again.

You can see if the sources were updated successfuly by using the Javascript Console tool in Chrome ( top right of the screen (icon with three bars) > tools > javascript console  and then Sources.

I hope this helps!

Regards!

Edgar.

eamarce23
Participant
0 Kudos

Hello Aditi,

If you are using Google Chrome to test the App builder, it seems that there have been some libraries that have been removed from Chrome's DOM API in a recent update, and that may be causing this issue:

https://code.google.com/p/chromium/issues/detail?id=347506

To solve it, I added code with the definition of createAttributeNS and setAttributeNodeNS from here:

https://gist.github.com/arv/9529994

To file datajs-1.1.0.min.js placed inside appbuilder-1.0.1249\lib\onyx\util folder.

Hope this helps!

Regards!

Edgar.

Former Member
0 Kudos

hi amrita,

i helped my colleague to solve the same issue as you met

here is what we did

configure the smp profile in appbuilder as followed

profile name:smp

server url:http://<host>:8080

application id: com.lawrence.flight  (the application id you created)

security config: flight   (the security setting which you created in smp which used the http authorization)

Uncheck allow anonymous login

Username: p160381

password: *******

hope it could fix your issue

enjoy smp 3.0

best regards

lawrence

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Lawrence,

I have tried with smp cloud edition and it didn't work. For "server" I have mentioned "smp cloud URL: SMP-PXXXXTRIAL.HANATRIAL.ONDEMAND.COM" as per Martin's blog but getting same error what Aditi has shared. Any thought?

Rgrds,

Jitendra

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

I am also getting the same issue when i go with "Allow anonymous connections". In fact, on-boarding is not working for an authenticated OData URL.

i have set the http proxy details in ide.json file.

CC: ,

Former Member
0 Kudos

Hello ,

Did Anyone got solution to it ?

As i am also facing the same issue, tried with anonymous login as well but still no luck.

I was able to register an application connection though using postman and also able to see services using the same .

But when i use app builder it gives me the same error as stated above .

After when i trigger retrieve the Onbaording get's failed giving no error, while in command prompt i am getting this message.

please have a look and suggest as what can be possible error,

tried over different network as well but no luck yet.

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Did you check smp server logs? Meanwhile, can you check with creating a connection profile and on board it. Does it get connected?

Former Member
0 Kudos

Yes I tried with creating connection profile and then trying to board it but getting the error as :

Failed to connect to SMP Onboarding Service. The error message is:

{}.

There are no server logs generated.

midhun_vp
Active Contributor
0 Kudos

Please go through the comments of this blog,,That might help you.

Midhun VP

Former Member
0 Kudos

hi,

I tried the above steps but still am getting

Failed to connect to SMP Onboarding Service. The error message is:

{}.

any idea what else should be tried

Earlier I was able to connect with the SMP onboarding service but now I am getting error .

Former Member
0 Kudos

Hi jitendra,

I hav established the connection ,created an app consuming the Odata service.

Need help on Deployment of Appbuilder application on SMP server

Please if you can let me know how to deploy the the app

I have created cordova application it shows sucess 100%

Deploy on SMP server 100% but it is not getting launch on simulator .

Please let me know the steps for deployment.