java.lang.IllegalStateException: [Assertion failed] - this state invariant must be true

tip

If you're using boot 1.4.x you need to modify the @springBootTest annotation to @SpringBootTest(classes = DataFlowServerConfiguration.class). 1.3.8 doesn't have this problem as well.

tip

Spring Boot 1.4 changed their annotation system a little. Try using the @SpringBootApplication annotation for better results.


rafael

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Able to connect to a enterprise repository. Create a transformation and save in the save dialog click the folder icon and you get the following error. java.lang.IllegalStateException: [Assertion failed] - this state invariant must be true at org.springframework.util.Assert.state(Assert.java:384) at org.springframework.util.Assert.state(Assert.java:398) at com.pentaho.tenant.TenantUtils.getTenantId(TenantUtils.java:19) at com.pentaho.repository.RepositoryPaths.getTenantRootFolderPath(RepositoryPaths.java:89) at org.pentaho.di.repository.pur.PurRepository.loadRepositoryDirectoryTree(PurRepository.java:452) at org.pentaho.di.ui.repository.dialog.SelectDirectoryDialog.open(SelectDirectoryDialog.java:111) at org.pentaho.di.ui.trans.dialog.TransDialog$8.widgetSelected(TransDialog.java:508) at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1105) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:5925) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:519) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.pentaho.commons.launcher.Launcher.main(Launcher.java:110)
    via by Golda David,
  • Able to connect to a enterprise repository. Create a transformation and save in the save dialog click the folder icon and you get the following error. java.lang.IllegalStateException: [Assertion failed] - this state invariant must be true at org.springframework.util.Assert.state(Assert.java:384) at org.springframework.util.Assert.state(Assert.java:398) at com.pentaho.tenant.TenantUtils.getTenantId(TenantUtils.java:19) at com.pentaho.repository.RepositoryPaths.getTenantRootFolderPath(RepositoryPaths.java:89) at org.pentaho.di.repository.pur.PurRepository.loadRepositoryDirectoryTree(PurRepository.java:452) at org.pentaho.di.ui.repository.dialog.SelectDirectoryDialog.open(SelectDirectoryDialog.java:111) at org.pentaho.di.ui.trans.dialog.TransDialog$8.widgetSelected(TransDialog.java:508) at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1105) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:5925) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:519) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.pentaho.commons.launcher.Launcher.main(Launcher.java:110)
    via by Golda David,
  • Error while Implementing HATEOAS in Spring
    via Stack Overflow by Sunil Ks
    ,
    • java.lang.IllegalStateException: [Assertion failed] - this state invariant must be true at org.springframework.util.Assert.state(Assert.java:384) at org.springframework.util.Assert.state(Assert.java:398) at com.pentaho.tenant.TenantUtils.getTenantId(TenantUtils.java:19) at com.pentaho.repository.RepositoryPaths.getTenantRootFolderPath(RepositoryPaths.java:89) at org.pentaho.di.repository.pur.PurRepository.loadRepositoryDirectoryTree(PurRepository.java:452) at org.pentaho.di.ui.repository.dialog.SelectDirectoryDialog.open(SelectDirectoryDialog.java:111) at org.pentaho.di.ui.trans.dialog.TransDialog$8.widgetSelected(TransDialog.java:508) at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1105) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:5925) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:519) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.pentaho.commons.launcher.Launcher.main(Launcher.java:110)

    Users with the same issue

    Unknown visitor1 times, last one,
    tvrmsmith
    tvrmsmith2 times, last one,
    Axelo
    Axelo1 times, last one,
    olle.hallin
    olle.hallin2 times, last one,
    Nikolay Rybak
    Nikolay Rybak4 times, last one,
    62 more bugmates