Error when starting Bonita Server with Rest API Context plugin

1
0
-1

Hi,

We have installed the Rest Api Context (ContextAccess-2.10 -https://community.bonitasoft.com/project/restapicontext-) in our Bonita server (version CE 7.3.2 ), and sometimes (last month often), when Bonita server is started, show errors into de Bonita log, that not found the jars about this component, so the pending tasks crash when try to execute it because there is a call Rest Api Extension into the UI Form, we retrieve into one variable all possible variables from Case and Task., that simplify works with them.

The error is:

  1. 2018-11-06 05:00:17.221 +0100 INFORMACIÓN: org.bonitasoft.engine.EngineInitializer Starting platform...
  2. 2018-11-06 05:00:21.056 +0100 INFORMACIÓN: org.bonitasoft.engine.EngineInitializer Platform started successfully
  3. 2018-11-06 05:00:21.056 +0100 INFORMACIÓN: org.bonitasoft.engine.EngineInitializer Initialization of Bonita Engine done! ( took 12034ms)
  4. 2018-11-06 07:09:02.831 +0100 INFORMACIÓN: org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/bonita] RestletServlet: [Restlet] ServerServlet: component class is null
  5. 2018-11-06 07:09:03.147 +0100 INFORMACIÓN: org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/bonita] RestletServlet: [Restlet] Attaching application: org.bonitasoft.web.rest.server.BonitaRestletApplication@6d080ae2 to URI: /bonita/API
  6. 2018-11-06 07:09:03.163 +0100 INFORMACIÓN: org.restlet.Component.BonitaRestletApplication Starting org.bonitasoft.web.rest.server.BonitaRestletApplication application
  7. 2018-11-06 07:09:03.251 +0100 ADVERTENCIA: org.bonitasoft.console.common.server.page.CustomPageChildFirstClassLoader Failed to add file RestContextComponentJava-2.9.jar in classpath
  8. java.io.IOException: El sistema no puede encontrar la ruta especificada
  9. at java.io.WinNTFileSystem.createFileExclusively(Native Method)
  10. at java.io.File.createTempFile(File.java:2024)
  11. at org.bonitasoft.console.common.server.page.CustomPageChildFirstClassLoader.addOtherDependencies(CustomPageChildFirstClassLoader.java:85)
  12. at org.bonitasoft.console.common.server.page.CustomPageChildFirstClassLoader.addCustomPageResources(CustomPageChildFirstClassLoader.java:67)
  13. at org.bonitasoft.console.common.server.page.CustomPageService.getParentClassloader(CustomPageService.java:228)
  14. at org.bonitasoft.console.common.server.page.CustomPageService.buildPageClassloader(CustomPageService.java:197)
  15. at org.bonitasoft.console.common.server.page.CustomPageService.getPageClassloader(CustomPageService.java:95)
  16. at org.bonitasoft.console.common.server.page.RestApiRenderer.renderResponse(RestApiRenderer.java:70)
  17. at org.bonitasoft.console.common.server.page.RestApiRenderer.handleRestApiCall(RestApiRenderer.java:60)
  18. at org.bonitasoft.web.rest.server.api.extension.ApiExtensionResource.handleRequest(ApiExtensionResource.java:86)
  19. at org.bonitasoft.web.rest.server.api.extension.ApiExtensionResource.doHandle(ApiExtensionResource.java:42)
  20. at org.restlet.resource.ServerResource.doNegotiatedHandle(ServerResource.java:683)
  21. at org.restlet.resource.ServerResource.doConditionalHandle(ServerResource.java:357)
  22. at org.restlet.resource.ServerResource.handle(ServerResource.java:1044)
  23. at org.restlet.resource.Finder.handle(Finder.java:236)
  24. at org.restlet.routing.Filter.doHandle(Filter.java:150)
  25. at org.restlet.routing.Filter.handle(Filter.java:197)
  26. at org.restlet.routing.Router.doHandle(Router.java:422)
  27. at org.restlet.routing.Router.handle(Router.java:639)
  28. at org.restlet.routing.Filter.doHandle(Filter.java:150)
  29. at org.restlet.routing.Filter.handle(Filter.java:197)
  30. at org.restlet.routing.Filter.doHandle(Filter.java:150)
  31. at org.restlet.routing.Filter.handle(Filter.java:197)
  32. at org.restlet.routing.Filter.doHandle(Filter.java:150)
  33. at org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:140)
  34. at org.restlet.routing.Filter.handle(Filter.java:197)
  35. at org.restlet.routing.Filter.doHandle(Filter.java:150)
  36. at org.restlet.routing.Filter.handle(Filter.java:197)
  37. at org.restlet.engine.CompositeHelper.handle(CompositeHelper.java:202)
  38. at org.restlet.engine.application.ApplicationHelper.handle(ApplicationHelper.java:75)
  39. at org.restlet.Application.handle(Application.java:385)
  40. at org.bonitasoft.web.rest.server.BonitaRestletApplication.handle(BonitaRestletApplication.java:179)
  41. at org.restlet.routing.Filter.doHandle(Filter.java:150)
  42. at org.restlet.routing.Filter.handle(Filter.java:197)
  43. at org.restlet.routing.Router.doHandle(Router.java:422)
  44. at org.restlet.routing.Router.handle(Router.java:639)
  45. at org.restlet.routing.Filter.doHandle(Filter.java:150)
  46. at org.restlet.routing.Filter.handle(Filter.java:197)
  47. at org.restlet.routing.Router.doHandle(Router.java:422)
  48. at org.restlet.routing.Router.handle(Router.java:639)
  49. at org.restlet.routing.Filter.doHandle(Filter.java:150)
  50. at org.restlet.routing.Filter.handle(Filter.java:197)
  51. at org.restlet.engine.CompositeHelper.handle(CompositeHelper.java:202)
  52. at org.restlet.Component.handle(Component.java:408)
  53. at org.restlet.Server.handle(Server.java:507)
  54. at org.restlet.engine.connector.ServerHelper.handle(ServerHelper.java:63)
  55. at org.restlet.engine.adapter.HttpServerHelper.handle(HttpServerHelper.java:143)
  56. at org.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:1117)
  57. at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
  58. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
  59. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  60. at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  61. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  62. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  63. at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
  64. at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
  65. at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
  66. at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)
  67. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  68. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  69. at org.bonitasoft.console.common.server.login.filter.AbstractAuthorizationFilter.doFilter(AbstractAuthorizationFilter.java:60)
  70. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  71. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  72. at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:747)
  73. at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:485)
  74. at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:410)
  75. at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337)
  76. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  77. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  78. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  79. at java.lang.reflect.Method.invoke(Method.java:498)
  80. at net.bull.javamelody.JspWrapper.invoke(JspWrapper.java:151)
  81. at net.bull.javamelody.JdbcWrapper$DelegatingInvocationHandler.invoke(JdbcWrapper.java:282)
  82. at com.sun.proxy.$Proxy55.forward(Unknown Source)
  83. at org.bonitasoft.console.common.server.page.PageServlet.service(PageServlet.java:77)
  84. at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
  85. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
  86. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  87. at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  88. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  89. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  90. at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:203)
  91. at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:181)
  92. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  93. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  94. at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:165)
  95. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  96. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  97. at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
  98. at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
  99. at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
  100. at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)
  101. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  102. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  103. at org.bonitasoft.console.common.server.login.filter.AuthenticationFilter.isAuthorized(AuthenticationFilter.java:147)
  104. at org.bonitasoft.console.common.server.login.filter.AuthenticationFilter.doAuthenticationFiltering(AuthenticationFilter.java:130)
  105. at org.bonitasoft.console.common.server.login.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:117)
  106. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  107. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  108. at org.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:436)
  109. at org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:177)
  110. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  111. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  112. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
  113. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
  114. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
  115. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
  116. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
  117. at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
  118. at org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77)
  119. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
  120. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
  121. at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
  122. at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
  123. at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
  124. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  125. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  126. at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  127. at java.lang.Thread.run(Thread.java:748)

Any help will be welcome
Best regards

Jordi

3 answers

1
0
-1

Hello,

I think so, it should work, but I didn't test it.

Regards,

1
0
-1

Hi Pierre,

Thanks for your reply.

I have seen on the web that this new version 2.11 only supports versions 7.7, 7.6 and 7.5.
We have installed the 7.3.2 version of Bonita BPM, is it compatible?

Thanks

Jordi

1
0
-1

Hello,
The version 2.11 is ready for you then. This version does not include the JAVA librairy, using only the Groovy then.

Thank for your feedback!
Regards

Comments

Submitted by jordicato on Thu, 11/15/2018 - 17:26

Hello

We'll try new version.
Thanks a lot, Pierre.
Regards

Jirdi

Notifications