zOS Connect API not working

Hi,

I have created an API to fetch data from DB2 table when pass id and password. API is created and deployed to var/zosconnect/servers/server/resources/apis.

But when I invoke API thru the browser and pass two parameters id and password it shows up empty page.
![alt text][1]

In Message.log can see error : (No Array used in copybook)
————————————————————————————————————————————–
[6/30/17 13:52:17:313 GMT] 00000073 com.ibm.wsspi.webcontainer.async W SRVE8025E: An error or timeout occured while doing async servlet processing.
java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 1
at com.ibm.zosconnect.internal.ApiManagerImpl.invokeApi(Unknown Source)
at com.ibm.zosconnect.internal.web.ServiceProxyServlet$1.run(Unknown Source)
at com.ibm.ws.webcontainer.async.ServiceWrapper.wrapAndRun(ServiceWrapper.java:202)
at com.ibm.ws.webcontainer.async.ContextWrapper.run(ContextWrapper.java:29)
at com.ibm.ws.webcontainer.async.WrapperRunnableImpl.run(WrapperRunnableImpl.java:74)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1153)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.lang.Thread.run(Thread.java:785)
————————————————————————————————————————————–

But I am able to retrieve the data thru REST Client by passing JSON format key info as below

![alt text][2]

[1]: /answers/storage/temp/15879-bwrser.png
[2]: /answers/storage/temp/15880-rest.png

Not sure why its not working at end point but works in REST client

Related:

Leave a Reply