起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 53246|回复: 28

[结贴] 3.7windows版升级3.8Linux版本,企业微信错误

[复制链接]

17

主题

76

帖子

418

积分

中级会员

Rank: 3Rank: 3

积分
418
QQ
发表于 2020-11-11 16:43:05 | 显示全部楼层 |阅读模式
版本: 其它(帖子中说明) 小版本号: 3.8
数据库: MySQL 服务器操作系统: Linux 应用服务器: Tomcat
客户端操作系统: Windows 其它 浏览器: 手机/平板X5客户端
如题,服务器Windows到Linux,版本3.7到3.8 ,
原来3.7版本一切正常,切换到3.8后,企业微信首页登陆,推送事件均以下错误

微信图片_20201111164018.jpg

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36067
发表于 2020-11-11 18:37:53 | 显示全部楼层
确认tomcat控制台是否有报错
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

17

主题

76

帖子

418

积分

中级会员

Rank: 3Rank: 3

积分
418
QQ
 楼主| 发表于 2020-11-12 08:37:23 | 显示全部楼层
tomcat后台无错误
回复 支持 反对

使用道具 举报

17

主题

76

帖子

418

积分

中级会员

Rank: 3Rank: 3

积分
418
QQ
 楼主| 发表于 2020-11-12 08:46:10 | 显示全部楼层
2020-11-12 08:31:29 BusinessServer started
Nov 12, 2020 8:31:29 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor ReportServer.xml
Nov 12, 2020 8:31:29 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor PushServer.xml
2020-11-12 08:31:29 PushServer started
Nov 12, 2020 8:31:29 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
2020-11-12 08:31:29 Connected to tcp://10.0.3.94:1883 with client id: PushServer.r
2020-11-12 08:31:29 Subscribing to topic "/PushServer" Qos 2
Nov 12, 2020 8:31:30 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Nov 12, 2020 8:31:30 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Nov 12, 2020 8:31:30 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory app-template
Nov 12, 2020 8:31:30 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-80
Nov 12, 2020 8:31:30 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Nov 12, 2020 8:31:30 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/13  config=null
Nov 12, 2020 8:31:30 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5430 ms
2020-11-12 08:32:03 加载模块:/UI2/SA/weixin ...
2020-11-12 08:32:03 加载模块:/UI2/SA/weixin
2020-11-12 08:32:03 getWeixinBSessionID
2020-11-12 08:32:03 bsessionid:null
2020-11-12 08:32:03 sso login
2020-11-12 08:32:03 加载模块:/system/logic/code/interceptor ...
2020-11-12 08:32:03 sso login bsessionid:7A1FE2AAAE6141B4B680D2C251A02227
2020-11-12 08:32:03 check login end getWeixinBSessionID
2020-11-12 08:32:03 加载模块:/SA/weixin/process/weixin ...
2020-11-12 08:32:03 加载模块:/SA/weixin/process ...
2020-11-12 08:32:03 加载模块:/SA/weixin ...
2020-11-12 08:32:03 加载模块:/SA/weixin/ontology ...
2020-11-12 08:32:03 加载模块:/SA/weixin/data ...
2020-11-12 08:32:03 加载模块:/SA/weixin/logic/code ...
2020-11-12 08:32:03 加载模块:/SA/weixin/logic ...
2020-11-12 08:32:03 加载模块:/SA/weixin/logic/action ...
2020-11-12 08:32:04
2020-11-12 08:32:04 oauth request
2020-11-12 08:32:04 oauth2callbacki4vLi4vcG9ydGFsL21vYmlsZS9pbmRleC53P3Byb2Nlc3M9L1NBL09QTS9zeXN0ZW0vc3lzdGVtUHJvY2VzcyZhY3Rpdml0eT1tYWluQWN0aXZpdHk=
2020-11-12 08:32:04 userCode:lOuV8ZGSpmkRJACfwOtsCWwJsH0EcfJDo6rBuuY2a1Q
2020-11-12 08:32:04 getWeixinBSessionID
2020-11-12 08:32:04 bsessionid:7A1FE2AAAE6141B4B680D2C251A02227
2020-11-12 08:32:04 已经登录过:7A1FE2AAAE6141B4B680D2C251A02227
2020-11-12 08:32:04 session 没有超时
2020-11-12 08:32:04 check login end getWeixinBSessionID
2020-11-12 08:32:05 lizhipeng
2020-11-12 08:32:05 ../../portal/mobile/index.w?process=/SA/OPM/system/systemProcess&activity=mainActivity
2020-11-12 08:32:05 configKey=wwac723d23f2a2b5451000003&pageURL=Li4vLi4vcG9ydGFsL21vYmlsZS9pbmRleC53P3Byb2Nlc3M9L1NBL09QTS9zeXN0ZW0vc3lzdGVtUHJvY2VzcyZhY3Rpdml0eT1tYWluQWN0aXZpdHk=&code=lOuV8ZGSpmkRJACfwOtsCWwJsH0EcfJDo6rBuuY2a1Q&state=STATE
2020-11-12 08:32:07 加载模块:/UI2/system/service/common ...
2020-11-12 08:32:07 加载模块:/UI2/system/resources ...
2020-11-12 08:32:07 加载模块:/UI2/system/resources
2020-11-12 08:32:07 加载模块:/UI2/system/service/common
2020-11-12 08:32:10 加载模块:/UI2/portal/base/login ...
2020-11-12 08:32:10 加载模块:/UI2/portal/base/login
2020-11-12 08:32:10 加载模块:/portal2/process/portal ...
2020-11-12 08:32:10 加载模块:/portal2/process ...
2020-11-12 08:32:10 加载模块:/portal2 ...
2020-11-12 08:32:10 加载模块:/portal2/logic/code ...
2020-11-12 08:32:10 加载模块:/portal2/logic ...
2020-11-12 08:32:10 加载模块:/portal2/data ...
2020-11-12 08:32:10 加载模块:/portal2/ontology ...
2020-11-12 08:32:10 加载模块:/portal2/logic/action ...
2020-11-12 08:32:44 加载模块:/UI2/portal/base/logout ...
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36067
发表于 2020-11-12 09:10:09 | 显示全部楼层
提示这个后或调整到登录页吗?
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

17

主题

76

帖子

418

积分

中级会员

Rank: 3Rank: 3

积分
418
QQ
 楼主| 发表于 2020-11-12 09:10:41 | 显示全部楼层
是的
回复

使用道具 举报

17

主题

76

帖子

418

积分

中级会员

Rank: 3Rank: 3

积分
418
QQ
 楼主| 发表于 2020-11-12 09:47:47 | 显示全部楼层
请问这个该怎么解决呢?
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36067
发表于 2020-11-12 11:57:59 | 显示全部楼层
/UI2/SA/weixin/src/com/justep/weixin/cp/WxHelper.java中的ssoLogin方法加断点调试看看登录是否正确
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

17

主题

76

帖子

418

积分

中级会员

Rank: 3Rank: 3

积分
418
QQ
 楼主| 发表于 2020-11-12 14:28:49 | 显示全部楼层
public static String ssoLogin(String username,String language){
                System.out.println("开始执行sslogoin"+username);
                Action action = new Action();
                action.setProcess("/SA/OPM/system/systemProcess");
                action.setActivity("mainActivity");
                action.setName("ntLoginAction");
                action.setParameter("name", username);
                action.setParameter("loginDate", new java.sql.Date(System.currentTimeMillis()));
                action.setParameter("ip", "127.0.0.1");
                action.setParameter("options", new HashMap<String, Object>());
                action.setParameter("lang", language);
                try {
                        ActionResult ar = ActionEngine.invokeActions(JustepConfig.getBusinessServer() + "/login2", null, action.asXML().getBytes("UTF-8"),
                                        null, ActionUtils.XML_CONTENT_TYPE, ActionUtils.XML_CONTENT_TYPE,
                                        null, language, "post", null);
                       
                        if (ar.isSuccess()){
                                System.out.println("开始IF"+ar.getBSessionID());
                                return ar.getBSessionID();
                        }else{
                                throw new RuntimeException(ar.getMessage());
                        }
                } catch (Exception e) {
                        logger.error(e.getMessage()+"", e);
                        throw new RuntimeException(e.getMessage()+"", e);
                }


控制台:
2020-11-12 14:25:39 session 没有超时
2020-11-12 14:25:39 check login end getWeixinBSessionID
2020-11-12 14:25:39
2020-11-12 14:25:39 oauth request
2020-11-12 14:25:39 oauth2callbacki4vLi4vcG9ydGFsL21vYmlsZS9pbmRleC53P3Byb2Nlc3M9L1NBL09QTS9zeXN0ZW0vc3lzdGVtUHJvY2VzcyZhY3Rpdml0eT1tYWluQWN0aXZpdHk=
2020-11-12 14:25:39 userCode:sKGnunFeELkPM0vFK5eyekaEJTfmyKVLqNoaqeYz5cM
2020-11-12 14:25:39 getWeixinBSessionID
2020-11-12 14:25:39 bsessionid:FACC658A5DC41DE89C231BFF0FB1C481
2020-11-12 14:25:39 已经登录过:FACC658A5DC41DE89C231BFF0FB1C481
2020-11-12 14:25:39 session 没有超时
2020-11-12 14:25:39 check login end getWeixinBSessionID
2020-11-12 14:25:39 lizhipeng
开始执行sslogoinlizhipeng
开始IFB6305F295E83456AD447FFF96BD776B8
2020-11-12 14:25:39 ../../portal/mobile/index.w?process=/SA/OPM/system/systemProcess&activity=mainActivity

控制台:
回复 支持 反对

使用道具 举报

17

主题

76

帖子

418

积分

中级会员

Rank: 3Rank: 3

积分
418
QQ
 楼主| 发表于 2020-11-12 14:33:16 | 显示全部楼层
tomcat启动后,偶尔第一次企业微信登陆时,会报:
2020-11-12 14:30:27 JUSTEP153012, 当前用户不在在线用户列表中!
col error
2020-11-12 14:30:27 check login end getWeixinBSessionID
2020-11-12 14:30:27 action:<?xml version="1.0" encoding="UTF-8"?>
<action process="/SA/weixin/process/weixin/weixinProcess" activity="mainActivity" name="doWeixinRequest" execute-context="configKey=wwac723d23f2a2b5451000003;" content-type="application/xml"><parameters><parameter name="inputStr"><xbiz:simple xmlns:xbiz="http://www.justep.com/xbiz#" type="http://www.w3.org/2001/XMLSchema#String">&lt;xml&gt;&lt;ToUserName&gt;&lt;![CDATA[wwac723d23f2a2b545]]&gt;&lt;/ToUserName&gt;&lt;Encrypt&gt;&lt;![CDATA[PneXjUF7qF/1GkLOwmtTd13/7jKnPF3tT3n62iMGOUSgrQRHUC9VRSETbtdasELbH1RiyeN3deEqa+CIrr1a/jG9zKuQtDg5XCqG7Yq7gpZd5ptqPDmeq/WM0HVa0TyhHAoabC9MM28/C0EqYsd3zC6URrbIUrJ7OortDPXmvxQwsMYXiigWOFmP8f2+mwIJs/48EB9YcMTffCZ8MjS2gwM+8eTvdG37GX2zgcZok7mLni/+yt6eruxnsmoiZtGrUNHHgEjvhBWNyLwvxD8UIPDvzInTXr7LJ7JKme8uq3Ds6284+FYo1/6TA0BSh32wJ/+laJs5ntlMIUu/ZUo/PzOLNI8P7OTMgsyC1ifDw+hPT1O5GH08VIfP/uNScSqlEEkA9K0cxpXGEZJ6jAk3sfwQV4xj4dMWSmHwrDXj6fiIHES43EX1rlXle/D49fPBAY4KQ2HFX4uOKbtHcJ96P84fIbDICoi6eW6a3wHijiq9zFJbsjplegGEbMsZuhaHdcbSp3il/+8G5Z9Y/F0cmkbjJ8hmQQ9s/XzyW4VCd+gJk1lmi7cJO97A1/khrHSoBHku87CluOhrZBcIaNrYTUjGZaN6C9cSM9bnbe+8Jb6UHOQ762P8ADh1PAE6O/FlUqawgWMhd+YitmLQv1vtsSVRd8DRfVx15LPzbuQOX0m041TvC4VF4V1ZUfgTEMC6S6uj7QuUCFMtfyj/LtIKnofslXsTa8JyFD67Yt0OY5zjQYxqxgOzEuY4zePYPYUwolgmOvRLt9GRA87eGS2yug5OJZDY83vQVJoU8YFpvHXSDmQHzzkxZQy+fsUCo6+oqdJLL/ipCS8vlHZEaQ1wWW64k9MTVEKbharGkPcXl7eIhvbLALIaKG6VVXVhxzbiAoKV/j96qf93CTbc9E+z7r2luV9HIY4Zp3Q0fNc25L/jOoSW957yhnAAY/3qWKEtjri63N+jd+cfqJVVpw2xOg==]]&gt;&lt;/Encrypt&gt;&lt;AgentID&gt;&lt;![CDATA[1000003]]&gt;&lt;/AgentID&gt;&lt;/xml&gt;</xbiz:simple></parameter><parameter name="msgSignature"><xbiz:simple xmlns:xbiz="http://www.justep.com/xbiz#" type="http://www.w3.org/2001/XMLSchema#String">a755e34d934ec28eaa9c51f60503dd5278b203ef</xbiz:simple></parameter><parameter name="nonce"><xbiz:simple xmlns:xbiz="http://www.justep.com/xbiz#" type="http://www.w3.org/2001/XMLSchema#String">1604594250</xbiz:simple></parameter><parameter name="echostr"/><parameter name="timestamp"><xbiz:simple xmlns:xbiz="http://www.justep.com/xbiz#" type="http://www.w3.org/2001/XMLSchema#String">1605162625</xbiz:simple></parameter></parameters></action>
com.justep.exception.LicenseException: 编码: JUSTEP153012; 提示: 当前用户不在在线用户列表中!
        at com.justep.exception.LicenseException.create(Unknown Source)
        at com.justep.util.Utils.throwSystemException(Unknown Source)
        at com.justep.system.action.Engine.invokeActions(Native Method)
        at com.justep.system.action.Engine.invokeActions(Unknown Source)
        at com.justep.business.server.BusinessServer.doAction(Unknown Source)
        at com.justep.business.server.BusinessServer.doExcute(Unknown Source)
        at com.justep.business.server.BusinessServer.excute(Unknown Source)
        at com.justep.business.server.BusinessServer.excute(Unknown Source)
        at com.justep.business.server.BusinessServerServlet.execService(Unknown Source)
        at com.justep.business.server.BusinessServerServlet.service(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        at com.justep.x.bs.BusinessServerServlet.service(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at com.justep.micro.service.MicroServiceFilter.doFilter(Unknown Source)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:745)
2020-11-12 14:30:27
java.lang.RuntimeException: 当前用户不在在线用户列表中!
        at WeixinCallback.doExecute(WeixinCallback.java:51)
        at WeixinCallback.execute(WeixinCallback.java:23)
        at com.justep.ui.JavaServer.runJava(Unknown Source)
        at com.justep.ui.JavaServer.doJ(Unknown Source)
        at com.justep.ui.JavaServer.service(Native Method)
        at com.justep.ui.servlet.MainServlet.service(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at com.justep.portal.filter.RedirectFilter.doFilter(Unknown Source)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at com.justep.ui.filter.MicroServiceAdminFilter.doFilter(Unknown Source)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:745)
2020-11-12 14:30:27 编码: JUSTEP002026; 提示: .J(/UI2/SA/weixin/weixinCallback.j)执行失败
javax.servlet.ServletException: com.justep.ui.exception.UIException: 编码: JUSTEP002026; 提示: .J(/UI2/SA/weixin/weixinCallback.j)执行失败
        at com.justep.ui.servlet.MainServlet.service(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at com.justep.portal.filter.RedirectFilter.doFilter(Unknown Source)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at com.justep.ui.filter.MicroServiceAdminFilter.doFilter(Unknown Source)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:745)
Caused by: com.justep.ui.exception.UIException: 编码: JUSTEP002026; 提示: .J(/UI2/SA/weixin/weixinCallback.j)执行失败
        at com.justep.ui.exception.UIException.create(Unknown Source)
        at com.justep.ui.JavaServer.doJ(Unknown Source)
        at com.justep.ui.JavaServer.service(Native Method)
        ... 20 more
2020-11-12 14:30:28 getWeixinBSessionID
2020-11-12 14:30:28 bsessionid:B2B9A0C72555FD573AEC274DC0994308
2020-11-12 14:30:28 已经登录过:B2B9A0C72555FD573AEC274DC0994308
2020-11-12 14:30:28 session 没有超时
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-11-23 17:11 , Processed in 0.100645 second(s), 28 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表