• XpagesSBT-Probs

    By Lothar Mueller 1 decade ago

    Trying to get up and running with XPagesSBT.nsf. All refers to the versions that came with the 20120126 release.

    I created a new "WebSecurity.nsf" from the included .ntf right in the root of my server. Just to be sure I put XPagesSBT.nsf right next to it in the root as well.

    Both DBs are signed with my ID; I'm having full access rights on the server (it's an experimental setup anyways).

    Opening XPagesSBT.nsf I'm prompted for basic credentials. The Welcome Page opens fine, but from there on the only other page I can open is the utilities one.

    Trying to open e.g. "Dropbox" results in a runtime error:

    ---

    Page Name:/DropboxFiles.xsp; Control Id: _id5;

     

    Error while executing JavaScript action expression
    
    Script interpreter error, line=1, col=26: Error calling method 'isAuthenticated()' on java class 'com.ibm.xsp.extlib.sbt.services.client.endpoints.DropboxEndpoint'
    

    Code:

     

       1: if(!@Endpoint("dropbox").isAuthenticated()) {
    
       2:  @Endpoint("dropbox").authenticate(true);
    
       3:  }
    

    ---

    Calling DropboxOAuth.xsp from the same DB (following this article here:

    http://www.openntf.org/Projects/pmt.nsf/DA2F4D351A9F15B28625792D002D1F18/%24file/SocialEnabler111006.pdf)

    results in this error:

     

    Page Name:/DropboxOAuth.xsp
    
    Control Id: dumpObject2
    

     

    Error while executing JavaScript computed expression
    
    Script interpreter error, line=1, col=28: Error calling method 'acquireToken()' on java class 'com.ibm.xsp.extlib.sbt.security.oauth_10a.OAProvider'
    

      1: dropbox.getOAuthProvider().acquireToken()

    ---

    I already tried cleaning/ rebuilding the entire project - didn't help this time

    I feel I'm missing something here, what could that be? Can it have to do with the experimental state of my server since it can't be reached from outside my office?

    Greets,

    Lothar

    • Update on my prev. post

      By Lothar Mueller 1 decade ago

      Just replaced both dbs (websecurity AND XPagesSBT) with previous versions (2011-12-16). And now I can at least access the IBM Connections on greenhouse info. all the others, however (LotusLive, Dropbox etc.) keep on running into errors

      • You should use the latest DB

        By Philippe Riand 1 decade ago

        Can you please attach the stack trace?

        • Situation chenged again...

          By Lothar Mueller 1 decade ago

          Thanks for your reply on this. Last night I gave it a few more tries, and this morning I find this situation:

          Am running the latest XPagesSBT.nsf (2012-01-26) with an older Token Store DB (2011-12-16).

          Greenhouse Connections and Sametime appear to be working fine now.

          LotusLive, IBM SBT an Twitter aren't configured (yet)

          FacebookPlugins.xsp gives me some kind of pre-defined activity stream, some kind of test profile from Nicklas, I assume

          Trying to access my own Facebook account from/FacebookClientAPI.xsp >> Login with Facebook results in an error telling me "An error occurred. Please try again later"; this error is constant since last night

          Dropbox is working now, as well, at least partially. I got it working using an uri slightly different from the one shown in one of the tutorial pdfs:

          /api.dropbox.com/1/*

          (instead of/0/*...). this enables me to create a user token and read my real dropbox login name from/DropboxOAuth.xsp. But trying to access/DropboxFiles.xsp results in a message "An error occurred". On the server console this error is displayed:

          03.02.2012 09:50:34   HTTP JVM: Client service request to: https://api.dropbox.c
          om/1/metadata/dropbox did not return OK status. Status returned: 400, reason: Ba
          d Request, expected: 200. For more detailed information, please consult error-lo
          g-0.xml located in C:/Program Files/IBM/Lotus/D
          [0CDC:000A-0E20] 03.02.2012 09:50:34   HTTP JVM: mino/data/domino/workspace/logs

          Hope this helps.

          Best regards,

          Lothar