Error 500 - DefaultTenantIdException

1
0
-1

So, I've installed Tomcat7 and I have mysql running and I have "installed" the bonita deployment files on the correct path, tomcat's manager indicated that the application is indeed running and has started. However, when accessing localhost:8080/bonita/ all I get is an error for "org.bonitasoft.console.common.server.utils.DefaultTenantIdException"

I thought it was because I had some sort of problem installing the app, however with the h2 database it is working, so my best guess would be some problem with the mysql connectors or the database itself.

Help?

Comments

Submitted by tugaknight on Tue, 05/26/2015 - 13:50

Also, bonita.log:

  1. 2015-05-26 12:41:29 org.bonitasoft.console.common.server.sso.filter.InternalSSOFilter
  2. SEVERE: Can't retrieve default tenant id
  3. org.bonitasoft.console.common.server.utils.DefaultTenantIdException: Can't retrieve default tenant id
  4. at org.bonitasoft.console.common.server.utils.TenantsManagementUtils.getDefaultTenantId(Tenant$
  5. at org.bonitasoft.console.common.server.login.TenantIdAccessor.getDefaultTenantId(TenantIdAcce$
  6. at org.bonitasoft.console.common.server.login.TenantIdAccessor.ensureTenantId(TenantIdAccessor$
  7. at org.bonitasoft.console.common.server.login.filter.AutoLoginRule.doAuthorize(AutoLoginRule.j$
  8. at org.bonitasoft.console.common.server.login.filter.AuthorizationFilter.isAuthorized(Authoriz$
  9. at org.bonitasoft.console.common.server.login.filter.AuthorizationFilter.doAuthorizationFilter$
  10. at org.bonitasoft.console.common.server.login.filter.AuthorizationFilter.doFilter(Authorizatio$
  11. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.jav$
  12. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  13. at org.bonitasoft.console.common.server.sso.filter.InternalSSOFilter.doFilter(InternalSSOFilte$
  14. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.jav$
  15. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  16. at org.bonitasoft.console.common.server.login.filter.SecurityFilter.doFilter(SecurityFilter.ja$
  17. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.jav$
  18. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  19. at org.bonitasoft.console.common.server.login.filter.NoCacheFilter.doFilter(NoCacheFilter.java$
  20. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.jav$
  21. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  22. t org.bonitasoft.console.common.server.sso.filter.InternalSSOFilter.doFilter(InternalSSOFilte$
  23. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.jav$
  24. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  25. at org.bonitasoft.console.common.server.login.filter.SecurityFilter.doFilter(SecurityFilter.ja$
  26. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.jav$
  27. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  28. at org.bonitasoft.console.common.server.login.filter.NoCacheFilter.doFilter(NoCacheFilter.java$
  29. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.jav$
  30. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  31. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
  32. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
  33. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
  34. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
  35. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
  36. at org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77)
  37. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
  38. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
  39. at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
  40. at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:$
  41. at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
  42. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
  43. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
  44. at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  45. Caused by: org.bonitasoft.engine.platform.NodeNotStartedException: The current node has not been start$
  46. at org.bonitasoft.engine.api.impl.ServerAPIImpl.checkMethodAccessibility(ServerAPIImpl.java:29$
  47. at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:280)
  48. at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:128)
  49. at org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:88)
  50. at com.sun.proxy.$Proxy16.login(Unknown Source)
  51. at org.bonitasoft.console.common.server.utils.TenantsManagementUtils.getDefaultTenantId(Tenant$
  52. ... 32 more
  53.  
  54. 2015-05-26 12:41:29 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/bonita].[homepage]
  55. SEVERE: Servlet.service() for servlet [homepage] in context with path [/bonita] threw exception [org.b$
  56. org.bonitasoft.engine.platform.NodeNotStartedException: The current node has not been started yet. Met$
  57. at org.bonitasoft.engine.api.impl.ServerAPIImpl.checkMethodAccessibility(ServerAPIImpl.java:29$

this goes on, but if it's an error it'll probably show up at the top

Submitted by tugaknight on Tue, 05/26/2015 - 14:07

After digging around I've added the following lines to the platform-tenant-config.properties:

  1. platform.create=true
  2. platform.tenant.create=true
  3. platform.stop=true
  4. platform.start=true

I am now at the login screen

Submitted by tugaknight on Wed, 05/27/2015 - 12:07

Today while trying this out it no longer works by using the address http://:8080/bonita , however using the address http://:8080/bonita/login.jsp?redirectUrl=portal/homepage the portal is working fine

1 answer

1
0
-1

Why was this required? Is there another answer at to why this is happening. I have the same problem

Comments

Submitted by tugaknight on Wed, 06/03/2015 - 10:11

My memory is a bit fuzzy, it's been some time since I've fixed it but from what I remember it was a problem with the creation of the database or it's tables. I haven't had the need to use "login.jsp?redirectUrl=portal/homepage" at the end of the url.

IF I remember correctly i simply deleted the entire bonita database (on mysql), created a new one, without any tables in it, and booted up as if it was a clean install and it was fixed

Notifications