Morning. I tried your said just now , wrap the code with Context.executeInNew. But the getCause returns null , and the debug logs are useless , cause i found there is no diff to the stackTrace i wrote in the #1. Anyway , i gonna paste it below.
at java.lang.Class.newInstance(Unknown Source)
at ru.circumflex.core.UntypedContainer$class.instantiateObject(circumfle
x.scala:119)
at ru.circumflex.core.Circumflex$.instantiateObject(circumflex.scala:29)
at ru.circumflex.core.UntypedContainer$class.instantiate(circumflex.scal
a:108)
at ru.circumflex.core.Circumflex$.instantiate(circumflex.scala:29)
at ru.circumflex.orm.ORMConfiguration$class.connectionProvider(
config.scala:88)
at ru.circumflex.orm.SimpleORMConfiguration.connectionProvider(
config.scala:92)
at ru.circumflex.orm.Transaction.getConnection(config.scala:247)
at ru.circumflex.orm.Transaction.execute(config.scala:264)
at ru.circumflex.orm.Transaction.execute(config.scala:275)
at ru.circumflex.orm.SQLQuery$$anonfun$2.apply(query.scala:98)
at ru.circumflex.core.package$.time(package.scala:28)
at ru.circumflex.orm.SQLQuery.resultSet(query.scala:97)
at ru.circumflex.orm.Criteria.unique(criteria.scala:217)
at ru.circumflex.orm.Relation$$anonfun$get$1$$anonfun$apply$1.apply(rela
tion.scala:100)
at ru.circumflex.orm.Relation$$anonfun$get$1$$anonfun$apply$1.apply(rela
tion.scala:100)
at ru.circumflex.orm.RelationNode.map(node.scala:33)
at ru.circumflex.orm.Relation$$anonfun$get$1.apply(relation.scala:100)
at ru.circumflex.orm.Relation$$anonfun$get$1.apply(relation.scala:100)
at ru.circumflex.orm.DefaultCacheService$$anonfun$cacheRecord$2.apply(ca
che.scala:120)
at ru.circumflex.orm.DefaultCacheService$$anonfun$cacheRecord$2.apply(ca
che.scala:118)
at scala.Option.orElse(Option.scala:218)
at ru.circumflex.orm.DefaultCacheService.cacheRecord(cache.scala:118)
at ru.circumflex.orm.Relation$class.get(relation.scala:99)
at models.Role$.get(Role.scala:20)
at controllers.Application$$anonfun$index$1$$anonfun$apply$1.apply(Appli
cation.scala:18)
at controllers.Application$$anonfun$index$1$$anonfun$apply$1.apply(Appli
cation.scala:16)
at ru.circumflex.core.Context$.executeInNew(context.scala:90)
at controllers.Application$$anonfun$index$1.apply(Application.scala:16)
at controllers.Application$$anonfun$index$1.apply(Application.scala:12)
at play.api.mvc.Action$$anonfun$apply$4.apply(Action.scala:204)
at play.api.mvc.Action$$anonfun$apply$4.apply(Action.scala:204)
at play.api.mvc.Action$$anon$1.apply(Action.scala:170)
at play.core.ActionInvoker$$anonfun$receive$1$$anonfun$6.apply(Invoker.s
cala:126)
at play.core.ActionInvoker$$anonfun$receive$1$$anonfun$6.apply(Invoker.s
cala:126)
at play.utils.Threads$.withContextClassLoader(Threads.scala:17)
at play.core.ActionInvoker$$anonfun$receive$1.apply(Invoker.scala:125)
at play.core.ActionInvoker$$anonfun$receive$1.apply(Invoker.scala:115)
at akka.actor.Actor$class.apply(Actor.scala:318)
at play.core.ActionInvoker.apply(Invoker.scala:113)
at akka.actor.ActorCell.invoke(ActorCell.scala:626)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:197)
at akka.dispatch.Mailbox.run(Mailbox.scala:179)
at akka.dispatch.ForkJoinExecutorConfigurator$MailboxExecutionTask.exec(
AbstractDispatcher.scala:516)
at akka.jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:259)
at akka.jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:975)
at akka.jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1479)
at akka.jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104)