Review Buddy learning example java exception

This is such a great application for learning ! However at the end of the process I believe I have two exceptions. Can you help me solve them? I have not changed any of the source code in the example:

1. 21-Oct-2021 15:43:52.233 SEVERE [http-nio-13123-exec-9] org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.catchAllExceptions Id of the item to retrieve is missing in url http://localhost:13123/bonita/APIToolkit/identity/user/

2. Exception is: java.lang.ClassNotFoundException: org.apache.commons.text.translate.LookupTranslator

Here is my log showing the two exceptions:


21-Oct-2021 15:41:43.274 INFO [http-nio-13123-exec-2] org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl.log THREAD_ID=78 | HOSTNAME=Williams-MacBook-Pro.local.ucsf.edu | TENANT_ID=1 | The user <helen.kelly> has executed the task [name = <Submit Manager's Review>, display name = <Submit Manager's Review>, id = <194>, parent process instance = <6>, root process instance = <6>, process definition = <6654293200244070797>] with task inputs: {employeeReviewInput={accomplishmentsEmployee=starting bonitasoft, trainingEmployee=yes, summaryManager=nice year, reviewValidationHRDate=null, transparencyValueManager=good, accomplishmentsManager=architecture, excellenceValueEmployee=just look at guy output, excellenceValueManager=yes, trainingManager=java, collaborationValueEmployee=all the time, collaborationValueManager=great, reviewSubmissionManagerDate=null, summaryEmployee=all is good, reviewValidationHR=true, transparencyValueEmployee=every day, reviewValidationHRRemarks=null, reviewSubmissionEmployeeDate=null, areasOfImprovementEmployee=I need to learn more, areasOfImprovementManager=bonita techniques}}
21-Oct-2021 15:43:45.390 INFO [http-nio-13123-exec-5] org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl.log THREAD_ID=81 | HOSTNAME=Williams-MacBook-Pro.local.ucsf.edu | TENANT_ID=1 | The user <walter.bates> has executed the task [name = <Submit Employee's Review>, display name = <Submit Employee's Review>, id = <193>, parent process instance = <6>, root process instance = <6>, process definition = <6654293200244070797>] with task inputs: {employeeReviewInput={accomplishmentsEmployee=starting bonitasoft, trainingEmployee=yes, summaryManager=nice year, reviewValidationHRDate=null, transparencyValueManager=good, accomplishmentsManager=architecture, excellenceValueEmployee=just look at guy output, excellenceValueManager=yes, trainingManager=java, collaborationValueEmployee=all the time, collaborationValueManager=great, reviewSubmissionManagerDate=2021-10-21T22:41:43.321920Z, summaryEmployee=all is good, reviewValidationHR=true, transparencyValueEmployee=every day, reviewValidationHRRemarks=ok, reviewSubmissionEmployeeDate=null, areasOfImprovementEmployee=I need to learn more, areasOfImprovementManager=bonita techniques}}
21-Oct-2021 15:43:52.233 SEVERE [http-nio-13123-exec-9] org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.catchAllExceptions Id of the item to retrieve is missing in url http://localhost:13123/bonita/APIToolkit/identity/user/
    org.bonitasoft.web.rest.server.framework.exception.APIMissingIdException: Id of the item to retrieve is missing in url http://localhost:13123/bonita/APIToolkit/identity/user/
        at org.bonitasoft.web.rest.server.framework.APIServletCall.doGet(APIServletCall.java:168)
        at org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.doGet(ToolkitHttpServlet.java:206)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:655)
        at org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.service(ToolkitHttpServlet.java:72)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
        at org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.service(ToolkitHttpServlet.java:249)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
        at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
        at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
        at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
        at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
        at org.bonitasoft.console.common.server.login.filter.AbstractAuthorizationFilter.doFilter(AbstractAuthorizationFilter.java:61)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
        at org.bonitasoft.console.common.server.login.filter.ContentTypeSecurityFilter.proceedWithFiltering(ContentTypeSecurityFilter.java:65)
        at org.bonitasoft.console.common.server.filter.ExcludingPatternFilter.doFilter(ExcludingPatternFilter.java:37)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
        at org.bonitasoft.console.common.server.login.filter.FrameSecurityFilter.proceedWithFiltering(FrameSecurityFilter.java:66)
        at org.bonitasoft.console.common.server.filter.ExcludingPatternFilter.doFilter(ExcludingPatternFilter.java:37)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
        at org.bonitasoft.console.common.server.filter.NoCacheFilter.doFilter(NoCacheFilter.java:51)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:711)
        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:459)
        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:385)
        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:313)
        at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:213)
        at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:171)
        at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
        at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
        at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
        at org.bonitasoft.console.common.server.login.filter.AbstractAuthorizationFilter.doFilter(AbstractAuthorizationFilter.java:61)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
        at org.bonitasoft.console.common.server.login.filter.ContentTypeSecurityFilter.proceedWithFiltering(ContentTypeSecurityFilter.java:65)
        at org.bonitasoft.console.common.server.filter.ExcludingPatternFilter.doFilter(ExcludingPatternFilter.java:37)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
        at org.bonitasoft.console.common.server.login.filter.FrameSecurityFilter.proceedWithFiltering(FrameSecurityFilter.java:66)
        at org.bonitasoft.console.common.server.filter.ExcludingPatternFilter.doFilter(ExcludingPatternFilter.java:37)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
        at org.bonitasoft.console.common.server.filter.NoCacheFilter.doFilter(NoCacheFilter.java:51)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:711)
        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:459)
        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:385)
        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:313)
        at org.bonitasoft.console.common.server.page.CustomPageRequestModifier.forwardIfRequestIsAuthorized(CustomPageRequestModifier.java:64)
        at org.bonitasoft.console.common.server.page.PageServlet.service(PageServlet.java:97)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
        at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
        at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
        at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
        at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
        at org.bonitasoft.console.common.server.filter.CacheFilter.proceedWithFiltering(CacheFilter.java:71)
        at org.bonitasoft.console.common.server.filter.ExcludingPatternFilter.doFilter(ExcludingPatternFilter.java:37)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
        at org.bonitasoft.console.common.server.filter.ExcludingPatternFilter.excludePatternFiltering(ExcludingPatternFilter.java:42)
        at org.bonitasoft.console.common.server.filter.ExcludingPatternFilter.doFilter(ExcludingPatternFilter.java:35)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
        at org.bonitasoft.console.common.server.login.filter.AbstractAuthorizationFilter.doFilter(AbstractAuthorizationFilter.java:61)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
        at org.bonitasoft.console.common.server.login.filter.ContentTypeSecurityFilter.proceedWithFiltering(ContentTypeSecurityFilter.java:65)
        at org.bonitasoft.console.common.server.filter.ExcludingPatternFilter.doFilter(ExcludingPatternFilter.java:37)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
        at org.bonitasoft.console.common.server.login.filter.FrameSecurityFilter.proceedWithFiltering(FrameSecurityFilter.java:66)
        at org.bonitasoft.console.common.server.filter.ExcludingPatternFilter.doFilter(ExcludingPatternFilter.java:37)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357)
        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:382)
        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1726)
        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
        at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
        at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.base/java.lang.Thread.run(Thread.java:829)
