Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by goeh
, 1 year ago
Tenant could not be resolved outside a web request
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)