zyanycall / stressTestPlatform

基于Jmeter实现的在线压测和管理Jmx的平台。
Apache License 2.0
625 stars 344 forks source link

本地启动报错 #82

Open rayshen3 opened 3 years ago

rayshen3 commented 3 years ago

[root@knode03 ~]# mvn -version Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d) Maven home: /root/maven Java version: 1.8.0_291, vendor: Oracle Corporation, runtime: /opt/jdk1.8.0_291/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "3.10.0-1160.24.1.el7.x86_64", arch: "amd64", family: "unix"

[root@knode03 ~]# java -version openjdk version "1.8.0_292" OpenJDK Runtime Environment (build 1.8.0_292-b10) OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)

image

详细如下

[root@knode03 ~]# java -jar /root/repo/io/renren/renren-fast/1.3.0/renren-fast-1.3.0.jar

███████╗████████╗██████╗ ███████╗███████╗███████╗████████╗███████╗███████╗████████╗ ██╔════╝╚══██╔══╝██╔══██╗██╔════╝██╔════╝██╔════╝╚══██╔══╝██╔════╝██╔════╝╚══██╔══╝ ███████╗ ██║ ██████╔╝█████╗ ███████╗███████╗ ██║ █████╗ ███████╗ ██║ ╚════██║ ██║ ██╔══██╗██╔══╝ ╚════██║╚════██║ ██║ ██╔══╝ ╚════██║ ██║ ███████║ ██║ ██║ ██║███████╗███████║███████║ ██║ ███████╗███████║ ██║ ╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝╚══════╝ ╚═╝ ╚══════╝╚══════╝ ╚═╝

