栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 前沿技术 > 大数据 > 大数据系统

No Assembler service found - please make sure that the right jars are in your classpath

No Assembler service found - please make sure that the right jars are in your classpath

报错信息
[ERROR]2021-11-30 09:53:35.439[org.springframework.scheduling.support.TaskUtils$LoggingErrorHandler:95] - Unexpected error occurred in scheduled task
com.atomikos.icatch.SysException: No Assembler service found - please make sure that the right jars are in your classpath
        at com.atomikos.icatch.config.Configuration.loadAssembler(Configuration.java:352)
        at com.atomikos.icatch.config.Configuration.getAssembler(Configuration.java:342)
        at com.atomikos.icatch.config.Configuration.getConfigProperties(Configuration.java:358)
        at com.atomikos.icatch.config.UserTransactionServiceImp.initialize(UserTransactionServiceImp.java:103)
        at com.atomikos.icatch.config.UserTransactionServiceImp.init(UserTransactionServiceImp.java:219)
        at com.atomikos.icatch.jta.UserTransactionImp.checkSetup(UserTransactionImp.java:59)
        at com.atomikos.icatch.jta.UserTransactionImp.getStatus(UserTransactionImp.java:117)
        at org.springframework.transaction.jta.JtaTransactionManager.isExistingTransaction(JtaTransactionManager.java:824)
        at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:350)
        at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:574)
        at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:361)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:118)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
        at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749)
        at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:691)
        at com.jees.datascale.bcht.limsnet.service.DataService$$EnhancerBySpringCGLIB$$23b2941d.update()
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84)
        at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
过程

今天在给程序打包后,使用如下命令执行后,出现这个错误

java -jar xxxx.jar
原因

看报错信息因为 atomikos 是缺少Jar包了,但没有指出是哪个包

No Assembler service found - please make sure that the right jars are in your classpath

然后看下面这段报错的位置,发现一个transaction包下的错误,这个时候就知道啥原因了。。。

org.springframework.transaction.jta.JtaTransactionManager.isExistingTransaction(JtaTransactionManager.java:824)

解决方法

引jar包啊!!!!
如果加了 atomikos-util 的依赖的话,把下面的依赖加进去就好

        
            com.atomikos
            transactions
            4.0.6
        
        
            com.atomikos
            transactions-jta
            4.0.6
        
        
            com.atomikos
            transactions-jdbc
            4.0.6
        
        
            com.atomikos
            transactions-api
            4.0.6
        

        
            com.atomikos
            atomikos-util
            4.0.6
        
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/629157.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号