Hello,
I have this function:
$.ajax({
url : '../API/bpm/actorMember',
type : "POST",
data : JSON.stringify(payloadObj),
success : function(data, textStatus, request) {
//success
},
error: function() {
//error
},
timeout: 500
});
}
JSON.stringify(payloadObj) is equal to {“actor_id”:“102”,“user_id”:“401”}
It returns this error:
{
“exception”:“class java.lang.NullPointerException”,
“message”:“”,
“stacktrace”:[“org.bonitasoft.web.toolkit.client.common.json.JSonItemReader.parseItem(JSonItemReader.java:212)”,
“org.bonitasoft.web.toolkit.client.common.json.JSonItemReader.parseItem(JSonItemReader.java:198)”,
“org.bonitasoft.web.toolkit.client.common.json.JSonItemReader.parseItem(JSonItemReader.java:188)”,
“org.bonitasoft.web.toolkit.client.common.json.JSonItemReader.parseItem(JSonItemReader.java:168)”,
“org.bonitasoft.web.rest.server.framework.APIServletCall.getJSonStreamAsItem(APIServletCall.java:99)”,
“org.bonitasoft.web.rest.server.framework.APIServletCall.doPost(APIServletCall.java:187)”,
“org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.doPost(ToolkitHttpServlet.java:188)”,
“javax.servlet.http.HttpServlet.service(HttpServlet.java:643)”,
“org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.service(ToolkitHttpServlet.java:75)”,
“javax.servlet.http.HttpServlet.service(HttpServlet.java:723)”,
“org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.service(ToolkitHttpServlet.java:226)”,
“org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)”,
“org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)”,
“com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:176)”,
“com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:239)”,
“org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)”,
“org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)”,
“org.bonitasoft.console.common.server.login.filter.AbstractAuthorizationFilter.doFilter(AbstractAuthorizationFilter.java:60)”,
“org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)”,
“org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)”,
“org.bonitasoft.console.common.server.login.filter.AbstractAuthorizationFilter.doFilter(AbstractAuthorizationFilter.java:60)”,
“org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)”,
“org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)”,
“org.bonitasoft.console.common.server.sso.filter.AuthenticationFilter.checkExistingSessionOrFiltering(AuthenticationFilter.java:262)”,
“org.bonitasoft.console.common.server.sso.filter.AuthenticationFilter.checkExistingSessionOrFilteringAndManageException(AuthenticationFilter.java:144)”,
“org.bonitasoft.console.common.server.sso.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:120)”,
“org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)”,
“org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)”,
“org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)”,
“org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)”,
“org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)”,
“org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)”,
“org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77)”,
“org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)”,
“org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)”,
“org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)”,
“org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)”,
“org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)”,
“java.lang.Thread.run(Thread.java:619)”]
}
Thanks in advance
Manolo