Hi there, I'm lenve! 👋
lenve / javaboy-code-samples Goto Github PK
View Code? Open in Web Editor NEW公众号【江南一点雨】文章案例汇总,技术文章请戳这里----->
Home Page: http://www.javaboy.org
公众号【江南一点雨】文章案例汇总,技术文章请戳这里----->
Home Page: http://www.javaboy.org
你好,关于你文档资料中RabbitMQ中的publisher-confirm章节,我看到网上很多资料包括RabbitMQ官方文档都有提及到需要设置channel.confirmSelect(),可是在上述文案中没有看到,请问是设置publisher-confirm-type和publish-returns之后可以不用设置这个吗?
对应文章:https://docs.javaboy.org/rabbitmq/push/#_2-2-%E5%8F%91%E9%80%81%E6%96%B9%E7%A1%AE%E8%AE%A4%E6%9C%BA%E5%88%B6
参考文献:https://www.rabbitmq.com/tutorials/tutorial-seven-java.html#:~:text=Publisher%20confirms%20are%20a%20RabbitMQ%20extension%20to%20implement,been%20taken%20care%20of%20on%20the%20server%20side.
理解错了,抱歉
报错的日志如下:
09:14:26.000 [main] DEBUG io.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader - The same extension io.seata.config.file.SimpleFileConfig has already been loaded, skipped
09:14:26.000 [main] DEBUG io.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader - The same extension io.seata.config.file.YamlFileConfig has already been loaded, skipped
09:14:26.014 [main] DEBUG io.seata.config.FileConfiguration - The file name of the operation is registry
09:14:26.018 [main] INFO io.seata.config.ConfigurationFactory - load Configuration from :Spring Configuration
09:14:26.019 [main] WARN org.springframework.context.support.ClassPathXmlApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'io.seata.spring.annotation.GlobalTransactionScanner#0' defined in class path resource [spring/seata-tcc.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.seata.spring.annotation.GlobalTransactionScanner]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError
09:14:26.026 [main] ERROR org.apache.zookeeper.server.NIOServerCnxnFactory - Thread Thread[#1,main,5,main] died
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'io.seata.spring.annotation.GlobalTransactionScanner#0' defined in class path resource [spring/seata-tcc.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.seata.spring.annotation.GlobalTransactionScanner]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:304)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:285)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1308)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1154)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:538)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204)
at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:228)
at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:707)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:531)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:144)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:95)
at io.seata.samples.tcc.transfer.starter.TransferProviderStarter.main(TransferProviderStarter.java:21)
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.seata.spring.annotation.GlobalTransactionScanner]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:184)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:117)
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:300)
... 15 common frames omitted
Caused by: java.lang.ExceptionInInitializerError: null
at io.seata.spring.annotation.GlobalTransactionScanner.(GlobalTransactionScanner.java:108)
at io.seata.spring.annotation.GlobalTransactionScanner.(GlobalTransactionScanner.java:154)
at io.seata.spring.annotation.GlobalTransactionScanner.(GlobalTransactionScanner.java:143)
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:172)
... 17 common frames omitted
Caused by: java.lang.NullPointerException: Cannot invoke "org.springframework.core.env.ConfigurableEnvironment.getProperty(String, java.lang.Class)" because "environment" is null
at io.seata.spring.boot.autoconfigure.provider.SpringBootConfigurationProvider.getConfigFromEnvironment(SpringBootConfigurationProvider.java:239)
at io.seata.spring.boot.autoconfigure.provider.SpringBootConfigurationProvider.lambda$provide$0(SpringBootConfigurationProvider.java:76)
at jdk.proxy2/jdk.proxy2.$Proxy3.getConfig(Unknown Source)
at io.seata.config.ConfigurationFactory.getConfigType(ConfigurationFactory.java:130)
at io.seata.config.ConfigurationFactory.maybeNeedOriginFileInstance(ConfigurationFactory.java:120)
at io.seata.config.ConfigurationFactory.(ConfigurationFactory.java:55)
... 24 common frames omitted
是哪里配置有问题么?
不知道该怎么设置Run/Debug Configurations
大佬,springsecurity按照配置来无法登陆啊,一直用户密码错误..
第二种方法不生效,无法拦截
failed to create OCI runtime console socket: stat /tmp: no such file or directory: unknown
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.