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

QQ登录

只需一步,快速开始

查看: 1493|回复: 7

[结贴] 客户端APP调用系统的Action:changePasswordAction 、logoutAction问题

[复制链接]

12

主题

67

帖子

413

积分

中级会员

Rank: 3Rank: 3

积分
413
QQ
发表于 2015-4-23 17:25:15 | 显示全部楼层 |阅读模式
客户端信息:
调用 changePasswordAction出现连接超时问题:

17:11:53,362 DEBUG ActionEngine:? - action: <action process="/SA/OPM/system/systemProcess" activity="mainActivity" name="changePasswordAction" executeContext="" content-type="application/xml" ><parameters><parameter name="name" ><xbiz:simple xmlns:xbiz="http://www.justep.com/xbiz#" type="http://www.w3.org/2001/XMLSchema#String">system</xbiz:simple></parameter><parameter name="opwd" ><xbiz:simple xmlns:xbiz="http://www.justep.com/xbiz#" type="http://www.w3.org/2001/XMLSchema#String">E10ADC3949BA59ABBE56E057F20F883E</xbiz:simple></parameter><parameter name="npwd" ><xbiz:simple xmlns:xbiz="http://www.justep.com/xbiz#" type="http://www.w3.org/2001/XMLSchema#String">FCEA920F7412B5DA7BE0CF42B8C93759</xbiz:simple></parameter></parameters></action>
17:11:53,363 DEBUG HttpConnection:692 - Open connection to 127.0.0.1:8080
17:11:53,364 DEBUG header:70 - >> "POST /BusinessServer/business-action?language=UTF-8 HTTP/1.1[\r][\n]"
17:11:53,365 DEBUG HttpMethodBase:1352 - Adding Host request header
17:11:53,365 DEBUG header:70 - >> "Accept: application/json[\r][\n]"
17:11:53,366 DEBUG header:70 - >> "Content-Type: application/xml[\r][\n]"
17:11:53,366 DEBUG header:70 - >> "User-Agent: Jakarta Commons-HttpClient/3.1[\r][\n]"
17:11:53,366 DEBUG header:70 - >> "Host: 127.0.0.1:8080[\r][\n]"
17:11:53,367 DEBUG header:70 - >> "Content-Length: 706[\r][\n]"
17:11:53,367 DEBUG header:70 - >> "[\r][\n]"
17:11:53,367 DEBUG content:84 - >> "<action process="/SA/OPM/system/systemProcess" activity="mainActivity" name="changePasswordAction" executeContext="" content-type="application/xml" ><parameters><parameter name="name" ><xbiz:simple xmlns:xbiz="http://www.justep.com/xbiz#" type="http://www.w3.org/2001/XMLSchema#String">system</xbiz:simple></parameter><parameter name="opwd" ><xbiz:simple xmlns:xbiz="http://www.justep.com/xbiz#" type="http://www.w3.org/2001/XMLSchema#String">E10ADC3949BA59ABBE56E057F20F883E</xbiz:simple></parameter><parameter name="npwd" ><xbiz:simple xmlns:xbiz="http://www.justep.com/xbiz#" type="http://www.w3.org/2001/XMLSchema#String">FCEA920F7412B5DA7BE0CF42B8C93759</xbiz:simple></parameter></parameters></action>"
17:11:53,368 DEBUG EntityEnclosingMethod:508 - Request body sent
17:11:53,371 DEBUG header:70 - << "HTTP/1.1 200 OK[\r][\n]"
17:11:53,372 DEBUG header:70 - << "HTTP/1.1 200 OK[\r][\n]"
17:11:53,372 DEBUG header:70 - << "Server: Apache-Coyote/1.1[\r][\n]"
17:11:53,373 DEBUG header:70 - << "Set-Cookie: JSESSIONID=7C6290D4CD0E1C9344E64D834C035417; Path=/BusinessServer[\r][\n]"
17:11:53,373 DEBUG header:70 - << "Content-Type: application/json;charset=UTF-8[\r][\n]"
17:11:53,373 DEBUG header:70 - << "Transfer-Encoding: chunked[\r][\n]"
17:11:53,374 DEBUG header:70 - << "Vary: Accept-Encoding[\r][\n]"
17:11:53,374 DEBUG header:70 - << "Date: Thu, 23 Apr 2015 09:11:53 GMT[\r][\n]"
17:11:53,374 DEBUG header:70 - << "[\r][\n]"
17:11:53,375 DEBUG HttpMethodBase:1651 - Cookie accepted: "$Version=0; JSESSIONID=7C6290D4CD0E1C9344E64D834C035417; $Path=/BusinessServer"
17:11:53,375 DEBUG content:84 - << "d"
17:11:53,375 DEBUG content:84 - << "f"
17:11:53,375 DEBUG content:84 - << "[\r]"
17:11:53,376 DEBUG content:70 - << "[\n]"
17:11:53,376 DEBUG content:84 - << "{"code":"JUSTEP150000","data":"","flag":false,"message":"[0xe6][0x9c][0x8d][0xe5][0x8a][0xa1][0xe5][0x99][0xa8][0xe8][0xbf][0x9e][0xe6][0x8e][0xa5][0xe8][0xb6][0x85][0xe6][0x97][0xb6], [0xe5][0x88][0x87][0xe6][0x8d][0xa2][0xe5][0x88][0xb0][0xe7][0x99][0xbb][0xe5][0xbd][0x95][0xe9][0xa1][0xb5][0xe9][0x9d][0xa2]","messages":"[]","reason":"[0xe9][0x95][0xbf][0xe6][0x97][0xb6][0xe9][0x97][0xb4][0xe6][0x9c][0xaa][0xe6][0x93][0x8d][0xe4][0xbd][0x9c],[0xe5][0xaf][0xbc][0xe8][0x87][0xb4][0xe4][0xbc][0x9a][0xe8][0xaf][0x9d][0xe8][0xbf][0x87][0xe6][0x9c][0x9f]; [0xe6][0x9c][0x8d][0xe5][0x8a][0xa1][0xe5][0x99][0xa8][0xe9][0x87][0x8d][0xe5][0x90][0xaf][0xe5][0x90][0x8e],[0xe5][0xaf][0xbc][0xe8][0x87][0xb4][0xe4][0xbc][0x9a][0xe8][0xaf][0x9d][0xe8][0xa2][0xab][0xe5][0x85][0xb3][0xe9][0x97][0xad]  ","stack":""}"
17:11:53,376 DEBUG content:84 - << "[\r]"
17:11:53,376 DEBUG content:70 - << "[\n]"
17:11:53,377 DEBUG content:84 - << "0"
17:11:53,377 DEBUG content:84 - << "[\r]"
17:11:53,377 DEBUG content:70 - << "[\n]"
17:11:53,377 DEBUG content:84 - << "[\r]"
17:11:53,377 DEBUG content:70 - << "[\n]"
17:11:53,377 DEBUG header:70 - << "[\r][\n]"
17:11:53,378 DEBUG HttpMethodBase:1024 - Resorting to protocol version default close connection policy
17:11:53,378 DEBUG HttpMethodBase:1028 - Should NOT close connection, using HTTP/1.1
17:11:53,378 DEBUG HttpConnection:1178 - Releasing connection back to connection manager.
17:11:53,383 DEBUG ActionEngine:? - 监控UI性能--请求BIZ:20
17:12:49,089 DEBUG HttpConnection:692 - Open connection to 127.0.0.1:8080
17:12:49,089 DEBUG header:70 - >> "POST /BusinessServer/logout HTTP/1.1[\r][\n]"
17:12:49,090 DEBUG HttpMethodBase:1352 - Adding Host request header
17:12:49,090 DEBUG header:70 - >> "Accept: application/xml[\r][\n]"
17:12:49,090 DEBUG header:70 - >> "Content-Type: application/xml[\r][\n]"
17:12:49,090 DEBUG header:70 - >> "User-Agent: Jakarta Commons-HttpClient/3.1[\r][\n]"
17:12:49,091 DEBUG header:70 - >> "Host: 127.0.0.1:8080[\r][\n]"
17:12:49,091 DEBUG header:70 - >> "Content-Length: 175[\r][\n]"
17:12:49,092 DEBUG header:70 - >> "[\r][\n]"

