X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;ds=sidebyside;f=runtime%2Forg.argeo.slc.support.simple%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fcore%2Fexecution%2FExecutionScope.java;h=a24046a99869a443f4fb024de4a5aff5875599e3;hb=9c82ed02a7ee7b4a757853d8160587b27e493f1a;hp=7deb9f5788923bef2c6a1368a7664be308cc140d;hpb=e5249c75ef672c95d9cf5405b05cabf6083d18a6;p=gpl%2Fargeo-slc.git diff --git a/runtime/org.argeo.slc.support.simple/src/main/java/org/argeo/slc/core/execution/ExecutionScope.java b/runtime/org.argeo.slc.support.simple/src/main/java/org/argeo/slc/core/execution/ExecutionScope.java index 7deb9f578..a24046a99 100644 --- a/runtime/org.argeo.slc.support.simple/src/main/java/org/argeo/slc/core/execution/ExecutionScope.java +++ b/runtime/org.argeo.slc.support.simple/src/main/java/org/argeo/slc/core/execution/ExecutionScope.java @@ -30,11 +30,13 @@ public class ExecutionScope implements Scope { // Check whether we are in an execution // FIXME: do it more properly (not static) // see https://www.argeo.org/bugzilla/show_bug.cgi?id=82 - if (!ExecutionAspect.inModuleExecution.get()) + if (!ExecutionAspect.inModuleExecution.get()) { log - .error("An execution context is being instatiated outside an execution." - + " Please check that your references to execution contexts." + .error("An execution context is being instantiated outside a module execution." + + " Please check your references to execution contexts." + " This may lead to unexpected behaviour and will be rejected in the future."); + //Thread.dumpStack(); + } // store the ExecutionContext in the ThreadLocal executionContext.set((ExecutionContext) obj); @@ -44,7 +46,7 @@ public class ExecutionScope implements Scope { + executionContext.get().getUuid() + " instantiated. (beanName=" + executionContextBeanName.get() + ")"); -// Thread.dumpStack(); + // Thread.dumpStack(); } return obj; } else {