Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [SOLVED] Qt Mobility / Service framework / Insufficient credentials to load a service instance / InvalidServiceLocation
Qt 6.11 is out! See what's new in the release blog

[SOLVED] Qt Mobility / Service framework / Insufficient credentials to load a service instance / InvalidServiceLocation

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 3 Posters 2.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    billouparis
    wrote on last edited by
    #1

    Hello,

    i've been stuck for some hours with this issue while trying to implement a simple example to use the service framework of Qt Mobility with two processes.

    First process was registering the service itself, second process was a client that tried to get the interface of the remote service and performed a call to a given method.

    When the client process was basically performing a "loadinterface" with a service descriptor it simply kept failing returning error 2 : InvalidServiceLocation and the output terminal showed a "Insufficient credentials to load a service instance" message.

    I finally found out what was the issue in the end. I had a mismatch between the name of my interface in my service XML file (eg com.nokia.examples.sfw.MyService) and the name I used in the service process while registering the remote service using the createEntry call, I had a different name here.
    This difference in names led to the issue.

    Hopefully this post will help other persons too, because I did not find any other online help refering to this "Insufficient credentials to load a service instance" message anywhere!

    Cheers!
    Bill

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      Thanks a lot for sharing your experience.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • S Offline
        S Offline
        stukdev
        wrote on last edited by
        #3

        Hi, i found that error 2 is 'The service was not found at its specified location' not 'Insufficient credentials to load a service instance' from "doc":http://doc.qt.nokia.com/qtmobility-1.2/qservicemanager.html Where you read that?

        Edit:
        i found the 'error' the message is from "here":http://qt.gitorious.org/qt-mobility/simulator-mobility/blobs/aef279aed9954ac48bf7e033e277ad88a29cb5fb/src/serviceframework/ipc/qremoteserviceregister_dbus_p.cpp#line298 and this is another error message not link with the previous one. You're confused the two differente error :)

        Ps: I think service in mobility is based on dbus, and for me the most frequent error is a bad called slot after a different declaration on xml interface :)

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved