主题 : 服务运行一段时间挂掉
级别: 童生
UID: 138883
积分:49 加为好友
威望: 0 精华: 0
主题:3 回复:18
注册时间:2021-09-01
在线时长:0
21#   发表于:2022-04-24 09:26:53  IP:111.176.*.*
回复第20楼
服务连接外网 运行一段时候后还是宕了,什么原因?

2022-04-23 18:00:00.018 [schedulerFactoryBean_Worker-7] INFO  org.slf4j.LoggerFactory - Running Job name : logAlertGroup  
2022-04-23 18:00:00.040 [schedulerFactoryBean_Worker-10] INFO  com.jeecms.system.job.StatisticsLogJob - Running Job name : logStatisticsJobGroup  
2022-04-23 18:00:00.051 [schedulerFactoryBean_Worker-7] INFO  org.slf4j.LoggerFactory - 日志预警:Sat Apr 23 18:00:00 CST 2022 
用户名: 0
事件类型:0
************************************************************

              ERROR: [102]系统运行参数丢失!

************************************************************
2022-04-23 18:25:22.055 [Thread-11] INFO  o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Closing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@46be4b79: startup date [Fri Apr 22 15:21:01 CST 2022]; root of context hierarchy 
23-Apr-2022 18:25:22.063 信息 [Thread-12] org.apache.coyote.AbstractProtocol.pause 暂停ProtocolHandler["http-nio-9090"]
2022-04-23 18:25:22.086 [Thread-11] INFO  o.s.context.support.DefaultLifecycleProcessor - Stopping beans in phase 2147483647 
2022-04-23 18:25:22.087 [Thread-11] INFO  org.quartz.core.QuartzScheduler - Scheduler schedulerFactoryBean_$_NON_CLUSTERED paused. 
2022-04-23 18:25:22.103 [Thread-11] INFO  c.j.common.configuration.ExtendThreadPoolExecutor - Shutting down ExecutorService 'asyncServiceExecutor' 
2022-04-23 18:25:22.109 [Thread-11] INFO  c.jeecms.interact.service.impl.CmsFormServiceImpl - Bean destroy.refresh cache views to DB: 0 
23-Apr-2022 18:25:22.117 信息 [Thread-12] org.apache.catalina.core.StandardService.stopInternal 正在停止服务[Catalina]
级别: 总版主
UID: 10736
积分:149787 加为好友
威望: 212 精华: 42
主题:297 回复:127674
注册时间:2010-09-08
在线时长:90.1
22#   发表于:2022-04-24 09:58:14  IP:115.204.*.*
jeecms-core-v1.3.4.85t.jar.zip
更新下这个jeecms-core jar看看,将原来的这个jar备份下删除
路漫漫其修远兮,吾将上下而求索!
级别: 总版主
UID: 10736
积分:149787 加为好友
威望: 212 精华: 42
主题:297 回复:127674
注册时间:2010-09-08
在线时长:90.1
23#   发表于:2022-04-24 10:21:18  IP:115.204.*.*
jeecms-core-v1.3.4.85t.jar.zip
更新下这个jeecms-core jar看看,将原来的这个jar备份下删除
路漫漫其修远兮,吾将上下而求索!
级别: 童生
UID: 138883
积分:49 加为好友
威望: 0 精华: 0
主题:3 回复:18
注册时间:2021-09-01
在线时长:0
24#   发表于:2022-04-25 18:59:31  IP:111.176.*.*
回复第23楼
您好,后管台发布内容报366错误,见附件

排查发现 内容保存后分配的ID是逻辑删除的ID,进行事务提交时提示主键冲突,代码中注释了内容提交,但是目前问题一直存在,请问如何解决

源码如下:
Content bean = super.save(content);
// super.flush();
if (bean.getContentExt().getPicResId() != null) {
bean.getContentExt().setReData(resourcesSpaceDataService.findById(bean.getContentExt().getPicResId()));
}

Map<String, String> txtMap = contentTxtService.initContentTxt(dto.getJson(), dto.getModelId(), dto, false);
if (txtMap != null && txtMap.size() > 0) {
// 存储内容的文本内容需要进行额外处理作为单独的对象进行处理
List<ContentTxt> contentTxts = ContentInitUtils.toListTxt(txtMap);
// 初始化contentTxts并执行新增操作
bean.setContentTxts(contentTxtService.saveTxts(contentTxts, bean));
if (bean.getStatus().equals(STATUS_PUBLISH)) {
hotWordService.totalUserCount(bean.getChannelId(), contentTxts, site.getId());
}
}
if (Content.AUTOMATIC_SAVE_VERSION_TRUE.equals(site.getConfig().getContentSaveVersion())) {
// 此处Map无需处理为空的情况在其具体方法中已经处理了
contentVersionService.save(txtMap, bean.getId(), null);
contentVersionService.flush();
}
Integer createType = dto.getCreateType() != null ? dto.getCreateType()
: ContentConstant.CONTENT_CREATE_TYPE_ADD;
ContentChannel contentChannel = new ContentChannel(bean.getId(), bean.getChannelId(), createType,
bean.getStatus(), false, bean, false);
contentChannel.setChannel(channel);
contentChannel.setContent(bean);
contentChannelService.save(contentChannel);
contentChannelService.flush();
级别: 总版主
UID: 10736
积分:149787 加为好友
威望: 212 精华: 42
主题:297 回复:127674
注册时间:2010-09-08
在线时长:90.1
25#   发表于:2022-04-26 08:51:05  IP:59.211.*.*
回复第23楼
您好,后管台发布内容报366错误,见附件

排查发现 内容保存后分配的ID是逻辑删除的ID,进行事务提交时提示主键冲突,*码中注释了内容提交,但是目前问题一直存在,请问如何解决

源码如下:
Content bean = super.save(content);
// super.flush();
if (bean.getContentExt().getPicResId() != null) {
bean.getContentExt().setReData(resourcesSpaceDataService.findById(bean.getContentExt().getPicResId()));
}

Map<String, String> txtMap = contentTxtService.initContentTxt(dto.getJson(), dto.getModelId(), dto, false);
if (txtMap != null && txtMap.size() > 0) {
// 存储内容的文本内容需要进行额外处理作为单独的对象进行处理
List<ContentTxt> contentTxts = ContentInitUtils.toListTxt(txtMap);
// 初始化contentTxts并执行新增操作
bean.setContentTxts(contentTxtService.saveTxts(contentTxts, bean));
if (bean.getStatus().equals(STATUS_PUBLISH)) {
hotWordService.totalUserCount(bean.getChannelId(), contentTxts, site.getId());
}
}
if (Content.AUTOMATIC_SAVE_VERSION_TRUE.equals(site.getConfig().getContentSaveVersion())) {
// 此处Map无需处理为空的情况在其具体方法中已经处理了
contentVersionService.save(txtMap, bean.getId(), null);
contentVersionService.flush();
}
Integer createType = dto.getCreateType() != null ? dto.getCreateType()
: ContentConstant.CONTENT_CREATE_TYPE_ADD;
ContentChannel contentChannel = new ContentChannel(bean.getId(), bean.getChannelId(), createType,
bean.getStatus(), false, bean, false);
contentChannel.setChannel(channel);
contentChannel.setContent(bean);
contentChannelService.save(contentChannel);
contentChannelService.flush();
还原下数据库,您那边是改了数据库吗
路漫漫其修远兮,吾将上下而求索!
|< < 1 2 3 共3页