Category Archives: Error

[Solved] Uncaught ReferenceError: FileAsyncWriter is not defined

Question: problem:
Uncaught ReferenceError: FileAsyncWriter Writer is not defined
at Object.writelog (dScript_main_main_print_open-equipm.flow_main_cover-open carcarcarcarcarcarcarcards.js:34)
at E.that.that.ecolsMemberberFFunc (dScript_main_main_cover-up-against-openequiequiequiequiequiequiequipmor.flow_flow_print_open open open-reading carcarcarcarcarcarcarcards.js:81s:81)
at E.Z.ExecuteteScriptteScript Func (yhecols.js.js.js:js:1) at E.Z.ExecuteFunc2 (yhecols.js:1)
at E.DevicesEvent (yhecols.js:1)
at s.DispathEvent (yhecols.js:1)
at Y.UrlLoadCompelete (yhecols.js:1)
at yhecols.js:1

Solution: 
Adding Devices YHFileAsyncWriter

[Solved] AmqpConnectException: java.net.ConnectException: Connection refused: connect

1、 Problem: spring cloud’s stream integrates rabbitmq

org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection refused: connect

2、 Detailed error reporting log

The Class-Path manifest attribute in C:\Users\sx\sx_tools\local_maven_repository\com\sun\xml\bind\jaxb-core\2.2.11\jaxb-core-2.2.11.jar referenced one or more files that do not exist: file:/C:/Users/sx/sx_tools/local_maven_repository/com/sun/xml/bind/jaxb-core/2.2.11/jaxb-api.jar
The Class-Path manifest attribute in C:\Users\sx\sx_tools\local_maven_repository\com\sun\xml\bind\jaxb-impl\2.2.11\jaxb-impl-2.2.11.jar referenced one or more files that do not exist: file:/C:/Users/sx/sx_tools/local_maven_repository/com/sun/xml/bind/jaxb-impl/2.2.11/jaxb-core.jar
The Class-Path manifest attribute in C:\Users\sx\sx_tools\local_maven_repository\org\glassfish\jaxb\jaxb-runtime\2.2.10-b140310.1920\jaxb-runtime-2.2.10-b140310.1920.jar referenced one or more files that do not exist: file:/C:/Users/sx/sx_tools/local_maven_repository/org/glassfish/jaxb/jaxb-runtime/2.2.10-b140310.1920/jaxb-core-2.2.10-b140310.1920.jar,file:/C:/Users/sx/sx_tools/local_maven_repository/org/glassfish/jaxb/jaxb-runtime/2.2.10-b140310.1920/jaxb-api-2.2.12-b140109.1041.jar,file:/C:/Users/sx/sx_tools/local_maven_repository/org/glassfish/jaxb/jaxb-runtime/2.2.10-b140310.1920/txw2-2.2.10-b140310.1920.jar,file:/C:/Users/sx/sx_tools/local_maven_repository/org/glassfish/jaxb/jaxb-runtime/2.2.10-b140310.1920/istack-commons-runtime-2.19.jar,file:/C:/Users/sx/sx_tools/local_maven_repository/org/glassfish/jaxb/jaxb-runtime/2.2.10-b140310.1920/stax-ex-1.7.5.jar,file:/C:/Users/sx/sx_tools/local_maven_repository/org/glassfish/jaxb/jaxb-runtime/2.2.10-b140310.1920/FastInfoset-1.2.13.jar
2021-06-22 16:22:39.671  INFO 15896 --- [  restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
2021-06-22 16:22:39.834  INFO 15896 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$b2f39e79] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

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

