Hello, 
I have a SWP webservice taht is defined the most basically possible, it's a 
ui:JSONService and it is supposed to use a few parameters defined with 
spin:constraint : 
Argument directorysynchro:entityDirectoryGraph : rdfs:Resource
Argument directorysynchro:entityDirectoryZipFilePath : xsd:string

However, when I use Postman to send the following POST request : 
http://localhost:8083/tbl/swp?_viewClass=directorysynchro:_test_ImportDirectory_zipFile&directorysynchro:entityDirectoryGraph=urn:x-evn-master:graph_in_edg&directorysynchro:entityDirectoryZipFilePath=/project/filepath
I instantly get this error

org.topbraid.core.servlet.HttpErrorException: Exception in SWP Servlet
at org.topbraidlive.swp.servlet.SWPServlet.run(SWPServlet.java:220)
at org.topbraidlive.swp.servlet.SWPServlet.run(SWPServlet.java:132)
at org.topbraidlive.swp.servlet.SWPServlet.run(SWPServlet.java:114)
at org.topbraidlive.swp.servlet.SWPServlet.doPost(SWPServlet.java:77)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
... Rest omitted
Caused by: java.lang.NullPointerException
at 
org.topbraid.spin.swp.servlet.SWPServletUtil.addParametersToScope(SWPServletUtil.java:585)
at 
org.topbraid.spin.swp.servlet.SWPServletUtil.addParametersToScope(SWPServletUtil.java:543)
at 
org.topbraid.spin.swp.servlet.SWPServletUtil.getView(SWPServletUtil.java:413)
at 
org.topbraid.spin.swp.servlet.SWPServletUtil.runUncached(SWPServletUtil.java:740)
at org.topbraid.spin.swp.servlet.SWPServletUtil.run(SWPServletUtil.java:729)
at org.topbraidlive.swp.servlet.SWPServlet.run(SWPServlet.java:180)
... 45 more

What's strange is that when I try to send the same request as a GET, the 
service does start (I get logs and ui:dumpScope), however the parameters 
are not properly bound (I check them with ui:dumpscope but they are all 
empty)

-- 
You received this message because you are subscribed to the Google Groups 
"TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/8ed2df51-2b1c-4a1e-b4ee-019be28002f9n%40googlegroups.com.

Reply via email to