org.grails.datastore.mapping.multitenancy.exceptions.TenantNotFoundException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

    • org.grails.datastore.mapping.multitenancy.exceptions.TenantNotFoundException: Tenant could not be resolved outside a web request at org.grails.datastore.mapping.multitenancy.web.SessionTenantResolver.resolveTenantIdentifier(SessionTenantResolver.groovy:39) at grails.gorm.multitenancy.Tenants.currentId(Tenants.groovy:58) at current.tenant.issue.Person.beforeValidate(Person.groovy:27) at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:216) at org.grails.datastore.gorm.support.EventTriggerCaller$MethodCaller.call(EventTriggerCaller.java:147) at org.grails.datastore.gorm.support.EventTriggerCaller.call(EventTriggerCaller.java:90) at org.grails.datastore.gorm.support.BeforeValidateHelper$BeforeValidateEventTriggerCaller.call(BeforeValidateHelper.java:44) at org.grails.orm.hibernate.support.ClosureEventListener.onValidate(ClosureEventListener.java:383) at org.grails.orm.hibernate.EventTriggeringInterceptor.onValidate(EventTriggeringInterceptor.java:181) at org.grails.orm.hibernate.EventTriggeringInterceptor.onPersistenceEvent(EventTriggeringInterceptor.java:92) at org.grails.datastore.mapping.engine.event.AbstractPersistenceEventListener.onApplicationEvent(AbstractPersistenceEventListener.java:51) at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:166) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:382) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:336) at org.grails.datastore.gorm.events.ConfigurableApplicationContextEventPublisher.publishEvent(ConfigurableApplicationContextEventPublisher.groovy:30) at org.grails.orm.hibernate.AbstractHibernateGormInstanceApi.save(AbstractHibernateGormInstanceApi.groovy:114) at org.grails.datastore.gorm.GormEntity$Trait$Helper.save(GormEntity.groovy:151) at current.tenant.issue.PersonHandler.createWithCar_closure2(PersonHandler.groovy:29)
    No Bugmate found.