Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: fix seata-test module UT not work #4275

Closed
1 task done
anselleeyy opened this issue Jan 9, 2022 · 0 comments · Fixed by #4276
Closed
1 task done

bugfix: fix seata-test module UT not work #4275

anselleeyy opened this issue Jan 9, 2022 · 0 comments · Fixed by #4276

Comments

@anselleeyy
Copy link
Contributor

  • I have searched the issues of this repository and believe that this is not a duplicate.

Ⅰ. Issue Description

seata-test module's UT run failed after server module support springboot-auto-configuration
seata-test 模块的单测用例无法运行,看上去失败原因是由于server模块支持了springboot-auto-configuration

Ⅱ. Describe what happened

If there is an exception, please attach the exception trace:

[SEATA] [Thread-1] INFO  io.seata.config.ConfigurationFactory - load Configuration from :Spring Configuration
Exception in thread "Thread-1" java.lang.ExceptionInInitializerError
	at io.seata.saga.engine.db.AbstractServerTest$1.run(AbstractServerTest.java:55)
	at java.lang.Thread.run(Thread.java:748)
Caused by: io.seata.common.exception.ShouldNeverHappenException: PropertyClass for prefix: [seata.config] should not be null.
	at io.seata.spring.boot.autoconfigure.provider.SpringBootConfigurationProvider.get(SpringBootConfigurationProvider.java:99)
	at io.seata.spring.boot.autoconfigure.provider.SpringBootConfigurationProvider.access$100(SpringBootConfigurationProvider.java:46)
	at io.seata.spring.boot.autoconfigure.provider.SpringBootConfigurationProvider$1.intercept(SpringBootConfigurationProvider.java:59)
	at io.seata.config.FileConfiguration$$EnhancerByCGLIB$$862af1eb.getConfig(<generated>)
	at io.seata.config.ConfigurationFactory.buildConfiguration(ConfigurationFactory.java:102)
	at io.seata.config.ConfigurationFactory.getInstance(ConfigurationFactory.java:94)
	at io.seata.server.ParameterParser.<clinit>(ParameterParser.java:40)
	... 2 more

Ⅲ. Describe what you expected to happen

Ⅳ. How to reproduce it (as minimally and precisely as possible)

run any test in seata-test module can reproduce it

Ⅴ. Anything else we need to know?

Ⅵ. Environment:

  • JDK version : 8
  • Seata version: latest on develop
  • OS : MacOSX
  • Others:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant