使用xxl-job时,启动执行器工程报错:unknown code for readObject at 0x3c (<)

本文解决使用XXL-Job时启动执行器服务出现的com.caucho.hessian.io.HessianProtocolException异常问题,主要原因是执行器工程中的调度中心地址配置不正确,提供了正确的配置方法及注意事项。

        使用xxl-job时,启动执行器服务报错:com.caucho.hessian.io.HessianProtocolException:unknown code for readObject at 0x3c 。具体错误如下所示:





可能原因:执行器工程中的调度中心地址配置错误。需要按照下述格式进行配置,并且注意填写的是调度中心首页地址

xxl.job.admin.addresses=http://address01,http://address02

如:

(1)在本机window环境,使用jetty运行调度中心(test-job-admin)

xxl.job.admin.addresses=http://127.0.0.1:8080

(2)在服务器192.168.1.113上,使用 docker + tomcat 部署运行调度中心(test-job-admin)

xxl.job.admin.addresses=http://192.168.1.113:8080/test-job-admin-1.0-SNAPSHOT


注意事项

(1)使用docker部署调度中心和执行器时,注意容器互联。
(2)注意执行器中调度中心地址(xxl.job.admin.addresses)的配置-应该填写调度中心首页地址




Caught fatal signal - signo:5 code:-6 errno:0 addr:0x28ae Obtained 21 stack frames. #0 0x007f70e697c526 in DebugStringToFilePostprocessedStacktrace(DebugStringToFileData const&) #1 0x007f70e697cf21 in DebugStringToFile(DebugStringToFileData const&) #2 0x007f70e529932a in MemoryManager::OutOfMemoryError(unsigned long, unsigned long, MemLabelId const&, char const*, int) #3 0x007f70e52926f1 in MemoryManager::Allocate(unsigned long, unsigned long, MemLabelId const&, AllocateOptions, char const*, int) #4 0x007f70e5291e34 in malloc_internal(unsigned long, unsigned long, MemLabelId const&, AllocateOptions, char const*, int) #5 0x007f70e564df3d in core::vector_detail::vector_data::resize_buffer(unsigned long, ResizePolicy, unsigned long, unsigned long) #6 0x007f70e5870946 in void StreamedBinaryRead::TransferSTLStyleArray<core::vector<VGMeshBuilder::VGPackedHierarchyNode, 0ul> >(core::vector<VGMeshBuilder::VGPackedHierarchyNode, 0ul>&, TransferMetaFlags) #7 0x007f70e5865145 in void SharedClusterData::Transfer<StreamedBinaryRead>(StreamedBinaryRead&) #8 0x007f70e69673ae in void Mesh::Transfer<StreamedBinaryRead>(StreamedBinaryRead&) #9 0x007f70e6952ee5 in Mesh::VirtualRedirectTransfer(StreamedBinaryRead&) #10 0x007f70e5f0506f in SerializedFile::ReadObject(long, ObjectCreationMode, bool, TypeTree const**, bool*, Object&, CacheReaderBase*) const #11 0x007f70e5f04ae0 in SerializedFile::ReadObject(long, ObjectCreationMode, bool, TypeTree const**, bool*, Object&) #12 0x007f70e5ee96cb in PersistentManager::ReadAndActivateObjectThreaded(int, SerializedObjectIdentifier const&, SerializedFile*, bool, bool, PersistentManager::LockFlags) #13 0x007f70e5eea632 in PersistentManager::LoadFileCompletelyThreaded(core::basic_string_ref<char>, long*, int*, int, PersistentManager::LoadFlags, LoadProgress&, PersistentManager::LockFlags) #14 0x007f70e59f8f8c in LoadSceneOperation::Perform() #15 0x007f70e59fb5b7 in PreloadManager::ProcessSingleOperation() #16 0x007f70e59fb258 in PreloadManager::Run() #17 0x007f70e59fb143 in PreloadManager::Run(void*) #18 0x007f70e5cf2efb in Thread::RunThreadWrapper(void*) #19 0x007f70e3bd2ea5 in start_thread #20 0x007f70e38fbb0d in clone
最新发布
10-31
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Ability Liao

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值