Bonita errors server

1
0
-1

Hi,

I'm having the following errors when running bonita in JBoss. I tried to disable an App and I had this error:

  1. 2014-05-21 10:09:17,284 SEVERE [org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet] (http-172.16.5.210-8080-11)
  2. java.lang.IllegalArgumentException
  3. at java.nio.Buffer.position(Buffer.java:235)
  4. at org.apache.tomcat.util.buf.B2CConverter.convert(B2CConverter.java:84)
  5. at org.apache.catalina.connector.InputBuffer.realReadChars(InputBuffer.java:403)
  6. at org.apache.tomcat.util.buf.CharChunk.substract(CharChunk.java:416)
  7. at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:432)
  8. at org.apache.catalina.connector.CoyoteReader.read(CoyoteReader.java:105)
  9. at org.apache.catalina.connector.CoyoteReader.readLine(CoyoteReader.java:158)
  10. at org.bonitasoft.web.toolkit.server.ServletCall.getInputStream(ServletCall.java:139)
  11. at org.bonitasoft.web.rest.server.framework.APIServletCall.doPut(APIServletCall.java:191)
  12. at org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.doPut(ToolkitHttpServlet.java:189)
  13. at javax.servlet.http.HttpServlet.service(HttpServlet.java:640)
  14. at org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.service(ToolkitHttpServlet.java:71)
  15. at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  16. at org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.service(ToolkitHttpServlet.java:222)
  17. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  18. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  19. at org.bonitasoft.console.common.server.login.filter.FilterManager.pageRedirect(FilterManager.java:88)
  20. at org.bonitasoft.console.common.server.login.filter.FilterManager.doFilter(FilterManager.java:68)
  21. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  22. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  23. at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  24. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  25. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  26. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
  27. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
  28. at java.nio.Buffer.position(Buffer.java:235)
  29. at org.apache.tomcat.util.buf.B2CConverter.convert(B2CConverter.java:84)
  30. at org.apache.catalina.connector.InputBuffer.realReadChars(InputBuffer.java:403)
  31. at org.apache.tomcat.util.buf.CharChunk.substract(CharChunk.java:416)
  32. at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:432)
  33. at org.apache.catalina.connector.CoyoteReader.read(CoyoteReader.java:105)
  34. at org.apache.catalina.connector.CoyoteReader.readLine(CoyoteReader.java:158)
  35. at org.bonitasoft.web.toolkit.server.ServletCall.getInputStream(ServletCall.java:139)
  36. at org.bonitasoft.web.rest.server.framework.APIServletCall.doPut(APIServletCall.java:191)
  37. at org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.doPut(ToolkitHttpServlet.java:189)
  38. at javax.servlet.http.HttpServlet.service(HttpServlet.java:640)
  39. at org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.service(ToolkitHttpServlet.java:71)
  40. at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  41. at org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.service(ToolkitHttpServlet.java:222)
  42. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  43. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  44. at org.bonitasoft.console.common.server.login.filter.FilterManager.pageRedirect(FilterManager.java:88)
  45. at org.bonitasoft.console.common.server.login.filter.FilterManager.doFilter(FilterManager.java:68)
  46. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  47. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  48. at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  49. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  50. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  51. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
  52. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
  53. at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
  54. at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
  55. at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
  56. at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
  57. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
  58. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  59. at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
  60. at org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77)
  61. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  62. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
  63. at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
  64. at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
  65. at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
  66. at java.lang.Thread.run(Thread.java:679)

after restarting JBoss the error disappeared.

Other error I have happens when I try to start an App (that is in the server and enabled) and I get:

  1. 2014-05-21 11:06:01,959 SEVERE [org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet] (http-172.16.5.210-8080-1)
  2. java.lang.NullPointerException
  3. at org.bonitasoft.web.rest.server.framework.json.JSonSimpleDeserializer.unserializeTreeNode(JSonSimpleDeserializer.java:74)
  4. at org.bonitasoft.web.rest.server.framework.json.JSonSimpleDeserializer.unserializeTreeNode(JSonSimpleDeserializer.java:85)
  5. at org.bonitasoft.web.rest.server.framework.json.JSonSimpleDeserializer.unserializeTreeNode(JSonSimpleDeserializer.java:68)
  6. at org.bonitasoft.web.rest.server.framework.json.JSonSimpleDeserializer._unserializeTree(JSonSimpleDeserializer.java:60)
  7. at org.bonitasoft.web.toolkit.client.common.json.JSonItemReader.parseItem(JSonItemReader.java:178)
  8. at org.bonitasoft.web.toolkit.client.common.json.JSonItemReader.parseItem(JSonItemReader.java:168)
  9. at org.bonitasoft.web.rest.server.framework.APIServletCall.getJSonStreamAsItem(APIServletCall.java:84)
  10. at org.bonitasoft.web.rest.server.framework.APIServletCall.doPost(APIServletCall.java:169)
  11. at org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.doPost(ToolkitHttpServlet.java:184)
  12. at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
  13. at org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.service(ToolkitHttpServlet.java:71)
  14. at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  15. at org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.service(ToolkitHttpServlet.java:222)
  16. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  17. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  18. at org.bonitasoft.console.common.server.login.filter.FilterManager.pageRedirect(FilterManager.java:88)
  19. at org.bonitasoft.console.common.server.login.filter.FilterManager.doFilter(FilterManager.java:68)
  20. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  21. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  22. at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  23. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  24. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  25. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
  26. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
  27. at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
  28. at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
  29. at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
  30. at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
  31. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
  32. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  33. at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
  34. at org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77)
  35. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  36. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
  37. at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
  38. at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
  39. at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
  40. at java.lang.Thread.run(Thread.java:679)