2021-06-22 16:22:40.223  INFO 15896 --- [  restartedMain] c.d.r.StreamProducerApplication6060      : No active profile set, falling back to default profiles: default
2021-06-22 16:22:40.933  WARN 15896 --- [  restartedMain] o.s.boot.actuate.endpoint.EndpointId     : Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
2021-06-22 16:22:41.113  INFO 15896 --- [  restartedMain] o.s.cloud.context.scope.GenericScope     : BeanFactory id=83cbcc26-92f8-3738-a0e7-687b0dd54a22
2021-06-22 16:22:41.118  INFO 15896 --- [  restartedMain] faultConfiguringBeanFactoryPostProcessor : No bean named 'errorChannel' has been explicitly defined. Therefore, a default PublishSubscribeChannel will be created.
2021-06-22 16:22:41.122  INFO 15896 --- [  restartedMain] faultConfiguringBeanFactoryPostProcessor : No bean named 'taskScheduler' has been explicitly defined. Therefore, a default ThreadPoolTaskScheduler will be created.
2021-06-22 16:22:41.125  INFO 15896 --- [  restartedMain] faultConfiguringBeanFactoryPostProcessor : No bean named 'integrationHeaderChannelRegistry' has been explicitly defined. Therefore, a default DefaultHeaderChannelRegistry will be created.
2021-06-22 16:22:41.195  INFO 15896 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'integrationDisposableAutoCreatedBeans' of type [org.springframework.integration.config.annotation.Disposables] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-06-22 16:22:41.211  INFO 15896 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.integration.config.IntegrationManagementConfiguration' of type [org.springframework.integration.config.IntegrationManagementConfiguration$$EnhancerBySpringCGLIB$$1cb56ab] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-06-22 16:22:41.216  INFO 15896 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.boot.autoconfigure.integration.IntegrationAutoConfiguration$IntegrationJmxConfiguration' of type [org.springframework.boot.autoconfigure.integration.IntegrationAutoConfiguration$IntegrationJmxConfiguration$$EnhancerBySpringCGLIB$$dd5d61cb] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-06-22 16:22:41.221  INFO 15896 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration' of type [org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration$$EnhancerBySpringCGLIB$$16450a98] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-06-22 16:22:41.225  INFO 15896 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'mbeanServer' of type [com.sun.jmx.mbeanserver.JmxMBeanServer] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-06-22 16:22:41.232  INFO 15896 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$b2f39e79] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-06-22 16:22:41.693  INFO 15896 --- [  restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 6060 (http)
2021-06-22 16:22:41.712  INFO 15896 --- [  restartedMain] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2021-06-22 16:22:41.713  INFO 15896 --- [  restartedMain] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.21]
2021-06-22 16:22:41.853  INFO 15896 --- [  restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2021-06-22 16:22:41.853  INFO 15896 --- [  restartedMain] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 1621 ms
2021-06-22 16:22:41.941  WARN 15896 --- [  restartedMain] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2021-06-22 16:22:41.942  INFO 15896 --- [  restartedMain] c.n.c.sources.URLConfigurationSource     : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2021-06-22 16:22:41.947  INFO 15896 --- [  restartedMain] c.netflix.config.DynamicPropertyFactory  : DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@5d835b38
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils (file:/C:/Users/sx/sx_tools/local_maven_repository/org/springframework/spring-core/5.1.8.RELEASE/spring-core-5.1.8.RELEASE.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2021-06-22 16:22:42.708  INFO 15896 --- [  restartedMain] o.s.s.c.ThreadPoolTaskScheduler          : Initializing ExecutorService 'taskScheduler'
2021-06-22 16:22:42.939  WARN 15896 --- [  restartedMain] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2021-06-22 16:22:42.939  INFO 15896 --- [  restartedMain] c.n.c.sources.URLConfigurationSource     : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2021-06-22 16:22:43.036  INFO 15896 --- [  restartedMain] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'applicationTaskExecutor'
2021-06-22 16:22:43.345  WARN 15896 --- [  restartedMain] o.s.b.d.a.OptionalLiveReloadServer       : Unable to start LiveReload server
2021-06-22 16:22:43.764  INFO 15896 --- [  restartedMain] o.s.b.a.e.web.EndpointLinksResolver      : Exposing 2 endpoint(s) beneath base path '/actuator'
2021-06-22 16:22:43.926  INFO 15896 --- [  restartedMain] o.s.i.monitor.IntegrationMBeanExporter   : Registering MessageChannel nullChannel
2021-06-22 16:22:43.937  INFO 15896 --- [  restartedMain] o.s.i.monitor.IntegrationMBeanExporter   : Registering MessageChannel output
2021-06-22 16:22:43.977  INFO 15896 --- [  restartedMain] o.s.i.monitor.IntegrationMBeanExporter   : Registering MessageChannel errorChannel
2021-06-22 16:22:44.001  INFO 15896 --- [  restartedMain] o.s.i.monitor.IntegrationMBeanExporter   : Registering MessageHandler errorLogger
2021-06-22 16:22:44.023  INFO 15896 --- [  restartedMain] o.s.i.endpoint.EventDrivenConsumer       : Adding {logging-channel-adapter:_org.springframework.integration.errorLogger} as a subscriber to the 'errorChannel' channel
2021-06-22 16:22:44.024  INFO 15896 --- [  restartedMain] o.s.i.channel.PublishSubscribeChannel    : Channel 'application-1.errorChannel' has 1 subscriber(s).
2021-06-22 16:22:44.024  INFO 15896 --- [  restartedMain] o.s.i.endpoint.EventDrivenConsumer       : started _org.springframework.integration.errorLogger
2021-06-22 16:22:44.359  INFO 15896 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$b2f39e79] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-06-22 16:22:44.760  INFO 15896 --- [  restartedMain] o.s.a.r.c.CachingConnectionFactory       : Attempting to connect to: [47.103.77.82:5672]
2021-06-22 16:22:45.737  INFO 15896 --- [  restartedMain] o.s.a.r.c.CachingConnectionFactory       : Created new connection: rabbitConnectionFactory#4261c3fa:0/SimpleConnection@6617dc7f [delegate=amqp://[email protected]:5672/, localPort= 9315]
2021-06-22 16:22:45.849  INFO 15896 --- [  restartedMain] o.s.c.s.m.DirectWithAttributesChannel    : Channel 'application-1.output' has 1 subscriber(s).
2021-06-22 16:22:45.870  INFO 15896 --- [  restartedMain] o.s.c.n.eureka.InstanceInfoFactory       : Setting initial instance status as: STARTING
2021-06-22 16:22:45.900  INFO 15896 --- [  restartedMain] com.netflix.discovery.DiscoveryClient    : Initializing Eureka in region us-east-1
2021-06-22 16:22:46.017  INFO 15896 --- [  restartedMain] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON encoding codec LegacyJacksonJson
2021-06-22 16:22:46.017  INFO 15896 --- [  restartedMain] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON decoding codec LegacyJacksonJson
2021-06-22 16:22:46.094  INFO 15896 --- [  restartedMain] c.n.d.provider.DiscoveryJerseyProvider   : Using XML encoding codec XStreamXml
2021-06-22 16:22:46.094  INFO 15896 --- [  restartedMain] c.n.d.provider.DiscoveryJerseyProvider   : Using XML decoding codec XStreamXml
2021-06-22 16:22:46.198  INFO 15896 --- [  restartedMain] c.n.d.s.r.aws.ConfigClusterResolver      : Resolving eureka endpoints via configuration
2021-06-22 16:22:46.408  INFO 15896 --- [  restartedMain] com.netflix.discovery.DiscoveryClient    : Disable delta property : false
2021-06-22 16:22:46.408  INFO 15896 --- [  restartedMain] com.netflix.discovery.DiscoveryClient    : Single vip registry refresh property : null
2021-06-22 16:22:46.408  INFO 15896 --- [  restartedMain] com.netflix.discovery.DiscoveryClient    : Force full registry fetch : false
2021-06-22 16:22:46.408  INFO 15896 --- [  restartedMain] com.netflix.discovery.DiscoveryClient    : Application is null : false
2021-06-22 16:22:46.408  INFO 15896 --- [  restartedMain] com.netflix.discovery.DiscoveryClient    : Registered Applications size is zero : true
2021-06-22 16:22:46.408  INFO 15896 --- [  restartedMain] com.netflix.discovery.DiscoveryClient    : Application version is -1: true
2021-06-22 16:22:46.408  INFO 15896 --- [  restartedMain] com.netflix.discovery.DiscoveryClient    : Getting all instance registry info from the eureka server
2021-06-22 16:22:46.530  INFO 15896 --- [  restartedMain] com.netflix.discovery.DiscoveryClient    : The response status is 200
2021-06-22 16:22:46.532  INFO 15896 --- [  restartedMain] com.netflix.discovery.DiscoveryClient    : Starting heartbeat executor: renew interval is: 30
2021-06-22 16:22:46.534  INFO 15896 --- [  restartedMain] c.n.discovery.InstanceInfoReplicator     : InstanceInfoReplicator onDemand update allowed rate per min is 4
2021-06-22 16:22:46.537  INFO 15896 --- [  restartedMain] com.netflix.discovery.DiscoveryClient    : Discovery Client initialized at timestamp 1624350166536 with initial instances count: 3
2021-06-22 16:22:46.538  INFO 15896 --- [  restartedMain] o.s.c.n.e.s.EurekaServiceRegistry        : Registering application DABING-CLOUD-STREAM-PRODUCER with eureka with status UP
2021-06-22 16:22:46.538  INFO 15896 --- [  restartedMain] com.netflix.discovery.DiscoveryClient    : Saw local status change event StatusChangeEvent [timestamp=1624350166538, current=UP, previous=STARTING]
2021-06-22 16:22:46.540  INFO 15896 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_DABING-CLOUD-STREAM-PRODUCER/DESKTOP-H0CA6VB:dabing-cloud-stream-producer:6060: registering service...
2021-06-22 16:22:46.563  INFO 15896 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_DABING-CLOUD-STREAM-PRODUCER/DESKTOP-H0CA6VB:dabing-cloud-stream-producer:6060 - registration status: 204
2021-06-22 16:22:46.587  INFO 15896 --- [  restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 6060 (http) with context path ''
2021-06-22 16:22:46.588  INFO 15896 --- [  restartedMain] .s.c.n.e.s.EurekaAutoServiceRegistration : Updating port to 6060
2021-06-22 16:22:46.590  INFO 15896 --- [  restartedMain] c.d.r.StreamProducerApplication6060      : Started StreamProducerApplication6060 in 7.757 seconds (JVM running for 8.722)
2021-06-22 16:22:47.172  INFO 15896 --- [)-192.168.253.1] o.s.a.r.c.CachingConnectionFactory       : Attempting to connect to: [localhost:5672]
2021-06-22 16:22:47.177  INFO 15896 --- [)-192.168.253.1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring DispatcherServlet 'dispatcherServlet'
2021-06-22 16:22:47.177  INFO 15896 --- [)-192.168.253.1] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
2021-06-22 16:22:47.187  INFO 15896 --- [)-192.168.253.1] o.s.web.servlet.DispatcherServlet        : Completed initialization in 10 ms
2021-06-22 16:22:49.210  WARN 15896 --- [)-192.168.253.1] o.s.b.a.amqp.RabbitHealthIndicator       : Rabbit health check failed

