当前位置: 首页 > 知识库问答 >
问题:

Spring Cloud Data Flow HTTP源应用程序抛出ObjectPostProcessor所需错误

长孙明知
2023-03-14
Description:

A component required a bean of type 'org.springframework.security.config.annotation.ObjectPostProcessor' that could not be found.


Action:

Consider defining a bean of type 'org.springframework.security.config.annotation.ObjectPostProcessor' in your configuration.
stream create --name pmmlTest --definition "http --server.port=8083 | pmml --modelLocation=https://raw.githubusercontent.com/spring-cloud/spring-cloud-stream-modules/master/pmml-processor/src/test/resources/iris-flower-classification-naive-bayes-1.pmml.xml --inputs='Sepal.Length=payload.sepalLength,Sepal.Width=payload.sepalWidth,Petal.Length=payload.petalLength,Petal.Width=payload.petalWidth' --outputs='Predicted_Species=payload.predictedSpecies' --inputType='application/x-spring-tuple' --outputType='application/json'| log" --deploy

完整日志:

2018-08-26 16:49:42.662  INFO 19160 --- [           main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@28f67ac7: startup date [Sun Aug 26 16:49:42 IST 2018]; root of context hierarchy
2018-08-26 16:49:43.986  INFO 19160 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'configurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$198077d3] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.0.3.RELEASE)

2018-08-26 16:49:46.021  INFO 19160 --- [           main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://localhost:8888
2018-08-26 16:49:47.388  INFO 19160 --- [           main] c.c.c.ConfigServicePropertySourceLocator : Connect Timeout Exception on Url - http://localhost:8888. Will be trying the next url if available
2018-08-26 16:49:47.388  WARN 19160 --- [           main] c.c.c.ConfigServicePropertySourceLocator : Could not locate PropertySource: I/O error on GET request for "http://localhost:8888/http-source/default": Connection refused: connect; nested exception is java.net.ConnectException: Connection refused: connect
2018-08-26 16:49:47.394  INFO 19160 --- [           main] s.c.s.a.h.s.k.HttpSourceKafkaApplication : No active profile set, falling back to default profiles: default
2018-08-26 16:49:47.434  INFO 19160 --- [           main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@5025a98f: startup date [Sun Aug 26 16:49:47 IST 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@28f67ac7
2018-08-26 16:49:52.340  INFO 19160 --- [           main] o.s.i.config.IntegrationRegistrar        : No bean named 'integrationHeaderChannelRegistry' has been explicitly defined. Therefore, a default DefaultHeaderChannelRegistry will be created.
2018-08-26 16:49:58.952  INFO 19160 --- [           main] o.s.cloud.context.scope.GenericScope     : BeanFactory id=60f7b4ed-c0e2-31da-9379-6e49a356e6ef
2018-08-26 16:49:59.016  INFO 19160 --- [           main] faultConfiguringBeanFactoryPostProcessor : No bean named 'errorChannel' has been explicitly defined. Therefore, a default PublishSubscribeChannel will be created.
2018-08-26 16:49:59.039  INFO 19160 --- [           main] faultConfiguringBeanFactoryPostProcessor : No bean named 'taskScheduler' has been explicitly defined. Therefore, a default ThreadPoolTaskScheduler will be created.
2018-08-26 16:49:59.625  INFO 19160 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.kafka.annotation.KafkaBootstrapConfiguration' of type [org.springframework.kafka.annotation.KafkaBootstrapConfiguration$$EnhancerBySpringCGLIB$$d1188659] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-08-26 16:49:59.899  INFO 19160 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.integration.config.IntegrationManagementConfiguration' of type [org.springframework.integration.config.IntegrationManagementConfiguration$$EnhancerBySpringCGLIB$$68583005] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-08-26 16:50:00.023  INFO 19160 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$198077d3] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-08-26 16:50:00.187  INFO 19160 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.integration.dsl.context.IntegrationFlowContext' of type [org.springframework.integration.dsl.context.IntegrationFlowContext] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-08-26 16:50:04.826  INFO 19160 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8083 (http)
2018-08-26 16:50:04.960  INFO 19160 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2018-08-26 16:50:04.961  INFO 19160 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet Engine: Apache Tomcat/8.5.31
2018-08-26 16:50:05.418  INFO 19160 --- [ost-startStop-1] o.a.catalina.core.AprLifecycleListener   : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\Program Files\Java\jre1.8.0_162\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\Program Files\Docker\Docker\Resources\bin;C:\ProgramData\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;D:\Program Files\Java\jdk1.8.0_141\bin;D:\scdf\zookeeper-3.4.10\bin;D:\Program Files\TortoiseGit\bin;D:\Program Files\Git\cmd;D:\Program Files\Git\mingw64\bin;D:\Program Files\Git\usr\bin;D:\Backup\Softwares\apache-maven-3.5.3\bin;D:\ProgramData\Anaconda3;C:\Users\sanket_karjagi\AppData\Local\Microsoft\WindowsApps;;.]
2018-08-26 16:50:08.448  INFO 19160 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2018-08-26 16:50:08.448  INFO 19160 --- [ost-startStop-1] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 21014 ms
2018-08-26 16:50:26.150  INFO 19160 --- [ost-startStop-1] o.s.s.c.ThreadPoolTaskScheduler          : Initializing ExecutorService  'taskScheduler'
2018-08-26 16:50:28.396  INFO 19160 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean  : Servlet dispatcherServlet mapped to [/]
2018-08-26 16:50:28.458  INFO 19160 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'characterEncodingFilter' to: [/*]
2018-08-26 16:50:28.459  INFO 19160 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2018-08-26 16:50:28.459  INFO 19160 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2018-08-26 16:50:28.460  INFO 19160 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'requestContextFilter' to: [/*]
2018-08-26 16:50:28.460  INFO 19160 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'httpTraceFilter' to: [/*]
2018-08-26 16:50:28.461  INFO 19160 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'webMvcMetricsFilter' to: [/*]
2018-08-26 16:50:28.985  WARN 19160 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cloud.stream.app.http.source.HttpSourceConfiguration$HttpSourceSecurityConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.security.config.annotation.ObjectPostProcessor<?>' available
2018-08-26 16:50:28.990  INFO 19160 --- [           main] o.s.s.c.ThreadPoolTaskScheduler          : Shutting down ExecutorService 'taskScheduler'
2018-08-26 16:50:28.999  INFO 19160 --- [           main] o.apache.catalina.core.StandardService   : Stopping service [Tomcat]
2018-08-26 16:50:29.207  INFO 19160 --- [           main] ConditionEvaluationReportLoggingListener : 

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2018-08-26 16:50:32.266 ERROR 19160 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 

***************************
APPLICATION FAILED TO START
***************************

Description:

A component required a bean of type 'org.springframework.security.config.annotation.ObjectPostProcessor' that could not be found.


Action:

Consider defining a bean of type 'org.springframework.security.config.annotation.ObjectPostProcessor' in your configuration.

共有1个答案

姬慎之
2023-03-14

我们正在通过spring-cloud-stream-app-starters#19跟踪一个与Spring Boot默认安全行为变化相关的异常。

在我们发布应用程序的新版本之前,您可以通过使用以下部署属性部署流来禁用安全配置

流部署。...--属性app.http.spring.autoConfigure.exclude=

 类似资料:
  • 我正试图用Java开发一个卡片验证程序。方法基本上检查给定的卡号是否有效。我在那里指定了一个条件,该条件应该抛出一个,但它没有 以下是我的Java文件:- 现在,下面的代码片段应该抛出提到的,不是吗,因为我故意从我的main向方法提供无效的参数? 下面是我在控制台中得到的输出

  • 我正在尝试创建一个新的react应用程序: 安装似乎工作正常,但当我尝试的应用程序,我得到一个错误: C:\。。。\我的应用程序\node\u modules\react scripts\scripts\utils\verifyTypeScriptSetup。js:239 appTsConfig。编译器选项[选项]=值^ TypeError:无法在对象的verifyTypeScriptSetup(

  • 当某些浏览器请求我们的网站但指定HTTP头时,我们已经看到了Airbrake异常(看起来大多数是移动的)。经过一系列研究,似乎大多数面向消费者的应用程序都忽略了接受HTTP头和发送HTML,我们之前通过将其添加到文件中来修复这一问题 但后来我们的电子邮件开始以纯文本发送,我相信这是因为我们正在重新定义的工作方式。是否有更好的修复方法,使我们在有人发送头时仍然发送HTML? 编辑:我忘了说,这是我运

  • 我已经完成了以下配置并尝试了几乎所有找到的解决方案,但没有任何帮助。当我在战争包中部署Spring启动应用程序时。没有错误记录在weblogic日志中,但应用程序抛出404错误。 web.xml weblogic.xml 应用程序属性 root-context.xml 它包含应用程序特定的配置。 应用程序开始.java 无法从pom.xml中排除tomcat服务器,因为它编译失败。在使用sprin

  • dispatcher Servlet中的配置 我在用杰克逊罐子 jackson-core-asl-1.9.0.jar Jackson-Mapper-ASL-1.9.0.jar json-lib-0.9.jar Spring版本是3.2.4

  • app.js(第21行->app.use(require('./controllers/login'));) controllers-登录,这里是问题所在。关于Express的一些我看不出来的东西: