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

QQ登录

只需一步,快速开始

查看: 3120|回复: 3

[结贴] redis做session共享,登录报错

[复制链接]

1014

主题

4373

帖子

1万

积分

论坛元老

Rank: 8Rank: 8

积分
10983
QQ
发表于 2020-10-31 20:43:15 | 显示全部楼层 |阅读模式
报错信息如下:
  1. 2020-10-31 20:41:30 [catalina-exec-58] [com.justep.ui.JavaServer] ERROR:
  2. java.lang.ClassCastException: org.dom4j.tree.DefaultDocument cannot be cast to com.alibaba.fastjson.JSONObject
  3.         at Login.execute(Login.java:101)
  4.         at com.justep.ui.JavaServer.runJava(Unknown Source)
  5.         at com.justep.ui.JavaServer.doJ(Unknown Source)
  6.         at com.justep.ui.JavaServer.service(Native Method)
  7.         at com.justep.ui.servlet.MainServlet.service(Unknown Source)
  8.         at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
  9.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
  10.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  11.         at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  12.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  13.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  14.         at com.justep.portal.filter.RedirectFilter.doFilter(Unknown Source)
  15.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  16.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  17.         at com.justep.ui.filter.MicroServiceAdminFilter.doFilter(Unknown Source)
  18.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  19.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  20.         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
  21.         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
  22.         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543)
  23.         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
  24.         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
  25.         at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
  26.         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
  27.         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
  28.         at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:615)
  29.         at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
  30.         at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:818)
  31.         at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1626)
  32.         at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  33.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  34.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  35.         at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  36.         at java.lang.Thread.run(Thread.java:745)
  37. 2020-10-31 20:41:30 [catalina-exec-58] [com.justep.ui.servlet.MainServlet] ERROR: 编码: JUSTEP002026; 提示: .J(/UI2/portal/base/login/login.j)执行失败
  38. javax.servlet.ServletException: com.justep.ui.exception.UIException: 编码: JUSTEP002026; 提示: .J(/UI2/portal/base/login/login.j)执行失败
  39.         at com.justep.ui.servlet.MainServlet.service(Unknown Source)
  40.         at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
  41.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
  42.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  43.         at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  44.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  45.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  46.         at com.justep.portal.filter.RedirectFilter.doFilter(Unknown Source)
  47.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  48.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  49.         at com.justep.ui.filter.MicroServiceAdminFilter.doFilter(Unknown Source)
  50.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  51.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  52.         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
  53.         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
  54.         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543)
  55.         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
  56.         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
  57.         at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
  58.         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
  59.         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
  60.         at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:615)
  61.         at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
  62.         at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:818)
  63.         at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1626)
  64.         at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  65.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  66.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  67.         at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  68.         at java.lang.Thread.run(Thread.java:745)
  69. Caused by: com.justep.ui.exception.UIException: 编码: JUSTEP002026; 提示: .J(/UI2/portal/base/login/login.j)执行失败
  70.         at com.justep.ui.exception.UIException.create(Unknown Source)
  71.         at com.justep.ui.JavaServer.doJ(Unknown Source)
  72.         at com.justep.ui.JavaServer.service(Native Method)
  73.         ... 30 more
复制代码


孤舟蓑笠翁,独钓寒江雪。
X5牛刀交流民间第一群:30057529
提供有偿服务,联系WX:18332024
bex5疑难问题解决方案

1014

主题

4373

帖子

1万

积分

论坛元老

Rank: 8Rank: 8

积分
10983
QQ
 楼主| 发表于 2020-10-31 20:43:51 | 显示全部楼层
孤舟蓑笠翁,独钓寒江雪。
X5牛刀交流民间第一群:30057529
提供有偿服务,联系WX:18332024
bex5疑难问题解决方案
回复 支持 反对

使用道具 举报

1014

主题

4373

帖子

1万

积分

论坛元老

Rank: 8Rank: 8

积分
10983
QQ
 楼主| 发表于 2020-10-31 21:39:10 | 显示全部楼层
重点关注这个位置

java.lang.ClassCastException: org.dom4j.tree.DefaultDocument cannot be cast to com.alibaba.fastjson.JSONObject
       at Login.execute(Login.java:101)



孤舟蓑笠翁,独钓寒江雪。
X5牛刀交流民间第一群:30057529
提供有偿服务,联系WX:18332024
bex5疑难问题解决方案
回复 支持 反对

使用道具 举报

1014

主题

4373

帖子

1万

积分

论坛元老

Rank: 8Rank: 8

积分
10983
QQ
 楼主| 发表于 2020-10-31 22:14:13 | 显示全部楼层
已解决,配置用户环境变量不行,必须配置系统环境变量;
结贴。
孤舟蓑笠翁,独钓寒江雪。
X5牛刀交流民间第一群:30057529
提供有偿服务,联系WX:18332024
bex5疑难问题解决方案
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-25 02:43 , Processed in 0.094106 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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