org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection refused: connect
	at org.springframework.amqp.rabbit.support.RabbitExceptionTranslator.convertRabbitAccessException(RabbitExceptionTranslator.java:62) ~[spring-rabbit-2.1.7.RELEASE.jar:2.1.7.RELEASE]
	at org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.createBareConnection(AbstractConnectionFactory.java:509) ~[spring-rabbit-2.1.7.RELEASE.jar:2.1.7.RELEASE]
	at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.createConnection(CachingConnectionFactory.java:702) ~[spring-rabbit-2.1.7.RELEASE.jar:2.1.7.RELEASE]
	at org.springframework.amqp.rabbit.connection.ConnectionFactoryUtils.createConnection(ConnectionFactoryUtils.java:214) ~[spring-rabbit-2.1.7.RELEASE.jar:2.1.7.RELEASE]
	at org.springframework.amqp.rabbit.core.RabbitTemplate.doExecute(RabbitTemplate.java:2073) ~[spring-rabbit-2.1.7.RELEASE.jar:2.1.7.RELEASE]
	at org.springframework.amqp.rabbit.core.RabbitTemplate.execute(RabbitTemplate.java:2047) ~[spring-rabbit-2.1.7.RELEASE.jar:2.1.7.RELEASE]
	at org.springframework.amqp.rabbit.core.RabbitTemplate.execute(RabbitTemplate.java:2027) ~[spring-rabbit-2.1.7.RELEASE.jar:2.1.7.RELEASE]
	at org.springframework.boot.actuate.amqp.RabbitHealthIndicator.getVersion(RabbitHealthIndicator.java:49) ~[spring-boot-actuator-2.1.6.RELEASE.jar:2.1.6.RELEASE]
	at org.springframework.boot.actuate.amqp.RabbitHealthIndicator.doHealthCheck(RabbitHealthIndicator.java:44) ~[spring-boot-actuator-2.1.6.RELEASE.jar:2.1.6.RELEASE]
	at org.springframework.boot.actuate.health.AbstractHealthIndicator.health(AbstractHealthIndicator.java:82) ~[spring-boot-actuator-2.1.6.RELEASE.jar:2.1.6.RELEASE]
	at org.springframework.boot.actuate.health.CompositeHealthIndicator.health(CompositeHealthIndicator.java:95) ~[spring-boot-actuator-2.1.6.RELEASE.jar:2.1.6.RELEASE]
	at org.springframework.boot.actuate.health.HealthEndpoint.health(HealthEndpoint.java:50) ~[spring-boot-actuator-2.1.6.RELEASE.jar:2.1.6.RELEASE]
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
	at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na]
	at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:282) ~[spring-core-5.1.8.RELEASE.jar:5.1.8.RELEASE]
	at org.springframework.boot.actuate.endpoint.invoke.reflect.ReflectiveOperationInvoker.invoke(ReflectiveOperationInvoker.java:76) ~[spring-boot-actuator-2.1.6.RELEASE.jar:2.1.6.RELEASE]
	at org.springframework.boot.actuate.endpoint.annotation.AbstractDiscoveredOperation.invoke(AbstractDiscoveredOperation.java:60) ~[spring-boot-actuator-2.1.6.RELEASE.jar:2.1.6.RELEASE]
	at org.springframework.boot.actuate.endpoint.jmx.EndpointMBean.invoke(EndpointMBean.java:121) ~[spring-boot-actuator-2.1.6.RELEASE.jar:2.1.6.RELEASE]
	at org.springframework.boot.actuate.endpoint.jmx.EndpointMBean.invoke(EndpointMBean.java:96) ~[spring-boot-actuator-2.1.6.RELEASE.jar:2.1.6.RELEASE]
	at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:809) ~[na:na]
	at java.management/com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) ~[na:na]
	at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1466) ~[na:na]
	at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1307) ~[na:na]
	at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1399) ~[na:na]
	at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:827) ~[na:na]
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
	at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na]
	at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:359) ~[na:na]
	at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200) ~[na:na]
	at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197) ~[na:na]
	at java.base/java.security.AccessController.doPrivileged(Native Method) ~[na:na]
	at java.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196) ~[na:na]
	at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:562) ~[na:na]
	at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:796) ~[na:na]
	at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:677) ~[na:na]
	at java.base/java.security.AccessController.doPrivileged(Native Method) ~[na:na]
	at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:676) ~[na:na]
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]
	at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na]
Caused by: java.net.ConnectException: Connection refused: connect
	at java.base/java.net.PlainSocketImpl.waitForConnect(Native Method) ~[na:na]
	at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:107) ~[na:na]
	at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399) ~[na:na]
	at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242) ~[na:na]
	at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224) ~[na:na]
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403) ~[na:na]
	at java.base/java.net.Socket.connect(Socket.java:609) ~[na:na]
	at com.rabbitmq.client.impl.SocketFrameHandlerFactory.create(SocketFrameHandlerFactory.java:60) ~[amqp-client-5.4.3.jar:5.4.3]
	at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:1102) ~[amqp-client-5.4.3.jar:5.4.3]
	at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:1054) ~[amqp-client-5.4.3.jar:5.4.3]
	at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:994) ~[amqp-client-5.4.3.jar:5.4.3]
	at org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.createBareConnection(AbstractConnectionFactory.java:462) ~[spring-rabbit-2.1.7.RELEASE.jar:2.1.7.RELEASE]
	... 42 common frames omitted


3. Analysis

4. Solution

Application.yml complete configuration information

server:
  port: 6060
spring:
  application:
    name: dabing-cloud-stream-producer
  cloud:
    stream:
      binders: # Binding MQ service information (here we are RabbitMQ)
        dabingRabbitBinder: # the name defined for the Binder, used later for the association
          type: rabbit # MQ type, if it's Kafka, configure kafka here
          environment: # MQ environment configuration (username, password, etc.)
            spring:
              rabbitmq:
                host: 47.103.77.82
                port: 5672
                username: root
                password: 123456
      bindings: # Associated integration channels and binder objects
        output: # output is the name of the channel we defined, we can't change it here
          destination: dabingExchange # the name of the exchange to be used (message queue subject name)
          content-type: text/plain # application/json # Message type setting, e.g. json
          binder: dabingRabbitBinder # Associated MQ service
  # Configure the following information, as by default it will try to connect to localhost:5672
  rabbitmq:
    host: 47.103.77.82
    port: 5672
    username: root
    password: 123456

eureka:
  client:
    serviceUrl: # path to eureka server
      defaultZone: http://dabingcloudeurekaservera:8761/eureka/,http://lagoucloudeurekaserverb:8762/eureka/ # All the URLs in the eureka cluster are filled in. You can also write only one, because each eureka server can synchronize its registry
    instance:
      prefer-ip-address: true #Register with ip

5、 Verification: start successfully, complete log information