This does not happen to all Apps in bonita. Some of them work... Can anyone help me on this? Thank you

Comments

Submitted by ttoine on Thu, 05/22/2014 - 17:42

what do you mean by "an app" ? a Bonita Process ?

Submitted by aurelien.pupier on Tue, 06/10/2014 - 14:42

Hi,

does the process work when deployed from the Studio? Are you on Linux or Windows? Does your process name contained special characters , spaces or accent? If yes, please try the latest version, some work was done to better support UTF-8.

Regards,

Submitted by henriqg on Fri, 06/20/2014 - 18:06

Also, Bonita is very unstable... Another error is when updating a case variable through REST API sometimes it works sometimes I get:

SEVERE [org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet] (http-172.16.5.210-8080-2) java.lang.IllegalArgumentException at java.nio.Buffer.position(Buffer.java:235) at org.apache.tomcat.util.buf.B2CConverter.convert(B2CConverter.java:84) at org.apache.catalina.connector.InputBuffer.realReadChars(InputBuffer.java:403) at org.apache.tomcat.util.buf.CharChunk.substract(CharChunk.java:416) at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:432) at org.apache.catalina.connector.CoyoteReader.read(CoyoteReader.java:105) at org.apache.catalina.connector.CoyoteReader.readLine(CoyoteReader.java:158) at org.bonitasoft.web.toolkit.server.ServletCall.getInputStream(ServletCall.java:139) at org.bonitasoft.web.rest.server.framework.APIServletCall.doPut(APIServletCall.java:191) at org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.doPut(ToolkitHttpServlet.java:189) at javax.servlet.http.HttpServlet.service(HttpServlet.java:640) at org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.service(ToolkitHttpServlet.java:71) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.service(ToolkitHttpServlet.java:222) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.bonitasoft.console.common.server.login.filter.FilterManager.pageRedirect(FilterManager.java:88) at org.bonitasoft.console.common.server.login.filter.FilterManager.doFilter(FilterManager.java:68) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92) at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126) at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) at org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:679)

Bonita instability is also valid for installing, enabling, desabling and deleting an app...

Submitted by aurelien.pupier on Mon, 06/23/2014 - 08:52

Hi,

please answer the first questions if you want some help.

For the second one, please indicate also which REST request you are using.

Regards,

1 answer

1
0
-1
This one is the BEST answer!

The null pointer exception was due to trying to start a process that didn't exist in bonita.

But the other remains...

Copying from my comment:

lso, Bonita is very unstable... Another error is when updating a case variable through REST API (http://documentation.bonitasoft.com/web-rest-api-examples#set_variables) sometimes it works sometimes I get:

SEVERE [org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet] (http-172.16.5.210-8080-2) java.lang.IllegalArgumentException at java.nio.Buffer.position(Buffer.java:235) at org.apache.tomcat.util.buf.B2CConverter.convert(B2CConverter.java:84) at org.apache.catalina.connector.InputBuffer.realReadChars(InputBuffer.java:403) at org.apache.tomcat.util.buf.CharChunk.substract(CharChunk.java:416) at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:432) at org.apache.catalina.connector.CoyoteReader.read(CoyoteReader.java:105) at org.apache.catalina.connector.CoyoteReader.readLine(CoyoteReader.java:158) at org.bonitasoft.web.toolkit.server.ServletCall.getInputStream(ServletCall.java:139) at org.bonitasoft.web.rest.server.framework.APIServletCall.doPut(APIServletCall.java:191) at org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.doPut(ToolkitHttpServlet.java:189) at javax.servlet.http.HttpServlet.service(HttpServlet.java:640) at org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.service(ToolkitHttpServlet.java:71) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.service(ToolkitHttpServlet.java:222) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.bonitasoft.console.common.server.login.filter.FilterManager.pageRedirect(FilterManager.java:88) at org.bonitasoft.console.common.server.login.filter.FilterManager.doFilter(FilterManager.java:68) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92) at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126) at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) at org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:679)

Bonita instability is also valid for installing, enabling, desabling and deleting an app through Bonita Portal.

I am using the API following the documentation (http://documentation.bonitasoft.com/web-rest-api-details)

Also, I find Bonita exceptions very hard to understand has they do not provide any message of the error that occurred... I have to try and figure everything out...

Notifications