2021-07-26 16:59:05.574 INFO 106614 --- [ main] io.renren.RenrenApplication : Starting RenrenApplication v1.3.0 on knode03 with PID 106614 (/root/repo/io/renren/renren-fast/1.3.0/renren-fast-1.3.0.jar started by root in /root) 2021-07-26 16:59:05.579 DEBUG 106614 --- [ main] io.renren.RenrenApplication : Running with Spring Boot v1.5.6.RELEASE, Spring v4.3.10.RELEASE 2021-07-26 16:59:05.580 INFO 106614 --- [ main] io.renren.RenrenApplication : The following profiles are active: dev 2021-07-26 16:59:06.091 INFO 106614 --- [ main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@47fd17e3: startup date [Mon Jul 26 16:59:06 CST 2021]; root of context hierarchy 2021-07-26 16:59:07.375 INFO 106614 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode! 2021-07-26 16:59:07.828 INFO 106614 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'shiroConfig' of type [io.renren.config.ShiroConfig$$EnhancerBySpringCGLIB$$71900c11] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-07-26 16:59:08.099 INFO 106614 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'mybatis-org.mybatis.spring.boot.autoconfigure.MybatisProperties' of type [org.mybatis.spring.boot.autoconfigure.MybatisProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-07-26 16:59:08.116 INFO 106614 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration' of type [org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration$$EnhancerBySpringCGLIB$$40e8c1af] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-07-26 16:59:08.124 INFO 106614 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'dynamicDataSourceConfig' of type [io.renren.datasources.DynamicDataSourceConfig$$EnhancerBySpringCGLIB$$d5f60e04] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-07-26 16:59:08.240 INFO 106614 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'spring.datasource-org.springframework.boot.autoconfigure.jdbc.DataSourceProperties' of type [org.springframework.boot.autoconfigure.jdbc.DataSourceProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-07-26 16:59:08.246 INFO 106614 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'com.alibaba.druid.spring.boot.autoconfigure.stat.DruidFilterConfiguration' of type [com.alibaba.druid.spring.boot.autoconfigure.stat.DruidFilterConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-07-26 16:59:08.628 INFO 106614 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'statFilter' of type [com.alibaba.druid.filter.stat.StatFilter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-07-26 16:59:08.810 INFO 106614 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'firstDataSource' of type [com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceWrapper] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-07-26 16:59:08.948 INFO 106614 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'secondDataSource' of type [com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceWrapper] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-07-26 16:59:08.960 INFO 106614 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'dataSource' of type [io.renren.datasources.DynamicDataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-07-26 16:59:09.559 INFO 106614 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'sqlSessionFactory' of type [org.apache.ibatis.session.defaults.DefaultSqlSessionFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-07-26 16:59:09.569 INFO 106614 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'sqlSessionTemplate' of type [org.mybatis.spring.SqlSessionTemplate] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-07-26 16:59:09.569 INFO 106614 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'sysMenuDao' of type [org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-07-26 16:59:09.571 INFO 106614 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'sysMenuDao' of type [com.sun.proxy.$Proxy65] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-07-26 16:59:09.573 INFO 106614 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'sysUserDao' of type [org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-07-26 16:59:09.574 INFO 106614 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'sysUserDao' of type [com.sun.proxy.$Proxy66] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-07-26 16:59:09.578 INFO 106614 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'sysUserTokenDao' of type [org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-07-26 16:59:09.579 INFO 106614 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'sysUserTokenDao' of type [com.sun.proxy.$Proxy67] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-07-26 16:59:09.580 INFO 106614 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'shiroServiceImpl' of type [io.renren.modules.sys.service.impl.ShiroServiceImpl] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-07-26 16:59:09.580 INFO 106614 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'OAuth2Realm' of type [io.renren.modules.sys.oauth2.OAuth2Realm] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-07-26 16:59:09.602 INFO 106614 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'sessionManager' of type [org.apache.shiro.web.session.mgt.DefaultWebSessionManager] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-07-26 16:59:09.842 INFO 106614 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'securityManager' of type [org.apache.shiro.web.mgt.DefaultWebSecurityManager] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-07-26 16:59:09.972 INFO 106614 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'authorizationAttributeSourceAdvisor' of type [org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-07-26 16:59:10.023 INFO 106614 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$e14707f] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-07-26 16:59:10.850 INFO 106614 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http) 2021-07-26 16:59:10.884 INFO 106614 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2021-07-26 16:59:10.885 INFO 106614 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.16 2021-07-26 16:59:10.998 INFO 106614 --- [ost-startStop-1] o.a.c.c.C.[.[localhost].[/renren-fast] : Initializing Spring embedded WebApplicationContext 2021-07-26 16:59:10.998 INFO 106614 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 4910 ms 2021-07-26 16:59:11.573 INFO 106614 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/] 2021-07-26 16:59:11.579 INFO 106614 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/] 2021-07-26 16:59:11.580 INFO 106614 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/] 2021-07-26 16:59:11.580 INFO 106614 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/] 2021-07-26 16:59:11.580 INFO 106614 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'delegatingFilterProxy' to urls: [/] 2021-07-26 16:59:11.580 INFO 106614 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'xssFilter' to urls: [/] 2021-07-26 16:59:11.580 INFO 106614 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'webStatFilter' to urls: [/] 2021-07-26 16:59:11.580 INFO 106614 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'shiroFilter' to: [/] 2021-07-26 16:59:11.580 INFO 106614 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Mapping servlet: 'dispatcherServlet' to [/] 2021-07-26 16:59:11.581 INFO 106614 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Mapping servlet: 'statViewServlet' to [/druid/*] 2021-07-26 16:59:12.516 WARN 106614 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'debugTestReportsService': Unsatisfied dependency expressed through field 'stressTestUtils'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'stressTestUtils' defined in URL [jar:file:/root/repo/io/renren/renren-fast/1.3.0/renren-fast-1.3.0.jar!/BOOT-INF/classes!/io/renren/modules/test/utils/StressTestUtils.class]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError 2021-07-26 16:59:12.520 INFO 106614 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat] 2021-07-26 16:59:12.580 INFO 106614 --- [ main] utoConfigurationReportLoggingInitializer :

Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled. 2021-07-26 16:59:12.585 ERROR 106614 --- [ main] o.s.boot.SpringApplication : Application startup failed

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'debugTestReportsService': Unsatisfied dependency expressed through field 'stressTestUtils'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'stressTestUtils' defined in URL [jar:file:/root/repo/io/renren/renren-fast/1.3.0/renren-fast-1.3.0.jar!/BOOT-INF/classes!/io/renren/modules/test/utils/StressTestUtils.class]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:588) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360) at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107) at io.renren.RenrenApplication.main(RenrenApplication.java:21) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'stressTestUtils' defined in URL [jar:file:/root/repo/io/renren/renren-fast/1.3.0/renren-fast-1.3.0.jar!/BOOT-INF/classes!/io/renren/modules/test/utils/StressTestUtils.class]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1155) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1099) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:585) ... 27 common frames omitted Caused by: java.lang.ExceptionInInitializerError: null at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:142) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:89) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1147) ... 38 common frames omitted Caused by: java.lang.NullPointerException: null at io.renren.common.utils.SpringContextUtils.getBean(SpringContextUtils.java:26) at io.renren.modules.test.utils.StressTestUtils.(StressTestUtils.java:36) ... 45 common frames omitted