"C:\Program Files\BellSoft\LibericaJDK-11\bin\java.exe" -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2020.3.1\lib\idea_rt.jar=8650:C:\Program Files\JetBrains\IntelliJ IDEA 2020.3.1\bin" -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -Dfile.encoding=UTF-8 -classpath G:\gitee_local_ws_lg\springcloud_ws2\dabing-resume-parent\dabing-cloud-stream-producer-6060\target\classes;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\cloud\spring-cloud-starter-netflix-eureka-client\2.1.0.RELEASE\spring-cloud-starter-netflix-eureka-client-2.1.0.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\cloud\spring-cloud-starter\2.1.0.RELEASE\spring-cloud-starter-2.1.0.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\cloud\spring-cloud-context\2.1.0.RELEASE\spring-cloud-context-2.1.0.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\security\spring-security-crypto\5.1.5.RELEASE\spring-security-crypto-5.1.5.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\cloud\spring-cloud-commons\2.1.0.RELEASE\spring-cloud-commons-2.1.0.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\security\spring-security-rsa\1.0.7.RELEASE\spring-security-rsa-1.0.7.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\bouncycastle\bcpkix-jdk15on\1.60\bcpkix-jdk15on-1.60.jar;C:\Users\sx\sx_tools\local_maven_repository\org\bouncycastle\bcprov-jdk15on\1.60\bcprov-jdk15on-1.60.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\cloud\spring-cloud-netflix-hystrix\2.1.0.RELEASE\spring-cloud-netflix-hystrix-2.1.0.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\boot\spring-boot-starter-aop\2.1.6.RELEASE\spring-boot-starter-aop-2.1.6.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\aspectj\aspectjweaver\1.9.4\aspectjweaver-1.9.4.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\cloud\spring-cloud-netflix-eureka-client\2.1.0.RELEASE\spring-cloud-netflix-eureka-client-2.1.0.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\com\netflix\eureka\eureka-client\1.9.8\eureka-client-1.9.8.jar;C:\Users\sx\sx_tools\local_maven_repository\org\codehaus\jettison\jettison\1.3.7\jettison-1.3.7.jar;C:\Users\sx\sx_tools\local_maven_repository\stax\stax-api\1.0.1\stax-api-1.0.1.jar;C:\Users\sx\sx_tools\local_maven_repository\com\netflix\netflix-commons\netflix-eventbus\0.3.0\netflix-eventbus-0.3.0.jar;C:\Users\sx\sx_tools\local_maven_repository\com\netflix\netflix-commons\netflix-infix\0.3.0\netflix-infix-0.3.0.jar;C:\Users\sx\sx_tools\local_maven_repository\commons-jxpath\commons-jxpath\1.3\commons-jxpath-1.3.jar;C:\Users\sx\sx_tools\local_maven_repository\joda-time\joda-time\2.10.2\joda-time-2.10.2.jar;C:\Users\sx\sx_tools\local_maven_repository\org\antlr\antlr-runtime\3.4\antlr-runtime-3.4.jar;C:\Users\sx\sx_tools\local_maven_repository\org\antlr\stringtemplate\3.2.1\stringtemplate-3.2.1.jar;C:\Users\sx\sx_tools\local_maven_repository\antlr\antlr\2.7.7\antlr-2.7.7.jar;C:\Users\sx\sx_tools\local_maven_repository\com\google\code\gson\gson\2.8.5\gson-2.8.5.jar;C:\Users\sx\sx_tools\local_maven_repository\org\apache\commons\commons-math\2.2\commons-math-2.2.jar;C:\Users\sx\sx_tools\local_maven_repository\com\netflix\archaius\archaius-core\0.7.6\archaius-core-0.7.6.jar;C:\Users\sx\sx_tools\local_maven_repository\com\google\guava\guava\16.0\guava-16.0.jar;C:\Users\sx\sx_tools\local_maven_repository\javax\ws\rs\jsr311-api\1.1.1\jsr311-api-1.1.1.jar;C:\Users\sx\sx_tools\local_maven_repository\com\netflix\servo\servo-core\0.12.21\servo-core-0.12.21.jar;C:\Users\sx\sx_tools\local_maven_repository\com\sun\jersey\jersey-core\1.19.1\jersey-core-1.19.1.jar;C:\Users\sx\sx_tools\local_maven_repository\com\sun\jersey\jersey-client\1.19.1\jersey-client-1.19.1.jar;C:\Users\sx\sx_tools\local_maven_repository\com\sun\jersey\contribs\jersey-apache-client4\1.19.1\jersey-apache-client4-1.19.1.jar;C:\Users\sx\sx_tools\local_maven_repository\org\apache\httpcomponents\httpclient\4.5.9\httpclient-4.5.9.jar;C:\Users\sx\sx_tools\local_maven_repository\org\apache\httpcomponents\httpcore\4.4.11\httpcore-4.4.11.jar;C:\Users\sx\sx_tools\local_maven_repository\commons-codec\commons-codec\1.11\commons-codec-1.11.jar;C:\Users\sx\sx_tools\local_maven_repository\com\google\inject\guice\4.1.0\guice-4.1.0.jar;C:\Users\sx\sx_tools\local_maven_repository\javax\inject\javax.inject\1\javax.inject-1.jar;C:\Users\sx\sx_tools\local_maven_repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;C:\Users\sx\sx_tools\local_maven_repository\com\github\vlsi\compactmap\compactmap\1.2.1\compactmap-1.2.1.jar;C:\Users\sx\sx_tools\local_maven_repository\com\github\andrewoma\dexx\dexx-collections\0.2\dexx-collections-0.2.jar;C:\Users\sx\sx_tools\local_maven_repository\com\fasterxml\jackson\core\jackson-annotations\2.9.0\jackson-annotations-2.9.0.jar;C:\Users\sx\sx_tools\local_maven_repository\com\fasterxml\jackson\core\jackson-core\2.9.9\jackson-core-2.9.9.jar;C:\Users\sx\sx_tools\local_maven_repository\com\fasterxml\jackson\core\jackson-databind\2.9.9\jackson-databind-2.9.9.jar;C:\Users\sx\sx_tools\local_maven_repository\com\netflix\eureka\eureka-core\1.9.8\eureka-core-1.9.8.jar;C:\Users\sx\sx_tools\local_maven_repository\org\codehaus\woodstox\woodstox-core-asl\4.4.1\woodstox-core-asl-4.4.1.jar;C:\Users\sx\sx_tools\local_maven_repository\javax\xml\stream\stax-api\1.0-2\stax-api-1.0-2.jar;C:\Users\sx\sx_tools\local_maven_repository\org\codehaus\woodstox\stax2-api\3.1.4\stax2-api-3.1.4.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\cloud\spring-cloud-starter-netflix-archaius\2.1.0.RELEASE\spring-cloud-starter-netflix-archaius-2.1.0.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\cloud\spring-cloud-netflix-ribbon\2.1.0.RELEASE\spring-cloud-netflix-ribbon-2.1.0.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\cloud\spring-cloud-netflix-archaius\2.1.0.RELEASE\spring-cloud-netflix-archaius-2.1.0.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\commons-configuration\commons-configuration\1.8\commons-configuration-1.8.jar;C:\Users\sx\sx_tools\local_maven_repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\cloud\spring-cloud-starter-netflix-ribbon\2.1.0.RELEASE\spring-cloud-starter-netflix-ribbon-2.1.0.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\com\netflix\ribbon\ribbon\2.3.0\ribbon-2.3.0.jar;C:\Users\sx\sx_tools\local_maven_repository\com\netflix\ribbon\ribbon-transport\2.3.0\ribbon-transport-2.3.0.jar;C:\Users\sx\sx_tools\local_maven_repository\io\reactivex\rxnetty-contexts\0.4.9\rxnetty-contexts-0.4.9.jar;C:\Users\sx\sx_tools\local_maven_repository\io\reactivex\rxnetty-servo\0.4.9\rxnetty-servo-0.4.9.jar;C:\Users\sx\sx_tools\local_maven_repository\com\netflix\hystrix\hystrix-core\1.5.18\hystrix-core-1.5.18.jar;C:\Users\sx\sx_tools\local_maven_repository\io\reactivex\rxnetty\0.4.9\rxnetty-0.4.9.jar;C:\Users\sx\sx_tools\local_maven_repository\com\netflix\ribbon\ribbon-core\2.3.0\ribbon-core-2.3.0.jar;C:\Users\sx\sx_tools\local_maven_repository\com\netflix\ribbon\ribbon-httpclient\2.3.0\ribbon-httpclient-2.3.0.jar;C:\Users\sx\sx_tools\local_maven_repository\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;C:\Users\sx\sx_tools\local_maven_repository\com\netflix\netflix-commons\netflix-commons-util\0.3.0\netflix-commons-util-0.3.0.jar;C:\Users\sx\sx_tools\local_maven_repository\com\netflix\ribbon\ribbon-loadbalancer\2.3.0\ribbon-loadbalancer-2.3.0.jar;C:\Users\sx\sx_tools\local_maven_repository\com\netflix\netflix-commons\netflix-statistics\0.1.1\netflix-statistics-0.1.1.jar;C:\Users\sx\sx_tools\local_maven_repository\io\reactivex\rxjava\1.3.8\rxjava-1.3.8.jar;C:\Users\sx\sx_tools\local_maven_repository\com\netflix\ribbon\ribbon-eureka\2.3.0\ribbon-eureka-2.3.0.jar;C:\Users\sx\sx_tools\local_maven_repository\org\slf4j\slf4j-api\1.7.26\slf4j-api-1.7.26.jar;C:\Users\sx\sx_tools\local_maven_repository\com\thoughtworks\xstream\xstream\1.4.10\xstream-1.4.10.jar;C:\Users\sx\sx_tools\local_maven_repository\xmlpull\xmlpull\1.1.3.1\xmlpull-1.1.3.1.jar;C:\Users\sx\sx_tools\local_maven_repository\xpp3\xpp3_min\1.1.4c\xpp3_min-1.1.4c.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\cloud\spring-cloud-starter-stream-rabbit\2.1.0.RELEASE\spring-cloud-starter-stream-rabbit-2.1.0.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\cloud\spring-cloud-stream-binder-rabbit\2.1.0.RELEASE\spring-cloud-stream-binder-rabbit-2.1.0.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\cloud\spring-cloud-stream-binder-rabbit-core\2.1.0.RELEASE\spring-cloud-stream-binder-rabbit-core-2.1.0.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\com\rabbitmq\http-client\2.1.0.RELEASE\http-client-2.1.0.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\cloud\spring-cloud-stream\2.1.0.RELEASE\spring-cloud-stream-2.1.0.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\boot\spring-boot-starter-validation\2.1.6.RELEASE\spring-boot-starter-validation-2.1.6.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\spring-messaging\5.1.8.RELEASE\spring-messaging-5.1.8.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\spring-tuple\1.0.0.RELEASE\spring-tuple-1.0.0.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\com\esotericsoftware\kryo-shaded\3.0.3\kryo-shaded-3.0.3.jar;C:\Users\sx\sx_tools\local_maven_repository\com\esotericsoftware\minlog\1.3.0\minlog-1.3.0.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\integration\spring-integration-tuple\1.0.0.RELEASE\spring-integration-tuple-1.0.0.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\retry\spring-retry\1.2.4.RELEASE\spring-retry-1.2.4.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\cloud\spring-cloud-function-context\2.0.0.RELEASE\spring-cloud-function-context-2.0.0.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\cloud\spring-cloud-function-core\2.0.0.RELEASE\spring-cloud-function-core-2.0.0.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\boot\spring-boot-starter-amqp\2.1.6.RELEASE\spring-boot-starter-amqp-2.1.6.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\amqp\spring-rabbit\2.1.7.RELEASE\spring-rabbit-2.1.7.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\amqp\spring-amqp\2.1.7.RELEASE\spring-amqp-2.1.7.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\com\rabbitmq\amqp-client\5.4.3\amqp-client-5.4.3.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\integration\spring-integration-amqp\5.1.6.RELEASE\spring-integration-amqp-5.1.6.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\integration\spring-integration-core\5.1.6.RELEASE\spring-integration-core-5.1.6.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\spring-tx\5.1.8.RELEASE\spring-tx-5.1.8.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\io\projectreactor\reactor-core\3.2.10.RELEASE\reactor-core-3.2.10.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\reactivestreams\reactive-streams\1.0.2\reactive-streams-1.0.2.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\integration\spring-integration-jmx\5.1.6.RELEASE\spring-integration-jmx-5.1.6.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\boot\spring-boot-starter-web\2.1.6.RELEASE\spring-boot-starter-web-2.1.6.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\boot\spring-boot-starter\2.1.6.RELEASE\spring-boot-starter-2.1.6.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\javax\annotation\javax.annotation-api\1.3.2\javax.annotation-api-1.3.2.jar;C:\Users\sx\sx_tools\local_maven_repository\org\yaml\snakeyaml\1.23\snakeyaml-1.23.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\boot\spring-boot-starter-json\2.1.6.RELEASE\spring-boot-starter-json-2.1.6.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.9.9\jackson-datatype-jdk8-2.9.9.jar;C:\Users\sx\sx_tools\local_maven_repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.9.9\jackson-datatype-jsr310-2.9.9.jar;C:\Users\sx\sx_tools\local_maven_repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.9.9\jackson-module-parameter-names-2.9.9.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\boot\spring-boot-starter-tomcat\2.1.6.RELEASE\spring-boot-starter-tomcat-2.1.6.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\apache\tomcat\embed\tomcat-embed-core\9.0.21\tomcat-embed-core-9.0.21.jar;C:\Users\sx\sx_tools\local_maven_repository\org\apache\tomcat\embed\tomcat-embed-el\9.0.21\tomcat-embed-el-9.0.21.jar;C:\Users\sx\sx_tools\local_maven_repository\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.21\tomcat-embed-websocket-9.0.21.jar;C:\Users\sx\sx_tools\local_maven_repository\org\hibernate\validator\hibernate-validator\6.0.17.Final\hibernate-validator-6.0.17.Final.jar;C:\Users\sx\sx_tools\local_maven_repository\javax\validation\validation-api\2.0.1.Final\validation-api-2.0.1.Final.jar;C:\Users\sx\sx_tools\local_maven_repository\org\jboss\logging\jboss-logging\3.3.2.Final\jboss-logging-3.3.2.Final.jar;C:\Users\sx\sx_tools\local_maven_repository\com\fasterxml\classmate\1.4.0\classmate-1.4.0.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\spring-web\5.1.8.RELEASE\spring-web-5.1.8.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\spring-beans\5.1.8.RELEASE\spring-beans-5.1.8.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\spring-webmvc\5.1.8.RELEASE\spring-webmvc-5.1.8.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\spring-aop\5.1.8.RELEASE\spring-aop-5.1.8.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\spring-context\5.1.8.RELEASE\spring-context-5.1.8.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\spring-expression\5.1.8.RELEASE\spring-expression-5.1.8.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\boot\spring-boot-starter-logging\2.1.6.RELEASE\spring-boot-starter-logging-2.1.6.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;C:\Users\sx\sx_tools\local_maven_repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;C:\Users\sx\sx_tools\local_maven_repository\org\apache\logging\log4j\log4j-to-slf4j\2.11.2\log4j-to-slf4j-2.11.2.jar;C:\Users\sx\sx_tools\local_maven_repository\org\apache\logging\log4j\log4j-api\2.11.2\log4j-api-2.11.2.jar;C:\Users\sx\sx_tools\local_maven_repository\org\slf4j\jul-to-slf4j\1.7.26\jul-to-slf4j-1.7.26.jar;C:\Users\sx\sx_tools\local_maven_repository\org\objenesis\objenesis\2.6\objenesis-2.6.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\spring-core\5.1.8.RELEASE\spring-core-5.1.8.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\spring-jcl\5.1.8.RELEASE\spring-jcl-5.1.8.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\projectlombok\lombok\1.18.4\lombok-1.18.4.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\boot\spring-boot-starter-actuator\2.1.6.RELEASE\spring-boot-starter-actuator-2.1.6.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\boot\spring-boot-actuator-autoconfigure\2.1.6.RELEASE\spring-boot-actuator-autoconfigure-2.1.6.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\boot\spring-boot-actuator\2.1.6.RELEASE\spring-boot-actuator-2.1.6.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\io\micrometer\micrometer-core\1.1.5\micrometer-core-1.1.5.jar;C:\Users\sx\sx_tools\local_maven_repository\org\hdrhistogram\HdrHistogram\2.1.9\HdrHistogram-2.1.9.jar;C:\Users\sx\sx_tools\local_maven_repository\org\latencyutils\LatencyUtils\2.0.3\LatencyUtils-2.0.3.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\boot\spring-boot-devtools\2.1.6.RELEASE\spring-boot-devtools-2.1.6.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\boot\spring-boot\2.1.6.RELEASE\spring-boot-2.1.6.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\org\springframework\boot\spring-boot-autoconfigure\2.1.6.RELEASE\spring-boot-autoconfigure-2.1.6.RELEASE.jar;C:\Users\sx\sx_tools\local_maven_repository\com\sun\xml\bind\jaxb-core\2.2.11\jaxb-core-2.2.11.jar;C:\Users\sx\sx_tools\local_maven_repository\javax\xml\bind\jaxb-api\2.3.1\jaxb-api-2.3.1.jar;C:\Users\sx\sx_tools\local_maven_repository\javax\activation\javax.activation-api\1.2.0\javax.activation-api-1.2.0.jar;C:\Users\sx\sx_tools\local_maven_repository\com\sun\xml\bind\jaxb-impl\2.2.11\jaxb-impl-2.2.11.jar;C:\Users\sx\sx_tools\local_maven_repository\org\glassfish\jaxb\jaxb-runtime\2.2.10-b140310.1920\jaxb-runtime-2.2.10-b140310.1920.jar;C:\Users\sx\sx_tools\local_maven_repository\javax\activation\activation\1.1.1\activation-1.1.1.jar com.dabing.resume.StreamProducerApplication6060
The Class-Path manifest attribute in C:\Users\sx\sx_tools\local_maven_repository\com\sun\xml\bind\jaxb-core\2.2.11\jaxb-core-2.2.11.jar referenced one or more files that do not exist: file:/C:/Users/sx/sx_tools/local_maven_repository/com/sun/xml/bind/jaxb-core/2.2.11/jaxb-api.jar
The Class-Path manifest attribute in C:\Users\sx\sx_tools\local_maven_repository\com\sun\xml\bind\jaxb-impl\2.2.11\jaxb-impl-2.2.11.jar referenced one or more files that do not exist: file:/C:/Users/sx/sx_tools/local_maven_repository/com/sun/xml/bind/jaxb-impl/2.2.11/jaxb-core.jar
The Class-Path manifest attribute in C:\Users\sx\sx_tools\local_maven_repository\org\glassfish\jaxb\jaxb-runtime\2.2.10-b140310.1920\jaxb-runtime-2.2.10-b140310.1920.jar referenced one or more files that do not exist: file:/C:/Users/sx/sx_tools/local_maven_repository/org/glassfish/jaxb/jaxb-runtime/2.2.10-b140310.1920/jaxb-core-2.2.10-b140310.1920.jar,file:/C:/Users/sx/sx_tools/local_maven_repository/org/glassfish/jaxb/jaxb-runtime/2.2.10-b140310.1920/jaxb-api-2.2.12-b140109.1041.jar,file:/C:/Users/sx/sx_tools/local_maven_repository/org/glassfish/jaxb/jaxb-runtime/2.2.10-b140310.1920/txw2-2.2.10-b140310.1920.jar,file:/C:/Users/sx/sx_tools/local_maven_repository/org/glassfish/jaxb/jaxb-runtime/2.2.10-b140310.1920/istack-commons-runtime-2.19.jar,file:/C:/Users/sx/sx_tools/local_maven_repository/org/glassfish/jaxb/jaxb-runtime/2.2.10-b140310.1920/stax-ex-1.7.5.jar,file:/C:/Users/sx/sx_tools/local_maven_repository/org/glassfish/jaxb/jaxb-runtime/2.2.10-b140310.1920/FastInfoset-1.2.13.jar
2021-06-22 16:31:31.662  INFO 9508 --- [  restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
2021-06-22 16:31:31.830  INFO 9508 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$c00266f3] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

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

