Bonita 5.10.2 REST API

1
+1
-1

Hi,

we are still using bonita 5.10.2, and for more features i must set up the rest api, i tested the rest api both in studio and bundle but it didn't work.
Example : i run this request from http client : http://server/bonita-server-rest/API/identityAPI/getAllUsers, i get this error :

<java.lang.IllegalArgumentException>
The options are null or not well set.

org.ow2.bonita.facade.impl.AbstractRemoteIdentityAPIImpl.getAPI(AbstractRemoteIdentityAPIImpl.java:58)org.ow2.bonita.facade.impl.AbstractRemoteIdentityAPIImpl.getAllUsers(AbstractRemoteIdentityAPIImpl.java:274)sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)java.lang.reflect.Method.invoke(Unknown Source)org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:124)org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:247)org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:212)org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:202)org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:441)org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:418)org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:111)org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:217)org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:159)javax.servlet.http.HttpServlet.service(HttpServlet.java:820)org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:534)org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:476)org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:468)org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:935)org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:404)org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:870)org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)org.eclipse.jetty.server.Server.handle(Server.java:346)org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1051)org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:592)org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:241)org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:528)java.lang.Thread.run(Unknown Source)


</java.lang.IllegalArgumentException>

do you know why i get this error ?

thank you

1 answer

1
0
-1

from the documentation you have to specify some options....

http://documentation.bonitasoft.com/javadoc/rest/5.9/API/identityAPI/getAllUsers/index.html

and before you ask, no, sorry I don't know.

regards
Sean

Notifications