spring cloud集成分布式事务中间件seata报错 not support register type: null

原创 2019-09-23 11:50 阅读(1186)次
在启动seata中的RM端时报错:
Caused by: io.seata.common.exception.NotSupportYetException: not support register type: null
	at io.seata.config.ConfigurationFactory.buildConfiguration(ConfigurationFactory.java:87)
	at io.seata.config.ConfigurationFactory.getInstance(ConfigurationFactory.java:71)
	at io.seata.spring.annotation.GlobalTransactionScanner.<init>(GlobalTransactionScanner.java:89)
	at io.seata.spring.annotation.GlobalTransactionScanner.<init>(GlobalTransactionScanner.java:132)
	at io.seata.spring.annotation.GlobalTransactionScanner.<init>(GlobalTransactionScanner.java:121)
	at com.jiachi.config.DBConfig.globalTransactionScanner(DBConfig.java:60)
	at com.jiachi.config.DBConfig$$EnhancerBySpringCGLIB$$bf41d684.CGLIB$globalTransactionScanner$2(<generated>)
	at com.jiachi.config.DBConfig$$EnhancerBySpringCGLIB$$bf41d684$$FastClassBySpringCGLIB$$d28a0bdb.invoke(<generated>)
	at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)
	at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363)
	at com.jiachi.config.DBConfig$$EnhancerBySpringCGLIB$$bf41d684.globalTransactionScanner(<generated>)
	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.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
	... 20 common frames omitted

看了下发现,是我忘记把seata的两个配置文件复制到工程了,所以才报错。

只要把registry.conf,file.conf复制到工程就可以了,如下:


但是具体如何配置这两个文件可以参考我这个文章:

http://classinstance.cn/detail/72.html