2021-06-22 16:31:32.237  INFO 9508 --- [  restartedMain] c.d.r.StreamProducerApplication6060      : No active profile set, falling back to default profiles: default
2021-06-22 16:31:33.030  WARN 9508 --- [  restartedMain] o.s.boot.actuate.endpoint.EndpointId     : Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
2021-06-22 16:31:33.213  INFO 9508 --- [  restartedMain] o.s.cloud.context.scope.GenericScope     : BeanFactory id=83cbcc26-92f8-3738-a0e7-687b0dd54a22
2021-06-22 16:31:33.219  INFO 9508 --- [  restartedMain] faultConfiguringBeanFactoryPostProcessor : No bean named 'errorChannel' has been explicitly defined. Therefore, a default PublishSubscribeChannel will be created.
2021-06-22 16:31:33.223  INFO 9508 --- [  restartedMain] faultConfiguringBeanFactoryPostProcessor : No bean named 'taskScheduler' has been explicitly defined. Therefore, a default ThreadPoolTaskScheduler will be created.
2021-06-22 16:31:33.227  INFO 9508 --- [  restartedMain] faultConfiguringBeanFactoryPostProcessor : No bean named 'integrationHeaderChannelRegistry' has been explicitly defined. Therefore, a default DefaultHeaderChannelRegistry will be created.
2021-06-22 16:31:33.299  INFO 9508 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'integrationDisposableAutoCreatedBeans' of type [org.springframework.integration.config.annotation.Disposables] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-06-22 16:31:33.319  INFO 9508 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.integration.config.IntegrationManagementConfiguration' of type [org.springframework.integration.config.IntegrationManagementConfiguration$$EnhancerBySpringCGLIB$$eda1f25] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-06-22 16:31:33.324  INFO 9508 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.boot.autoconfigure.integration.IntegrationAutoConfiguration$IntegrationJmxConfiguration' of type [org.springframework.boot.autoconfigure.integration.IntegrationAutoConfiguration$IntegrationJmxConfiguration$$EnhancerBySpringCGLIB$$ea6c2a45] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-06-22 16:31:33.331  INFO 9508 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration' of type [org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration$$EnhancerBySpringCGLIB$$2353d312] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-06-22 16:31:33.335  INFO 9508 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'mbeanServer' of type [com.sun.jmx.mbeanserver.JmxMBeanServer] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-06-22 16:31:33.347  INFO 9508 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$c00266f3] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-06-22 16:31:33.833  INFO 9508 --- [  restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 6060 (http)
2021-06-22 16:31:33.854  INFO 9508 --- [  restartedMain] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2021-06-22 16:31:33.855  INFO 9508 --- [  restartedMain] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.21]
2021-06-22 16:31:33.979  INFO 9508 --- [  restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2021-06-22 16:31:33.979  INFO 9508 --- [  restartedMain] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 1733 ms
2021-06-22 16:31:34.067  WARN 9508 --- [  restartedMain] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2021-06-22 16:31:34.067  INFO 9508 --- [  restartedMain] c.n.c.sources.URLConfigurationSource     : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2021-06-22 16:31:34.075  INFO 9508 --- [  restartedMain] c.netflix.config.DynamicPropertyFactory  : DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@18bc98b6
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils (file:/C:/Users/sx/sx_tools/local_maven_repository/org/springframework/spring-core/5.1.8.RELEASE/spring-core-5.1.8.RELEASE.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2021-06-22 16:31:34.921  INFO 9508 --- [  restartedMain] o.s.s.c.ThreadPoolTaskScheduler          : Initializing ExecutorService 'taskScheduler'
2021-06-22 16:31:35.172  WARN 9508 --- [  restartedMain] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2021-06-22 16:31:35.172  INFO 9508 --- [  restartedMain] c.n.c.sources.URLConfigurationSource     : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2021-06-22 16:31:35.267  INFO 9508 --- [  restartedMain] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'applicationTaskExecutor'
2021-06-22 16:31:35.619  WARN 9508 --- [  restartedMain] o.s.b.d.a.OptionalLiveReloadServer       : Unable to start LiveReload server
2021-06-22 16:31:36.016  INFO 9508 --- [  restartedMain] o.s.b.a.e.web.EndpointLinksResolver      : Exposing 2 endpoint(s) beneath base path '/actuator'
2021-06-22 16:31:36.169  INFO 9508 --- [  restartedMain] o.s.i.monitor.IntegrationMBeanExporter   : Registering MessageChannel errorChannel
2021-06-22 16:31:36.215  INFO 9508 --- [  restartedMain] o.s.i.monitor.IntegrationMBeanExporter   : Registering MessageChannel output
2021-06-22 16:31:36.238  INFO 9508 --- [  restartedMain] o.s.i.monitor.IntegrationMBeanExporter   : Registering MessageChannel nullChannel
2021-06-22 16:31:36.250  INFO 9508 --- [  restartedMain] o.s.i.monitor.IntegrationMBeanExporter   : Registering MessageHandler errorLogger
2021-06-22 16:31:36.273  INFO 9508 --- [  restartedMain] o.s.i.endpoint.EventDrivenConsumer       : Adding {logging-channel-adapter:_org.springframework.integration.errorLogger} as a subscriber to the 'errorChannel' channel
2021-06-22 16:31:36.273  INFO 9508 --- [  restartedMain] o.s.i.channel.PublishSubscribeChannel    : Channel 'application-1.errorChannel' has 1 subscriber(s).
2021-06-22 16:31:36.273  INFO 9508 --- [  restartedMain] o.s.i.endpoint.EventDrivenConsumer       : started _org.springframework.integration.errorLogger
2021-06-22 16:31:36.618  INFO 9508 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$c00266f3] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-06-22 16:31:37.054  INFO 9508 --- [  restartedMain] o.s.a.r.c.CachingConnectionFactory       : Attempting to connect to: [47.103.77.82:5672]
2021-06-22 16:31:37.789  INFO 9508 --- [  restartedMain] o.s.a.r.c.CachingConnectionFactory       : Created new connection: rabbitConnectionFactory#34a729b:0/SimpleConnection@60c79429 [delegate=amqp://[email protected]:5672/, localPort= 10853]
2021-06-22 16:31:38.662  INFO 9508 --- [  restartedMain] o.s.c.s.m.DirectWithAttributesChannel    : Channel 'application-1.output' has 1 subscriber(s).
2021-06-22 16:31:38.689  INFO 9508 --- [  restartedMain] o.s.c.n.eureka.InstanceInfoFactory       : Setting initial instance status as: STARTING
2021-06-22 16:31:38.719  INFO 9508 --- [  restartedMain] com.netflix.discovery.DiscoveryClient    : Initializing Eureka in region us-east-1
2021-06-22 16:31:38.824  INFO 9508 --- [  restartedMain] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON encoding codec LegacyJacksonJson
2021-06-22 16:31:38.824  INFO 9508 --- [  restartedMain] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON decoding codec LegacyJacksonJson
2021-06-22 16:31:38.908  INFO 9508 --- [  restartedMain] c.n.d.provider.DiscoveryJerseyProvider   : Using XML encoding codec XStreamXml
2021-06-22 16:31:38.908  INFO 9508 --- [  restartedMain] c.n.d.provider.DiscoveryJerseyProvider   : Using XML decoding codec XStreamXml
2021-06-22 16:31:39.022  INFO 9508 --- [  restartedMain] c.n.d.s.r.aws.ConfigClusterResolver      : Resolving eureka endpoints via configuration
2021-06-22 16:31:39.225  INFO 9508 --- [  restartedMain] com.netflix.discovery.DiscoveryClient    : Disable delta property : false
2021-06-22 16:31:39.225  INFO 9508 --- [  restartedMain] com.netflix.discovery.DiscoveryClient    : Single vip registry refresh property : null
2021-06-22 16:31:39.225  INFO 9508 --- [  restartedMain] com.netflix.discovery.DiscoveryClient    : Force full registry fetch : false
2021-06-22 16:31:39.225  INFO 9508 --- [  restartedMain] com.netflix.discovery.DiscoveryClient    : Application is null : false
2021-06-22 16:31:39.225  INFO 9508 --- [  restartedMain] com.netflix.discovery.DiscoveryClient    : Registered Applications size is zero : true
2021-06-22 16:31:39.225  INFO 9508 --- [  restartedMain] com.netflix.discovery.DiscoveryClient    : Application version is -1: true
2021-06-22 16:31:39.225  INFO 9508 --- [  restartedMain] com.netflix.discovery.DiscoveryClient    : Getting all instance registry info from the eureka server
2021-06-22 16:31:39.387  INFO 9508 --- [  restartedMain] com.netflix.discovery.DiscoveryClient    : The response status is 200
2021-06-22 16:31:39.390  INFO 9508 --- [  restartedMain] com.netflix.discovery.DiscoveryClient    : Starting heartbeat executor: renew interval is: 30
2021-06-22 16:31:39.392  INFO 9508 --- [  restartedMain] c.n.discovery.InstanceInfoReplicator     : InstanceInfoReplicator onDemand update allowed rate per min is 4
2021-06-22 16:31:39.395  INFO 9508 --- [  restartedMain] com.netflix.discovery.DiscoveryClient    : Discovery Client initialized at timestamp 1624350699394 with initial instances count: 3
2021-06-22 16:31:39.396  INFO 9508 --- [  restartedMain] o.s.c.n.e.s.EurekaServiceRegistry        : Registering application DABING-CLOUD-STREAM-PRODUCER with eureka with status UP
2021-06-22 16:31:39.396  INFO 9508 --- [  restartedMain] com.netflix.discovery.DiscoveryClient    : Saw local status change event StatusChangeEvent [timestamp=1624350699396, current=UP, previous=STARTING]
2021-06-22 16:31:39.397  INFO 9508 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_DABING-CLOUD-STREAM-PRODUCER/DESKTOP-H0CA6VB:dabing-cloud-stream-producer:6060: registering service...
2021-06-22 16:31:39.422  INFO 9508 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_DABING-CLOUD-STREAM-PRODUCER/DESKTOP-H0CA6VB:dabing-cloud-stream-producer:6060 - registration status: 204
2021-06-22 16:31:39.446  INFO 9508 --- [  restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 6060 (http) with context path ''
2021-06-22 16:31:39.446  INFO 9508 --- [  restartedMain] .s.c.n.e.s.EurekaAutoServiceRegistration : Updating port to 6060
2021-06-22 16:31:39.448  INFO 9508 --- [  restartedMain] c.d.r.StreamProducerApplication6060      : Started StreamProducerApplication6060 in 8.731 seconds (JVM running for 9.955)
2021-06-22 16:31:39.672  INFO 9508 --- [)-192.168.253.1] o.s.a.r.c.CachingConnectionFactory       : Attempting to connect to: [47.103.77.82:5672]
2021-06-22 16:31:39.810  INFO 9508 --- [)-192.168.253.1] o.s.a.r.c.CachingConnectionFactory       : Created new connection: rabbitConnectionFactory#2950f454:0/SimpleConnection@71669d37 [delegate=amqp://[email protected]:5672/, localPort= 10861]
2021-06-22 16:31:40.051  INFO 9508 --- [)-192.168.253.1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring DispatcherServlet 'dispatcherServlet'
2021-06-22 16:31:40.051  INFO 9508 --- [)-192.168.253.1] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
2021-06-22 16:31:40.060  INFO 9508 --- [)-192.168.253.1] o.s.web.servlet.DispatcherServlet        : Completed initialization in 9 ms

