Topic
  • 2 replies
  • Latest Post - ‏2013-02-08T00:34:45Z by SystemAdmin
SystemAdmin
SystemAdmin
2327 Posts

Pinned topic Adapter Deployed issue on WL Consumer Server

‏2013-01-30T19:01:10Z |
Hi,

I have few adapters that are calling custom java code. they run perfectly fine in the Consumer studio but when i am deploying them and calling from the App (from browser view , not from device) they are giving following exceptions.

Failed to load resource: the server responded with a status of 401 (Unauthorized) https://bhn-01053.menacorp.com:9443/myApp/apps/services/api/CardApp/common/query
Request [/myApp/apps/services/api/CardApp/common/query] worklight.js:1097
response [/myApp/apps/services/api/CardApp/common/query] success: /*-secure-
{"isSuccessful":false,"WL-Authentication-Success":{"wl_antiXSRFRealm":{"userId":"antiXSRF","attributes":{"savedInstanceId":"6t9ltu121gffotnful21qncqah"},"isUserAuthenticated":1,"displayName":"antiXSRF"}},"warnings":[],"errors":["Ecma Error: TypeError: Cannot call property validateUserCredentials in object http://JavaPackage com.my.MQNotifier.LDAPService. It is not a function, it is \"object\".
(validateAmex-impl.js#13)"],"responseID":"2","info":[]}*/

I read these articles and followed suggestions but no benefit

https://www.ibm.com/developerworks/forums/thread.jspa?threadID=451627
http://www.ibm.com/developerworks/forums/thread.jspa?threadID=449264
My Adapter code is
function returnLDAPAuthentication(uid,upas){

return {

result: com.amex.MQNotifier.LDAPService.validateUserCredentials(uid,upas)
};
}
The validateUserCredentials signature is

public static String validateUserCredentials(String uID, String UPas) {
.....
}

As per above mentioned articles i provided the same JDK that WAS 8 is using but no benefit

My Envrion:
win 7
JDK 1.6
WAS 8
WL Consumer v5.0.5

Plz suggest.

Thanks
Abdul Ahad
  • SystemAdmin
    SystemAdmin
    2327 Posts

    Re: Adapter Deployed issue on WL Consumer Server

    ‏2013-01-30T19:02:03Z  
    See attached snap
  • SystemAdmin
    SystemAdmin
    2327 Posts

    Re: Adapter Deployed issue on WL Consumer Server

    ‏2013-02-08T00:34:45Z  
    See attached snap
    AAhad,

    It doesn't look like anyone has been able to respond to your post yet. If this is still an issue please see note below.
    Note: IBM forums are in the process of migrating to a new format. During migration the forums will be frozen and in read-only mode. If you wish to continue this thread discussion please post it on stackoverflow, where the Worklight team and others can respond.

    See the Forum Migration announce post for more details. Thank you.

    Barbara Hampson, Manager, IBM Worklight