IBM Support

Watson Explorer Deep Analytics Edition, oneWEX: Debugging Python API with Swagger sample client

Troubleshooting


Problem

The oneWEX Swagger UI provides a downloadable sample Python client:
image-20190729105736-1
The REST API is defined  in the Swagger file (https://<host>/docs/wex-public-apis.yaml)
A Dataset created using the API, causes a 500 NullPointerException (NPE) when queried via REST API.

Symptom

HTML error response returned by REST API
Exception thrown by application class 'com.ibm.ejs.container.util.ExceptionUtil.EJBException:399'
javax.ejb.EJBException: See nested exception; nested exception is: java.lang.NullPointerException
at com.ibm.ejs.container.util.ExceptionUtil.EJBException(ExceptionUtil.java:399)
at [internal classes]
at com.ibm.es.ama.rapi.EJSLocalNSLAMARequestHandler_460fecb2.handle(EJSLocalNSLAMARequestHandler_460fecb2.java)
at com.ibm.es.ama.rapi.RAPIServlet.service(RAPIServlet.java:63)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at [internal classes]
at com.ibm.es.ama.usermgmt.filter.CollectionLevelSecurityFilter.doFilter(CollectionLevelSecurityFilter.java:195)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:201)
at [internal classes]
at com.ibm.es.ama.usermgmt.filter.ImpersonateFilter.doFilter(ImpersonateFilter.java:156)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:201)
at [internal classes]
at com.ibm.es.ama.usermgmt.filter.CollectionStateFilter.doFilter(CollectionStateFilter.java:251)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:201)
at [internal classes]
Caused by: java.lang.NullPointerException:
at java.util.HashMap.merge(HashMap.java:1236)
at java.util.stream.Collectors.lambda$toMap$58(Collectors.java:1331)
at java.util.stream.Collectors$$Lambda$82.00000000AC0E9BD0.accept(Unknown Source)
at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:180)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:186)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1393)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:591)
at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:281)
at java.util.TreeMap$ValueSpliterator.forEachRemaining(TreeMap.java:2908)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:523)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:513)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:719)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:245)
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:510)
at com.ibm.es.ama.datamodel.manager.CollectionLabelMonitor$CollectionLabels.parse(CollectionLabelMonitor.java:87)
at com.ibm.es.ama.datamodel.manager.CollectionLabelMonitor.get(CollectionLabelMonitor.java:49)
at com.ibm.es.ama.rapi.AMARequestHandler.assignFieldLabels(AMARequestHandler.java:343)
at com.ibm.es.ama.rapi.AMARequestHandler.handle(AMARequestHandler.java:206)
... 13 more

Document Location

Worldwide

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SS8NLW","label":"IBM Watson Explorer"},"Component":"","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
31 July 2019

UID

ibm10961350