[Solved] Runtimeerror: CUDA error: device side assert triggered

The questions are as follows:

1. The problems are as follows:

RuntimeError: CUDA error: device-side assert triggered
CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.
For debugging consider passing CUDA_ LAUNCH_ BLOCKING=1.

2. Solution:

(1) At the beginning, I searched for solutions on the Internet. As a result, most netizens’ solutions are similar to this:

Some people say that the reason for this problem is that there are tags exceeding the number of categories in the training data when doing the classification task. For example: if you set up a total of 8 classes, but there is 9 in the tag in the training data, this error will be reported. So here’s the problem. There’s a trap. If the tag in the training data contains 0, the above error will also be reported. This is very weird. Generally, we start counting from 0, but in Python, the category labels below 0 have to report an error. So if the category label starts from 0, add 1 to all category labels.

Python scans the train itself_ Each folder under path (each type of picture is under its category folder), and map each class to a numerical value. For example, there are four categories, and the category label is [0,1,2,3]. In the second classification, the label is mapped to [0,1], but in the fourth classification, the label is mapped to [1,2,3,4], so an error will be reported.

(2) In fact, it’s useless for me to solve the same problem that I still report an error. Later, I looked up the code carefully and found that it was not the label that didn’t match the category of the classification, but there was a problem with the code of the last layer of the network. If you want to output the categories, you should fill in the categories.

 self.outlayer = nn.Linear(256 * 1 * 1, 3)  # The final fully connected layer