12

主题

67

帖子

413

积分

中级会员

Rank: 3Rank: 3

积分
413
QQ
 楼主| 发表于 2015-4-23 17:26:38 | 显示全部楼层
调用logoutAction出现连接超时问题:
17:12:49,092 DEBUG content:84 - >> "<action process="/SA/OPM/system/systemProcess" activity="mainActivity" name="logoutAction" executeContext="" content-type="application/xml" ><parameters></parameters></action>"
17:12:49,092 DEBUG EntityEnclosingMethod:508 - Request body sent
17:12:49,093 DEBUG header:70 - << "HTTP/1.1 200 OK[\r][\n]"
17:12:49,094 DEBUG header:70 - << "HTTP/1.1 200 OK[\r][\n]"
17:12:49,094 DEBUG header:70 - << "Server: Apache-Coyote/1.1[\r][\n]"
17:12:49,094 DEBUG header:70 - << "Set-Cookie: JSESSIONID=DFB2B53DE84F3FAD12F4CAC3A4BF6CE5; Path=/BusinessServer[\r][\n]"
17:12:49,094 DEBUG header:70 - << "Content-Type: application/xml;charset=UTF-8[\r][\n]"
17:12:49,094 DEBUG header:70 - << "Transfer-Encoding: chunked[\r][\n]"
17:12:49,095 DEBUG header:70 - << "Vary: Accept-Encoding[\r][\n]"
17:12:49,095 DEBUG header:70 - << "Date: Thu, 23 Apr 2015 09:12:49 GMT[\r][\n]"
17:12:49,095 DEBUG header:70 - << "[\r][\n]"
17:12:49,095 DEBUG HttpMethodBase:1651 - Cookie accepted: "$Version=0; JSESSIONID=DFB2B53DE84F3FAD12F4CAC3A4BF6CE5; $Path=/BusinessServer"
17:12:49,097 DEBUG content:84 - << "1"
17:12:49,097 DEBUG content:84 - << "3"
17:12:49,097 DEBUG content:84 - << "3"
17:12:49,098 DEBUG content:84 - << "[\r]"
17:12:49,098 DEBUG content:70 - << "[\n]"
17:12:49,098 DEBUG content:84 - << "<"
17:12:49,099 DEBUG content:84 - << "?"
17:12:49,099 DEBUG content:84 - << "x"
17:12:49,099 DEBUG content:84 - << "m"
17:12:49,099 DEBUG content:84 - << "l version="1.0" encoding="UT"
17:12:49,100 DEBUG content:84 - << "F"
17:12:49,100 DEBUG content:84 - << "-"
17:12:49,100 DEBUG content:84 - << "8"
17:12:49,101 DEBUG content:84 - << """
17:12:49,101 DEBUG content:84 - << "?"
17:12:49,101 DEBUG content:84 - << ">"
17:12:49,102 DEBUG content:70 - << "[\n]"
17:12:49,102 DEBUG content:84 - << "<root><flag>false</flag><message>[0xe6][0x9c][0x8d][0xe5][0x8a][0xa1][0xe5][0x99][0xa8][0xe8][0xbf][0x9e][0xe6][0x8e][0xa5][0xe8][0xb6][0x85][0xe6][0x97][0xb6], [0xe5][0x88][0x87][0xe6][0x8d][0xa2][0xe5][0x88][0xb0][0xe7][0x99][0xbb][0xe5][0xbd][0x95][0xe9][0xa1][0xb5][0xe9][0x9d][0xa2]</message><code>JUSTEP150000</code><reason>[0xe9][0x95][0xbf][0xe6][0x97][0xb6][0xe9][0x97][0xb4][0xe6][0x9c][0xaa][0xe6][0x93][0x8d][0xe4][0xbd][0x9c],[0xe5][0xaf][0xbc][0xe8][0x87][0xb4][0xe4][0xbc][0x9a][0xe8][0xaf][0x9d][0xe8][0xbf][0x87][0xe6][0x9c][0x9f]; [0xe6][0x9c][0x8d][0xe5][0x8a][0xa1][0xe5][0x99][0xa8][0xe9][0x87][0x8d][0xe5][0x90][0xaf][0xe5][0x90][0x8e],[0xe5][0xaf][0xbc][0xe8][0x87][0xb4][0xe4][0xbc][0x9a][0xe8][0xaf][0x9d][0xe8][0xa2][0xab][0xe5][0x85][0xb3][0xe9][0x97][0xad]  </reason><stack></stack><data></data><messages>[]</messages></root>"
17:12:49,103 DEBUG content:84 - << "[\r]"
17:12:49,103 DEBUG content:70 - << "[\n]"
17:12:49,103 DEBUG content:84 - << "0"
17:12:49,104 DEBUG content:84 - << "[\r]"
17:12:49,104 DEBUG content:70 - << "[\n]"
17:12:49,104 DEBUG content:84 - << "[\r]"
17:12:49,105 DEBUG content:70 - << "[\n]"
17:12:49,105 DEBUG header:70 - << "[\r][\n]"
17:12:49,105 DEBUG HttpMethodBase:1024 - Resorting to protocol version default close connection policy
17:12:49,105 DEBUG HttpMethodBase:1028 - Should NOT close connection, using HTTP/1.1
17:12:49,106 DEBUG HttpConnection:1178 - Releasing connection back to connection manager.
17:12:49,106 DEBUG ActionEngine:? - 监控UI性能--请求BIZ:18
17:12:49,106 ERROR Eims:255 - 退出失败!服务器连接超时, 切换到登录页面

BeX5控制台信息:
四月 23, 2015 4:22:22 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 4916 ms
2015-04-23 17:03:59 加载模块:/system/logic/code/interceptor ...
2015-04-23 17:11:53 Not registed session:7C6290D4CD0E1C9344E64D834C035417, jsessionid:null, action: <?xml version="1.0" encoding="UTF-8"?>
<action process="/SA/OPM/system/systemProcess" activity="mainActivity" name="changePasswordAction" executeContext="" content-type="application/xml"><parameters><parameter name="name"><xbiz:simple xmlns:xbiz="http://www.justep.com/xbiz#" type="http://www.w3.org/2001/XMLSchema#String">system</xbiz:simple></parameter><parameter name="opwd"><xbiz:simple xmlns:xbiz="http://www.justep.com/xbiz#" type="http://www.w3.org/2001/XMLSchema#String">E10ADC3949BA59ABBE56E057F20F883E</xbiz:simple></parameter><parameter name="npwd"><xbiz:simple xmlns:xbiz="http://www.justep.com/xbiz#" type="http://www.w3.org/2001/XMLSchema#String">FCEA920F7412B5DA7BE0CF42B8C93759</xbiz:simple></parameter></parameters></action>
2015-04-23 17:12:49 Not registed sessionFB2B53DE84F3FAD12F4CAC3A4BF6CE5, jsessionid:null, action: logout
回复 支持 反对

使用道具 举报

12

主题

67

帖子

413

积分

中级会员

Rank: 3Rank: 3

积分
413
QQ
 楼主| 发表于 2015-4-23 17:38:51 | 显示全部楼层
客户端:
17:37:38,873 DEBUG ActionEngine:? - 监控UI性能--请求BIZ:190
----------登录成功:session:223F887163B0178599CAE7F975B14189------------

17:37:44,625 DEBUG ActionEngine:? - 监控UI性能--请求BIZ:19
17:37:44,625 ERROR Eims:255 - 退出失败!服务器连接超时, 切换到登录页面

BeX5V3.1控制台:
2015-04-23 17:37:44 Not registed session:030338080CC9B0CE852349678156B8CF, jsessionid:null, action: logout
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36080
发表于 2015-4-24 08:56:16 | 显示全部楼层
具体调用的代码发一下看看
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

12

主题

67

帖子

413

积分

中级会员

Rank: 3Rank: 3

积分
413
QQ
 楼主| 发表于 2015-4-24 11:13:23 | 显示全部楼层
jishuang 发表于 2015-4-24 08:56
具体调用的代码发一下看看

changePasswordAction:
Action changeAction = new Action();
changeAction.setProcess("/SA/OPM/system/systemProcess");
changeAction.setActivity("mainActivity");
changeAction.setName("changePasswordAction");
//设置动作参数
changeAction.setParameter("name", name);
changeAction.setParameter("opwd", ActionUtils.md5(opwd));
changeAction.setParameter("npwd", ActionUtils.md5(npwd));                       
// 调用动作
ActionResult actionResult = ActionEngine.invokeAction(changeAction,ActionUtils.JSON_CONTENT_TYPE, User.getbSessionID(), "UTF-8",null);

Logout:

String bSessionID = User.getbSessionID();
ActionEngine.logout(bSessionID);
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36080
发表于 2015-4-24 14:08:56 | 显示全部楼层
超时就是给的bsessionid的值不正确,确认给的值是否正确
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

12

主题

67

帖子

413

积分

中级会员

Rank: 3Rank: 3

积分
413
QQ
 楼主| 发表于 2015-4-24 14:30:39 | 显示全部楼层
jishuang 发表于 2015-4-24 14:08
超时就是给的bsessionid的值不正确,确认给的值是否正确

我查查看
回复 支持 反对

使用道具 举报

12

主题

67

帖子

413

积分

中级会员

Rank: 3Rank: 3

积分
413
QQ
 楼主| 发表于 2015-4-24 15:14:14 | 显示全部楼层
jishuang 发表于 2015-4-24 14:08
超时就是给的bsessionid的值不正确,确认给的值是否正确

一低级错误,调试过程中将setbSessionID()注释掉了,没保存bSessionID。

结贴吧!
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-12-21 20:23 , Processed in 0.066249 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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