Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
7 replies Latest Post - ‏2012-05-30T08:00:46Z by SystemAdmin
SystemAdmin
SystemAdmin
570 Posts
ACCEPTED ANSWER

Pinned topic Procedure Invocation failed

‏2012-03-23T20:54:57Z |
I am running Worklight 4.2 on Lion

The training module 6.0 Engadget Reader works correctly for me as an application.

If I try to run the RSSReader adapter via the Invoke Worklight Procedure in Eclipse it fails with:

2012-03-23 10:18:49 Starting procedure invocation on Worklight Server
2012-03-23 10:18:49 Not deploying adapter 'RSSReader' since it was not changed since last deployment
2012-03-23 10:18:49 Invoking procedure: 'getFeeds' of adapter 'RSSReader'
2012-03-23 10:18:49 Server host: localhost
2012-03-23 10:18:49 Server port: 8080
2012-03-23 10:18:49] Parameters: [
2012-03-23 10:18:49 Procedure invocation failed
2012-03-23 10:18:49 null
So I can invoke correctly from an application but not directly from eclipse. There is no entries in the server or error log

It appears to be some sort of client side error.
  • IdanAdar
    IdanAdar
    288 Posts
    ACCEPTED ANSWER

    Re: Procedure Invocation failed

    ‏2012-03-25T08:10:16Z  in response to SystemAdmin
    Hi,

    I have imported the module 6.0 project into Eclipse and invoked the getFeeds procedure. For me it returns data properly.
    I notice that in your log it is mentioned that the adapter was not deployed because it has not changed since the last time - have you made any changes to it before that?
  • SystemAdmin
    SystemAdmin
    570 Posts
    ACCEPTED ANSWER

    Re: Procedure Invocation failed

    ‏2012-03-25T19:41:48Z  in response to SystemAdmin
    Thanks for taking a look

    Are you running on a Mac?

    I repeated with a fresh deploy and got same result.

    WOrks fine as an app, but not from the eclipse
    2012-03-25 09:39:27 Sun Mar 25 09:39:27 HST 2012
    2012-03-25 09:39:27 Starting procedure invocation on Worklight Server
    2012-03-25 09:39:27 Deploying adapter: RSSReader
    2012-03-25 09:39:27 Server host: localhost
    2012-03-25 09:39:27 Server port: 8080
    2012-03-25 09:39:28 Adapter deployed successfully
    2012-03-25 09:39:28 Invoking procedure: 'getFeeds' of adapter 'RSSReader'
    2012-03-25 09:39:28 Server host: localhost
    2012-03-25 09:39:28 Server port: 8080
    2012-03-25 09:39:28] Parameters: [
    2012-03-25 09:39:28 Procedure invocation failed
    2012-03-25 09:39:28 null
  • IdanAdar
    IdanAdar
    288 Posts
    ACCEPTED ANSWER

    Re: Procedure Invocation failed

    ‏2012-03-26T06:42:43Z  in response to SystemAdmin
    Yep, I have tested this on both my Mac (OS X Lion 10.7.3) and PC (Windows 7) machines; in both I have imported a fresh copy of module_06_0_EngadgetReader, followed by a right-click on the RSSReader adapter folder and choosing Run As >> Invoke Worklight Procedure.

    Tested using Worklight Server and Studio version 4.2.1.

    Could you please try again by deleting the project from the Eclipse workspace and freshly import a new copy of the project from the solutions zip file?
  • SystemAdmin
    SystemAdmin
    570 Posts
    ACCEPTED ANSWER

    Re: Procedure Invocation failed

    ‏2012-03-26T18:01:29Z  in response to SystemAdmin
    I am on Worklight Studio 4.2.2...so maybe that is the issue

    This is a minor inconvenience at the moment, so I will proceed and will see if anything comes out of further debugging.

    thanks
    Steve
  • SystemAdmin
    SystemAdmin
    570 Posts
    ACCEPTED ANSWER

    Re: Procedure Invocation failed

    ‏2012-03-26T19:49:34Z  in response to SystemAdmin
    I have the same issue with the 4.2.2 environment. I have tried reimporting and redeploying several times. I also tried the Engadget module from the 421 GettingStarted section.

    Adapter is fine from within the app and direct thru a URL but the eclipse 'Invoke Procedure' test fails.
  • IdanAdar
    IdanAdar
    288 Posts
    ACCEPTED ANSWER

    Re: Procedure Invocation failed

    ‏2012-03-27T06:07:58Z  in response to SystemAdmin
    I have now also tested with Worklight Server and Studio v4.2.2.1283, and again, a fresh import of module 6's project and invoking the adapter passed and successfully retrieved data...

    Could you please attach your copy of the module project?
  • SystemAdmin
    SystemAdmin
    570 Posts
    ACCEPTED ANSWER

    Re: Procedure Invocation failed

    ‏2012-05-30T08:00:46Z  in response to SystemAdmin
    I got exactly the same problem with all my adapters (ones I had written and ones imported from the tutorial projects).

    I managed to fix it by switching Eclipse to NOT use its internal web browser (Window -> Web Browser -> Change from '0 Internal Web Browser' to '1 Default system web browser').

    Try changing that and see if you can now run your adapter.