# Others are 3 categories, while mine is 5 categories, corrected here to solve

 self.outlayer = nn.Linear(256 * 1 * 1, 5) # The last fully connected layer

(3) It’s actually a small problem, but it’s been working for a long time. Let’s make a record here. The actual situation after the solution:

Kettle Error Caused by: java.lang.ArrayIndexOutOfBoundsException

2021/06/25 13:11:31 – Table Output.0 – Unexpected error inserting row
2021/06/25 13:11:31 – Table Output.0 – -32515
2021/06/25 13:11:31 – Table Output.0 –
2021/06/25 13:11:31 – Table Output.0 –
2021/06/25 13:11:31 – Table Output.0 –     at org.pentaho.di.trans.steps.tableoutput.TableOutput.writeToTable(TableOutput.java:385)
2021/06/25 13:11:31 – Table Output.0 –     at org.pentaho.di.trans.steps.tableoutput.TableOutput.processRow(TableOutput.java:125)
2021/06/25 13:11:31 – Table Output.0 –     at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
2021/06/25 13:11:31 – Table Output.0 –     at java.lang.Thread.run(Thread.java:748)
2021/06/25 13:11:31 – Table Output.0 – Caused by: org.pentaho.di.core.exception.KettleDatabaseException:
2021/06/25 13:11:31 – Table Output.0 – Unexpected error inserting row
2021/06/25 13:11:31 – Table Output.0 – -32515
2021/06/25 13:11:31 – Table Output.0 –
2021/06/25 13:11:31 – Table Output.0 –     at org.pentaho.di.trans.steps.tableoutput.TableOutput.writeToTable(TableOutput.java:298)
2021/06/25 13:11:31 – Table Output.0 –     … 3 more
2021/06/25 13:11:31 – Table Output.0 – Caused by: java.lang.ArrayIndexOutOfBoundsException: -32515
2021/06/25 13:11:31 – Table Output.0 –     at oracle.jdbc.driver.OraclePreparedStatement.setupBindBuffers(OraclePreparedStatement.java:2673)
2021/06/25 13:11:31 – Table Output.0 –     at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:10689)
2021/06/25 13:11:31 – Table Output.0 –     at org.pentaho.di.trans.steps.tableoutput.TableOutput.writeToTable(TableOutput.java:292)
2021/06/25 13:11:31 – Table Output.0 –     … 3 more

