org.springframework.beans.factory.BeanCreationException:来自类org.springframework.aop.framework.cglibaopproxy#
我试图从Spring引导集和webFlux调用SOAP端点org.springframework.beans.factory.BeanCreationException:来自类org.springframework.aop.framework.cglibaopproxy#,spring,spring-boot,Spring,Spring Boot,我试图从Spring引导集和webFlux调用SOAP端点Mono.fromcallable()它失败了,但是当我以标准的方式调用soap端点时,它就失效了 使用来自流和标准方式的相同类型的SOAP调用 webServiceTemplate.sendAndReceive(String uriString, WebServiceMessageCallback requestCallback,
Mono.fromcallable()
它失败了,但是当我以标准的方式调用soap端点时,它就失效了
使用来自流和标准方式的相同类型的SOAP调用
webServiceTemplate.sendAndReceive(String uriString,
WebServiceMessageCallback requestCallback,
WebServiceMessageExtractor<T> responseExtractor)
错误日志:
无法触发主价格检索:
org.springframework.beans.factory.BeanCreationException:错误
正在创建名为“scopedTarget.wsTemplate”的bean:范围为“会话”
当前线程不活动;考虑定义范围代理
对于这个bean,如果您打算从单例引用它;嵌套
异常为java.lang.IllegalStateException:没有线程绑定请求
已找到:您是指实际应用程序之外的请求属性吗
web请求,或在原始
接收线程?如果您实际上是在web请求中操作
并且仍然收到此消息,您的代码可能正在外部运行
DispatcherServlet/DispatcherPortlet:在这种情况下,使用
RequestContextListener或RequestContextFilter公开当前
要求处理搜索实时请求{}时出错::null
com.fly.player.amadeus.orchestrator.exception.FunctionalException
有人见过这种错误吗?附近有工作吗?如有任何提示或建议,我们将不胜感激
提前感谢。您是否在单例中自动连接会话范围的bean?不能在另一个范围更广的bean中注入范围更窄的bean。更改bean接线的设计或使用scoped-proxy.Hi@mahendranayyarsamykandair,看起来问题会在修复完成后通知您。非常感谢--
@Override
@Nullable
public Object intercept(Object proxy, Method method, Object[] args, MethodProxy methodProxy) throws Throwable {
Object oldProxy = null;
boolean setProxyContext = false;
Object target = null;
TargetSource targetSource = this.advised.getTargetSource();
try {
if (this.advised.exposeProxy) {
// Make invocation available if necessary.
oldProxy = AopContext.setCurrentProxy(proxy);
setProxyContext = true;
}
// Get as late as possible to minimize the time we "own" the target, in case it comes from a pool...
target = targetSource.getTarget();
Class<?> targetClass = (target != null ? target.getClass() : null);
List<Object> chain = this.advised.getInterceptorsAndDynamicInterceptionAdvice(method, targetClass);
Object retVal;
// Check whether we only have one InvokerInterceptor: that is,
// no real advice, but just reflective invocation of the target.
if (chain.isEmpty() && Modifier.isPublic(method.getModifiers())) {
// We can skip creating a MethodInvocation: just invoke the target directly.
// Note that the final invoker must be an InvokerInterceptor, so we know
// it does nothing but a reflective operation on the target, and no hot
// swapping or fancy proxying.
Object[] argsToUse = AopProxyUtils.adaptArgumentsIfNecessary(method, args);
retVal = methodProxy.invoke(target, argsToUse);
}
else {
// We need to create a method invocation...
retVal = new CglibMethodInvocation(proxy, target, method, args, targetClass, chain, methodProxy).proceed();
}
retVal = processReturnType(proxy, target, method, retVal);
return retVal;
}
finally {
if (target != null && !targetSource.isStatic()) {
targetSource.releaseTarget(target);
}
if (setProxyContext) {
// Restore old proxy.
AopContext.setCurrentProxy(oldProxy);
}
}
}
<--