21-Oct-2021 15:44:31.300 INFO [http-nio-13123-exec-8] org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl.log THREAD_ID=84 | HOSTNAME=Williams-MacBook-Pro.local.ucsf.edu | TENANT_ID=1 | The user <walter.bates> has executed the task [name = <Validate Employee's Review>, display name = <Validate Employee's Review>, id = <200>, parent process instance = <6>, root process instance = <6>, process definition = <6654293200244070797>] with task inputs: {employeeReviewInput={accomplishmentsEmployee=starting bonitasoft, trainingEmployee=yes, summaryManager=nice year, reviewValidationHRDate=null, transparencyValueManager=good, accomplishmentsManager=architecture, excellenceValueEmployee=just look at guy output, excellenceValueManager=yes, trainingManager=java, collaborationValueEmployee=all the time, collaborationValueManager=great, reviewSubmissionManagerDate=2021-10-21T22:41:43.321920Z, summaryEmployee=all is good, reviewValidationHR=true, transparencyValueEmployee=every day, reviewValidationHRRemarks=ok, reviewSubmissionEmployeeDate=2021-10-21T22:43:45.428087Z, areasOfImprovementEmployee=I need to learn more, areasOfImprovementManager=bonita techniques}}
21-Oct-2021 15:44:31.602 WARNING [Bonita-Worker-1-05] org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl.log THREAD_ID=251 | HOSTNAME=Williams-MacBook-Pro.local.ucsf.edu | TENANT_ID=1 | Work ExecuteConnectorOfActivity: flowNodeInstanceId = 202, connectorDefinitionName = generateReviewSummaryDOC failed. The element will be marked as failed. Exception is: java.lang.ClassNotFoundException: org.apache.commons.text.translate.LookupTranslator
    wrapped by java.lang.NoClassDefFoundError: org/apache/commons/text/translate/LookupTranslator
    wrapped by org.bonitasoft.engine.core.connector.exception.SConnectorException: java.lang.NoClassDefFoundError: org/apache/commons/text/translate/LookupTranslator
 exception was generated here:    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1407)
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1215)
    at org.bonitasoft.engine.classloader.BonitaClassLoader.loadClass(BonitaClassLoader.java:129)

 

Hi,

There is a known bug that has been fixed on the document connector. You should be able to update it to the 2.2.0 version from the Overview > Extension view.

We have added a note in the release note.

HTH
Romain

Thanks Romain, I got back to this yesterday and took your suggestion and it is fixed for me now. If anybody wants to do the same, the file is pom.xml and add these elements after other dependency elements. I tried to paste the xml snippet but this system won't display it!

      groupId: org.apache.xmlbeans       artifactId: xmlbeans       version: 3.0.1