Cause : Caused by too many records submitted in a single session

Tencent cloud container easyexcel export excel error NoClassDefFoundError: could not initialize class sun.awt.x11fontmanager

Development environment:

springboot 2.4.3easyexcel 2.2.7jdk8


Problem Description:

1. There is no local problem. An error was reported after the release of Tencent cloud container.

        EasyExcel.write(response.getOutputStream(), ViewDatass.class).sheet("xxx明细").doWrite(datas);

2. Error report log

[Request processing failed; nested exception is com.alibaba.excel.exception.ExcelGenerateException: java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager] with root cause
java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:348)
        at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:82)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)
        at java.awt.Font.getFont2D(Font.java:491)
        at java.awt.Font.canDisplayUpTo(Font.java:2060)
        at java.awt.font.TextLayout.singleFont(TextLayout.java:470)
        at java.awt.font.TextLayout.<init>(TextLayout.java:531)
        at org.apache.poi.ss.util.SheetUtil.getDefaultCharWidth(SheetUtil.java:275)
        at org.apache.poi.xssf.streaming.AutoSizeColumnTracker.<init>(AutoSizeColumnTracker.java:117)
        at org.apache.poi.xssf.streaming.SXSSFSheet.<init>(SXSSFSheet.java:82)
        at org.apache.poi.xssf.streaming.SXSSFWorkbook.createAndRegisterSXSSFSheet(SXSSFWorkbook.java:658)
        at org.apache.poi.xssf.streaming.SXSSFWorkbook.createSheet(SXSSFWorkbook.java:679)
        at org.apache.poi.xssf.streaming.SXSSFWorkbook.createSheet(SXSSFWorkbook.java:90)
        at com.alibaba.excel.util.WorkBookUtil.createSheet(WorkBookUtil.java:66)
        at com.alibaba.excel.context.WriteContextImpl.createSheet(WriteContextImpl.java:205)
        at com.alibaba.excel.context.WriteContextImpl.initSheet(WriteContextImpl.java:185)
        at com.alibaba.excel.context.WriteContextImpl.currentSheet(WriteContextImpl.java:122)
        at com.alibaba.excel.write.ExcelBuilderImpl.addContent(ExcelBuilderImpl.java:53)
        at com.alibaba.excel.ExcelWriter.write(ExcelWriter.java:161)
        at com.alibaba.excel.ExcelWriter.write(ExcelWriter.java:146)
        at com.alibaba.excel.write.builder.ExcelWriterSheetBuilder.doWrite(ExcelWriterSheetBuilder.java:61)
        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.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:197)
        at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:141)
        at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106)
        at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:894)
        at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
        at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1060)
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:962)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
        at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:626)
        at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)

Cause analysis:

There is no local error report. When you publish it to Tencent cloud container, you can report an error. If you look at the prompt, it should be a certain font. As a result, Excel can’t render it. Interestingly, there are several errors reported in the middle, which leads to many detours…

com.alibaba.excel.exception.ExcelGenerateException: java.lang.UnsatisfiedLinkError: /usr/local/java/xxx/jre/lib/amd64/libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory

Solution:

The problem is solved by adding fonts to the docker file.

# Add font
RUN yum install dejavu-sans-fonts fontconfig -y

[Solved] Mavenwas cached in the local repository

Today I was prompted with an error message when compiling a maven project using the command mvn compile:

 was cached in the local repository, resolution will not be reattempted until the update interval of


Cause of the problem :
By default, Maven will use the local cached repository to compile the project, for the last failed library download, maven will create xxx.lastUpdated file in ~/.m2/repository/<group>/<artifact>/<version>/ directory. Once this file exists, the dependencies will not be updated until the next nexus update. Add the following. <repositories> <repository> <id>public</id> <url>地址</url> <releases> <enabled>true</enabled> <updatePolicy>always</updatePolicy> </releases> <snapshots> <enabled>true</enabled> <updatePolicy>always</updatePolicy> </snapshots> </repository> </repositories>

Postgres Multiple data insertion error: The ‘default‘ dialect with current database version settings does not support

Error report of inserting multiple data into postges database by Python

Solutions for error reporting related information

Information related to error reporting

Error report content: the 'default' dialect with current database version settings does not support
Python version: 3.7
psotgres version: 13
specific situation: single data insertion is normal, multiple data insertion may report errors once, but not every time.

Solution

At first, I thought there was a problem with the database version, but I still couldn’t change Postgres 10

HBase shell Find ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing

Problem description

Because of the HBase version, after I changed the HBase version, I opened the HBase shell query table and reported the following error:

How to solve it

The above problems are generally the cause of the failure of hregionserver node.

    1. first step, JPS checks whether its hregionserver node is normally opened (mostly hung up) and looks at the configuration file hbase-site.xml (my problem is here, because the installation has changed the version, and it has not been integrated with Phoneix yet, it is necessary to comment out all the Phoenix mapping configuration in the configuration file, otherwise hregionserver will not start normally)

 

    1. the following is a positive list Exact configuration file </ OL>
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!--
/**
 *
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
-->
<configuration>
  <property>
    <name>hbase.cluster.distributed</name>
    <value>true</value>
  </property>
  <property>
    <name>hbase.tmp.dir</name>
    <value>/export/data/hbase/tmp</value>
   <!--This tmp temporary file should be created in the hbase installation directory-->
  </property>
  <property>
    <name>hbase.master</name>
    <value>node1:16010</value>
  </property>
  <property>
    <name>hbase.unsafe.stream.capability.enforce</name>
    <value>false</value>
  </property>
    <property>
    <name>hbase.rootdir</name>
    <value>hdfs://node1:9000/hbase</value>
  </property>
    <property>
    <name>hbase.zookeeper.quorum</name>
    <value>node1,node2,node3:2181</value>
  </property>
  <property>
    <name>hbase.unsafe.stream.capability.enforce</name>
	<value>false</value>
  </property>
  <property>
	<name>hbase.zookeeper.property.dataDir</name>
	<value>/export/servers/zookeeper/data</value>
  </property>
</configuration>

3. Close HBase, delete/HBase on HDFS and restart HBase

--Close hbase
stop-hbase.sh
--delete /hbase
hadoop fs -rm -r /hbase
--start hbase
start-hbase.sh

Note: in case of this kind of error, check whether the configuration file is correct, restart HBase (restart needs to delete/HBase), that is, follow step 3 to do it again.

[Solved] Springboot WARNING: All illegal access operations will be denied in a future release

1、 Problem description

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils (file:/C:/Users/.m2/repository/org/springframework/spring-core/5.2.8.RELEASE/spring-core-5.2.8.RELEASE.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

2、 Solutions

There are many versions on the Internet,

1. Reduce JDK version, such as using java 11, change to Java 8

2. Add the following method to the startup class. Call this method when starting springboot to test the effectiveness of JDK 11

public static void disableWarning() {
    try {
      Field theUnsafe = Unsafe.class.getDeclaredField("theUnsafe");
      theUnsafe.setAccessible(true);
      Unsafe u = (Unsafe) theUnsafe.get(null);

      Class cls = Class.forName("jdk.internal.module.IllegalAccessLogger");
      Field logger = cls.getDeclaredField("logger");
      u.putObjectVolatile(cls, u.staticFieldOffset(logger), null);
    } catch (Exception e) {
      // ignore
    }
  }

  public static void main(String[] args) {
    disableWarning();
    SpringApplication.run(CpmApiApplication.class, args);
  }

Solution of adding H264 error in ffmpeg compilation

Error: libavcodec/libx264.c:282:9: error: ‘x264_bit_depth’ undeclared
Solution: Open the x264 header file x264_config.h
Found in.

#define X264_BIT_DEPTH     8
#define X264_GPL           1
#define X264_INTERLACED    1
#define X264_CHROMA_FORMAT 0
#define X264_VERSION ""
#define X264_POINTVER "0.148.x"

Then it is found that there is a case problem
and open the ffmpeg source code to replace x264_bit_Depth is x264_ BIT_ Depth 0 was compiled and passed